From: <rob...@ke...> - 2009-11-24 15:41:36
|
Module: gst-plugins-good Branch: master Commit: 98279be7356ac745aafa6edb3b9eaaaefd39316b URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=98279be7356ac745aafa6edb3b9eaaaefd39316b Author: Robert Swain <rob...@co...> Date: Tue Nov 24 16:40:19 2009 +0100 qtdemux: Fix push mode by making sure stbl information is available in next_entry_size () --- gst/qtdemux/qtdemux.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 1655cf6..f47bce9 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, |