Changeset 10a6bde56813620846826fed6979b2548a6457ea

Show
Ignore:
Timestamp:
31/07/08 22:57:50 (4 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1217537870 +0200
git-parent:

[54b65bedc9a2abe2461f650c0d40b387f0839174]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1217537870 +0200
Message:

libvlccore: Don't set the priority on first thread on Mac OS X.

Let's don't by pass the defaults here. This also fixes an thread error at exit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.c

    rd632ffe r10a6bde  
    306306        return VLC_EGENERIC; 
    307307    } 
    308  
    309 #ifdef __APPLE__ 
    310     /* vlc_thread_set_priority needs to query the config, 
    311      * so this is the earliest moment where we can set this */ 
    312     vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW ); 
    313 #endif 
    314308 
    315309    /* Check for short help option */ 
  • src/misc/threads.c

    r418410c r10a6bde  
    625625    if( !p_priv->b_thread ) 
    626626    { 
    627 #ifndef __APPLE__ 
    628627        msg_Err( p_this, "couldn't set priority of non-existent thread" ); 
    629628        return ESRCH; 
    630 #else 
    631 # warning FIXME: this is wrong 
    632         p_priv->b_thread = pthread_self(); 
    633 #endif 
    634629    } 
    635630