[vlc-commits] DirectSound: only list usable devices
Jean-Baptiste Kempf
git at videolan.org
Thu Aug 15 20:37:09 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 15 20:10:18 2013 +0200| [63bda172897528b1cfd3ef7b6ae1f0aa82285180] | committer: Jean-Baptiste Kempf
DirectSound: only list usable devices
Ref #9104
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63bda172897528b1cfd3ef7b6ae1f0aa82285180
---
modules/audio_output/directx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 04dc919..ec6504c 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -765,7 +765,8 @@ static int CALLBACK DeviceEnumCallback( LPGUID guid, LPCWSTR desc,
ds_list_t *list = data;
OLECHAR buf[48];
- StringFromGUID2( guid, buf, 48 );
+ if( StringFromGUID2( guid, buf, 48 ) <= 0 )
+ return true;
list->count++;
list->ids = xrealloc( list->ids, list->count * sizeof(char *) );
More information about the vlc-commits
mailing list