[vlc-commits] HLS: don't signal dl thread out of the blue in Close()
Frédéric Yhuel
git at videolan.org
Fri Jul 6 18:40:16 CEST 2012
vlc | branch: master | Frédéric Yhuel <fyhuel at viotech.net> | Tue Jun 19 16:17:55 2012 +0200| [94220d75d4ac44f507bad6e539270cbd71a02c73] | committer: Hugo Beauzée-Luyssen
HLS: don't signal dl thread out of the blue in Close()
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94220d75d4ac44f507bad6e539270cbd71a02c73
---
modules/stream_filter/httplive.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 27839d2..f8d56d8 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1996,6 +1996,9 @@ static void Close(vlc_object_t *p_this)
/* */
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_mutex_unlock(&p_sys->download.lock_wait);
More information about the vlc-commits
mailing list