]> git.sesse.net Git - vlc/blobdiff - modules/access_output/file.c
qt4: correctly displays utf8 in location bar
[vlc] / modules / access_output / file.c
index 83ded48963e04563d13f249dc175238df3e2ae79..3bb110d826dbcb56042c3948213f8ecdf83902c5 100644 (file)
@@ -31,7 +31,6 @@
 #endif
 
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <time.h>
 #include <fcntl.h>
 #include <errno.h>
@@ -41,7 +40,7 @@
 #include <vlc_sout.h>
 #include <vlc_block.h>
 #include <vlc_charset.h>
-#include "vlc_strings.h"
+#include <vlc_strings.h>
 
 #if defined( WIN32 ) && !defined( UNDER_CE )
 #   include <io.h>
@@ -73,8 +72,8 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_SOUT_ACO )
     add_shortcut( "file" )
     add_shortcut( "stream" )
-    add_bool( SOUT_CFG_PREFIX "append", 0, NULL, APPEND_TEXT,APPEND_LONGTEXT,
-              true );
+    add_bool( SOUT_CFG_PREFIX "append", false, NULL, APPEND_TEXT,APPEND_LONGTEXT,
+              true )
     set_callbacks( Open, Close )
 vlc_module_end ()
 
@@ -116,11 +115,16 @@ static int Open( vlc_object_t *p_this )
 
     if( !strcmp( p_access->psz_path, "-" ) )
     {
+#ifndef UNDER_CE
 #ifdef WIN32
         setmode (fileno (stdout), O_BINARY);
 #endif
         fd = dup (fileno (stdout));
         msg_Dbg( p_access, "using stdout" );
+#else
+#warning stdout is not supported on Windows Mobile, but may be used on Windows CE
+        fd = -1;
+#endif
     }
     else
     {