[clutter-gst] video-texture: Reset the subtitle URI when playing the NULL URI



commit 71dcc2ddc199ea72dabc5f6406c7af3a82ff3ffb
Author: Damien Lespiau <damien lespiau intel com>
Date:   Wed Jun 29 19:50:55 2011 +0100

    video-texture: Reset the subtitle URI when playing the NULL URI
    
    set_uri(NULL) is used to "reset" the video texture, which means the
    subtitle URI should be cleaned too.

 clutter-gst/clutter-gst-video-texture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c
index 6b83bb2..61edf6a 100644
--- a/clutter-gst/clutter-gst-video-texture.c
+++ b/clutter-gst/clutter-gst-video-texture.c
@@ -566,6 +566,8 @@ set_uri (ClutterGstVideoTexture *video_texture,
     {
       priv->uri = NULL;
 
+      set_subtitle_uri (video_texture, NULL);
+
       if (priv->tick_timeout_id)
 	{
 	  g_source_remove (priv->tick_timeout_id);



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