mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
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:
parent
0bc8481cf6
commit
9951210c1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user