mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] app: fix error: ‘dataSize’ may be used uninitialized
This commit is contained in:
parent
04774d9cd6
commit
c83243f22c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue