summaryrefslogtreecommitdiffstats
path: root/sys/oss/gstosselement.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-09-15 00:42:39 +0000
committerBenjamin Otte <otte@gnome.org>2003-09-15 00:42:39 +0000
commit77a4320a0478e67df065fff13c3bba9852cc4842 (patch)
treed8c69a0c324dc45934baa6ea103bed4e10be70eb /sys/oss/gstosselement.c
parent2cefb5042912663dbc507f6b717232119549e8c1 (diff)
converted gst_element_error to new format in sys/oss - gettext pending
Original commit message from CVS: converted gst_element_error to new format in sys/oss - gettext pending
Diffstat (limited to 'sys/oss/gstosselement.c')
-rw-r--r--sys/oss/gstosselement.c42
1 files changed, 24 insertions, 18 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c
index f4379986..6ad1c21c 100644
--- a/sys/oss/gstosselement.c
+++ b/sys/oss/gstosselement.c
@@ -429,37 +429,43 @@ gst_osselement_open_audio (GstOssElement *oss)
if (oss->fd < 0) {
switch (errno) {
case EBUSY:
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Unable to open %s (in use ?)",
- oss->device);
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Unable to open %s (in use ?)",
+ oss->device));
break;
case EISDIR:
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Device %s is a directory",
- oss->device);
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Device %s is a directory",
+ oss->device));
break;
case EACCES:
case ETXTBSY:
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Cannot access %s, check permissions",
- oss->device);
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Cannot access %s, check permissions",
+ oss->device));
break;
case ENXIO:
case ENODEV:
case ENOENT:
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Cannot access %s, does it exist ?",
- oss->device);
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Cannot access %s, does it exist ?",
+ oss->device));
break;
case EROFS:
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Cannot access %s, read-only filesystem ?",
- oss->device);
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Cannot access %s, read-only filesystem ?",
+ oss->device));
default:
/* FIXME: strerror is not threadsafe */
- gst_element_error (GST_ELEMENT (oss),
- "osselement: Cannot open %s, generic error: %s",
- oss->device, strerror (errno));
+ gst_element_gerror(GST_ELEMENT (oss), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("osselement: Cannot open %s, generic error: %s",
+ oss->device, strerror (errno)));
break;
}
return FALSE;