diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-04-04 17:55:51 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-04-04 17:55:51 +0100 |
commit | afa75042744efce238940d8f3bc1df47d0d7c86e (patch) | |
tree | 0d0bbb3ef450c72998c9cbec1db35fbb26c5ae7d | |
parent | 6bc868a2dbe82bc4add951c9e883e18d1bd98376 (diff) | |
download | clutter-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.c | 4 |
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 */ |