]> git.sesse.net Git - vlc/commit
stream_filter/httplive.c: b_cache determined in wrong place
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 28 Dec 2010 14:06:04 +0000 (15:06 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 28 Dec 2010 14:16:36 +0000 (15:16 +0100)
commit30296dcacd8934c05e5542d3218c03693fe8eaa9
treea6f563bf8ed6fa40868885576749ab70fd4bce57
parent5af85ce47daf121a00eed6ad13d41fc28e21c610
stream_filter/httplive.c: b_cache determined in wrong place

The logic to determine if caching of segments is allowed or denied was flawed. It
only determined it onces after the playlists were loaded. In case of a meta playlist
the logic would only indicated the caching value for the last added HLS stream.

The fix is to determine p_sys->b_caching (caching segments allowed or not) when switching
segments or HLS streams (adaptive bandwidth).
modules/stream_filter/httplive.c