Changeset ad14bac870b421457a3fbe7b0a716b72a1b27006

Show
Ignore:
Timestamp:
18/08/08 19:37:50 (4 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1219081070 +0200
git-parent:

[ed3b76b3715eb3acbe5cb317ee3b7a13f7840d26]

git-author:
Laurent Aimar <fenrir@videolan.org> 1219057705 +0200
Message:

Fixed a potential race condition in interaction.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/interface/interaction.c

    r4ca1e8b rad14bac  
    471471    interaction_t *p_interaction = InteractionGet( p_this ); 
    472472 
     473    if( !p_interaction ) 
     474        return VLC_EGENERIC; 
     475 
    473476    /* Get an id, if we don't already have one */ 
     477    vlc_object_lock( p_interaction ); 
    474478    if( p_dialog->i_id == 0 ) 
    475479        p_dialog->i_id = ++p_interaction->i_last_id; 
     480    vlc_object_unlock( p_interaction ); 
    476481 
    477482    if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT )