mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
converted gst_element_error to new format in gst/ - gettext pending
Original commit message from CVS: converted gst_element_error to new format in gst/ - gettext pending
This commit is contained in:
parent
295fbb55f1
commit
36a3754251
9 changed files with 27 additions and 12 deletions
|
@ -372,8 +372,9 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -499,7 +499,9 @@ gst_flxdec_loop (GstElement *element)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -625,7 +625,9 @@ gst_modplug_loop (GstElement *element)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -198,8 +198,9 @@ mp1videoparse_parse_seq (Mp1VideoParse *mp1videoparse, GstBuffer *buf)
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -360,8 +360,9 @@ bpf_from_header (GstMPEGAudioParse *parse, unsigned long header)
|
|||
"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;
|
||||
|
|
|
@ -315,7 +315,9 @@ gst_overlay_loop (GstElement *element)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -364,7 +364,9 @@ gst_smpte_loop (GstElement *element)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -280,7 +280,9 @@ speed_loop (GstElement *element)
|
|||
#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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -380,7 +380,9 @@ gst_video_crop_chain (GstPad *pad, GstBuffer *buffer)
|
|||
"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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue