From: Mark Nauwelaerts Date: Wed, 31 Mar 2010 15:54:21 +0000 (+0200) Subject: matroskademux: restrict resyncing to subtitle tracks X-Git-Tag: RELEASE-0.10.22~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc09ace2bdb3447f35bab7aed57acd80372ea8b3;p=platform%2Fupstream%2Fgst-plugins-good.git matroskademux: restrict resyncing to subtitle tracks This should prevent skipping audio or video in not so well interleaved cases. Fixes #614460. --- diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 414d6a3..9ca9e50 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -3636,6 +3636,11 @@ gst_matroska_demux_sync_streams (GstMatroskaDemux * demux) "Checking for resync on stream %d (%" GST_TIME_FORMAT ")", stream_nr, GST_TIME_ARGS (context->pos)); + if (G_LIKELY (context->type != GST_MATROSKA_TRACK_TYPE_SUBTITLE)) { + GST_LOG_OBJECT (demux, "Skipping sync on non-subtitle stream"); + continue; + } + /* does it lag? 0.5 seconds is a random threshold... * lag need only be considered if we have advanced into requested segment */ if (GST_CLOCK_TIME_IS_VALID (context->pos) &&