Changeset 20caf7888627c636c34dcaedfc1be00f5730950c

Show
Ignore:
Timestamp:
03/09/08 21:35:06 (3 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1220470506 +0300
git-parent:

[fbaf2698e53f6288169fb6ad6e603860559ce026]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1220465512 +0300
Message:

Do not lock the input while talking to D-Bus

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/inhibit.c

    rfbaf269 r20caf78  
    231231        if( p_input ) 
    232232        { 
    233             if( PLAYING_S == p_input->i_state && !p_intf->p_sys->i_cookie ) 
     233            int i_state = p_input->i_state; 
     234            vlc_object_release( p_input ); 
     235 
     236            if( PLAYING_S == i_state && !p_intf->p_sys->i_cookie ) 
    234237            { 
    235238                if( !Inhibit( p_intf ) ) 
    236                 { 
    237                     vlc_object_release( p_input ); 
    238                     goto end; 
    239                 } 
     239                    break; 
    240240            } 
    241241            else if( p_intf->p_sys->i_cookie ) 
    242242            { 
    243243                if( !UnInhibit( p_intf ) ) 
    244                 { 
    245                     vlc_object_release( p_input ); 
    246                     goto end; 
    247                 } 
     244                    break; 
    248245            } 
    249             vlc_object_release( p_input ); 
    250246        } 
    251247        else if( p_intf->p_sys->i_cookie ) 
    252248        { 
    253249            if( !UnInhibit( p_intf ) ) 
    254                 goto end
     250                break
    255251        } 
    256252    }