diff options
author | Benjamin Otte <otte@gnome.org> | 2003-09-15 01:08:40 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-09-15 01:08:40 +0000 |
commit | 982b39d30a05a9edf6f20353c0a91fdedeecad3e (patch) | |
tree | b58d134d7fbe3f6a04dc2ba5c235a1ca1d8de82d /ext/audiofile | |
parent | 36a375425114527faef71ad4193c41bcfe738a4b (diff) | |
download | gst-plugins-bad-982b39d30a05a9edf6f20353c0a91fdedeecad3e.tar.gz gst-plugins-bad-982b39d30a05a9edf6f20353c0a91fdedeecad3e.tar.bz2 gst-plugins-bad-982b39d30a05a9edf6f20353c0a91fdedeecad3e.zip |
converted gst_element_error to new format in ext/ - gettext pending
Original commit message from CVS:
converted gst_element_error to new format in ext/ - gettext pending
Diffstat (limited to 'ext/audiofile')
-rw-r--r-- | ext/audiofile/gstafsink.c | 12 | ||||
-rw-r--r-- | ext/audiofile/gstafsrc.c | 15 |
2 files changed, 17 insertions, 10 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c index 3392717c..3e27adbf 100644 --- a/ext/audiofile/gstafsink.c +++ b/ext/audiofile/gstafsink.c @@ -294,7 +294,9 @@ gst_afsink_open_file (GstAFSink *sink) sink->file = fopen (sink->filename, "w"); if (sink->file == NULL) { perror ("open"); - gst_element_error (GST_ELEMENT (sink), g_strconcat("opening file \"", sink->filename, "\"", NULL)); + gst_element_gerror(GST_ELEMENT (sink), g_strconcat("opening file \"", sink->filename, "\"", GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf(NULL))); return FALSE; } */ @@ -351,7 +353,9 @@ gst_afsink_open_file (GstAFSink *sink) if (sink->file == AF_NULL_FILEHANDLE) { perror ("open"); - gst_element_error (GST_ELEMENT (sink), g_strconcat("opening file \"", sink->filename, "\"", NULL)); + gst_element_gerror(GST_ELEMENT (sink), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("error openning file %s", sink->filename)); return FALSE; } @@ -374,7 +378,9 @@ gst_afsink_close_file (GstAFSink *sink) { g_print ("WARNING: afsink: oops, error closing !\n"); perror ("close"); - gst_element_error (GST_ELEMENT (sink), g_strconcat("closing file \"", sink->filename, "\"", NULL)); + gst_element_gerror(GST_ELEMENT (sink), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("error closing file %s", sink->filename)); } else { GST_FLAG_UNSET (sink, GST_AFSINK_OPEN); diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c index 2b817310..71b85294 100644 --- a/ext/audiofile/gstafsrc.c +++ b/ext/audiofile/gstafsrc.c @@ -306,8 +306,9 @@ gst_afsrc_open_file (GstAFSrc *src) { g_print ("ERROR: gstafsrc: Could not open file %s for reading\n", src->filename); - gst_element_error (GST_ELEMENT (src), g_strconcat ("opening file \"", - src->filename, "\"", NULL)); + gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf ("error opening file %s", src->filename)); return FALSE; } @@ -327,13 +328,11 @@ gst_afsrc_open_file (GstAFSrc *src) break; case AF_SAMPFMT_FLOAT: case AF_SAMPFMT_DOUBLE: - GST_DEBUG ( - "ERROR: float data not supported yet !\n"); + GST_DEBUG ("ERROR: float data not supported yet !\n"); } src->rate = (guint) afGetRate (src->file, AF_DEFAULT_TRACK); src->width = sampleWidth; - GST_DEBUG ( - "input file: %d channels, %d width, %d rate, signed %s\n", + GST_DEBUG ("input file: %d channels, %d width, %d rate, signed %s\n", src->channels, src->width, src->rate, src->is_signed ? "yes" : "no"); } @@ -369,7 +368,9 @@ gst_afsrc_close_file (GstAFSrc *src) { g_print ("WARNING: afsrc: oops, error closing !\n"); perror ("close"); - gst_element_error (GST_ELEMENT (src), g_strconcat("closing file \"", src->filename, "\"", NULL)); + gst_element_gerror(GST_ELEMENT (src), GST_ERROR_UNKNOWN, + g_strdup ("unconverted error, file a bug"), + g_strdup_printf("error closing file %s", src->filename)); } else { GST_FLAG_UNSET (src, GST_AFSRC_OPEN); |