GNOME Bugzilla – Bug 757336
adaptivedemux: reset download_finished before starting the src element
Last modified: 2015-10-30 11:44:22 UTC
The src element might post multiple errors on adaptive demux pipeline. When getting error messages, adaptive demux will call gst_adaptive_demux_stream_fragment_download_finish which will set download_finished to TRUE. This means that if a second error message is received, the download_finished will be set a second time, causing the next download to be considered "finished". The gst_adaptive_demux_stream_download_uri function will fail to wait for this download. The solution is to reset the download_finished while the src element is in ready state, right before adaptive demux will put it in playing state.
Created attachment 314431 [details] [review] proposed patch
Vincent, can you please review and merge this?
commit e29514ea3dbd1e815bb63ef4808c8eeed48da0b7 Author: Florin Apostol <florin.apostol@oregan.net> Date: Thu Oct 29 23:41:46 2015 +0000 adaptivedemux: reset download_finished before starting the src element https://bugzilla.gnome.org/show_bug.cgi?id=757336