Commit 90c85095 authored by Jean-Paul Saman's avatar Jean-Paul Saman

stream_filter/httplive.c: Do not cache on live playback

Release segments for HLS live streams even when HLS caching is allowed.
parent 6cc64e70
......@@ -1459,7 +1459,7 @@ static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
vlc_mutex_lock(&segment->lock);
if (segment->data->i_buffer == 0)
{
if (!p_sys->b_cache)
if (!p_sys->b_cache || p_sys->b_live)
{
block_Release(segment->data);
segment->data = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment