diff options
author | Benjamin Otte <otte@gnome.org> | 2003-09-15 00:42:39 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-09-15 00:42:39 +0000 |
commit | 77a4320a0478e67df065fff13c3bba9852cc4842 (patch) | |
tree | d8c69a0c324dc45934baa6ea103bed4e10be70eb /sys/oss/gstosssrc.c | |
parent | 2cefb5042912663dbc507f6b717232119549e8c1 (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/gstosssrc.c')
-rw-r--r-- | sys/oss/gstosssrc.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index c2ff0025..8a5e0bb3 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -315,13 +315,17 @@ gst_osssrc_get (GstPad *pad) /* nothing was negotiated, we can decide on a format */ if (!gst_osssrc_negotiate (pad)) { gst_buffer_unref (buf); - gst_element_error (GST_ELEMENT (src), "could not negotiate format"); + gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("could not negotiate format")); return GST_BUFFER (gst_event_new (GST_EVENT_INTERRUPT)); } } if (GST_OSSELEMENT (src)->bps == 0) { gst_buffer_unref (buf); - gst_element_error (GST_ELEMENT (src), "no format negotiated"); + gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("no format negotiated")); return GST_BUFFER (gst_event_new (GST_EVENT_INTERRUPT)); } @@ -329,8 +333,10 @@ gst_osssrc_get (GstPad *pad) src->buffersize); if (readbytes < 0) { gst_buffer_unref (buf); - gst_element_error (GST_ELEMENT (src), "error reading data (%s)", - strerror (errno)); + gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("error reading data (%s)", + strerror (errno))); return GST_BUFFER (gst_event_new (GST_EVENT_INTERRUPT)); } |