From a41738d7938fc493ea4a97f5b9a5a28f9ba9852d Mon Sep 17 00:00:00 2001 From: massimo morara Date: Thu, 22 Feb 2018 22:50:22 +0100 Subject: [PATCH] Add files via upload --- yasap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yasap.cpp b/yasap.cpp index e5a917a..d9d844b 100644 --- a/yasap.cpp +++ b/yasap.cpp @@ -539,14 +539,13 @@ class audioPlayer AVFrame * aFrm { av_frame_alloc() }; int fc { 0 }; - int cnt { 0 }; if ( nullptr == aFrm ) throw std::runtime_error("error allocating audio frame"); SDL_PauseAudioDevice(ad.devId, pause); - for ( ; aLoop ; ++cnt ) + while ( aLoop ) { // pause mutex safe area {