summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-10 18:00:11 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-10 18:17:40 +0100
commit3dc42d370437e4fc1362e861f9c44d685b262aa3 (patch)
tree0d57d91f218e2294d05f9a5fc8c250b8ba359e79
parentb70f4b6ffad984f76efc6f5916f7d8db42c9e496 (diff)
qtdemux: avoid skipping exposing a stream following a removed stream
-rw-r--r--gst/qtdemux/qtdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index b6457ce28..7be9986f0 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -7359,12 +7359,13 @@ qtdemux_expose_streams (GstQTDemux * qtdemux)
GST_DEBUG_OBJECT (qtdemux, "no samples for stream; discarding");
gst_qtdemux_stream_free (qtdemux, stream);
memmove (&(qtdemux->streams[i]), &(qtdemux->streams[i + 1]),
sizeof (QtDemuxStream *) * (GST_QTDEMUX_MAX_STREAMS - i - 1));
qtdemux->streams[GST_QTDEMUX_MAX_STREAMS - 1] = NULL;
qtdemux->n_streams--;
+ i--;
continue;
}
/* parse number of initial sample to set frame rate cap */
while (sample_num < stream->n_samples && sample_num < samples) {
if (!qtdemux_parse_samples (qtdemux, stream, sample_num))