Skip to content

Commit

Permalink
Fix deadlock should error occurs during stream constructor.
Browse files Browse the repository at this point in the history
Lock wasn't released
  • Loading branch information
jyavenard committed Jul 17, 2013
1 parent cbb3c33 commit 6c23880
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/streamingringbuffer.cpp
Expand Up @@ -75,6 +75,7 @@ bool StreamingRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
LOG(VB_GENERAL, LOG_ERR, LOC +
QString("Failed to open stream (error %1)") .arg(res));
lastError = QObject::tr("Failed to open stream (%1)").arg(res);
rwlock.unlock();
return false;
}

Expand Down

0 comments on commit 6c23880

Please sign in to comment.