Commit 50d7d0c9 authored by Committed by Ilkka OllakkaBrowse files
Bug fix: HLS module does not block until data is available. As a result live...
Bug fix: HLS module does not block until data is available. As a result live streams may end unexpectedly in case of short playlists or slow connections. Problem was fixed by blocking on a condition variable in the "read" function in case data is not available until Download thread signals (when new data is available) or a timeout of 10 seconds is reached. Blocking is done with a timed wait in order to avoid deadlocks since the thread that calls read is also responsible for calling close. Signed-off-by: Ilkka Ollakka <firstname.lastname@example.org>
Showing with 68 additions and 6 deletions