From 2495e750040b59b8f14d1f1ac3fd800a977e22ec Mon Sep 17 00:00:00 2001 From: Guilherme Steinmann Date: Mon, 21 Dec 2015 10:29:26 -0200 Subject: Release lock if GetCurrentPosition from DS failed --- RtAudio.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'RtAudio.cpp') 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; } -- cgit v1.2.3