]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcplugin.cpp
* XPCOM implementation in mozilla plugin on MacOSX (Play, pause, stop
[vlc] / mozilla / vlcplugin.cpp
index 64bab097bb58383f29c5ac1e1a1133c8b519f513..32bb31751818f723d6a7fdaba3be032af5e8d2ad 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
- * vlcplugin.cpp: a VideoLAN Client plugin for Mozilla
+ * vlcplugin.cpp: a VLC plugin for Mozilla
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: vlcplugin.cpp,v 1.2 2002/09/30 11:05:41 sam Exp $
+ * $Id: vlcplugin.cpp,v 1.5 2003/07/16 16:33:59 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -26,6 +26,8 @@
  *****************************************************************************/
 #include <vlc/vlc.h>
 
+#include <nsISupports.h>
+#include <nsMemory.h>
 #include <npapi.h>
 
 #include "vlcpeer.h"
@@ -36,7 +38,7 @@
  *****************************************************************************/
 VlcPlugin::VlcPlugin( NPP instance )
 {
-    p_instance = instance; 
+    p_instance = instance;
     p_peer = NULL;
 }
 
@@ -71,11 +73,11 @@ VlcIntf* VlcPlugin::GetPeer()
     if( !p_peer )
     {
         p_peer = new VlcPeer( this );
-        if( p_peer == NULL ) 
+        if( p_peer == NULL )
         {
             return NULL;
         }
-        
+
         NS_ADDREF( p_peer );
     }
 
@@ -113,6 +115,6 @@ void VlcPlugin::SetFileName(const char * filename)
     fclose (fh);
     fprintf(stderr, "File loaded\n");
 #endif
-    return; 
+    return;
 }