Changeset ef81e665be4bf3a169443a8af0cce89af39ce4de
- Timestamp:
- 03/30/08 17:08:18
(5 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1206889698 +0200
- git-parent:
[a11817c9ba314e5f4f13d33c24d248f51b6ad2d3]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1206889698 +0200
- Message:
playlist: Use PL_LOCK and PL_UNLOCK.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra11817c |
ref81e66 |
|
| 152 | 152 | while( vlc_object_alive( p_playlist ) ) |
|---|
| 153 | 153 | { |
|---|
| 154 | | vlc_object_unlock( p_playlist ); |
|---|
| | 154 | PL_UNLOCK; |
|---|
| 155 | 155 | playlist_MainLoop( p_playlist ); |
|---|
| 156 | | vlc_object_lock( p_playlist ); |
|---|
| | 156 | PL_LOCK; |
|---|
| 157 | 157 | |
|---|
| 158 | 158 | if( p_playlist->b_cant_sleep ) |
|---|
| 159 | 159 | { |
|---|
| 160 | 160 | /* 100 ms is an acceptable delay for playlist operations */ |
|---|
| 161 | | vlc_object_unlock( p_playlist ); |
|---|
| | 161 | PL_UNLOCK; |
|---|
| 162 | 162 | msleep( INTF_IDLE_SLEEP*2 ); |
|---|
| 163 | | vlc_object_lock( p_playlist ); |
|---|
| | 163 | PL_LOCK; |
|---|
| 164 | 164 | } |
|---|
| 165 | 165 | else |
|---|