diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-21 21:24:49 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-22 03:21:21 -0800 |
commit | ff7884e635ca402e7ca8cd1ea230fb6792b81a65 (patch) | |
tree | c33f0ae2c4471db51fca7379027f9aaa40d4342b /video/filter/vf_format.c | |
parent | 2df448b1f383ebb7d29bf64a1cfb827eb1fff70b (diff) | |
download | mpv-ff7884e635ca402e7ca8cd1ea230fb6792b81a65.tar.bz2 mpv-ff7884e635ca402e7ca8cd1ea230fb6792b81a65.tar.xz |
ao_wasapi: exit earlier if there are zero playback devices found
Previously, if the enumerator found no devices, attempting to get the default
device with IMMDeviceEnumerator::GetDefaultAudioEndpoint would result in the
cryptic (and undocumented) E_PROP_ID_UNSUPPORTED. This way, the user is given a
better indication of what exactly is wrong and isolates any other possible
triggers for this error.
Diffstat (limited to 'video/filter/vf_format.c')
0 files changed, 0 insertions, 0 deletions