From f8eddabe2962f7bbded3312d6a7f47825c9750c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 29 Jul 2016 12:50:58 +0300 Subject: [PATCH] dashdemux: If a fragment contains no sync samples, disable key-unit mode https://bugzilla.gnome.org/show_bug.cgi?id=741104 --- ext/dash/gstdashdemux.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index bee085a..547d0f2 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -2210,6 +2210,14 @@ gst_dash_demux_find_sync_samples (GstAdaptiveDemux * demux, } } + if (dash_stream->moof_sync_samples->len == 0) { + GST_LOG_OBJECT (stream->pad, "No sync samples found in fragment"); + g_array_free (dash_stream->moof_sync_samples, TRUE); + dash_stream->moof_sync_samples = NULL; + dashdemux->allow_trickmode_key_units = FALSE; + return FALSE; + } + return TRUE; } -- 2.7.4