[totem/gnome-3-12] backend: Reset loaded text subtitles when closing video



commit 8ddab5a31fc89109fd213b9cbde28fe5017fc958
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 28 18:13:04 2014 +0200

    backend: Reset loaded text subtitles when closing video
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728339

 src/backend/bacon-video-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index bd94160..bd58463 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -4293,6 +4293,8 @@ bacon_video_widget_close (BaconVideoWidget * bvw)
 
   g_clear_pointer (&bvw->priv->mrl, g_free);
   g_clear_pointer (&bvw->priv->subtitle_uri, g_free);
+  g_object_set (G_OBJECT (bvw->priv->play), "suburi", NULL, NULL);
+  g_clear_pointer (&bvw->priv->subtitle_uri, g_free);
   g_clear_pointer (&bvw->priv->user_id, g_free);
   g_clear_pointer (&bvw->priv->user_pw, g_free);
 


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