mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] app: fix error: ‘dataSize’ may be used uninitialized
This commit is contained in:
parent
04774d9cd6
commit
c83243f22c
@ -672,7 +672,7 @@ static int frameThread(void * unused)
|
||||
updatePositionInfo();
|
||||
}
|
||||
|
||||
if (useDMA)
|
||||
if (g_state.formatValid && useDMA)
|
||||
{
|
||||
/* find the existing dma buffer if it exists */
|
||||
for(int i = 0; i < sizeof(dmaInfo) / sizeof(struct DMAFrameInfo); ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user