summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2015-07-03 17:00:31 +0100
committerThiago Santos <thiagoss@osg.samsung.com>2015-07-05 13:31:38 -0300
commit8e82129875e422d4a17e0c655879d263cbd3eac2 (patch)
tree7dfc488caf1993fd59cca2c82c6d932a8efc6ab9
parent5151c42085dacfa2c0f4df07d8e27db1036c91e8 (diff)
downloadgstreamer-plugins-bad-8e82129875e422d4a17e0c655879d263cbd3eac2.tar.gz
dashdemux: wrong segment duration computed by gst_mpd_client_setup_representation
Corrected computation of segment start and duration. https://bugzilla.gnome.org/show_bug.cgi?id=751914
-rw-r--r--ext/dash/gstmpdparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index 366991bf6..04c92c95c 100644
--- a/ext/dash/gstmpdparser.c
+++ b/ext/dash/gstmpdparser.c
@@ -3274,8 +3274,8 @@ gst_mpd_client_setup_representation (GstMpdClient * client,
gst_mpdparser_init_active_stream_segments (stream);
/* 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,
- 0, PeriodEnd)) {
+ if (!gst_mpd_client_add_media_segment (stream, NULL, 1, 0, 0,
+ PeriodEnd - PeriodStart, PeriodStart, PeriodEnd - PeriodStart)) {
return FALSE;
}
} else {