Skip to content

Commit

Permalink
Bail if no data comes from CD drive
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Dec 4, 2024
1 parent 2b7484a commit 25d8bbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/ParanoiaPlugin/paranoiaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ void ParanoiaPlayerWorker::tryReadNextFrame() {
{
QMutexLocker locker(&d->framesMutex);
if (thisEpoch != d->epoch) return;
if (!buf) {
// Couldn't read anything - bail out now
d->reading = false;
return;
}
d->frames.enqueue(QByteArray(reinterpret_cast<const char*>(buf), CDIO_CD_FRAMESIZE_RAW));
}

Expand Down

0 comments on commit 25d8bbe

Please sign in to comment.