p_tmp = p_this->p_parent;
if( p_tmp )
{
- if( p_tmp->i_object_type == i_type
- && vlc_internals( p_tmp )->i_refcount > 0 )
+ if( p_tmp->i_object_type == i_type )
{
vlc_object_yield_locked( p_tmp );
return p_tmp;
for( i = p_this->i_children; i--; )
{
p_tmp = p_this->pp_children[i];
- if( p_tmp->i_object_type == i_type
- && vlc_internals( p_tmp )->i_refcount > 0 )
+ if( p_tmp->i_object_type == i_type )
{
vlc_object_yield_locked( p_tmp );
return p_tmp;
if( p_tmp )
{
if( p_tmp->psz_object_name
- && !strcmp( p_tmp->psz_object_name, psz_name )
- && vlc_internals( p_tmp )->i_refcount > 0 )
+ && !strcmp( p_tmp->psz_object_name, psz_name ) )
{
vlc_object_yield_locked( p_tmp );
return p_tmp;
{
p_tmp = p_this->pp_children[i];
if( p_tmp->psz_object_name
- && !strcmp( p_tmp->psz_object_name, psz_name )
- && vlc_internals( p_tmp )->i_refcount > 0 )
+ && !strcmp( p_tmp->psz_object_name, psz_name ) )
{
vlc_object_yield_locked( p_tmp );
return p_tmp;