From e4b8999c9bc2fe7ac826afcbf7eadee4ab3748c3 Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 13 May 2002 13:31:35 +0000 Subject: 10L Crash if no subdriver given and overlay enabled git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6071 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_dxr2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvo/vo_dxr2.c') diff --git a/libvo/vo_dxr2.c b/libvo/vo_dxr2.c index 9db04eb165..88565344f3 100644 --- a/libvo/vo_dxr2.c +++ b/libvo/vo_dxr2.c @@ -561,9 +561,9 @@ static uint32_t preinit(const char *arg) { use_ol = 0; } } - - if(use_ol && !sub_vo) { - if(arg) + + if(!sub_vo) { + if(use_ol) mp_msg(MSGT_VO,MSGL_WARN,"VO: [dxr2] Sub driver '%s' not found => no overlay\n",arg); use_ol = 0; } else { -- cgit v1.2.3