From 77a4320a0478e67df065fff13c3bba9852cc4842 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 15 Sep 2003 00:42:39 +0000 Subject: 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 --- sys/oss/gstosssrc.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'sys/oss/gstosssrc.c') 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)); } -- cgit