Changeset be8dfea8d22bb8bd66ef31dcf0aa845fd095e4f0
- Timestamp:
- 15/10/07 00:52:53
(1 year ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1192402373 +0000
- git-parent:
[8cce17627c00e62af3f38d7e45258b30ab7a53bc]
- git-author:
- Rafaël Carré <funman@videolan.org> 1192402373 +0000
- Message:
upnp intel: reverts [22521] to make it compile. The module should be rewritten to not use any playlist code
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r83a9495 |
rbe8dfea |
|
| 43 | 43 | |
|---|
| 44 | 44 | |
|---|
| | 45 | // VLC handle |
|---|
| | 46 | |
|---|
| | 47 | struct services_discovery_sys_t |
|---|
| | 48 | { |
|---|
| | 49 | playlist_item_t *p_node_cat; |
|---|
| | 50 | playlist_item_t *p_node_one; |
|---|
| | 51 | }; |
|---|
| | 52 | |
|---|
| | 53 | |
|---|
| 45 | 54 | // Constants |
|---|
| 46 | 55 | |
|---|
| … | … | |
| 269 | 278 | { |
|---|
| 270 | 279 | services_discovery_t *p_sd = ( services_discovery_t* )p_this; |
|---|
| | 280 | services_discovery_sys_t *p_sys = ( services_discovery_sys_t * ) |
|---|
| | 281 | malloc( sizeof( services_discovery_sys_t ) ); |
|---|
| | 282 | |
|---|
| 271 | 283 | p_sd->pf_run = Run; |
|---|
| | 284 | p_sd->p_sys = p_sys; |
|---|
| 272 | 285 | |
|---|
| 273 | 286 | /* Create our playlist node */ |
|---|
| 274 | | services_discovery_SetLocalizedName( p_sd, _("Devices") ); |
|---|
| | 287 | playlist_NodesPairCreate( pl_Get( p_sd ), _("Devices"), |
|---|
| | 288 | &p_sys->p_node_cat, &p_sys->p_node_one, |
|---|
| | 289 | VLC_TRUE ); |
|---|
| 275 | 290 | |
|---|
| 276 | 291 | return VLC_SUCCESS; |
|---|
| … | … | |
| 279 | 294 | static void Close( vlc_object_t *p_this ) |
|---|
| 280 | 295 | { |
|---|
| | 296 | services_discovery_t *p_sd = ( services_discovery_t* )p_this; |
|---|
| | 297 | services_discovery_sys_t *p_sys = p_sd->p_sys; |
|---|
| | 298 | |
|---|
| | 299 | playlist_NodeDelete( pl_Get( p_sd ), p_sys->p_node_one, VLC_TRUE, |
|---|
| | 300 | VLC_TRUE ); |
|---|
| | 301 | playlist_NodeDelete( pl_Get( p_sd ), p_sys->p_node_cat, VLC_TRUE, |
|---|
| | 302 | VLC_TRUE ); |
|---|
| | 303 | |
|---|
| | 304 | free( p_sys ); |
|---|
| 281 | 305 | } |
|---|
| 282 | 306 | |
|---|
| … | … | |
| 893 | 917 | playlist_item_t* node = playlist_NodeCreate( pl_Get( _cookie->serviceDiscovery ), |
|---|
| 894 | 918 | name, |
|---|
| 895 | | _cookie->serviceDiscovery->p_cat, 0 ); |
|---|
| | 919 | _cookie->serviceDiscovery->p_sys->p_node_cat, 0 ); |
|---|
| 896 | 920 | free( name ); |
|---|
| 897 | 921 | s->setPlaylistNode( node ); |
|---|