qtdemux: store the moof-offset also for push mode
authorThiago Santos <thiagoss@osg.samsung.com>
Sun, 26 Jul 2015 15:07:56 +0000 (12:07 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 5 Aug 2015 21:12:45 +0000 (18:12 -0300)
It will be used in some cases for getting the correct offsets
from trun atoms.

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

gst/isomp4/qtdemux.c

index bef2427..46fbf2b 100644 (file)
@@ -5294,6 +5294,7 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
                   GST_TIME_ARGS (demux->fragment_start));
             }
 
+            demux->moof_offset = demux->offset;
             if (!qtdemux_parse_moof (demux, data, demux->neededbytes,
                     demux->offset, NULL)) {
               gst_adapter_unmap (demux->adapter);