]> 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 62f477456420891344e131455aa2eb99eea2275f..e57535f170ec291e9c4b8c41dc650e4841404060 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.66 2003/02/20 01:52:46 sigmunau 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
 
@@ -182,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";
 
@@ -808,8 +809,6 @@ int VLC_Play( int i_object )
         return VLC_ENOOBJ;
     }
 
-    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW );
-
     p_playlist = vlc_object_find( p_vlc, VLC_OBJECT_PLAYLIST, FIND_CHILD );
 
     if( !p_playlist )
@@ -979,7 +978,7 @@ static void SetLanguage ( char const *psz_lang )
      && ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
 
     char *          psz_path;
-#ifdef SYS_DARWIN
+#if defined( SYS_DARWIN ) || defined ( WIN32 )
     char            psz_tmp[1024];
 #endif
 
@@ -1003,7 +1002,7 @@ static void SetLanguage ( char const *psz_lang )
     setlocale( LC_CTYPE, psz_lang );
 
     /* Specify where to find the locales for current domain */
-#ifndef SYS_DARWIN
+#if !defined( SYS_DARWIN ) && !defined( WIN32 )
     psz_path = LOCALEDIR;
 #else
     snprintf( psz_tmp, sizeof(psz_tmp), "%s/%s", libvlc.psz_vlcpath,