From 05342dd632d5bc486252f0b1102d268e5fb89242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 8 Jul 2006 20:29:56 +0000 Subject: [PATCH] gst/asfdemux/gstasfdemux.c: Skip chunks for unknown streams properly. Fixes broken sound and/or video for files that ... Original commit message from CVS: * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_chunk): Skip chunks for unknown streams properly. Fixes broken sound and/or video for files that have additional streams that we don't recognise yet (e.g. if they are embedded in extended stream properties). Partly fixes #343763. --- ChangeLog | 8 ++++++++ gst/asfdemux/gstasfdemux.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5e9821bfdc..14db05a914 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-07-08 Tim-Philipp Müller + + * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_chunk): + Skip chunks for unknown streams properly. Fixes broken sound + and/or video for files that have additional streams that + we don't recognise yet (e.g. if they are embedded in extended + stream properties). Partly fixes #343763. + 2006-07-07 Tim-Philipp Müller * gst/asfdemux/asfheaders.c: diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 9a40e53886..5e36098386 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -1869,6 +1869,8 @@ gst_asf_demux_process_chunk (GstASFDemux * demux, stream = gst_asf_demux_get_stream (demux, segment_info->stream_number); if (stream == NULL) { GST_WARNING ("invalid stream number %d", segment_info->stream_number); + if (!gst_asf_demux_skip_bytes (segment_info->chunk_size, p_data, p_size)) + ret = ASF_FLOW_NEED_MORE_DATA; goto done; }