Changeset ca12c6bb9fffe9dee9442c5f57c8ad620e4c9c4d
- Timestamp:
- 06/01/08 14:40:13
(3 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1212324013 +0200
- git-parent:
[e31c7798f239aa6ea94c8ba302c663405d4d9a27]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1212324013 +0200
- Message:
Revert "service_discovery: Remove an uneeded hack."
This reverts commit e31c7798f239aa6ea94c8ba302c663405d4d9a27.
Damned, this is a hack to display psz_cat in the playlist.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re31c779 |
rca12c6b |
|
| 220 | 220 | psz_cat ? psz_cat : "(null)" ); |
|---|
| 221 | 221 | |
|---|
| | 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 | |
|---|
| 222 | 238 | p_new_item = playlist_NodeAddInput( p_parent->p_playlist, p_input, p_parent, |
|---|
| 223 | 239 | PLAYLIST_APPEND, PLAYLIST_END, false ); |
|---|