summaryrefslogtreecommitdiffstats
path: root/ext/ivorbis
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2003-09-15 01:08:40 +0000
committerBenjamin Otte <otte@gnome.org>2003-09-15 01:08:40 +0000
commit982b39d30a05a9edf6f20353c0a91fdedeecad3e (patch)
treeb58d134d7fbe3f6a04dc2ba5c235a1ca1d8de82d /ext/ivorbis
parent36a375425114527faef71ad4193c41bcfe738a4b (diff)
downloadgst-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/ivorbis')
-rw-r--r--ext/ivorbis/vorbisfile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/ivorbis/vorbisfile.c b/ext/ivorbis/vorbisfile.c
index 86c7baf2..125c44c9 100644
--- a/ext/ivorbis/vorbisfile.c
+++ b/ext/ivorbis/vorbisfile.c
@@ -496,7 +496,9 @@ gst_ivorbisfile_loop (GstElement *element)
/* open our custom ivorbisfile data object with the callbacks we provide */
if (ov_open_callbacks (ivorbisfile, &ivorbisfile->vf, NULL, 0,
ivorbisfile_ov_callbacks) < 0) {
- gst_element_error (element, "this is not a vorbis file");
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("this is not a vorbis file"));
return;
}
ivorbisfile->need_discont = TRUE;
@@ -560,7 +562,9 @@ gst_ivorbisfile_loop (GstElement *element)
/* we update the caps for each logical stream */
if (ivorbisfile->vf.current_link != ivorbisfile->current_link) {
if (!gst_ivorbisfile_new_link (ivorbisfile, ivorbisfile->vf.current_link)) {
- gst_element_error (GST_ELEMENT (ivorbisfile), "could not negotiate format");
+ gst_element_gerror(GST_ELEMENT (ivorbisfile), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not negotiate format"));
}
return;
}