Changeset e4e086ea1176eebb65ed9a329700559d783bd490

Show
Ignore:
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
  • modules/misc/inhibit.c

    r87bc700 re4e086e  
    222222static void Run( intf_thread_t *p_intf ) 
    223223{ 
     224    vlc_object_lock( p_intf ); 
    224225    for(;;) 
    225226    { 
    226227        input_thread_t *p_input; 
    227         vlc_bool_t b_quit; 
    228228 
    229229        /* 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 ) 
    235231            break; 
    236232 
     
    243239                { 
    244240                    vlc_object_release( p_input ); 
    245                     return
     241                    goto end
    246242                } 
    247243            } 
     
    251247                { 
    252248                    vlc_object_release( p_input ); 
    253                     return
     249                    goto end
    254250                } 
    255251            } 
     
    259255        { 
    260256            if( !UnInhibit( p_intf ) ) 
    261                 return
     257                goto end
    262258        } 
    263259    } 
    264 
     260 
     261end: 
     262    vlc_object_unlock( p_intf ); 
     263
  • modules/misc/screensaver.c

    rdbded71 re4e086e  
    143143    { 
    144144        vlc_object_t *p_vout; 
    145         vlc_bool_t b_quit; 
    146145 
    147146        /* Check screensaver every 30 seconds */