[vlc-commits] DirectSound: add default device choice in configuration
Rémi Denis-Courmont
git at videolan.org
Thu Apr 25 18:37:09 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 25 19:34:10 2013 +0300| [5632a0ad30ecf080c8d46f372158e3f27e7b12dd] | committer: Rémi Denis-Courmont
DirectSound: add default device choice in configuration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5632a0ad30ecf080c8d46f372158e3f27e7b12dd
---
modules/audio_output/directx.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 228d800..f5d7839 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -930,7 +930,13 @@ static int CALLBACK DeviceEnumCallback( LPGUID guid, LPCWSTR desc,
static int ReloadDirectXDevices( vlc_object_t *p_this, char const *psz_name,
char ***values, char ***descs )
{
- ds_list_t list = { 0, NULL, NULL };
+ ds_list_t list = {
+ .count = 1,
+ .ids = xmalloc(sizeof (char *)),
+ .names = xmalloc(sizeof (char *)),
+ };
+ list.ids[0] = xstrdup("");
+ list.names[0] = xstrdup(_("Default"));
(void) psz_name;
More information about the vlc-commits
mailing list