[vlc-commits] access: bluray: check region alloc
Francois Cartegnie
git at videolan.org
Mon Mar 9 10:40:42 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 6 17:11:31 2020 +0100| [41587c614e69c666c2a77fbfa28f401ff12c7134] | committer: Francois Cartegnie
access: bluray: check region alloc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41587c614e69c666c2a77fbfa28f401ff12c7134
---
modules/access/bluray.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 3d20b53e64..8abd8711ac 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1947,6 +1947,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