[vlc-commits] aout: winstore: report the device in use

Steve Lhomme git at videolan.org
Tue Jul 7 09:10:36 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 26 10:05:07 2020 +0200| [3d2ba664b5673c3fd90550dac1bd1880e941a8e2] | committer: Steve Lhomme

aout: winstore: report the device in use

(cherry picked from commit c4ad40650de9182923bc195af858ef8ba24c3130)

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

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

 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 3676c324c6..b93e6a7b92 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)



More information about the vlc-commits mailing list