[vlc-commits] audio_output/winstore: report the default device to the core
Steve Lhomme
git at videolan.org
Wed Nov 25 07:20:31 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 24 10:22:31 2020 +0100| [a300249e988aba0919fde8ba01d088f0efd52cd0] | committer: Steve Lhomme
audio_output/winstore: report the default device to the core
For now we don't list other devices
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a300249e988aba0919fde8ba01d088f0efd52cd0
---
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 462313cd78..b512daab7a 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);
More information about the vlc-commits
mailing list