[vlc-devel] commit: service_discovery: Remove an uneeded hack. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Jun 1 14:36:01 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun  1 14:29:37 2008 +0200| [e31c7798f239aa6ea94c8ba302c663405d4d9a27]

service_discovery: Remove an uneeded hack.

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

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

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index 6f3cda6..e7d9249 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -219,22 +219,6 @@ static void playlist_sd_item_added( const vlc_event_t * p_event, void * user_dat
                 p_input->psz_name ? p_input->psz_name : "(null)",
                 psz_cat ? psz_cat : "(null)" );
 
-    /* If p_parent is in root category (this is clearly a hack) and we have a cat */
-    if( !EMPTY_STR(psz_cat) &&
-        p_parent->p_parent == p_parent->p_playlist->p_root_category )
-    {
-        /* */
-        playlist_item_t * p_cat;
-        p_cat = playlist_ChildSearchName( p_parent, psz_cat );
-        if( !p_cat )
-        {
-            p_cat = playlist_NodeCreate( p_parent->p_playlist, psz_cat,
-                                         p_parent, 0, NULL );
-            p_cat->i_flags &= ~PLAYLIST_SKIP_FLAG;
-        }
-        p_parent = p_cat;
-    }
-
     p_new_item = playlist_NodeAddInput( p_parent->p_playlist, p_input, p_parent,
                                         PLAYLIST_APPEND, PLAYLIST_END, false );
     if( p_new_item )




More information about the vlc-devel mailing list