GNOME Bugzilla – Bug 758188
dashdemux: illegal memory access in gst_mpd_client_get_last_fragment_timestamp_end
Last modified: 2015-11-18 07:52:14 UTC
When trying to get the timestamp of the last fragment, the gst_mpd_client_get_last_fragment_timestamp_end function uses the stream->segments array. But this is not set if segment templates are used. The result is an illegal memory access into stream->segments array which is NULL.
Created attachment 315695 [details] [review] 1/2 unit test to reproduce the problem
Created attachment 315696 [details] [review] 2/2 proposed fix
commit fb2d3abca89b56808893a541f546d19a053b390a Author: Florin Apostol <florin.apostol@oregan.net> Date: Mon Nov 16 17:25:34 2015 +0000 dashdemux: fixed illegal memory access in gst_mpd_client_get_last_fragment_timestamp_end https://bugzilla.gnome.org/show_bug.cgi?id=758188 commit b0950269454a9f7bee42d5d060c1a8b7bf03dff9 Author: Florin Apostol <florin.apostol@oregan.net> Date: Mon Nov 16 17:25:21 2015 +0000 mpdparser: tests: added test for gst_mpd_client_get_last_fragment_timestamp_end The timestamp for last fragment is incorrectly retrieved if segment templates are used. https://bugzilla.gnome.org/show_bug.cgi?id=758188