From 6dca8f5ccee70f4fc5df7871efe4d16952731be0 Mon Sep 17 00:00:00 2001 From: David Waring Date: Tue, 13 Jan 2015 14:22:02 +0000 Subject: [PATCH] dashdemux: Fix detection for the end of segment. The segment start time is calculated as the offset into the current segment. The old condition to detect the end of period (i.e. segment start time > period start + period duration) failed when the period start was not 0 since the segment start time does not take the period start time into account. Fix this detection by only comparing the segment start to the period duration. https://bugzilla.gnome.org/show_bug.cgi?id=733369 --- 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 742b1ddbd0..e81e5373ed 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -2955,7 +2955,7 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream, segment->duration = duration; segment->SegmentURL = NULL; - if (segment->start_time > stream_period->start + stream_period->duration) { + if (segment->start_time > stream_period->duration) { return FALSE; } }