diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-23 11:30:01 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-23 11:30:01 +0300 |
commit | 766cbfe113630f057b1b38a869c5ffcedc2dcd47 (patch) | |
tree | 9ce50c90f914a4a66417edc39bf6a1732728a485 /src | |
parent | 72ec425f3b4e14ace8f901c4f9d50161afff9172 (diff) | |
download | xine-lib-766cbfe113630f057b1b38a869c5ffcedc2dcd47.tar.gz xine-lib-766cbfe113630f057b1b38a869c5ffcedc2dcd47.tar.bz2 |
input_bluray: ignore overlay drawing commands if overlay has not been opened
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_bluray.c | 8 |
1 files changed, 4 insertions, 4 deletions
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: |