summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2015-06-24 17:16:46 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-06-25 10:16:24 +0200
commitdbf12ab760c1a5c735617823fff0cc487439da1d (patch)
treef8443fb5e37bc61673ca7d15a49aaf666a798e0d
parent93f08347de7b725f568b74e972c7d4a59773bb6f (diff)
downloadgstreamer-plugins-bad-dbf12ab760c1a5c735617823fff0cc487439da1d.tar.gz
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
-rw-r--r--ext/dash/gstmpdparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index 6b94a9e9c..99ee85524 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 {