Changeset a3e989d4523e9252f53017fd030db87ac5691e00

Show
Ignore:
Timestamp:
17/06/08 20:43:32 (4 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1213728212 +0300
git-parent:

[337933ee7056470f0a253aa582a08807c8c01945]

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

Remove the last direct use of object_wait

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.h

    rbd054d3 ra3e989d  
    142142vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type, 
    143143                   const char *psz_type); 
     144 
     145/* Signal an object without checking for locking consistency. This is wrong. */ 
     146#ifdef __GNUC__ 
     147__attribute__((deprecated)) 
     148#endif 
     149static inline void 
     150vlc_object_signal_maybe (vlc_object_t *p_this) 
     151{ 
     152    vlc_cond_signal (&p_this->object_wait); 
     153} 
    144154 
    145155/** 
  • src/playlist/control.c

    r337933e ra3e989d  
    163163        break; 
    164164    } 
    165     vlc_cond_signal( &p_playlist->object_wait ); 
     165    vlc_object_signal_maybe( VLC_OBJECT(p_playlist) ); 
    166166 
    167167    return VLC_SUCCESS; 
  • src/playlist/item.c

    r337933e ra3e989d  
    725725        i_ret = TreeMove( p_playlist, p_item, p_node, i_newpos ); 
    726726    p_playlist->b_reset_currently_playing = true; 
    727     vlc_cond_signal( &p_playlist->object_wait ); 
     727    vlc_object_signal_maybe( VLC_OBJECT(p_playlist) ); 
    728728    return i_ret; 
    729729} 
     
    751751    p_playlist->b_reset_currently_playing = true; 
    752752    if( b_signal ) 
    753         vlc_cond_signal( &p_playlist->object_wait ); 
     753        vlc_object_signal_maybe( p_playlist ); 
    754754    var_Set( p_playlist, "item-append", val ); 
    755755    free( p_add ); 
     
    809809            input_StopThread( p_playlist->p_input ); 
    810810        p_playlist->request.i_status = PLAYLIST_RUNNING; 
    811         vlc_cond_signal( &p_playlist->object_wait ); 
     811        vlc_object_signal_maybe( VLC_OBJECT(p_playlist) ); 
    812812    } 
    813813    /* Preparse if PREPARSE or SPREPARSE & not enough meta */ 
     
    891891            p_playlist->request.p_item = NULL; 
    892892            msg_Info( p_playlist, "stopping playback" ); 
    893             vlc_cond_signal( &p_playlist->object_wait ); 
     893            vlc_object_signal_maybe( VLC_OBJECT(p_playlist) ); 
    894894        } 
    895895        b_delay_deletion = true; 
  • src/playlist/search.c

    rd666030 ra3e989d  
    168168    p_playlist->b_reset_currently_playing = true; 
    169169    playlist_LiveSearchUpdateInternal( p_playlist, p_root, psz_string ); 
    170     vlc_cond_signal( &p_playlist->object_wait ); 
     170    vlc_object_signal_maybe( VLC_OBJECT(p_playlist) ); 
    171171    return VLC_SUCCESS; 
    172172} 
  • src/video_output/vout_intf.c

    r7e413aa ra3e989d  
    545545            msg_Err( p_vout, "Could not get snapshot" ); 
    546546            image_HandlerDelete( p_image ); 
    547             vlc_cond_signal( &p_dest->object_wait ); 
     547            vlc_object_signal_maybe( VLC_OBJECT(p_dest) ); 
    548548            vlc_object_release( p_dest ); 
    549549            return VLC_EGENERIC; 
     
    557557            block_Release( p_block ); 
    558558            image_HandlerDelete( p_image ); 
    559             vlc_cond_signal( &p_dest->object_wait ); 
     559            vlc_object_signal_maybe( VLC_OBJECT(p_dest) ); 
    560560            vlc_object_release( p_dest ); 
    561561            return VLC_ENOMEM; 
     
    574574            free( p_snapshot ); 
    575575            image_HandlerDelete( p_image ); 
    576             vlc_cond_signal( &p_dest->object_wait ); 
     576            vlc_object_signal_maybe( VLC_OBJECT(p_dest) ); 
    577577            vlc_object_release( p_dest ); 
    578578            return VLC_ENOMEM; 
     
    585585 
    586586        /* Unlock the object */ 
    587         vlc_cond_signal( &p_dest->object_wait ); 
     587        vlc_object_signal_maybe( VLC_OBJECT(p_dest) ); 
    588588        vlc_object_release( p_dest ); 
    589589