[vlc-devel] [PATCH v2 4/4] aout: winstore: report the device in use

Steve Lhomme robux4 at ycbcr.xyz
Fri Jun 26 11:34:51 CEST 2020


---
 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 6373e6bfd18..155e22ecd2c 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -162,6 +162,13 @@ static void WaitForAudioClient(audio_output_t *aout)
             {
                 sys->acquired_device = wcsdup(devId);
 
+                char *report = FromWide(devId);
+                if (likely(report))
+                {
+                    aout_DeviceReport(aout, report);
+                    free(report);
+                }
+
                 IAudioClient2 *audioClient2;
                 if (SUCCEEDED(IAudioClient_QueryInterface(sys->client, &IID_IAudioClient2, (void**)&audioClient2))
                     && audioClient2)
-- 
2.26.2



More information about the vlc-devel mailing list