Changeset e31c7798f239aa6ea94c8ba302c663405d4d9a27

Show
Ignore:
Timestamp:
06/01/08 14:37:37 (3 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1212323857 +0200
git-parent:

[dd9d6f4ed86df260b6447a4a1d8db5a5ccaeee48]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1212323377 +0200
Message:

service_discovery: Remove an uneeded hack.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/services_discovery.c

    rd666030 re31c779  
    220220                psz_cat ? psz_cat : "(null)" ); 
    221221 
    222     /* If p_parent is in root category (this is clearly a hack) and we have a cat */ 
    223     if( !EMPTY_STR(psz_cat) && 
    224         p_parent->p_parent == p_parent->p_playlist->p_root_category ) 
    225     { 
    226         /* */ 
    227         playlist_item_t * p_cat; 
    228         p_cat = playlist_ChildSearchName( p_parent, psz_cat ); 
    229         if( !p_cat ) 
    230         { 
    231             p_cat = playlist_NodeCreate( p_parent->p_playlist, psz_cat, 
    232                                          p_parent, 0, NULL ); 
    233             p_cat->i_flags &= ~PLAYLIST_SKIP_FLAG; 
    234         } 
    235         p_parent = p_cat; 
    236     } 
    237  
    238222    p_new_item = playlist_NodeAddInput( p_parent->p_playlist, p_input, p_parent, 
    239223                                        PLAYLIST_APPEND, PLAYLIST_END, false );