[vlc-commits] access: bluray: check region alloc

Francois Cartegnie git at videolan.org
Mon Mar 9 10:48:10 CET 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar  6 17:11:31 2020 +0100| [e8f60df1da8ca9ac866b8d6163e074f085e1a215] | committer: Francois Cartegnie

access: bluray: check region alloc

(cherry picked from commit 41587c614e69c666c2a77fbfa28f401ff12c7134)

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

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

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 7defd6234f..9a578b5d3f 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1784,6 +1784,11 @@ static void blurayDrawOverlay(demux_t *p_demux, const BD_OVERLAY* const eventov)
             else /* If we don't have a last region, then our list empty */
                 ov->p_regions = p_reg;
         }
+        else
+        {
+            vlc_mutex_unlock(&ov->lock);
+            return;
+        }
     }
 
     /* Now we can update the region, regardless it's an update or an insert */



More information about the vlc-commits mailing list