From 766cbfe113630f057b1b38a869c5ffcedc2dcd47 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Mon, 23 Sep 2013 11:30:01 +0300 Subject: input_bluray: ignore overlay drawing commands if overlay has not been opened --- src/input/input_bluray.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/input/input_bluray.c b/src/input/input_bluray.c index eea6ef957..7b2d57647 100644 --- a/src/input/input_bluray.c +++ b/src/input/input_bluray.c @@ -174,10 +174,6 @@ static void clear_overlay(xine_osd_t *osd) static xine_osd_t *get_overlay(bluray_input_plugin_t *this, int plane) { - if (!this->osd[plane]) { - this->osd[plane] = xine_osd_new(this->stream, 0, 0, 1920, 1080); - clear_overlay(this->osd[plane]); - } if (!this->pg_enable) { _x_select_spu_channel(this->stream, -1); } @@ -283,6 +279,10 @@ static void overlay_proc(void *this_gen, const BD_OVERLAY * const ov) } osd = get_overlay(this, ov->plane); + if (!osd) { + LOGMSG("overlay_proc(): overlay not open (cmd=%d)\n", ov->cmd); + return; + } switch (ov->cmd) { case BD_OVERLAY_DRAW: -- cgit v1.2.3