Changeset e1acded83bdd7b610ec4e37ae8174d67809b09d3

Show
Ignore:
Timestamp:
06/05/08 17:52:06 (7 months ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1210089126 +0200
git-parent:

[0843673ad0d824fd8dad3daf26663a960024a23b]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1210089126 +0200
Message:

use PL_**LOCK instead of vlc_mutex_lock

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/playlist.m

    r4ca10a4 re1acded  
    585585    { 
    586586        int i; 
    587         vlc_mutex_lock( &p_playlist->object_lock )
     587        PL_LOCK
    588588 
    589589        if( b_check ) 
     
    598598                { 
    599599                    vlc_object_release( p_playlist ); 
    600                     vlc_mutex_unlock( &p_playlist->object_lock )
     600                    PL_UNLOCK
    601601                    return NO; 
    602602                } 
     
    609609            if( p_temp_item == p_node ) 
    610610            { 
    611                 vlc_mutex_unlock( &p_playlist->object_lock )
    612                 vlc_object_release( p_playlist ); 
    613                 return YES; 
    614             } 
    615         } 
    616         vlc_mutex_unlock( &p_playlist->object_lock )
     611                PL_UNLOCK
     612                vlc_object_release( p_playlist ); 
     613                return YES; 
     614            } 
     615        } 
     616        PL_UNLOCK
    617617    } 
    618618 
     
    883883    if( p_item->i_children > -1 ) // the item is a node 
    884884    { 
    885         vlc_mutex_lock( &p_playlist->object_lock )
     885        PL_LOCK
    886886        playlist_RecursiveNodeSort( p_playlist, p_item, i_mode, ORDER_NORMAL ); 
    887         vlc_mutex_unlock( &p_playlist->object_lock )
     887        PL_UNLOCK
    888888    } 
    889889    else 
    890890    { 
    891         vlc_mutex_lock( &p_playlist->object_lock )
     891        PL_LOCK
    892892        playlist_RecursiveNodeSort( p_playlist, 
    893893                p_item->p_parent, i_mode, ORDER_NORMAL ); 
    894         vlc_mutex_unlock( &p_playlist->object_lock )
     894        PL_UNLOCK
    895895    } 
    896896    vlc_object_release( p_playlist ); 
     
    10891089        NSString *o_current_name, *o_current_author; 
    10901090 
    1091         vlc_mutex_lock( &p_playlist->object_lock )
     1091        PL_LOCK
    10921092        o_current_name = [NSString stringWithUTF8String: 
    10931093            p_item->pp_children[i_current]->p_input->psz_name]; 
     
    10961096        o_current_author = [NSString stringWithUTF8String: psz_temp]; 
    10971097        free( psz_temp); 
    1098         vlc_mutex_unlock( &p_playlist->object_lock )
     1098        PL_UNLOCK
    10991099 
    11001100        if( p_selected_item == p_item->pp_children[i_current] && 
     
    15581558            } 
    15591559 
    1560             vlc_mutex_lock( &p_playlist->object_lock )
    1561             // Acually detach the item from the old position 
     1560            PL_LOCK
     1561            // Actually detach the item from the old position 
    15621562            if( playlist_NodeRemoveItem( p_playlist, p_item, p_old_parent ) == 
    15631563                VLC_SUCCESS ) 
     
    15811581                playlist_NodeInsert( p_playlist, p_item, p_new_parent, i_new_index ); 
    15821582            } 
    1583             vlc_mutex_unlock( &p_playlist->object_lock )
     1583            PL_UNLOCK
    15841584        } 
    15851585        [self playlistUpdated];