Changeset 395a801ce716198e0a52f020dd8f2cf3f00f82ce
- 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
| rca25496 |
r395a801 |
|
| 1272 | 1272 | { |
|---|
| 1273 | 1273 | int i; |
|---|
| | 1274 | char psz_buffer[MSTRTIME_MAX_SIZE]; |
|---|
| 1274 | 1275 | for( i = 0; i< p_item->i_children; i++ ) |
|---|
| 1275 | 1276 | { |
|---|
| 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 ); |
|---|
| 1277 | 1284 | |
|---|
| 1278 | 1285 | if( p_item->pp_children[i]->i_children >= 0 ) |
|---|
| … | … | |
| 1446 | 1453 | } |
|---|
| 1447 | 1454 | else if( !strcmp( psz_cmd, "playlist" ) ) |
|---|
| | 1455 | { |
|---|
| | 1456 | msg_rc( "+----[ Playlist ]" ); |
|---|
| 1448 | 1457 | print_playlist( p_intf, p_playlist->p_root_category, 0 ); |
|---|
| | 1458 | msg_rc( "+----[ End of playlist ]" ); |
|---|
| | 1459 | } |
|---|
| 1449 | 1460 | |
|---|
| 1450 | 1461 | else if( !strcmp( psz_cmd, "sort" )) |
|---|