mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskademux: restrict resyncing to subtitle tracks
This should prevent skipping audio or video in not so well interleaved cases. Fixes #614460.
This commit is contained in:
parent
861311e8f6
commit
dc09ace2bd
1 changed files with 5 additions and 0 deletions
|
@ -3636,6 +3636,11 @@ gst_matroska_demux_sync_streams (GstMatroskaDemux * demux)
|
||||||
"Checking for resync on stream %d (%" GST_TIME_FORMAT ")", stream_nr,
|
"Checking for resync on stream %d (%" GST_TIME_FORMAT ")", stream_nr,
|
||||||
GST_TIME_ARGS (context->pos));
|
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...
|
/* does it lag? 0.5 seconds is a random threshold...
|
||||||
* lag need only be considered if we have advanced into requested segment */
|
* lag need only be considered if we have advanced into requested segment */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (context->pos) &&
|
if (GST_CLOCK_TIME_IS_VALID (context->pos) &&
|
||||||
|
|
Loading…
Reference in a new issue