"height", GST_PROPS_INT (chart->height),
"framerate", GST_PROPS_FLOAT (chart->framerate));
if (gst_pad_try_set_caps (chart->srcpad, newcaps) <= 0) {
- gst_element_error (GST_ELEMENT (chart),
- "chart: could not negotiate format");
+ gst_element_gerror(GST_ELEMENT (chart), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup ("chart: could not negotiate format"));
return;
}
}
if (flxh->type != FLX_MAGICHDR_FLI &&
flxh->type != FLX_MAGICHDR_FLC &&
flxh->type != FLX_MAGICHDR_FLX) {
- gst_element_error (element, "not a flx file (type %d)\n", flxh->type);
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("not a flx file (type %d)\n", flxh->type));
return;
}
if (!GST_PAD_CAPS (modplug->srcpad) &&
modplug_negotiate (modplug) <= 0) {
- gst_element_error (GST_ELEMENT (modplug), "could not negotiate format");
+ gst_element_gerror (GST_ELEMENT (modplug), GST_ERROR_CAPS_NEGOTIATION,
+ g_strdup ("could not negotiate format"),
+ g_strdup ("could not negotiate format"));
return;
}
gst_caps_debug (caps, "New mpeg1videoparse caps");
if (gst_pad_try_set_caps (mp1videoparse->srcpad, caps) <= 0) {
- gst_element_error (GST_ELEMENT (mp1videoparse),
- "mp1videoparse: failed to negotiate a new format");
+ gst_element_gerror(GST_ELEMENT (mp1videoparse), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf ("mp1videoparse: failed to negotiate a new format"));
return;
}
}
"channels", GST_PROPS_INT (channels),
"rate", GST_PROPS_INT (rate));
if (gst_pad_try_set_caps(parse->srcpad, caps) <= 0) {
- gst_element_error (GST_ELEMENT (parse),
- "mp3parse: failed to negotiate format with next element");
+ gst_element_gerror(GST_ELEMENT (parse), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf ("mp3parse: failed to negotiate format with next element"));
}
parse->channels = channels;
"framerate",GST_PROPS_FLOAT (overlay->framerate)
)))
{
- gst_element_error (element, "cannot set caps");
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("cannot set caps"));
return;
}
}
"framerate", GST_PROPS_FLOAT (smpte->fps)
)))
{
- gst_element_error (element, "cannot set caps");
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("cannot set caps"));
return;
}
}
#include "filter.func"
#undef _FORMAT
} else {
- gst_element_error (element, "capsnego was never performed, bailing...");
+ gst_element_gerror(element, GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("capsnego was never performed, bailing..."));
gst_element_yield (element);
}
}
"framerate", GST_PROPS_FLOAT (video_crop->fps)
)) <= 0)
{
- gst_element_error (GST_ELEMENT (video_crop), "could not negotiate pads");
+ gst_element_gerror(GST_ELEMENT (video_crop), GST_ERROR_UNKNOWN,
+ g_strdup ("unconverted error, file a bug"),
+ g_strdup_printf("could not negotiate pads"));
return;
}
}