summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-04-04 17:55:51 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-04-04 17:55:51 +0100
commitafa75042744efce238940d8f3bc1df47d0d7c86e (patch)
tree0d0bbb3ef450c72998c9cbec1db35fbb26c5ae7d
parent6bc868a2dbe82bc4add951c9e883e18d1bd98376 (diff)
downloadclutter-gst-afa75042744efce238940d8f3bc1df47d0d7c86e.tar.gz
video-texture: Don't forget to reset the subtitle URI with new media
We did not reset the URI of subtitles when changing media, which lead to still playing the auto-detected subtitles with the next media.
-rw-r--r--clutter-gst/clutter-gst-video-texture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c
index 03d819e..cb08a32 100644
--- a/clutter-gst/clutter-gst-video-texture.c
+++ b/clutter-gst/clutter-gst-video-texture.c
@@ -181,8 +181,11 @@ gst_state_to_string (GstState state)
return "Unknown state";
}
+static void set_subtitle_uri (ClutterGstVideoTexture *video_texture,
+ const gchar *uri);
static void configure_buffering_timeout (ClutterGstVideoTexture *video_texture,
guint ms);
+
static void
clear_download_buffering (ClutterGstVideoTexture *video_texture)
{
@@ -548,6 +551,7 @@ set_uri (ClutterGstVideoTexture *video_texture,
}
/* try to load subtitles based on the uri of the file */
+ set_subtitle_uri (video_texture, NULL);
autoload_subtitle (video_texture, uri);
/* reset the states of download buffering */