Skip to content
Snippets Groups Projects
Commit 69504ee3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

wasapi: fix variable shadowing

parent 1ece990f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment