GNOME Bugzilla – Bug 654736
hlsdemux: shouldn't wait for whole chunk to be downloaded before pushing data
Last modified: 2012-03-13 15:08:26 UTC
Currently hlsdemux downloads a whole chunk and pushes that in one go, instead of pushing data as it comes in, which would be better.
I don't think it should push data as it comes in for many reasons.. First, it already needs to cache at least 3 fragments before it starts pushing buffers, so pushing data as it receives it would change nothing since it's technically not "live", it needs to put that data into the cache. As it downloads, many things could cause a cancellation of the download, a change state, a seek, a change of bitrate, etc.. and if it pushes data as it receives it, it makes things much more complicated if it needs to cancel a download and start another one (and redownload the same fragment with a different bitrate). Currently it will just cancel the download, flush whatever it cached from that fragment then restart. I'd vote for marking this bug as invalid.
Tim do you still think it would be better to push data as it comes it? what are the arguments in favour of it?
I don't have any strong opinions on this, and what Youness said in comment #1 makes sense, I guess. So let's close it.