[vlc-commits] mmdevice: enum only render devices
Thomas Guillem
git at videolan.org
Fri Jun 24 15:49:34 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 24 15:49:06 2016 +0200| [c60db79e6e749b398199eb421bff35d5606941ae] | committer: Thomas Guillem
mmdevice: enum only render devices
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c60db79e6e749b398199eb421bff35d5606941ae
---
modules/audio_output/mmdevice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 193c52a..666ad98 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -703,7 +703,7 @@ static int DevicesEnum(audio_output_t *aout, IMMDeviceEnumerator *it)
char *id, *name;
hr = IMMDeviceCollection_Item(devs, i, &dev);
- if (FAILED(hr))
+ if (FAILED(hr) || !DeviceIsRender(dev))
continue;
/* Unique device ID */
More information about the vlc-commits
mailing list