GNOME Bugzilla – Bug 752375
adaptivedemux: gst_query_set_seeking could be called with invalid values
Last modified: 2015-10-12 10:17:45 UTC
The gst_adaptive_demux_src_query function, for the GST_QUERY_SEEKING switch case will call the gst_query_set_seeking function regardless if the previous gst_adaptive_demux_get_live_seek_range has returned true or false. If gst_adaptive_demux_get_live_seek_range has returned false, then start and stop might not be valid, so gst_query_set_seeking should not be called.
Looking at hlsdemux and dashdemux, the implementations of get_live_seek_range only change the values of start and stop when returning TRUE.
As long as those functions promise to not change arguments when returning false (which is a reasonable assumption) it is fine.