summaryrefslogtreecommitdiff
path: root/ext/hls/m3u8.c
diff options
context:
space:
mode:
authorSeungha Yang <sh.yang@lge.com>2017-03-17 16:47:07 +0900
committerSebastian Dröge <sebastian@centricular.com>2017-03-17 12:13:40 +0200
commit16dd0e693db125511a595dc02f7b33cf3411e6a4 (patch)
tree82fe3ee24474ae8814295d170dfb27ff53776880 /ext/hls/m3u8.c
parent7e21168d4d27be5afe8431fc209255494594c639 (diff)
downloadgstreamer-plugins-bad-16dd0e693db125511a595dc02f7b33cf3411e6a4.tar.gz
m3u8: Release m3u8 lock if consistent checking failed
To fix deadlock during live m3u8 update https://bugzilla.gnome.org/show_bug.cgi?id=780180
Diffstat (limited to 'ext/hls/m3u8.c')
-rw-r--r--ext/hls/m3u8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c
index 807002f49..168700355 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) {