[vlc-commits] commit: win32: vlc_thread_set_priority() is broken (Pierre Ynard )

git at videolan.org git at videolan.org
Wed Dec 1 18:48:42 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Dec  1 18:47:27 2010 +0100| [09a29d9e756a2ea3418aa10be9b216445410e3d5] | committer: Pierre Ynard 

win32: vlc_thread_set_priority() is broken

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09a29d9e756a2ea3418aa10be9b216445410e3d5
---

 src/misc/threads.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index fd84ad7..24726e5 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -150,11 +150,8 @@ int vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file,
 #elif defined( WIN32 ) || defined( UNDER_CE )
     VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
 
-#ifndef UNDER_CE
-    if( !SetThreadPriority(p_priv->thread_id, i_priority) )
-#else
-    if( !SetThreadPriority(p_priv->thread_id->handle, i_priority) )
-#endif
+#warning vlc_thread_set_priority() is BROKEN
+    if( true /*!SetThreadPriority(p_priv->thread_id->id, i_priority)*/ )
     {
         msg_Warn( p_this, "couldn't set a faster priority" );
         return 1;



More information about the vlc-commits mailing list