]> git.sesse.net Git - vlc/blobdiff - modules/video_output/image.c
Fix a race condition : the user progress dialog wasn't created sometime with the...
[vlc] / modules / video_output / image.c
index 0336a54d6ffccf616125f851d8360307f4830b2e..3a2c8ceb943fb1000dfc0ea0bae0f53f3f7bb2b7 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <vlc/vlc.h>
 #include <vlc_vout.h>
@@ -88,10 +91,10 @@ vlc_module_begin( );
     add_string(  CFG_PREFIX "format", "png", NULL,
                  FORMAT_TEXT, FORMAT_LONGTEXT, VLC_FALSE );
     change_string_list( psz_format_list, psz_format_list_text, 0 );
-    add_integer( CFG_PREFIX "width", -1, NULL,
+    add_integer( CFG_PREFIX "width", 0, NULL,
                  WIDTH_TEXT, WIDTH_LONGTEXT, VLC_TRUE );
         add_deprecated_alias( "image-width" ); /* since 0.9.0 */
-    add_integer( CFG_PREFIX "height", -1, NULL,
+    add_integer( CFG_PREFIX "height", 0, NULL,
                  HEIGHT_TEXT, HEIGHT_LONGTEXT, VLC_TRUE );
         add_deprecated_alias( "image-height" ); /* since 0.9.0 */
     add_integer( CFG_PREFIX "ratio", 3, NULL,
@@ -336,4 +339,5 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
 
 static void End( vout_thread_t *p_vout )
 {
+    VLC_UNUSED(p_vout);
 }