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