Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make http playback reports errors
  • Loading branch information
jyavenard committed Jul 7, 2013
1 parent fa088cb commit 14293e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythtv/streamingringbuffer.cpp
Expand Up @@ -70,15 +70,16 @@ bool StreamingRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
LOG(VB_GENERAL, LOG_INFO, LOC + QString("Trying %1 (allow seeks: %2")
.arg(filename).arg(m_allowSeeks));

rwlock.unlock();

if (res < 0 || !m_context)
{
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);
return false;
}

rwlock.unlock();

return true;
}

Expand Down

0 comments on commit 14293e5

Please sign in to comment.