diff --git a/client/src/main.c b/client/src/main.c index ba8ed0c7..49114ad9 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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)