Commit 94220d75 authored by Frédéric Yhuel's avatar Frédéric Yhuel Committed by Hugo Beauzée-Luyssen

HLS: don't signal dl thread out of the blue in Close()

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent b71b4312
...@@ -1996,6 +1996,9 @@ static void Close(vlc_object_t *p_this) ...@@ -1996,6 +1996,9 @@ static void Close(vlc_object_t *p_this)
/* */ /* */
vlc_mutex_lock(&p_sys->download.lock_wait); vlc_mutex_lock(&p_sys->download.lock_wait);
/* negate the condition variable's predicate */
p_sys->download.segment = p_sys->playback.segment = 0;
p_sys->download.seek = 0; /* better safe than sorry */
vlc_cond_signal(&p_sys->download.wait); vlc_cond_signal(&p_sys->download.wait);
vlc_mutex_unlock(&p_sys->download.lock_wait); vlc_mutex_unlock(&p_sys->download.lock_wait);
......
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