Changeset 04cfbc32da890e7ce71d4bc5e150c581cd9f48f9
- Timestamp:
- 17/04/08 00:31:17
(6 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1208385077 +0200
- git-parent:
[b2881da96925a79bfe0b5ae7027d05c4366943e3]
- git-author:
- Rafaël Carré <funman@videolan.org> 1208385077 +0200
- Message:
Remove unused i_enabled member from the playlist struct
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r53b281b |
r04cfbc3 |
|
| 171 | 171 | int i_sds; /**< Number of service discovery modules */ |
|---|
| 172 | 172 | |
|---|
| 173 | | int i_enabled; /**< How many items are enabled ? */ |
|---|
| 174 | | |
|---|
| 175 | 173 | playlist_item_array_t items; /**< Arrays of items */ |
|---|
| 176 | 174 | playlist_item_array_t all_items; /**< Array of items and nodes */ |
|---|
| r17dfbc8 |
r04cfbc3 |
|
| 509 | 509 | ":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); |
|---|
| 510 | 510 | } |
|---|
| 511 | | else if( THEPL->items.i_size && THEPL->i_enabled ) |
|---|
| | 511 | else if( THEPL->items.i_size ) |
|---|
| 512 | 512 | addMIMStaticEntry( p_intf, menu, qtr( "Play" ), "", |
|---|
| 513 | 513 | ":/pixmaps/play_16px.png", SLOT( togglePlayPause() ) ); |
|---|
| r449fd28 |
r04cfbc3 |
|
| 639 | 639 | if( p_playlist == NULL ) return; |
|---|
| 640 | 640 | |
|---|
| 641 | | if( p_playlist->i_size && p_playlist->i_enabled ) |
|---|
| | 641 | if( p_playlist->i_size ) |
|---|
| 642 | 642 | { |
|---|
| 643 | 643 | vlc_value_t state; |
|---|
| r449fd28 |
r04cfbc3 |
|
| 275 | 275 | { |
|---|
| 276 | 276 | b_state = SendMessage( enabled_checkbox, BM_GETCHECK, 0, 0 ); |
|---|
| 277 | | if( b_old_enabled == false && (b_state & BST_CHECKED) ) |
|---|
| 278 | | p_playlist->i_enabled ++; |
|---|
| 279 | | else if( b_old_enabled == true && (b_state & BST_UNCHECKED) ) |
|---|
| 280 | | p_playlist->i_enabled --; |
|---|
| 281 | | |
|---|
| 282 | 277 | vlc_object_release( p_playlist ); |
|---|
| 283 | 278 | } |
|---|
| r449fd28 |
r04cfbc3 |
|
| 1081 | 1081 | if( p_playlist == NULL ) return; |
|---|
| 1082 | 1082 | |
|---|
| 1083 | | if( !playlist_IsEmpty(p_playlist) && p_playlist->i_enabled ) |
|---|
| | 1083 | if( !playlist_IsEmpty(p_playlist) ) |
|---|
| 1084 | 1084 | { |
|---|
| 1085 | 1085 | vlc_value_t state; |
|---|
| r449fd28 |
r04cfbc3 |
|
| 809 | 809 | ARRAY_APPEND(p_playlist->items, p_item); |
|---|
| 810 | 810 | ARRAY_APPEND(p_playlist->all_items, p_item); |
|---|
| 811 | | p_playlist->i_enabled ++; |
|---|
| 812 | 811 | |
|---|
| 813 | 812 | if( i_pos == PLAYLIST_END ) |
|---|