Commit c05cf86c authored by Benjamin Otte's avatar Benjamin Otte
Browse files

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
parent 5c28dc80
...@@ -281,9 +281,10 @@ gst_ffmpegdec_chain (GstPad *pad, ...@@ -281,9 +281,10 @@ gst_ffmpegdec_chain (GstPad *pad,
gint have_data; gint have_data;
if (!ffmpegdec->opened) { if (!ffmpegdec->opened) {
gst_element_error (GST_ELEMENT (ffmpegdec), gst_element_gerror(GST_ELEMENT (ffmpegdec), GST_ERROR_UNKNOWN,
"ffdec_%s: input format was not set before data-start", g_strdup ("unconverted error, file a bug"),
oclass->in_plugin->name); g_strdup_printf("ffdec_%s: input format was not set before data-start",
oclass->in_plugin->name));
return; return;
} }
...@@ -345,9 +346,10 @@ gst_ffmpegdec_chain (GstPad *pad, ...@@ -345,9 +346,10 @@ gst_ffmpegdec_chain (GstPad *pad,
ffmpegdec->context); ffmpegdec->context);
if (caps == NULL || if (caps == NULL ||
gst_pad_try_set_caps (ffmpegdec->srcpad, caps) <= 0) { gst_pad_try_set_caps (ffmpegdec->srcpad, caps) <= 0) {
gst_element_error (GST_ELEMENT (ffmpegdec), gst_element_gerror(GST_ELEMENT (ffmpegdec), GST_ERROR_UNKNOWN,
"Failed to link ffmpeg decoder (%s) to next element", g_strdup ("unconverted error, file a bug"),
oclass->in_plugin->name); g_strdup_printf ("Failed to link ffmpeg decoder (%s) to next element",
oclass->in_plugin->name));
return; return;
} }
} }
......
...@@ -212,8 +212,9 @@ gst_ffmpegdemux_loop (GstElement *element) ...@@ -212,8 +212,9 @@ gst_ffmpegdemux_loop (GstElement *element)
ffmpegdemux->sinkpad), ffmpegdemux->sinkpad),
oclass->in_plugin, 0, NULL); oclass->in_plugin, 0, NULL);
if (res < 0) { if (res < 0) {
gst_element_error (GST_ELEMENT (ffmpegdemux), gst_element_gerror(GST_ELEMENT (ffmpegdemux), GST_ERROR_UNKNOWN,
"Failed to open demuxer/file context"); g_strdup ("unconverted error, file a bug"),
g_strdup_printf ("Failed to open demuxer/file context"));
return; return;
} }
......
...@@ -295,8 +295,9 @@ gst_ffmpegmux_loop (GstElement *element) ...@@ -295,8 +295,9 @@ gst_ffmpegmux_loop (GstElement *element)
if (url_fopen (&ffmpegmux->context->pb, if (url_fopen (&ffmpegmux->context->pb,
ffmpegmux->context->filename, ffmpegmux->context->filename,
URL_WRONLY) < 0) { URL_WRONLY) < 0) {
gst_element_error (element, gst_element_gerror(element, GST_ERROR_UNKNOWN,
"Failed to open stream context in ffmux"); g_strdup ("unconverted error, file a bug"),
g_strdup_printf ("Failed to open stream context in ffmux"));
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment