[vlc-devel] [PATCH 14/48] hls: Don't storm windows with cond signal
Hugo Beauzée-Luyssen
beauze.h at gmail.com
Mon Jan 9 16:16:23 CET 2012
From: Luc Saillard <luc.saillard at sfr.com>
---
modules/stream_filter/httplive.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 931ff96..1039bbc 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1417,6 +1417,10 @@ static int hls_ReloadPlaylist(stream_t *s)
vlc_array_destroy(hls_streams);
+ vlc_mutex_lock(&p_sys->download.lock_wait);
+ vlc_cond_signal(&p_sys->download.wait);
+ vlc_mutex_unlock(&p_sys->download.lock_wait);
+
return VLC_SUCCESS;
fail:
@@ -1630,7 +1634,6 @@ static void* hls_Thread(void *p_this)
}
else if (p_sys->download.segment < count)
p_sys->download.segment++;
- vlc_cond_signal(&p_sys->download.wait);
vlc_mutex_unlock(&p_sys->download.lock_wait);
}
--
1.7.8.3
More information about the vlc-devel
mailing list