From f3b05ddc4b2b3a0226efcc724135423a140ccd39 Mon Sep 17 00:00:00 2001 From: Ilja Booij Date: Tue, 4 Sep 2018 11:17:48 +0200 Subject: [PATCH] Loop until frame buffer is full. In the original code, the framereader loops until the buffer is "full enough" and will never be full. --- src/FrameReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FrameReader.cpp b/src/FrameReader.cpp index a382715ad..82a56891a 100644 --- a/src/FrameReader.cpp +++ b/src/FrameReader.cpp @@ -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");