[vlc-devel] commit: Remove children kill hack ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 10 18:37:45 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 10 19:37:21 2009 +0200| [cbe6109463298afc021776290e0d762516ebf85e] | committer: Rémi Denis-Courmont 

Remove children kill hack

Whatever would need this would be a buggy SD plugin.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cbe6109463298afc021776290e0d762516ebf85e
---

 src/playlist/services_discovery.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index 8649574..406f5ff 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -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 );




More information about the vlc-devel mailing list