diff options
author | Denis Krjuchkov <alcohold@gmail.com> | 2010-11-03 23:26:19 +0500 |
---|---|---|
committer | Denis Krjuchkov <alcohold@gmail.com> | 2010-11-03 23:31:49 +0500 |
commit | ad56e10e5b2d7b8cb5a714f479688941cee681c3 (patch) | |
tree | 85114b8d784956b0d70792b17709c7adde399916 | |
parent | 75f4772ba2584a3d533ee11fb210201d45f64bb6 (diff) | |
download | mpd-ad56e10e5b2d7b8cb5a714f479688941cee681c3.tar.gz mpd-ad56e10e5b2d7b8cb5a714f479688941cee681c3.tar.xz mpd-ad56e10e5b2d7b8cb5a714f479688941cee681c3.zip |
winmm_output: improved test_default_device
If no device is available test_default_device returns false.
-rw-r--r-- | src/output/winmm_output_plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/winmm_output_plugin.c b/src/output/winmm_output_plugin.c index 214d9e713..e8b004092 100644 --- a/src/output/winmm_output_plugin.c +++ b/src/output/winmm_output_plugin.c @@ -65,8 +65,7 @@ winmm_output_get_handle(struct winmm_output* output) static bool winmm_output_test_default_device(void) { - /* we assume that Wave is always available */ - return true; + return waveOutGetNumDevs() > 0; } static void * |