summaryrefslogtreecommitdiffstats
path: root/defaultopts.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-11-12 17:07:49 +0100
committerwm4 <wm4@mplayer2.org>2012-03-17 21:06:29 +0100
commit0ab7c39a1e910b598079d40a0c61b12568a5172f (patch)
tree8ba1f293569e586b7cacb113aed80395c06846c1 /defaultopts.h
parent032a3b827219235f39151cb186314c0b532f9197 (diff)
downloadmpv-0ab7c39a1e910b598079d40a0c61b12568a5172f.tar.bz2
mpv-0ab7c39a1e910b598079d40a0c61b12568a5172f.tar.xz
vo_direct3d: fix dealing with uncooperative devices
If the Direct3D device is "lost" (e,g, when minimizing mplayer, or when another application uses Direct3D exclusive mode), we free it and try to recrate the device. This can fail, and may fail for an extended period of time, until D3D is available again and the device can be created. So we basically have to provide all VO functionality while d3d_device is NULL. Don't terminate if device creation fails, and re-add the NULL checks that were removed in the commit "vo_direct3d: refactor D3D initialization and reconfigure code". If mplayer calls the VO's config() while the D3D device can not be created, the VO will return an error and mplayer will terminate. config() is typically called when new files are played, when ordered chapter boundaries are crossed, or on other events.
Diffstat (limited to 'defaultopts.h')
0 files changed, 0 insertions, 0 deletions