]> git.sesse.net Git - vlc/blobdiff - mozilla/vlcshell.cpp
dshow.cpp: make sure driver name is properly NULL terminated
[vlc] / mozilla / vlcshell.cpp
index ad66880a9feee6d6c796519db79eb931d44b07b9..eb05e9cae02d92774386817b06e6658cbc7b3ecb 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * vlcshell.cpp: a VLC plugin for Mozilla
  *****************************************************************************
- * Copyright (C) 2002-2005 VideoLAN
+ * Copyright (C) 2002-2005 the VideoLAN team
  * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
@@ -92,8 +92,8 @@
 #   define VOUT_PLUGINS "xvideo,x11,dummy"
 #   define AOUT_PLUGINS "oss,dummy"
 
-static int i_previous_height = -1;
-static int i_previous_width = -1;
+static unsigned int i_previous_height = 100000;
+static unsigned int i_previous_width = 100000;
 
 static void Redraw( Widget w, XtPointer closure, XEvent *event );
 static void Resize( Widget w, XtPointer closure, XEvent *event );
@@ -947,6 +947,8 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
                  event->xconfigure.height,
                  event->xconfigure.send_event ? "TRUE" : "FALSE" );
     }
+#endif /* X11_RESIZE_DEBUG */
+
     if( p_plugin->i_height == i_previous_height &&
         p_plugin->i_width == i_previous_width )
     {
@@ -955,7 +957,6 @@ static void Resize ( Widget w, XtPointer closure, XEvent *event )
     i_previous_height = p_plugin->i_height;
     i_previous_width  = p_plugin->i_width;
 
-#endif /* X11_RESIZE_DEBUG */
 
     i_ret = XResizeWindow( p_plugin->p_display, p_plugin->window,
             p_plugin->i_width, p_plugin->i_height );