From dd31f8b0564b226c2ddf0d624c3a8d7534945401 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Thu, 14 Mar 2019 20:53:18 +0100 Subject: [PATCH] capture loop removed != 0 in while --- CaptureLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CaptureLoop.cpp b/CaptureLoop.cpp index 7d26303..c10b757 100644 --- a/CaptureLoop.cpp +++ b/CaptureLoop.cpp @@ -115,7 +115,7 @@ void CaptureLoop::_captureLoop() { //Check for samples in capture buffer. assert(_pCaptureDevice->getNextPacketSize(&samplesAvailable)); - while (samplesAvailable != 0) { + while (samplesAvailable) { //Get capture buffer pointer and number of available frames. assert(_pCaptureDevice->getCaptureBuffer(&pCaptureBuffer, &samplesAvailable, &flags));