From dbf12ab760c1a5c735617823fff0cc487439da1d Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Wed, 24 Jun 2015 17:16:46 +0100 Subject: [PATCH] dashdemux: Corrected duration argument for gst_mpd_client_add_media_segment call The last parameter of gst_mpd_client_add_media_segment function is a duration. But when called from gst_mpd_client_setup_representation, the last argument was wrongly set to PeriodEnd https://bugzilla.gnome.org/show_bug.cgi?id=751449 --- 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 6b94a9e..99ee855 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3186,7 +3186,7 @@ gst_mpd_client_setup_representation (GstMpdClient * client, GST_DEBUG ("No useful SegmentList node for the current Representation"); /* here we should have a single segment for each representation, whose URL is encoded in the baseURL element */ if (!gst_mpd_client_add_media_segment (stream, NULL, 1, 0, 0, - PeriodEnd - PeriodStart, PeriodStart, PeriodEnd)) { + PeriodEnd - PeriodStart, PeriodStart, PeriodEnd - PeriodStart)) { return FALSE; } } else { -- 2.7.4