dashdemux: wrong segment duration computed by gst_mpd_client_setup_representation
authorFlorin Apostol <florin.apostol@oregan.net>
Fri, 3 Jul 2015 16:00:31 +0000 (17:00 +0100)
committerThiago Santos <thiagoss@osg.samsung.com>
Sun, 5 Jul 2015 16:31:38 +0000 (13:31 -0300)
Corrected computation of segment start and duration.

https://bugzilla.gnome.org/show_bug.cgi?id=751914

ext/dash/gstmpdparser.c

index 366991b..04c92c9 100644 (file)
@@ -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 {