Mercurial > audlegacy
comparison src/audacious/ui_main.c @ 3716:9489aae0d872
introduce playback_get_length()
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Thu, 11 Oct 2007 19:25:08 +0200 |
parents | 1c1d3d84f313 |
children | a98b1189777b |
comparison
equal
deleted
inserted
replaced
3715:33acaa5a01b3 | 3716:9489aae0d872 |
---|---|
2509 return FALSE; | 2509 return FALSE; |
2510 | 2510 |
2511 if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b) | 2511 if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b) |
2512 playback_seek(ab_position_a/1000); | 2512 playback_seek(ab_position_a/1000); |
2513 | 2513 |
2514 length = playlist_get_current_length(playlist_get_active()); | 2514 length = playback_get_length(); |
2515 if (length == -1 && cfg.timer_mode == TIMER_REMAINING) | |
2516 cfg.timer_mode = TIMER_ELAPSED; | |
2517 | |
2515 playlistwin_set_time(time, length, cfg.timer_mode); | 2518 playlistwin_set_time(time, length, cfg.timer_mode); |
2516 | 2519 |
2517 if (cfg.timer_mode == TIMER_REMAINING) { | 2520 if (cfg.timer_mode == TIMER_REMAINING) { |
2518 if (length != -1) { | 2521 if (length != -1) { |
2519 ui_skinned_number_set_number(mainwin_minus_num, 11); | 2522 ui_skinned_number_set_number(mainwin_minus_num, 11); |