don't keep mga_vid device open if x11 init fails (fixes "-vo xmga,mga")

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8779 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2003-01-04 19:17:37 +00:00
parent 0bc8481cf6
commit 9951210c1c
1 changed files with 4 additions and 1 deletions

View File

@ -421,7 +421,10 @@ static uint32_t preinit(const char *vo_subdevice)
}
#ifdef VO_XMGA
if (!vo_init()) return -1;
if (!vo_init()) {
close(f);
return -1;
}
#endif
return 0;