Changeset 395a801ce716198e0a52f020dd8f2cf3f00f82ce

Show
Ignore:
Timestamp:
04/08/08 00:16:51 (5 months ago)
Author:
Rémi Duraffort <ivoire@videolan.org>
git-committer:
Rémi Duraffort <ivoire@videolan.org> 1207606611 +0200
git-parent:

[88ff21f116e5a39e0261a984e99e9f1bc47aec9e]

git-author:
Rémi Duraffort <ivoire@videolan.org> 1207606455 +0200
Message:

Improve playlist drawing with rc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/rc.c

    rca25496 r395a801  
    12721272{ 
    12731273    int i; 
     1274    char psz_buffer[MSTRTIME_MAX_SIZE]; 
    12741275    for( i = 0; i< p_item->i_children; i++ ) 
    12751276    { 
    1276         msg_rc( "%*s%s", 2 * i_level, "", p_item->pp_children[i]->p_input->psz_name ); 
     1277        if( p_item->pp_children[i]->p_input->i_duration != -1 ) 
     1278        { 
     1279            secstotimestr( psz_buffer, p_item->pp_children[i]->p_input->i_duration / 1000000 ); 
     1280            msg_rc( "|%*s- %s (%s)", 2 * i_level, "", p_item->pp_children[i]->p_input->psz_name, psz_buffer ); 
     1281        } 
     1282        else 
     1283            msg_rc( "|%*s- %s", 2 * i_level, "", p_item->pp_children[i]->p_input->psz_name ); 
    12771284 
    12781285        if( p_item->pp_children[i]->i_children >= 0 ) 
     
    14461453    } 
    14471454    else if( !strcmp( psz_cmd, "playlist" ) ) 
     1455    { 
     1456        msg_rc( "+----[ Playlist ]" ); 
    14481457        print_playlist( p_intf, p_playlist->p_root_category, 0 ); 
     1458        msg_rc( "+----[ End of playlist ]" ); 
     1459    } 
    14491460 
    14501461    else if( !strcmp( psz_cmd, "sort" ))