GNOME Bugzilla – Bug 751449
dashdemux: wrong duration computed by gst_mpd_client_setup_representation
Last modified: 2015-08-16 13:36:50 UTC
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 is set to PeriodEnd: /* 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)) { return FALSE; } The last argument should be PeriodEnd-PeriodStart.
Created attachment 306024 [details] [review] patch to correct the argument
Please put the URL to the Bugzilla bug into your commit messages, saves me a "git commit --amend" :) You can also use tools like git-bz to make all this more convenient. commit dbf12ab760c1a5c735617823fff0cc487439da1d Author: Florin Apostol <florin.apostol@oregan.net> Date: Wed Jun 24 17:16:46 2015 +0100 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