Changeset 651e249197e50e39b02c011d77f0e0f1373ba590
- Timestamp:
- 05/02/08 18:25:10
(2 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1209745510 +0300
- git-parent:
[89d56df65a72b099ce6a10bc35c8f4e71dce4f5f]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1209745510 +0300
- Message:
Use var_AcquireMutex for the quicktime lock.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r89d56df |
r651e249 |
|
| 77 | 77 | |
|---|
| 78 | 78 | vlc_mutex_t config_lock; ///< Lock for the config file |
|---|
| 79 | | #ifdef __APPLE__ |
|---|
| 80 | | vlc_mutex_t quicktime_lock; ///< QT is not thread safe on OSX |
|---|
| 81 | | #endif |
|---|
| 82 | 79 | |
|---|
| 83 | 80 | /* Structure storing the action name / key associations */ |
|---|
| r449fd28 |
r651e249 |
|
| 166 | 166 | } |
|---|
| 167 | 167 | |
|---|
| 168 | | /* Damn QT isn't thread safe. so keep a lock in the p_libvlc object */ |
|---|
| 169 | | vlc_mutex_lock( &p_vout->p_libvlc->quicktime_lock ); |
|---|
| | 168 | /* Damn QT isn't thread safe, so keep a process-wide lock */ |
|---|
| | 169 | vlc_mutex_t *p_qtlock = var_AcquireMutex( "quicktime_mutex" ); |
|---|
| 170 | 170 | |
|---|
| 171 | 171 | /* Can we find the right chroma ? */ |
|---|
| … | … | |
| 180 | 180 | nil, &p_vout->p_sys->img_dc ); |
|---|
| 181 | 181 | } |
|---|
| 182 | | vlc_mutex_unlock( &p_vout->p_libvlc->quicktime_lock ); |
|---|
| | 182 | vlc_mutex_unlock( p_qtlock ); |
|---|
| 183 | 183 | |
|---|
| 184 | 184 | if( err == noErr && p_vout->p_sys->img_dc != 0 ) |
|---|
| r77d07c4 |
r651e249 |
|
| 213 | 213 | vlc_mutex_init( p_libvlc, &p_libvlc->config_lock ); |
|---|
| 214 | 214 | #ifdef __APPLE__ |
|---|
| 215 | | vlc_mutex_init( p_libvlc, &p_libvlc->quicktime_lock ); |
|---|
| 216 | 215 | vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW ); |
|---|
| 217 | 216 | #endif |
|---|