[vlc-commits] bluray: fix missing unlock (cid #1047147)

Rémi Duraffort git at videolan.org
Sat Jul 13 10:37:58 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 10:21:16 2013 +0200| [9ebbc7d3ffe7c6ebc14151c66e268b879ac54709] | committer: Rémi Duraffort

bluray: fix missing unlock (cid #1047147)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ebbc7d3ffe7c6ebc14151c66e268b879ac54709
---

 modules/access/bluray.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index efc1aa5..c1f25b3 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -605,7 +605,10 @@ static void subpictureUpdaterUpdate(subpicture_t *p_subpic,
 
     subpicture_region_t *p_src = p_overlay->p_regions;
     if (!p_src)
+    {
+        vlc_mutex_unlock(&p_overlay->lock);
         return;
+    }
 
     subpicture_region_t **p_dst = &(p_subpic->p_region);
     while (p_src != NULL) {



More information about the vlc-commits mailing list