summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vlc/patches/patch-aj')
-rw-r--r--multimedia/vlc/patches/patch-aj123
1 files changed, 123 insertions, 0 deletions
diff --git a/multimedia/vlc/patches/patch-aj b/multimedia/vlc/patches/patch-aj
new file mode 100644
index 00000000000..8357c4308f0
--- /dev/null
+++ b/multimedia/vlc/patches/patch-aj
@@ -0,0 +1,123 @@
+$NetBSD: patch-aj,v 1.1 2007/02/22 16:36:10 drochner Exp $
+
+--- include/vlc_threads_funcs.h.orig 2006-05-06 17:52:25.000000000 +0200
++++ include/vlc_threads_funcs.h
+@@ -69,7 +69,7 @@ static inline int __vlc_mutex_lock( cons
+ {
+ int i_result;
+ /* In case of error : */
+- int i_thread = -1;
++ pthread_t i_thread = NULL;
+ const char * psz_error = "";
+
+ #if defined( PTH_INIT_IN_PTH_H )
+@@ -111,7 +111,7 @@ static inline int __vlc_mutex_lock( cons
+ i_result = pthread_mutex_lock( &p_mutex->mutex );
+ if ( i_result )
+ {
+- i_thread = (int)pthread_self();
++ i_thread = pthread_self();
+ psz_error = strerror(i_result);
+ }
+
+@@ -124,7 +124,7 @@ static inline int __vlc_mutex_lock( cons
+ if( i_result )
+ {
+ msg_Err( p_mutex->p_this,
+- "thread %u: mutex_lock failed at %s:%d (%d:%s)",
++ "thread %p: mutex_lock failed at %s:%d (%d:%s)",
+ i_thread, psz_file, i_line, i_result, psz_error );
+ }
+ return i_result;
+@@ -141,7 +141,7 @@ static inline int __vlc_mutex_unlock( co
+ {
+ int i_result;
+ /* In case of error : */
+- int i_thread = -1;
++ pthread_t i_thread = NULL;
+ const char * psz_error = "";
+
+ #if defined( PTH_INIT_IN_PTH_H )
+@@ -184,7 +184,7 @@ static inline int __vlc_mutex_unlock( co
+ i_result = pthread_mutex_unlock( &p_mutex->mutex );
+ if ( i_result )
+ {
+- i_thread = (int)pthread_self();
++ i_thread = pthread_self();
+ psz_error = strerror(i_result);
+ }
+
+@@ -197,7 +197,7 @@ static inline int __vlc_mutex_unlock( co
+ if( i_result )
+ {
+ msg_Err( p_mutex->p_this,
+- "thread %u: mutex_unlock failed at %s:%d (%d:%s)",
++ "thread %p: mutex_unlock failed at %s:%d (%d:%s)",
+ i_thread, psz_file, i_line, i_result, psz_error );
+ }
+
+@@ -227,7 +227,7 @@ static inline int __vlc_cond_signal( con
+ {
+ int i_result;
+ /* In case of error : */
+- int i_thread = -1;
++ pthread_t i_thread = NULL;
+ const char * psz_error = "";
+
+ #if defined( PTH_INIT_IN_PTH_H )
+@@ -322,7 +322,7 @@ static inline int __vlc_cond_signal( con
+ i_result = pthread_cond_signal( &p_condvar->cond );
+ if ( i_result )
+ {
+- i_thread = (int)pthread_self();
++ i_thread = pthread_self();
+ psz_error = strerror(i_result);
+ }
+
+@@ -339,7 +339,7 @@ static inline int __vlc_cond_signal( con
+ if( i_result )
+ {
+ msg_Err( p_condvar->p_this,
+- "thread %u: cond_signal failed at %s:%d (%d:%s)",
++ "thread %p: cond_signal failed at %s:%d (%d:%s)",
+ i_thread, psz_file, i_line, i_result, psz_error );
+ }
+
+@@ -357,7 +357,7 @@ static inline int __vlc_cond_wait( const
+ {
+ int i_result;
+ /* In case of error : */
+- int i_thread = -1;
++ pthread_t i_thread = NULL;
+ const char * psz_error = "";
+
+ #if defined( PTH_INIT_IN_PTH_H )
+@@ -499,8 +499,8 @@ static inline int __vlc_cond_wait( const
+ {
+ /* People keep pissing me off with this. --Meuuh */
+ msg_Dbg( p_condvar->p_this,
+- "thread %u: secret message triggered "
+- "at %s:%d (%s)", (int)pthread_self(),
++ "thread %p: secret message triggered "
++ "at %s:%d (%s)", pthread_self(),
+ psz_file, i_line, strerror(i_result) );
+
+ i_result = pthread_cond_wait( &p_condvar->cond, &p_mutex->mutex );
+@@ -512,7 +512,7 @@ static inline int __vlc_cond_wait( const
+
+ if ( i_result )
+ {
+- i_thread = (int)pthread_self();
++ i_thread = pthread_self();
+ psz_error = strerror(i_result);
+ }
+
+@@ -525,7 +525,7 @@ static inline int __vlc_cond_wait( const
+ if( i_result )
+ {
+ msg_Err( p_condvar->p_this,
+- "thread %u: cond_wait failed at %s:%d (%d:%s)",
++ "thread %p: cond_wait failed at %s:%d (%d:%s)",
+ i_thread, psz_file, i_line, i_result, psz_error );
+ }
+