[vlc-commits] audio_output/winstore: report the default device to the core

Steve Lhomme git at videolan.org
Wed Nov 25 07:37:28 CET 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 24 10:22:31 2020 +0100| [9ab73f65e1276a5f4e8a13890cb67cd9f9df2098] | committer: Steve Lhomme

audio_output/winstore: report the default device to the core

For now we don't list other devices

(cherry picked from commit a300249e988aba0919fde8ba01d088f0efd52cd0)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=9ab73f65e1276a5f4e8a13890cb67cd9f9df2098
---

 modules/audio_output/winstore.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/audio_output/winstore.c b/modules/audio_output/winstore.c
index f6130836d7..1274206641 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -558,6 +558,13 @@ static int Open(vlc_object_t *obj)
         return VLC_EGENERIC;
     }
 
+    char *psz_default = FromWide(sys->default_device);
+    if (likely(psz_default != NULL))
+    {
+        aout_HotplugReport(aout, psz_default, _("Default"));
+        free(psz_default);
+    }
+
     InitializeCriticalSection(&sys->lock);
 
     vlc_sem_init(&sys->async_completed, 0);



More information about the vlc-commits mailing list