From: Guilherme Steinmann Date: Mon, 21 Dec 2015 12:29:26 +0000 (-0200) Subject: Release lock if GetCurrentPosition from DS failed X-Git-Url: https://main.carlh.net/gitweb/?p=rtaudio-cdist.git;a=commitdiff_plain;h=2495e750040b59b8f14d1f1ac3fd800a977e22ec Release lock if GetCurrentPosition from DS failed --- diff --git a/RtAudio.cpp b/RtAudio.cpp index cc81fc9..1dc2f23 100755 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -6438,6 +6438,7 @@ void RtApiDs :: callbackEvent() if ( FAILED( result ) ) { errorStream_ << "RtApiDs::callbackEvent: error (" << getErrorString( result ) << ") getting current write position!"; errorText_ = errorStream_.str(); + MUTEX_UNLOCK( &stream_.mutex ); error( RtAudioError::SYSTEM_ERROR ); return; }