summaryrefslogtreecommitdiffstats
path: root/demux/demux_playlist.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-17 11:57:28 +0200
committerwm4 <wm4@nowhere>2016-05-17 11:59:54 +0200
commita02d77ba0df747b60ffad7d2a5eacfc6528aabef (patch)
tree6e2187738fba74cb68c082cfe23663ac8d120c96 /demux/demux_playlist.c
parent39b64fb176bf90d7146cf7f20c61ab3e7def4191 (diff)
downloadmpv-a02d77ba0df747b60ffad7d2a5eacfc6528aabef.tar.bz2
mpv-a02d77ba0df747b60ffad7d2a5eacfc6528aabef.tar.xz
d3d: simplify DLL loading
For some reason, the d3d9/dxva2/d3d11 DLLs are still optional. But we don't need to try so hard to keep exact references. In fact, there's no reason to unload them at all. So load them once in a central place. For simplicity, the d3d9/d3d11 backends both load all DLLs. (They will error out only if the required DLLs could not be loaded.) In theory, we could just call LoadLibrary multiple times (without calling FreeLibrary), but I'm slightly worried that this could be detected as a "bug", or that the reference count could even have a low static limit that could be hit soon.
Diffstat (limited to 'demux/demux_playlist.c')
0 files changed, 0 insertions, 0 deletions