Skip to content
  • Avishay Spitzer's avatar
    Bug fix: HLS module does not block until data is available. As a result live... · 50d7d0c9
    Avishay Spitzer authored and Ilkka Ollakka's avatar Ilkka Ollakka committed
    
    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: default avatarIlkka Ollakka <ileoo@videolan.org>
    50d7d0c9