Browse Source

Release lock if GetCurrentPosition from DS failed

tags/4.1.2
Guilherme Steinmann 9 years ago
parent
commit
2495e75004
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      RtAudio.cpp

+ 1
- 0
RtAudio.cpp View File

@@ -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;
}


Loading…
Cancel
Save