[vlc-commits] wasapi: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Sun Apr 14 09:05:42 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 10:01:01 2019 +0300| [0e20f2b47a9bae90ce59ce4b416d6f6bdab1157e] | committer: Rémi Denis-Courmont

wasapi: fix variable shadowing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e20f2b47a9bae90ce59ce4b416d6f6bdab1157e
---

 modules/access/wasapi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/wasapi.c b/modules/access/wasapi.c
index 1aef26fbe2..9f06c792c2 100644
--- a/modules/access/wasapi.c
+++ b/modules/access/wasapi.c
@@ -313,13 +313,13 @@ static unsigned __stdcall Thread(void *data)
     while (WaitForMultipleObjects(2, sys->events, FALSE, INFINITE)
             != WAIT_OBJECT_0)
     {
-        BYTE *data;
+        BYTE *buf;
         UINT32 frames;
         DWORD flags;
         UINT64 qpc;
         vlc_tick_t pts;
 
-        hr = IAudioCaptureClient_GetBuffer(capture, &data, &frames, &flags,
+        hr = IAudioCaptureClient_GetBuffer(capture, &buf, &frames, &flags,
                                            NULL, &qpc);
         if (hr != S_OK)
             continue;
@@ -332,7 +332,7 @@ static unsigned __stdcall Thread(void *data)
         block_t *block = block_Alloc(bytes);
 
         if (likely(block != NULL)) {
-            memcpy(block->p_buffer, data, bytes);
+            memcpy(block->p_buffer, buf, bytes);
             block->i_nb_samples = frames;
             block->i_pts = block->i_dts = pts;
             es_out_Send(demux->out, sys->es, block);



More information about the vlc-commits mailing list