totem r5900 - in trunk: . src



Author: hadess
Date: Tue Jan  6 13:30:31 2009
New Revision: 5900
URL: http://svn.gnome.org/viewvc/totem?rev=5900&view=rev

Log:
2009-01-06  Bastien Nocera  <hadess hadess net>

	* src/totem-uri.c (totem_uri_get_subtitle_for_uri):
	Reduce the scope of subtitle_ext_upper



Modified:
   trunk/ChangeLog
   trunk/src/totem-uri.c

Modified: trunk/src/totem-uri.c
==============================================================================
--- trunk/src/totem-uri.c	(original)
+++ trunk/src/totem-uri.c	Tue Jan  6 13:30:31 2009
@@ -292,7 +292,7 @@
 static char *
 totem_uri_get_subtitle_for_uri (const char *uri)
 {
-	char *subtitle, *subtitle_ext_upper;
+	char *subtitle;
 	guint len, i;
 	gint suffix;
 
@@ -323,6 +323,7 @@
 
 	/* Search for any files with one of our known subtitle extensions */
 	for (i = 0; i < G_N_ELEMENTS (subtitle_ext) ; i++) {
+		char *subtitle_ext_upper;
 		memcpy (subtitle + suffix + 1, subtitle_ext[i], 3);
 
 		if (totem_uri_exists (subtitle))



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