diff options
author | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2013-07-21 12:38:01 -0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-22 02:42:38 +0200 |
commit | 964341b02df2488712dca540be8a28aa95c5c379 (patch) | |
tree | 145dbb51cd8be5a6d4c629be3fa1f346ec40d149 /core/av_log.c | |
parent | d42c3e51b41cc6d421ecefab146b80e9879fcf23 (diff) | |
download | mpv-964341b02df2488712dca540be8a28aa95c5c379.tar.bz2 mpv-964341b02df2488712dca540be8a28aa95c5c379.tar.xz |
ao_wasapi: Use OPT_STRING_VALIDATE for device suboption
Validates by trying to pick the device using the device enumerator and
aborting with out of range on failure.
Refactors find_and_load_device to not use the wasapi_state; it might be
called during validation. Adds missing CoInitialize/CoUninitialize calls.
Remove unused variables (the SAFE_RELEASE macros keep them referenced so
compiler warnings don't help finding them...).
Remove the IMMDeviceEnumerator from the wasapi_state, it's only needed
during initialization and initialization is now well factored enough to
get rid of it.
Try and connect to unplugged devices as well when using the device ID
string.
Diffstat (limited to 'core/av_log.c')
0 files changed, 0 insertions, 0 deletions