Changeset 6baf831c58de58106c0f3ca82211235922948c8a
- Timestamp:
- 23/08/08 00:14:01
(3 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1219443241 -0700
- git-parent:
[6648b4c11eb12f5bd6cbc1a883fa8165bbb8d805]
- git-author:
- Geoffroy Couprie <geo.couprie@gmail.com> 1219410755 +0200
- Message:
Add tree-view for SD only
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3f5d4a9 |
r6baf831 |
|
| 74 | 74 | |
|---|
| 75 | 75 | uint8_t i_type; /**< Type (file, disc, ...) */ |
|---|
| | 76 | bool b_prefers_tree; /**< Do we prefer being displayed as tree*/ |
|---|
| 76 | 77 | |
|---|
| 77 | 78 | int i_categories; /**< Number of info categories */ |
|---|
| r7b3f256 |
r6baf831 |
|
| 544 | 544 | |
|---|
| 545 | 545 | p_input->i_type = i_type; |
|---|
| | 546 | p_input->b_prefers_tree = false; |
|---|
| 546 | 547 | |
|---|
| 547 | 548 | if( p_input->i_type == ITEM_TYPE_UNKNOWN ) |
|---|
| r4ca1e8b |
r6baf831 |
|
| 356 | 356 | if( !p_sds ) |
|---|
| 357 | 357 | return VLC_ENOMEM; |
|---|
| | 358 | |
|---|
| | 359 | /* We want tree-view for service directory */ |
|---|
| | 360 | p_one->p_input->b_prefers_tree = true; |
|---|
| 358 | 361 | p_sds->p_sd = p_sd; |
|---|
| 359 | 362 | p_sds->p_one = p_one; |
|---|
| rd11fd0d |
r6baf831 |
|
| 337 | 337 | if( p_node->p_parent == p_playlist->p_root_category ) |
|---|
| 338 | 338 | { |
|---|
| 339 | | if( p_playlist->b_tree ) |
|---|
| | 339 | if( p_playlist->b_tree || p_node->p_input->b_prefers_tree ) |
|---|
| 340 | 340 | return p_node; |
|---|
| 341 | 341 | for( i = 0 ; i< p_playlist->p_root_onelevel->i_children; i++ ) |
|---|
| … | … | |
| 348 | 348 | else if( p_node->p_parent == p_playlist->p_root_onelevel ) |
|---|
| 349 | 349 | { |
|---|
| 350 | | if( !p_playlist->b_tree ) |
|---|
| | 350 | if( !p_playlist->b_tree || !p_node->p_input->b_prefers_tree ) |
|---|
| 351 | 351 | return p_node; |
|---|
| 352 | 352 | for( i = 0 ; i< p_playlist->p_root_category->i_children; i++ ) |
|---|