[vlc-devel] [PATCH] HLS: remove some useless mutex locks
Frédéric Yhuel
fyhuel at viotech.net
Tue Feb 7 14:04:17 CET 2012
---
modules/stream_filter/httplive.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index c03061b..9afd5c0 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -2070,9 +2070,7 @@ static void Close(vlc_object_t *p_this)
assert(p_sys->hls_stream);
/* */
- vlc_mutex_lock(&p_sys->download.lock_wait);
vlc_cond_signal(&p_sys->download.wait);
- vlc_mutex_unlock(&p_sys->download.lock_wait);
/* */
if (p_sys->b_live)
@@ -2223,9 +2221,7 @@ static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
vlc_mutex_unlock(&segment->lock);
/* signal download thread */
- vlc_mutex_lock(&p_sys->download.lock_wait);
vlc_cond_signal(&p_sys->download.wait);
- vlc_mutex_unlock(&p_sys->download.lock_wait);
continue;
}
--
1.7.5.4
More information about the vlc-devel
mailing list