Commit ee9e6756 authored by Jean-Paul Saman's avatar Jean-Paul Saman

stream_filter/httplive.c: cleanup

parent 35bca0ec
......@@ -1372,7 +1372,11 @@ static segment_t *GetSegment(stream_t *s)
/* This segment is ready? */
if ((segment->data != NULL) &&
(p_sys->segment < i_segment))
goto segment_ok;
{
p_sys->current = i_stream;
vlc_mutex_unlock(&hls->lock);
return segment;
}
vlc_mutex_unlock(&hls->lock);
......@@ -1386,11 +1390,6 @@ static segment_t *GetSegment(stream_t *s)
}
/* */
return NULL;
segment_ok:
p_sys->current = i_stream;
vlc_mutex_unlock(&hls->lock);
return segment;
}
static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
......
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