vlc_object_lock( p_this );
+ /* Make sure we don't re-create a thread if the object has already one */
+ assert( !p_priv->b_thread );
+
#if defined( LIBVLC_USE_PTHREAD )
pthread_attr_t attr;
pthread_attr_init (&attr);
if( !p_priv->b_thread )
{
-#ifndef __APPLE__
msg_Err( p_this, "couldn't set priority of non-existent thread" );
return ESRCH;
-#else
-# warning FIXME: this is wrong
- p_priv->b_thread = pthread_self();
-#endif
}
#if defined( LIBVLC_USE_PTHREAD )