Commit cbe61094 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove children kill hack

Whatever would need this would be a buggy SD plugin.
parent 740387c6
......@@ -77,18 +77,6 @@ services_discovery_t *vlc_sd_Create( vlc_object_t *p_super )
return p_sd;
}
static void ObjectKillChildrens( vlc_object_t *p_obj )
{
vlc_list_t *p_list;
int i;
vlc_object_kill( p_obj );
p_list = vlc_list_children( p_obj );
for( i = 0; i < p_list->i_count; i++ )
ObjectKillChildrens( p_list->p_values[i].p_object );
vlc_list_release( p_list );
}
/***********************************************************************
* Stop
***********************************************************************/
......@@ -120,8 +108,6 @@ void vlc_sd_Stop ( services_discovery_t * p_sd )
.type = vlc_ServicesDiscoveryEnded
};
ObjectKillChildrens( VLC_OBJECT(p_sd) );
vlc_event_send( &p_sd->event_manager, &event );
module_unneed( p_sd, p_sd->p_module );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment