[vlc-commits] bluray: fix assert
Petri Hintukainen
git at videolan.org
Tue Oct 6 12:15:33 CEST 2015
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Mon Oct 5 11:51:58 2015 +0300| [92b36693a70e1345505d95c2822b21325c9bcb64] | committer: Jean-Baptiste Kempf
bluray: fix assert
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92b36693a70e1345505d95c2822b21325c9bcb64
---
modules/access/bluray.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 954df8c..2748e54 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1258,7 +1258,11 @@ static void bluraySendOverlayToVout(demux_t *p_demux, bluray_overlay_t *p_ov)
assert(p_ov != NULL);
assert(p_ov->i_channel == -1);
- assert(p_ov->p_updater == NULL);
+
+ if (p_ov->p_updater) {
+ unref_subpicture_updater(p_ov->p_updater);
+ p_ov->p_updater = NULL;
+ }
subpicture_t *p_pic = bluraySubpictureCreate(p_ov);
if (!p_pic) {
More information about the vlc-commits
mailing list