]> code.delx.au - gnu-emacs/commitdiff
Make gif animation work (bug#24004)
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 19 Jul 2016 07:34:54 +0000 (07:34 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 19 Jul 2016 07:34:54 +0000 (07:34 +0000)
* lisp/image.el (image-animate-timeout): Fix the logic that tests if
an animation is too big (bug#24004).

lisp/image.el

index ad219361366b1657cb50328f94a50e3b261e9089..08df7d4aa1ab71468497fddc594c6ead4f8482b7 100644 (file)
@@ -792,9 +792,10 @@ If the image has a non-nil :speed property, it acts as a multiplier
 for the animation speed.  A negative value means to animate in reverse."
   (when (and (buffer-live-p (plist-get (cdr image) :animate-buffer))
              ;; Delayed more than two seconds more than expected.
-             (when (> (- (float-time) target-time) 2)
-               (message "Stopping animation; animation possibly too big")
-               nil))
+            (or (<= (- (float-time) target-time) 2)
+                (progn
+                  (message "Stopping animation; animation possibly too big")
+                  nil)))
     (image-show-frame image n t)
     (let* ((speed (image-animate-get-speed image))
           (time (float-time))