10L Crash if no subdriver given and overlay enabled

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6071 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-05-13 13:31:35 +00:00
parent b6a7934eb5
commit e4b8999c9b
1 changed files with 3 additions and 3 deletions

View File

@ -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 {