[vlc-commits] DirectSound: report initially selected device

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:35:30 2013 +0300| [5d828ad279923518f142b53dcec843af7c21e2ec] | committer: Rémi Denis-Courmont

DirectSound: report initially selected device

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d828ad279923518f142b53dcec843af7c21e2ec
---

 modules/audio_output/directx.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index f5d7839..e9876ef 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -1021,7 +1021,11 @@ static int Open(vlc_object_t *obj)
         free(names);
         free(ids);
     }
-    var_Create(aout, "directx-audio-device", VLC_VAR_STRING|VLC_VAR_DOINHERIT);
+
+    char *dev = var_CreateGetNonEmptyString(aout, "directx-audio-device");
+    aout_DeviceReport(aout, dev);
+    free(dev);
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list