diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/ac3parse/gstac3parse.c | 5 | ||||
-rw-r--r-- | gst/asfdemux/gstasfdemux.c | 28 | ||||
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 5 | ||||
-rw-r--r-- | gst/mpegstream/gstmpegparse.c | 8 | ||||
-rw-r--r-- | gst/synaesthesia/gstsynaesthesia.c | 4 |
5 files changed, 14 insertions, 36 deletions
diff --git a/gst/ac3parse/gstac3parse.c b/gst/ac3parse/gstac3parse.c index dcf363b3..da7f7518 100644 --- a/gst/ac3parse/gstac3parse.c +++ b/gst/ac3parse/gstac3parse.c @@ -337,9 +337,8 @@ gst_ac3parse_chain (GstPad *pad, GstBuffer *buf) "channels", GST_PROPS_INT (channels), "rate", GST_PROPS_INT (sample_rate)); if (gst_pad_try_set_caps (ac3parse->srcpad, newcaps) <= 0) { - gst_element_gerror(GST_ELEMENT (ac3parse), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf ("Ac3parse: failed to negotiate format with next element")); + gst_element_error (GST_ELEMENT (ac3parse), + "Ac3parse: failed to negotiate format with next element"); return; } } diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 3cbf67a9..5abe5744 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -518,9 +518,7 @@ gst_asf_demux_process_segment (GstASFDemux *asf_demux, /* It's uncompressed with replic data*/ if (replic_size < 8) { - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("The payload has replicated data but the size is less than 8")); + gst_element_error (GST_ELEMENT (asf_demux), "The payload has replicated data but the size is less than 8"); return FALSE; } gst_asf_demux_read_object_header_rest (asf_demux, &ptr, 8); @@ -569,9 +567,7 @@ gst_asf_demux_process_segment (GstASFDemux *asf_demux, segment_info.segment_size = segment_info.chunk_size; if (segment_info.chunk_size > packet_info->size_left) { - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Payload chunk overruns packet size.")); + gst_element_error (GST_ELEMENT (asf_demux), "Payload chunk overruns packet size."); return FALSE; } @@ -763,9 +759,7 @@ gst_asf_demux_process_stream (GstASFDemux *asf_demux, guint64 *filepos, guint64 case ASF_CORRECTION_OFF: break; default: - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Audio stream using unknown error correction")); + gst_element_error (GST_ELEMENT (asf_demux), "Audio stream using unknown error correction"); return FALSE; } @@ -799,9 +793,7 @@ gst_asf_demux_process_stream (GstASFDemux *asf_demux, guint64 *filepos, guint64 } break; default: - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Object is a stream of unrecognised type")); + gst_element_error (GST_ELEMENT (asf_demux), "Object is a stream of unrecognised type"); return FALSE; } @@ -849,9 +841,7 @@ gst_asf_demux_read_object_header (GstASFDemux *asf_demux, guint32 *obj_id, guint if (*obj_id == ASF_OBJ_UNDEFINED) { GST_INFO ( "Object found with unknown GUID %08x %08x %08x %08x", guid->v1, guid->v2, guid->v3, guid->v4); - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Could not identify object")); + gst_element_error (GST_ELEMENT (asf_demux), "Could not identify object"); return FALSE; } @@ -921,9 +911,7 @@ gst_asf_demux_process_object (GstASFDemux *asf_demux, case ASF_OBJ_BITRATE_MUTEX: return gst_asf_demux_skip_object (asf_demux, filepos, &obj_size); default: - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Unknown ASF object")); + gst_element_error (GST_ELEMENT (asf_demux), "Unknown ASF object"); return FALSE; } @@ -947,9 +935,7 @@ gst_asf_demux_get_stream (GstASFDemux *asf_demux, } /* Base case if we haven't found one at all */ - gst_element_gerror(GST_ELEMENT (asf_demux), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("Segment found for undefined stream: (%d)", id)); + gst_element_error (GST_ELEMENT (asf_demux), "Segment found for undefined stream: (%d)", id); return NULL; } 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/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index 343b5437..85041f37 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -276,9 +276,7 @@ gst_mpeg_parse_send_data (GstMPEGParse *mpeg_parse, GstData *data, GstClockTime "parsed", GST_PROPS_BOOLEAN (TRUE) )) < 0) { - gst_element_gerror(GST_ELEMENT (mpeg_parse), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("could no set source caps")); + gst_element_error (GST_ELEMENT (mpeg_parse), "could no set source caps"); return; } } @@ -523,9 +521,7 @@ gst_mpeg_parse_loop (GstElement *element) "parsed", GST_PROPS_BOOLEAN (TRUE) )) < 0) { - gst_element_gerror(GST_ELEMENT (mpeg_parse), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("could no set sink caps")); + gst_element_error (GST_ELEMENT (mpeg_parse), "could no set sink caps"); return; } } diff --git a/gst/synaesthesia/gstsynaesthesia.c b/gst/synaesthesia/gstsynaesthesia.c index 7d5f4e52..a6c08416 100644 --- a/gst/synaesthesia/gstsynaesthesia.c +++ b/gst/synaesthesia/gstsynaesthesia.c @@ -294,9 +294,7 @@ gst_synaesthesia_chain (GstPad *pad, GstBuffer *bufin) ); if (gst_pad_try_set_caps (synaesthesia->srcpad, caps) <= 0) { - gst_element_gerror(GST_ELEMENT (synaesthesia), GST_ERROR_UNKNOWN, - g_strdup ("unconverted error, file a bug"), - g_strdup_printf("could not set caps")); + gst_element_error (GST_ELEMENT (synaesthesia), "could not set caps"); return; } synaesthesia->first_buffer = FALSE; |