]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
* src/input/input.c, src/video_output/video_output.c: when the input thread
[vlc] / src / libvlc.c
index 5822cccaeba675c60b78e94106d707affa9bbbab..e57535f170ec291e9c4b8c41dc650e4841404060 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.68 2003/02/27 08:19:02 massiot Exp $
+ * $Id: libvlc.c,v 1.70 2003/03/04 23:36:57 massiot Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -48,7 +48,7 @@
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( _MSC_VER ) && defined( _WIN32 ) && !defined( UNDER_CE )
+#elif defined( WIN32 ) && !defined( UNDER_CE )
 #   include <io.h>
 #endif
 
@@ -138,7 +138,6 @@ int VLC_Create( void )
     {
         return i_ret;
     }
-    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
 
     /* Now that the thread system is initialized, we don't have much, but
      * at least we have var_Create */
@@ -183,6 +182,7 @@ int VLC_Create( void )
     {
         return VLC_EGENERIC;
     }
+    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
 
     p_vlc->psz_object_name = "root";