[gtk+/wip/baedert/gtkimageview: 185/186] imageview: Stop the old playable



commit 36b8e4132215b0d630985f9d785af0ff049bad7e
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 0bacce6..786fe13 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2125,6 +2125,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]