diff --git a/client/src/main.c b/client/src/main.c index 07958da8..b984fbc0 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -761,6 +761,13 @@ int main_frameThread(void * unused) } } + if (!dma) + { + DEBUG_ERROR("Failed to obtain a free DMA buffer for use"); + g_state.state = APP_STATE_SHUTDOWN; + break; + } + /* open the buffer */ if (dma->fd == -1) {