Commit 24811d4d authored by David Fuhrmann's avatar David Fuhrmann

bluray: fix invalid argument crash for error paths in open

parent c38dc0da
......@@ -339,6 +339,8 @@ static int blurayOpen(vlc_object_t *object)
return VLC_EGENERIC;
}
vlc_mutex_init(&p_sys->pl_info_lock);
/* Warning the user about AACS/BD+ */
const BLURAY_DISC_INFO *disc_info = bd_get_disc_info(p_sys->bluray);
......@@ -454,8 +456,6 @@ static int blurayOpen(vlc_object_t *object)
goto error;
}
vlc_mutex_init(&p_sys->pl_info_lock);
p_demux->pf_control = blurayControl;
p_demux->pf_demux = blurayDemux;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment