mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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
64c9869cf3
commit
fde31ee83f
5 changed files with 36 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue