diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-03-22 07:44:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 07:44:01 -0500 |
| commit | 530721f2d0c4903331958c0c1fa64338f794f5ff (patch) | |
| tree | f7e931deba9c9e2ace728e632e709077b9ebbeef /src | |
| parent | 6db808ec606c605008393a13f7fc8be7ea2e4855 (diff) | |
frame count check 2 electric boogaloo
re-fix the same bug oh joy
Diffstat (limited to 'src')
| -rw-r--r-- | src/aocharmovie.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/aocharmovie.cpp b/src/aocharmovie.cpp index efa5e8cb..4de6366c 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()); } + } } |
