[vlc-commits] Fix missing unlock (cid #1047154)
Rémi Duraffort
git at videolan.org
Sat Jul 13 15:31:26 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 10:11:05 2013 +0200| [914875a51f5e13c94a1783b0049340b2e113211a] | committer: Jean-Baptiste Kempf
Fix missing unlock (cid #1047154)
(cherry picked from commit 0a460451616550ccad858c3d2bdf6db20b7c925d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=914875a51f5e13c94a1783b0049340b2e113211a
---
modules/stream_filter/httplive.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 51a2728..fa0c490 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1351,7 +1351,11 @@ static int hls_UpdatePlaylist(stream_t *s, hls_stream_t *hls_new, hls_stream_t *
for (int n = 0; n < count; n++)
{
segment_t *p = segment_GetSegment(hls_new, n);
- if (p == NULL) return VLC_EGENERIC;
+ if (p == NULL)
+ {
+ vlc_mutex_unlock(&hls_old->lock);
+ return VLC_EGENERIC;
+ }
segment_t *segment = segment_Find(hls_old, p->sequence);
if (segment)
More information about the vlc-commits
mailing list