Changeset 8ffdf4dc62347972158e56f2c2b1da68629418eb
- Timestamp:
- 08/18/07 07:05:09
(1 year ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1187413509 +0000
- git-parent:
[8efc07b1b8b63e8ea49e8b60fcd53b1ee1fb0a3d]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1187413509 +0000
- Message:
modules/services_discovery/bonjour.c: Use the new service discovery API.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r85ff146 |
r8ffdf4d |
|
| 182 | 182 | if( p_input != NULL ) |
|---|
| 183 | 183 | { |
|---|
| 184 | | playlist_item_t *p_item; |
|---|
| 185 | | p_item = playlist_NodeAddInput( p_sys->p_playlist, p_input, |
|---|
| 186 | | p_sys->p_node_cat, |
|---|
| 187 | | PLAYLIST_APPEND, PLAYLIST_END, |
|---|
| 188 | | VLC_FALSE); |
|---|
| 189 | | p_item->i_flags &= ~PLAYLIST_SKIP_FLAG; |
|---|
| 190 | | p_item->i_flags &= ~PLAYLIST_SAVE_FLAG; |
|---|
| 191 | | p_item = playlist_NodeAddInput( p_sys->p_playlist, p_input, |
|---|
| 192 | | p_sys->p_node_one, |
|---|
| 193 | | PLAYLIST_APPEND, PLAYLIST_END, |
|---|
| 194 | | VLC_FALSE ); |
|---|
| 195 | | p_item->i_flags &= ~PLAYLIST_SKIP_FLAG; |
|---|
| 196 | | p_item->i_flags &= ~PLAYLIST_SAVE_FLAG; |
|---|
| | 184 | services_discovery_AddItem( p_sd, p_input, NULL ); |
|---|
| 197 | 185 | } |
|---|
| 198 | 186 | } |
|---|
| … | … | |
| 309 | 297 | } |
|---|
| 310 | 298 | |
|---|
| 311 | | p_sys->p_node_cat = playlist_NodeCreate( p_sys->p_playlist, _("Bonjour"), |
|---|
| 312 | | p_sys->p_playlist->p_root_category, 0 ); |
|---|
| 313 | | p_sys->p_node_one = playlist_NodeCreate( p_sys->p_playlist, _("Bonjour"), |
|---|
| 314 | | p_sys->p_playlist->p_root_onelevel, 0 ); |
|---|
| 315 | | p_sys->p_node_one->p_input->i_id = p_sys->p_node_cat->p_input->i_id; |
|---|
| 316 | | |
|---|
| 317 | | p_sys->p_node_one->i_flags |= PLAYLIST_RO_FLAG; |
|---|
| 318 | | p_sys->p_node_cat->i_flags |= PLAYLIST_RO_FLAG; |
|---|
| 319 | | p_sys->p_node_one->i_flags |= PLAYLIST_SKIP_FLAG; |
|---|
| 320 | | p_sys->p_node_cat->i_flags |= PLAYLIST_SKIP_FLAG; |
|---|
| | 299 | services_discovery_SetLocalizedName( p_sd, _("Bonjour") ); |
|---|
| 321 | 300 | |
|---|
| 322 | 301 | p_sd->pf_run = Run; |
|---|