gst/qtdemux/qtdemux.c: Unbreak streaming mode again.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 25 Mar 2008 16:44:20 +0000 (16:44 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 25 Mar 2008 16:44:20 +0000 (16:44 +0000)
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (next_entry_size):
Unbreak streaming mode again.

ChangeLog
gst/qtdemux/qtdemux.c

index e2fa874..ee738bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-25  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * gst/qtdemux/qtdemux.c: (next_entry_size):
+       Unbreak streaming mode again.
+
 2008-03-25  Tim-Philipp Müller  <tim at centricular dot net>
 
        * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture):
index 324ccbc..33061f5 100644 (file)
@@ -1866,6 +1866,9 @@ next_entry_size (GstQTDemux * demux)
   for (i = 0; i < demux->n_streams; i++) {
     stream = demux->streams[i];
 
+    if (stream->sample_index == -1)
+      stream->sample_index = 0;
+
     GST_LOG_OBJECT (demux,
         "Checking Stream %d (sample_index:%d / offset:%lld / size:%d / chunk:%d)",
         i, stream->sample_index, stream->samples[stream->sample_index].offset,