aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aocharmovie.cpp7
1 files changed, 6 insertions, 1 deletions
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());
}
+ }
}