Changeset 6baf831c58de58106c0f3ca82211235922948c8a

Show
Ignore:
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
  • include/vlc_input.h

    r3f5d4a9 r6baf831  
    7474 
    7575    uint8_t    i_type;               /**< Type (file, disc, ...) */ 
     76    bool b_prefers_tree;             /**< Do we prefer being displayed as tree*/ 
    7677 
    7778    int        i_categories;         /**< Number of info categories */ 
  • src/input/item.c

    r7b3f256 r6baf831  
    544544 
    545545    p_input->i_type = i_type; 
     546    p_input->b_prefers_tree = false; 
    546547 
    547548    if( p_input->i_type == ITEM_TYPE_UNKNOWN ) 
  • src/playlist/services_discovery.c

    r4ca1e8b r6baf831  
    356356        if( !p_sds ) 
    357357            return VLC_ENOMEM; 
     358 
     359        /* We want tree-view for service directory */ 
     360        p_one->p_input->b_prefers_tree = true; 
    358361        p_sds->p_sd = p_sd; 
    359362        p_sds->p_one = p_one; 
  • src/playlist/tree.c

    rd11fd0d r6baf831  
    337337    if( p_node->p_parent == p_playlist->p_root_category ) 
    338338    { 
    339         if( p_playlist->b_tree
     339        if( p_playlist->b_tree || p_node->p_input->b_prefers_tree
    340340            return p_node; 
    341341        for( i = 0 ; i< p_playlist->p_root_onelevel->i_children; i++ ) 
     
    348348    else if( p_node->p_parent == p_playlist->p_root_onelevel ) 
    349349    { 
    350         if( !p_playlist->b_tree
     350        if( !p_playlist->b_tree || !p_node->p_input->b_prefers_tree
    351351            return p_node; 
    352352        for( i = 0 ; i< p_playlist->p_root_category->i_children; i++ )