]> git.sesse.net Git - vlc/commitdiff
playlist/services_discovery.c: Rework category handling.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 18 Aug 2007 04:09:55 +0000 (04:09 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 18 Aug 2007 04:09:55 +0000 (04:09 +0000)
src/playlist/services_discovery.c

index 433a830387dedc4b761e1e17efd53f1c1898ea1e..ddf87ac9fd557fd556754261f95d09d27fbf18b2 100644 (file)
@@ -185,9 +185,9 @@ static void playlist_sd_item_added( const vlc_event_t * p_event, void * user_dat
 
     msg_Dbg( p_parent->p_playlist, "Adding %s in %s", p_input->psz_name, psz_cat );
 
-    /* If p_child is in root category (this is clearly a hack) and we have a cat*/
+    /* If p_parent is in root category (this is clearly a hack) and we have a cat */
     if( !EMPTY_STR(psz_cat) &&
-        p_parent == playlist_ItemToNode( p_parent->p_playlist, p_parent, VLC_FALSE ) )
+        p_parent->p_parent == p_parent->p_playlist->p_root_category )
     {
         /* */
         playlist_item_t * p_cat;