[vlc-devel] commit: Add --no-plugins-cache when compiling the mozilla plugin with debugging enabled , and simplify --volume=0 when starting muted. (JP Dinger )

git version control git at videolan.org
Sat Mar 7 17:19:41 CET 2009


vlc | branch: master | JP Dinger <jpd at m2x.nl> | Thu Feb 26 14:21:07 2009 +0100| [ef2695257f442b35f3fc61697cb16b626de0985a] | committer: Jean-Paul Saman 

Add --no-plugins-cache when compiling the mozilla plugin with debugging enabled, and simplify --volume=0 when starting muted.

Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef2695257f442b35f3fc61697cb16b626de0985a
---

 projects/mozilla/vlcplugin.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 84e9a6e..31a1d6c 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -85,6 +85,10 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
     const char *ppsz_argv[32];
     int ppsz_argc = 0;
 
+#ifndef NDEBUG
+    ppsz_argv[ppsz_argc++] = "--no-plugins-cache";
+#endif
+
     /* locate VLC module path */
 #ifdef XP_MACOSX
     ppsz_argv[ppsz_argc++] = "--plugin-path=/Library/Internet\\ Plug-Ins/VLC\\ Plugin.plugin/Contents/MacOS/modules";
@@ -152,8 +156,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
         {
             if( boolValue(argv[i]) )
             {
-                ppsz_argv[ppsz_argc++] = "--volume";
-                ppsz_argv[ppsz_argc++] = "0";
+                ppsz_argv[ppsz_argc++] = "--volume=0";
             }
         }
         else if( !strcmp( argn[i], "loop")




More information about the vlc-devel mailing list