Release lock if GetCurrentPosition from DS failed
authorGuilherme Steinmann <guidefloripa@gmail.com>
Mon, 21 Dec 2015 12:29:26 +0000 (10:29 -0200)
committerGuilherme Steinmann <guidefloripa@gmail.com>
Mon, 21 Dec 2015 12:29:26 +0000 (10:29 -0200)
RtAudio.cpp

index cc81fc988e071a0bcb966f681797ed9a67ca4c5c..1dc2f2302399c3d124ea043848c402fcd78de2bb 100755 (executable)
@@ -6438,6 +6438,7 @@ void RtApiDs :: callbackEvent()
       if ( FAILED( result ) ) {\r
         errorStream_ << "RtApiDs::callbackEvent: error (" << getErrorString( result ) << ") getting current write position!";\r
         errorText_ = errorStream_.str();\r
+        MUTEX_UNLOCK( &stream_.mutex );\r
         error( RtAudioError::SYSTEM_ERROR );\r
         return;\r
       }\r