Changeset 10a6bde56813620846826fed6979b2548a6457ea
- 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
| rd632ffe |
r10a6bde |
|
| 306 | 306 | return VLC_EGENERIC; |
|---|
| 307 | 307 | } |
|---|
| 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 |
|---|
| 314 | 308 | |
|---|
| 315 | 309 | /* Check for short help option */ |
|---|
| r418410c |
r10a6bde |
|
| 625 | 625 | if( !p_priv->b_thread ) |
|---|
| 626 | 626 | { |
|---|
| 627 | | #ifndef __APPLE__ |
|---|
| 628 | 627 | msg_Err( p_this, "couldn't set priority of non-existent thread" ); |
|---|
| 629 | 628 | return ESRCH; |
|---|
| 630 | | #else |
|---|
| 631 | | # warning FIXME: this is wrong |
|---|
| 632 | | p_priv->b_thread = pthread_self(); |
|---|
| 633 | | #endif |
|---|
| 634 | 629 | } |
|---|
| 635 | 630 | |
|---|