From: Thiago Santos Date: Wed, 18 Feb 2015 12:40:14 +0000 (-0300) Subject: qtdemux: prefer the tfdt timestamp over the buffer's that is less accurate X-Git-Tag: 1.6.0~598 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a12e41c106f0a2f48b5d3a73026ba4d20cd745fd;p=platform%2Fupstream%2Fgst-plugins-good.git qtdemux: prefer the tfdt timestamp over the buffer's that is less accurate The tfdt should be more accurate as the buffer timestamp is provided by the fragmented format manifest and it might just be an approximation. --- diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 61dd18b..84b56ee 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -2967,6 +2967,12 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length, GST_DEBUG_OBJECT (qtdemux, "decode time %" G_GINT64_FORMAT " (%" GST_TIME_FORMAT ")", decode_time, GST_TIME_ARGS (decode_time_ts)); + + /* Discard the fragment buffer timestamp info to avoid using it. + * Rely on tfdt instead as it is more accurate than the timetamp + * that is fetches from a manifest/playlist and is usually + * less accurate. */ + qtdemux->fragment_start = -1; } if (G_UNLIKELY (!stream)) {