Changeset 6c385c5033ed68053d3ca1f66bfab28fcc981b98

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

[4ec615d89a46281055b35bdd5a2bc7935b6ae0d8]

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

Don't check for 0 refcount.

If it happens, there is a bug, and we'll assert in _yield.

Files:

Legend:

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

    r4ec615d r6c385c5  
    12981298        if( p_tmp ) 
    12991299        { 
    1300             if( p_tmp->i_object_type == i_type 
    1301                 && vlc_internals( p_tmp )->i_refcount > 0 ) 
     1300            if( p_tmp->i_object_type == i_type ) 
    13021301            { 
    13031302                vlc_object_yield_locked( p_tmp ); 
     
    13151314        { 
    13161315            p_tmp = p_this->pp_children[i]; 
    1317             if( p_tmp->i_object_type == i_type 
    1318                 && vlc_internals( p_tmp )->i_refcount > 0 ) 
     1316            if( p_tmp->i_object_type == i_type ) 
    13191317            { 
    13201318                vlc_object_yield_locked( p_tmp ); 
     
    13541352        { 
    13551353            if( p_tmp->psz_object_name 
    1356                 && !strcmp( p_tmp->psz_object_name, psz_name ) 
    1357                 && vlc_internals( p_tmp )->i_refcount > 0 ) 
     1354                && !strcmp( p_tmp->psz_object_name, psz_name ) ) 
    13581355            { 
    13591356                vlc_object_yield_locked( p_tmp ); 
     
    13721369            p_tmp = p_this->pp_children[i]; 
    13731370            if( p_tmp->psz_object_name 
    1374                 && !strcmp( p_tmp->psz_object_name, psz_name ) 
    1375                 && vlc_internals( p_tmp )->i_refcount > 0 ) 
     1371                && !strcmp( p_tmp->psz_object_name, psz_name ) ) 
    13761372            { 
    13771373                vlc_object_yield_locked( p_tmp );