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
This commit is contained in:
Florin Apostol 2015-07-03 17:00:31 +01:00 committed by Thiago Santos
parent 5151c42085
commit 8e82129875

View file

@ -3274,8 +3274,8 @@ gst_mpd_client_setup_representation (GstMpdClient * client,
gst_mpdparser_init_active_stream_segments (stream); 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 */ /* 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, if (!gst_mpd_client_add_media_segment (stream, NULL, 1, 0, 0,
0, PeriodEnd)) { PeriodEnd - PeriodStart, PeriodStart, PeriodEnd - PeriodStart)) {
return FALSE; return FALSE;
} }
} else { } else {