Changeset e4e086ea1176eebb65ed9a329700559d783bd490
- Timestamp:
- 22/10/07 20:01:34
(1 year ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1193076094 +0000
- git-parent:
[cd347ef8007dfd3b2f941bf14049877dd246d373]
- git-author:
- Rafaël Carré <funman@videolan.org> 1193076094 +0000
- Message:
inhibit: apply [22797] since it's the same main loop than screensaver.c
screensaver: removes unused variable
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r87bc700 |
re4e086e |
|
| 222 | 222 | static void Run( intf_thread_t *p_intf ) |
|---|
| 223 | 223 | { |
|---|
| | 224 | vlc_object_lock( p_intf ); |
|---|
| 224 | 225 | for(;;) |
|---|
| 225 | 226 | { |
|---|
| 226 | 227 | input_thread_t *p_input; |
|---|
| 227 | | vlc_bool_t b_quit; |
|---|
| 228 | 228 | |
|---|
| 229 | 229 | /* Check playing state every 30 seconds */ |
|---|
| 230 | | vlc_object_lock( p_intf ); |
|---|
| 231 | | b_quit = vlc_object_timedwait( p_intf, mdate() + 30000000 ) < 0; |
|---|
| 232 | | vlc_object_unlock( p_intf ); |
|---|
| 233 | | |
|---|
| 234 | | if( b_quit ) |
|---|
| | 230 | if( vlc_object_timedwait( p_intf, mdate() + 30000000 ) < 0 ) |
|---|
| 235 | 231 | break; |
|---|
| 236 | 232 | |
|---|
| … | … | |
| 243 | 239 | { |
|---|
| 244 | 240 | vlc_object_release( p_input ); |
|---|
| 245 | | return; |
|---|
| | 241 | goto end; |
|---|
| 246 | 242 | } |
|---|
| 247 | 243 | } |
|---|
| … | … | |
| 251 | 247 | { |
|---|
| 252 | 248 | vlc_object_release( p_input ); |
|---|
| 253 | | return; |
|---|
| | 249 | goto end; |
|---|
| 254 | 250 | } |
|---|
| 255 | 251 | } |
|---|
| … | … | |
| 259 | 255 | { |
|---|
| 260 | 256 | if( !UnInhibit( p_intf ) ) |
|---|
| 261 | | return; |
|---|
| | 257 | goto end; |
|---|
| 262 | 258 | } |
|---|
| 263 | 259 | } |
|---|
| 264 | | } |
|---|
| | 260 | |
|---|
| | 261 | end: |
|---|
| | 262 | vlc_object_unlock( p_intf ); |
|---|
| | 263 | } |
|---|
| rdbded71 |
re4e086e |
|
| 143 | 143 | { |
|---|
| 144 | 144 | vlc_object_t *p_vout; |
|---|
| 145 | | vlc_bool_t b_quit; |
|---|
| 146 | 145 | |
|---|
| 147 | 146 | /* Check screensaver every 30 seconds */ |
|---|