[totem/gnome-2-32] Don't try to load subtitles for streams



commit c4e8920d5f809ee49622af36db9099235fa19129
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 31 17:36:42 2010 +0100

    Don't try to load subtitles for streams
    
    So not from HTTP, RTSP, or RTMP.

 src/totem-uri.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index bad6e19..b55a4fb 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -444,7 +444,9 @@ totem_uri_get_subtitle_uri (const char *uri)
 	GFile *file;
 	char *subtitle;
 
-	if (g_str_has_prefix (uri, "http") != FALSE)
+	if (g_str_has_prefix (uri, "http") != FALSE ||
+	    g_str_has_prefix (uri, "rtsp") != FALSE ||
+	    g_str_has_prefix (uri, "rtmp") != FALSE)
 		return NULL;
 
 	/* Has the user specified a subtitle file manually? */



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