wavparse: Update offset after parsing adtl chunk
authorSebastian Dröge <sebastian@centricular.com>
Mon, 23 Jun 2014 18:53:50 +0000 (20:53 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 23 Jun 2014 18:53:50 +0000 (20:53 +0200)
Otherwise we will parse it over and over again without ever
getting past it.

https://bugzilla.gnome.org/show_bug.cgi?id=731533

gst/wavparse/gstwavparse.c

index 7e5f043..167e4ba 100644 (file)
@@ -1451,6 +1451,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
                   data_size);
               gst_buffer_unmap (buf, &map);
             }
+            wav->offset += GST_ROUND_UP_2 (data_size);
             break;
           }
           default: