gint have_data;
if (!ffmpegdec->opened) {
- gst_element_gerror(GST_ELEMENT (ffmpegdec), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf("ffdec_%s: input format was not set before data-start",
- oclass->in_plugin->name));
+ gst_element_error (GST_ELEMENT (ffmpegdec),
+ "ffdec_%s: input format was not set before data-start",
+ oclass->in_plugin->name);
return;
}
ffmpegdec->context);
if (caps == NULL ||
gst_pad_try_set_caps (ffmpegdec->srcpad, caps) <= 0) {
- gst_element_gerror(GST_ELEMENT (ffmpegdec), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf ("Failed to link ffmpeg decoder (%s) to next element",
- oclass->in_plugin->name));
+ gst_element_error (GST_ELEMENT (ffmpegdec),
+ "Failed to link ffmpeg decoder (%s) to next element",
+ oclass->in_plugin->name);
return;
}
}
ffmpegdemux->sinkpad),
oclass->in_plugin, 0, NULL);
if (res < 0) {
- gst_element_gerror(GST_ELEMENT (ffmpegdemux), GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf ("Failed to open demuxer/file context"));
+ gst_element_error (GST_ELEMENT (ffmpegdemux),
+ "Failed to open demuxer/file context");
return;
}
if (url_fopen (&ffmpegmux->context->pb,
ffmpegmux->context->filename,
URL_WRONLY) < 0) {
- gst_element_gerror(element, GST_ERROR_UNKNOWN,
- g_strdup ("unconverted error, file a bug"),
- g_strdup_printf ("Failed to open stream context in ffmux"));
+ gst_element_error (element,
+ "Failed to open stream context in ffmux");
return;
}