diff 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
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Wed Apr 16 10:35:05 2008 +0300
+++ b/src/audacious/ui_main.c	Wed Apr 16 17:22:16 2008 +0200
@@ -2498,17 +2498,17 @@
 gboolean
 mainwin_update_song_info(void)
 {
-    gint time = playback_get_time();
-    gint length, t;
-    gchar stime_prefix;
-
     if (!playback_get_playing())
         return FALSE;
 
+    gint time = playback_get_time();
+    gint length = playback_get_length();
+    gint t;
+    gchar stime_prefix;
+
     if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b)
         playback_seek(ab_position_a/1000);
 
-    length = playback_get_length();
     if (length == -1 && cfg.timer_mode == TIMER_REMAINING)
         cfg.timer_mode = TIMER_ELAPSED;