comparison src/audacious/ui_main.c @ 4461:42559dad8f8f

- remove some now-unneeded configuration properties - slightly reorder the instructions in mainwin_update_song_info()
author mf0102 <0102@gmx.at>
date Wed, 16 Apr 2008 17:22:16 +0200
parents 19e3f3c5fe7f
children a47288ced5d5
comparison
equal deleted inserted replaced
4460:7489ef3ea7bd 4461:42559dad8f8f
2496 } 2496 }
2497 2497
2498 gboolean 2498 gboolean
2499 mainwin_update_song_info(void) 2499 mainwin_update_song_info(void)
2500 { 2500 {
2501 gint time = playback_get_time();
2502 gint length, t;
2503 gchar stime_prefix;
2504
2505 if (!playback_get_playing()) 2501 if (!playback_get_playing())
2506 return FALSE; 2502 return FALSE;
2507 2503
2504 gint time = playback_get_time();
2505 gint length = playback_get_length();
2506 gint t;
2507 gchar stime_prefix;
2508
2508 if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b) 2509 if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b)
2509 playback_seek(ab_position_a/1000); 2510 playback_seek(ab_position_a/1000);
2510 2511
2511 length = playback_get_length();
2512 if (length == -1 && cfg.timer_mode == TIMER_REMAINING) 2512 if (length == -1 && cfg.timer_mode == TIMER_REMAINING)
2513 cfg.timer_mode = TIMER_ELAPSED; 2513 cfg.timer_mode = TIMER_ELAPSED;
2514 2514
2515 playlistwin_set_time(time, length, cfg.timer_mode); 2515 playlistwin_set_time(time, length, cfg.timer_mode);
2516 2516