From 5a1ed14c3c56e24d1dbe716b41dc089d9cf19ea7 Mon Sep 17 00:00:00 2001 From: xixi Date: Wed, 11 Mar 2015 23:03:24 +0800 Subject: [PATCH] dashdemux: fetch wrong segment at the end of Period Fix check for end of Period time to avoid trying to fetch a segment that doesn't exist https://bugzilla.gnome.org/show_bug.cgi?id=746038 --- ext/dash/gstmpdparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index d5e9d75c8b..369aca4495 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -2954,7 +2954,7 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream, segment->duration = duration; segment->SegmentURL = NULL; - if (segment->start_time > stream_period->duration) { + if (segment->start_time >= stream_period->duration) { return FALSE; } }