From 530721f2d0c4903331958c0c1fa64338f794f5ff Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sun, 22 Mar 2020 07:44:01 -0500 Subject: [PATCH] frame count check 2 electric boogaloo re-fix the same bug oh joy --- src/aocharmovie.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp index efa5e8c..4de6366 100644 --- a/src/aocharmovie.cpp +++ b/src/aocharmovie.cpp @@ -178,9 +178,14 @@ void AOCharMovie::movie_ticker() // imagine if QT had sane stuff like "mirror on QMovie" or "resize the image on QT" or "interface with the current QMovie image" or anything else this->play_frame_sfx(); - if(!apng){ + if (m_movie->frameCount() == 0) { + //qDebug() << "Frame count was checked again, and it's still 0"; + return; + } + else if(!apng) { ticker->start(m_movie->nextFrameDelay()); } + } }