Changeset 35506f4d2f1f31e36eb8fe09f6cd1cb602065507
- Timestamp:
- 27/09/08 19:18:20
(2 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1222535900 +0200
- git-parent:
[d228fdd28ef03b992c97af16cb842acd7c879831]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1222535900 +0200
- Message:
playlist: items_to_delete is now private.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd228fdd |
r35506f4 |
|
| 161 | 161 | playlist_item_array_t items; /**< Arrays of items */ |
|---|
| 162 | 162 | playlist_item_array_t all_items; /**< Array of items and nodes */ |
|---|
| 163 | | playlist_item_array_t items_to_delete; /**< Array of items and nodes to |
|---|
| 164 | | delete... At the very end. This sucks. */ |
|---|
| 165 | 163 | |
|---|
| 166 | 164 | playlist_item_array_t current; /**< Items currently being played */ |
|---|
| rd228fdd |
r35506f4 |
|
| 88 | 88 | ARRAY_INIT( p_playlist->items ); |
|---|
| 89 | 89 | ARRAY_INIT( p_playlist->all_items ); |
|---|
| 90 | | ARRAY_INIT( p_playlist->items_to_delete ); |
|---|
| | 90 | ARRAY_INIT( pl_priv(p_playlist)->items_to_delete ); |
|---|
| 91 | 91 | ARRAY_INIT( p_playlist->current ); |
|---|
| 92 | 92 | |
|---|
| … | … | |
| 555 | 555 | FOREACH_END(); |
|---|
| 556 | 556 | ARRAY_RESET( p_playlist->all_items ); |
|---|
| 557 | | FOREACH_ARRAY( playlist_item_t *p_del, p_playlist->items_to_delete ) |
|---|
| | 557 | FOREACH_ARRAY( playlist_item_t *p_del, pl_priv(p_playlist)->items_to_delete ) |
|---|
| 558 | 558 | free( p_del->pp_children ); |
|---|
| 559 | 559 | vlc_gc_decref( p_del->p_input ); |
|---|
| 560 | 560 | free( p_del ); |
|---|
| 561 | 561 | FOREACH_END(); |
|---|
| 562 | | ARRAY_RESET( p_playlist->items_to_delete ); |
|---|
| | 562 | ARRAY_RESET( pl_priv(p_playlist)->items_to_delete ); |
|---|
| 563 | 563 | |
|---|
| 564 | 564 | ARRAY_RESET( p_playlist->items ); |
|---|
| rd228fdd |
r35506f4 |
|
| 221 | 221 | * Who wants to add proper memory management? */ |
|---|
| 222 | 222 | uninstall_input_item_observer( p_item ); |
|---|
| 223 | | ARRAY_APPEND( p_item->p_playlist->items_to_delete, p_item); |
|---|
| | 223 | ARRAY_APPEND( pl_priv(p_playlist)->items_to_delete, p_item); |
|---|
| 224 | 224 | return VLC_SUCCESS; |
|---|
| 225 | 225 | } |
|---|
| rd228fdd |
r35506f4 |
|
| 67 | 67 | playlist_fetcher_t fetcher; /**< Meta and art fetcher data */ |
|---|
| 68 | 68 | sout_instance_t *p_sout; /**< Kept sout instance */ |
|---|
| | 69 | |
|---|
| | 70 | playlist_item_array_t items_to_delete; /**< Array of items and nodes to |
|---|
| | 71 | delete... At the very end. This sucks. */ |
|---|
| 69 | 72 | |
|---|
| 70 | 73 | struct playlist_services_discovery_support_t { |
|---|