From 98279be7356ac745aafa6edb3b9eaaaefd39316b Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Tue, 24 Nov 2009 16:40:19 +0100 Subject: [PATCH] qtdemux: Fix push mode by making sure stbl information is available in next_entry_size () --- gst/qtdemux/qtdemux.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 1655cf6ee8..f47bce9724 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -2814,6 +2814,13 @@ next_entry_size (GstQTDemux * demux) continue; } + if ((stream->sample_index > stream->stbl_index) + && !qtdemux_parse_samples (demux, stream, stream->sample_index)) { + GST_LOG_OBJECT (demux, "Parsing of index %u from stbl atom failed!", + stream->sample_index); + return -1; + } + sample = &stream->samples[stream->sample_index]; GST_LOG_OBJECT (demux,