[vlc-devel] [PATCH] audio_output/winstore: report the default device to the core
Steve Lhomme
robux4 at ycbcr.xyz
Tue Nov 24 10:28:19 CET 2020
For now we don't list other devices
---
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 462313cd78c..b512daab7a4 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -552,6 +552,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);
--
2.26.2
More information about the vlc-devel
mailing list