Changeset 4ec615d89a46281055b35bdd5a2bc7935b6ae0d8

Show
Ignore:
Timestamp:
05/07/08 21:43:53 (3 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210189433 +0300
git-parent:

[19bd84c786fecb77531073b697aad4d3c221d15d]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210189433 +0300
Message:

vlc_object_find*: don't check that refcount is zero

Besides, we assert that this isn't the case right before...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/objects.c

    r19bd84c r4ec615d  
    745745    vlc_mutex_lock( &structure_lock ); 
    746746 
     747    assert( vlc_internals( p_this )->i_refcount > 0 ); 
     748 
    747749    /* If we are of the requested type ourselves, don't look further */ 
    748     if( !(i_mode & FIND_STRICT) && p_this->i_object_type == i_type 
    749         && vlc_internals( p_this )->i_refcount > 0 ) 
     750    if( !(i_mode & FIND_STRICT) && p_this->i_object_type == i_type ) 
    750751    { 
    751752        vlc_object_yield_locked( p_this ); 
     
    803804    if( !(i_mode & FIND_STRICT) 
    804805        && p_this->psz_object_name 
    805         && !strcmp( p_this->psz_object_name, psz_name ) 
    806         && vlc_internals( p_this )->i_refcount > 0 ) 
     806        && !strcmp( p_this->psz_object_name, psz_name ) ) 
    807807    { 
    808808        vlc_object_yield_locked( p_this );