diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/chart/gstchart.c | 5 | ||||
-rw-r--r-- | gst/flx/gstflxdec.c | 4 | ||||
-rw-r--r-- | gst/modplug/gstmodplug.cc | 4 | ||||
-rw-r--r-- | gst/mpeg1videoparse/gstmp1videoparse.c | 5 | ||||
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 5 | ||||
-rw-r--r-- | gst/overlay/gstoverlay.c | 4 | ||||
-rw-r--r-- | gst/smpte/gstsmpte.c | 4 | ||||
-rw-r--r-- | gst/speed/gstspeed.c | 4 | ||||
-rw-r--r-- | gst/videocrop/gstvideocrop.c | 4 |
9 files changed, 12 insertions, 27 deletions
diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c index 16558b4f..bc86b893 100644 --- a/gst/chart/gstchart.c +++ b/gst/chart/gstchart.c @@ -372,9 +372,8 @@ 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_gerror(GST_ELEMENT (chart), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup ("chart: could not negotiate format")); + gst_element_error (GST_ELEMENT (chart), + "chart: could not negotiate format"); return; } } diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index fe204439..c20327a7 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -499,9 +499,7 @@ gst_flxdec_loop (GstElement *element) if (flxh->type != FLX_MAGICHDR_FLI && flxh->type != FLX_MAGICHDR_FLC && flxh->type != FLX_MAGICHDR_FLX) { - 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)); + gst_element_error (element, "not a flx file (type %d)\n", flxh->type); return; } diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc index b0a0bb76..2fa602f7 100644 --- a/gst/modplug/gstmodplug.cc +++ b/gst/modplug/gstmodplug.cc @@ -625,9 +625,7 @@ gst_modplug_loop (GstElement *element) if (!GST_PAD_CAPS (modplug->srcpad) && modplug_negotiate (modplug) <= 0) { - gst_element_gerror (GST_ELEMENT (modplug), GST_ERROR_CAPS_NEGOTIATION, - g_strdup ("could not negotiate format"), - g_strdup ("could not negotiate format")); + gst_element_error (GST_ELEMENT (modplug), "could not negotiate format"); return; } diff --git a/gst/mpeg1videoparse/gstmp1videoparse.c b/gst/mpeg1videoparse/gstmp1videoparse.c index e82d7588..4af360fd 100644 --- a/gst/mpeg1videoparse/gstmp1videoparse.c +++ b/gst/mpeg1videoparse/gstmp1videoparse.c @@ -198,9 +198,8 @@ 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_gerror(GST_ELEMENT (mp1videoparse), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf ("mp1videoparse: failed to negotiate a new format")); + gst_element_error (GST_ELEMENT (mp1videoparse), + "mp1videoparse: failed to negotiate a new format"); return; } } diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 58576a9a..ba207c0e 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -360,9 +360,8 @@ 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_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")); + gst_element_error (GST_ELEMENT (parse), + "mp3parse: failed to negotiate format with next element"); } parse->channels = channels; diff --git a/gst/overlay/gstoverlay.c b/gst/overlay/gstoverlay.c index 27b168c3..79c061fa 100644 --- a/gst/overlay/gstoverlay.c +++ b/gst/overlay/gstoverlay.c @@ -315,9 +315,7 @@ gst_overlay_loop (GstElement *element) "framerate",GST_PROPS_FLOAT (overlay->framerate) ))) { - gst_element_gerror(element, GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("cannot set caps")); + gst_element_error (element, "cannot set caps"); return; } } diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 9b203fe1..bf042e4c 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -364,9 +364,7 @@ gst_smpte_loop (GstElement *element) "framerate", GST_PROPS_FLOAT (smpte->fps) ))) { - gst_element_gerror(element, GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("cannot set caps")); + gst_element_error (element, "cannot set caps"); return; } } diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c index 64020f6d..07dad78c 100644 --- a/gst/speed/gstspeed.c +++ b/gst/speed/gstspeed.c @@ -280,9 +280,7 @@ speed_loop (GstElement *element) #include "filter.func" #undef _FORMAT } else { - gst_element_gerror(element, GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("capsnego was never performed, bailing...")); + gst_element_error (element, "capsnego was never performed, bailing..."); gst_element_yield (element); } } diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 54702e5c..d96061a0 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -380,9 +380,7 @@ gst_video_crop_chain (GstPad *pad, GstBuffer *buffer) "framerate", GST_PROPS_FLOAT (video_crop->fps) )) <= 0) { - gst_element_gerror(GST_ELEMENT (video_crop), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("could not negotiate pads")); + gst_element_error (GST_ELEMENT (video_crop), "could not negotiate pads"); return; } } |