[gtk+/wip/baedert/gtkimageview: 159/169] imageview: Stop the old playable



commit ed1b95da0efbf293d47e8954cf95ded712afd8b3
Author: Timm Bäder <mail baedert org>
Date:   Sat Mar 19 15:20:49 2016 +0100

    imageview: Stop the old playable

 gtk/gtkimageview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index c4476d5..edbdbf1 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2113,6 +2113,9 @@ gtk_image_view_replace_image (GtkImageView     *image_view,
   if (priv->image)
     {
       g_signal_handlers_disconnect_by_func (priv->image, image_changed_cb, image_view);
+      if (GTK_IS_PLAYABLE (priv->image))
+        gtk_playable_stop (GTK_PLAYABLE (priv->image));
+
       g_object_unref (priv->image);
     }
 


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