gst/wavparse/gstwavparse.c: Skip LIST chunks before the fmt chunk (fixes #437499...
authorTim-Philipp Müller <tim@centricular.net>
Fri, 11 May 2007 16:01:45 +0000 (16:01 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 11 May 2007 16:01:45 +0000 (16:01 +0000)
Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
Skip LIST chunks before the fmt chunk (fixes #437499). Also fix
streaming mode regression for file from #343837 with 'bext' chunk
before the 'fmt' chunk.

ChangeLog
gst/wavparse/gstwavparse.c

index d8def69c56be66ef870839199e514ed7738756ca..3d9b0d345fb6086198c4c98f9cf4359d62dc30d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-11  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
+         Skip LIST chunks before the fmt chunk (fixes #437499). Also fix
+         streaming mode regression for file from #343837 with 'bext' chunk
+         before the 'fmt' chunk.
+
 2007-05-11  Wim Taymans  <wim@fluendo.com>
 
        * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_flush),
index bc7a48b1004b9b8b46368b78d5b3fe27dcee192e..68f7637fd0e329007957ad7e5e10d6fc51c1c57e 100644 (file)
@@ -1049,13 +1049,9 @@ gst_wavparse_stream_headers (GstWavParse * wav)
     }
 
     if (tag == GST_RIFF_TAG_JUNK || tag == GST_RIFF_TAG_bext ||
-        tag == GST_RIFF_TAG_BEXT) {
+        tag == GST_RIFF_TAG_BEXT || tag == GST_RIFF_TAG_LIST) {
       GST_DEBUG_OBJECT (wav, "skipping %" GST_FOURCC_FORMAT " chunk",
           GST_FOURCC_ARGS (tag));
-      if (wav->streaming) {
-        gst_adapter_flush (wav->adapter, size);
-        wav->offset += size;
-      }
       gst_buffer_unref (buf);
       buf = NULL;
       continue;