[gimp/wip/animation: 111/182] plug-ins: no need to try and render the current frame at animation set.



commit b956d8451e511c98d90c660ff0cbbeaa2fffb73b
Author: Jehan <jehan girinstud io>
Date:   Sun Jan 1 21:09:15 2017 +0100

    plug-ins: no need to try and render the current frame at animation set.

 plug-ins/animation-play/core/animation-playback.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-playback.c 
b/plug-ins/animation-play/core/animation-playback.c
index 7c194e2..04907d3 100644
--- a/plug-ins/animation-play/core/animation-playback.c
+++ b/plug-ins/animation-play/core/animation-playback.c
@@ -502,8 +502,7 @@ animation_playback_set_property (GObject      *object,
     {
     case PROP_ANIMATION:
         {
-          Animation  *animation;
-          GeglBuffer *buffer;
+          Animation *animation;
 
           if (playback->priv->animation)
             g_object_unref (playback->priv->animation);
@@ -520,19 +519,10 @@ animation_playback_set_property (GObject      *object,
           playback->priv->stop  = animation_get_duration (animation) - 1;
           playback->priv->stop_at_end = TRUE;
 
-          g_signal_emit_by_name (animation, "loaded");
           g_signal_connect (animation, "cache-invalidated",
                             G_CALLBACK (on_cache_invalidated), playback);
           g_signal_connect (animation, "duration-changed",
                             G_CALLBACK (on_duration_changed), playback);
-
-          /* Once loaded, let's ask render. */
-          buffer = animation_get_frame (animation, playback->priv->position);
-          g_signal_emit (playback, animation_playback_signals[RENDER], 0,
-                         playback->priv->position, buffer, TRUE);
-
-          if (buffer)
-            g_object_unref (buffer);
         }
       break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]