Read the stream specific data (if needed) when there is no audio correction error
Original commit message from CVS: Read the stream specific data (if needed) when there is no audio correction error
This commit is contained in:
parent
6b126ceaf9
commit
9bd3716cd3
@ -656,7 +656,6 @@ gst_asf_demux_process_stream (GstASFDemux *asf_demux, guint64 *obj_size)
|
|||||||
|
|
||||||
switch (stream_id) {
|
switch (stream_id) {
|
||||||
case ASF_STREAM_AUDIO:
|
case ASF_STREAM_AUDIO:
|
||||||
|
|
||||||
gst_asf_demux_read_object_header_rest (asf_demux, &ptr, 18);
|
gst_asf_demux_read_object_header_rest (asf_demux, &ptr, 18);
|
||||||
audio_object = (asf_stream_audio *)ptr;
|
audio_object = (asf_stream_audio *)ptr;
|
||||||
size = GUINT16_FROM_LE (audio_object->size);
|
size = GUINT16_FROM_LE (audio_object->size);
|
||||||
@ -694,6 +693,8 @@ gst_asf_demux_process_stream (GstASFDemux *asf_demux, guint64 *obj_size)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case ASF_CORRECTION_OFF:
|
case ASF_CORRECTION_OFF:
|
||||||
|
GST_INFO ( "Error correction off");
|
||||||
|
gst_bytestream_flush (asf_demux->bs, object->stream_specific_size);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gst_element_error (GST_ELEMENT (asf_demux), "Audio stream using unknown error correction");
|
gst_element_error (GST_ELEMENT (asf_demux), "Audio stream using unknown error correction");
|
||||||
@ -853,6 +854,7 @@ gst_asf_demux_get_stream (GstASFDemux *asf_demux,
|
|||||||
|
|
||||||
/* Base case if we haven't found one at all */
|
/* 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_error (GST_ELEMENT (asf_demux), "Segment found for undefined stream: (%d)", id);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1407,7 +1409,7 @@ gst_asf_demux_add_audio_stream (GstASFDemux *asf_demux,
|
|||||||
if (size_left) {
|
if (size_left) {
|
||||||
g_warning ("asfdemux: Audio header contains %d bytes of surplus data", size_left);
|
g_warning ("asfdemux: Audio header contains %d bytes of surplus data", size_left);
|
||||||
gst_asf_demux_read_object_header_rest (asf_demux, &extradata, size_left);
|
gst_asf_demux_read_object_header_rest (asf_demux, &extradata, size_left);
|
||||||
/* gst_bytestream_flush (asf_demux->bs, size_left);*/
|
// gst_bytestream_flush (asf_demux->bs, size_left);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now set up the standard propertis from the header info */
|
/* Now set up the standard propertis from the header info */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user