Permalink
Browse files

Report file playback (local and remote) report errors

  • Loading branch information...
jyavenard committed Jul 7, 2013
1 parent e168f25 commit fa088cb68ec8adc8c91564ad3bd035dda625479c
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/libs/libmythtv/fileringbuffer.cpp
@@ -288,19 +288,24 @@ bool FileRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
case 1:
LOG(VB_GENERAL, LOG_ERR, LOC +
QString("OpenFile(): Could not open."));
lastError = QObject::tr("Could not open %1").arg(filename);
break;
case 2:
LOG(VB_GENERAL, LOG_ERR, LOC +
QString("OpenFile(): File too small (%1B).")
.arg(QFileInfo(filename).size()));
lastError = QObject::tr("File too small (%1B)")
.arg(QFileInfo(filename).size());
break;
case 3:
LOG(VB_GENERAL, LOG_ERR, LOC +
"OpenFile(): Improper permissions.");
lastError = QObject::tr("Improper permissions");
break;
case 4:
LOG(VB_GENERAL, LOG_ERR, LOC +
"OpenFile(): Cannot seek in file.");
lastError = QObject::tr("Cannot seek in file");
break;
default:
break;
@@ -347,6 +352,7 @@ bool FileRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
LOG(VB_GENERAL, LOG_ERR, LOC +
QString("RingBuffer::RingBuffer(): Failed to open remote "
"file (%1)").arg(filename));
lastError = QObject::tr("Failed to open remote file %1").arg(filename);
delete remotefile;
remotefile = NULL;
}

0 comments on commit fa088cb

Please sign in to comment.