vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Apr 14 
10:01:01 2019 +0300| [69504ee35d3c91ddf3ccfe1c24f81bb4a0cc5675] | committer: 
Rémi Denis-Courmont

wasapi: fix variable shadowing

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

 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);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to