From 16dd0e693db125511a595dc02f7b33cf3411e6a4 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 17 Mar 2017 16:47:07 +0900 Subject: [PATCH] m3u8: Release m3u8 lock if consistent checking failed To fix deadlock during live m3u8 update https://bugzilla.gnome.org/show_bug.cgi?id=780180 --- ext/hls/m3u8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 807002f49d..1687003552 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -699,8 +699,10 @@ gst_m3u8_update (GstM3U8 * self, gchar * data) previous_files = NULL; /* error was reported above already */ - if (!consistent) + if (!consistent) { + GST_M3U8_UNLOCK (self); return FALSE; + } } if (self->files == NULL) {