Skip to content

Commit

Permalink
Merge pull request wang-bin#1135 from ibooij/frame-reader-fill-buffer
Browse files Browse the repository at this point in the history
Loop until frame buffer is full.
  • Loading branch information
wang-bin authored Sep 5, 2018
2 parents 3894f91 f3b05dd commit 90de967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrameReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 353,7 @@ void FrameReader::readMoreInternal()
d->vframes.put(frame);
Q_EMIT frameRead(frame);
//qDebug("frame got @%.3f, queue enough: %d", frame.timestamp(), vframes.isEnough());
if (d->vframes.isEnough())
if (d->vframes.isFull())
break;
} else {
qDebug("dec error, continue to decoder");
Expand Down

0 comments on commit 90de967

Please sign in to comment.