]> git.sesse.net Git - vlc/commitdiff
win32 stdout fix by Polyphem
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 29 Nov 2005 14:44:22 +0000 (14:44 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 29 Nov 2005 14:44:22 +0000 (14:44 +0000)
http://forum.videolan.org/viewtopic.php?t=14251

modules/access_output/file.c

index b002f11bc4c77a607132e5c023eaa0963fdeb14c..7efb693ec820d4e649abbdb962a8c566f24b4bf3 100644 (file)
@@ -131,6 +131,9 @@ static int Open( vlc_object_t *p_this )
     }
     if( !strcmp( p_access->psz_name, "-" ) )
     {
+#if defined(WIN32)
+        setmode (STDOUT_FILENO, O_BINARY);
+#endif
         p_access->p_sys->i_handle = STDOUT_FILENO;
         msg_Dbg( p_access, "using stdout" );
     }