totem r5080 - in trunk: . browser-plugin



Author: hadess
Date: Thu Feb  7 17:56:37 2008
New Revision: 5080
URL: http://svn.gnome.org/viewvc/totem?rev=5080&view=rev

Log:
2008-02-07  Bastien Nocera  <hadess hadess net>

	* browser-plugin/totemPlugin.cpp: Add support for yes/no
	arguments, Fix the VLC plugin not playing anything on the
	http://mediathek.zdf.de/ website, uses the "target" parameter
	instead of src



Modified:
   trunk/ChangeLog
   trunk/browser-plugin/totemPlugin.cpp

Modified: trunk/browser-plugin/totemPlugin.cpp
==============================================================================
--- trunk/browser-plugin/totemPlugin.cpp	(original)
+++ trunk/browser-plugin/totemPlugin.cpp	Thu Feb  7 17:56:37 2008
@@ -1115,9 +1115,9 @@
 {
 	if (value == NULL || strcmp (value, "") == 0)
 		return default_val;
-	if (g_ascii_strcasecmp (value, "false") == 0)
+	if (g_ascii_strcasecmp (value, "false") == 0 || g_ascii_strcasecmp (value, "no") == 0)
 		return PR_FALSE;
-	if (g_ascii_strcasecmp (value, "true") == 0)
+	if (g_ascii_strcasecmp (value, "true") == 0 || g_ascii_strcasecmp (value, "yes") == 0)
 		return PR_TRUE;
 
         char *endptr = NULL;
@@ -1798,6 +1798,13 @@
 	}
 #endif /* TOTEM_MULLY_PLUGIN */
 
+#ifdef TOTEM_CONE_PLUGIN
+	value = (const char *) g_hash_table_lookup (args, "target");
+	if (value) {
+		SetSrc (nsDependentCString (value));
+	}
+#endif /* TOTEM_CONE_PLUGIN */
+
 #if 0 //def TOTEM_MULLY_PLUGIN
 	/* Click to play behaviour of the DivX plugin */
 	char *previewimage = (const char *) g_hash_table_lookup (args, "previewimage");



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