[clutter-gst] video-texture: Don't forget to reset the subtitle URI with new media
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] video-texture: Don't forget to reset the subtitle URI with new media
- Date: Mon, 4 Apr 2011 16:57:52 +0000 (UTC)
commit afa75042744efce238940d8f3bc1df47d0d7c86e
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Apr 4 17:55:51 2011 +0100
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.
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]