changeset 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 7489ef3ea7bd
children f4e878e8b1e3
files src/audacious/audconfig.h src/audacious/ui_main.c
diffstat 2 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/audconfig.h	Wed Apr 16 10:35:05 2008 +0300
+++ b/src/audacious/audconfig.h	Wed Apr 16 17:22:16 2008 +0200
@@ -51,9 +51,7 @@
     gboolean no_playlist_advance;
     gboolean stopaftersong;
     gboolean refresh_file_list;
-    gboolean smooth_title_scroll;
     gboolean use_pl_metadata;
-    gboolean warn_about_unplayables;
     gboolean warn_about_win_visibility;
     gboolean use_backslash_as_dir_delimiter;
     gboolean random_skin_on_play;
@@ -90,7 +88,6 @@
     gint titlestring_preset;
     gchar *gentitle_format;
     gboolean softvolume_enable;
-    gboolean xmms_compat_mode;
     gboolean eq_extra_filtering;
     gint scroll_pl_by;
     gboolean resume_playback_on_startup;
@@ -111,7 +108,6 @@
     gboolean use_xmms_style_fileselector;
     gboolean use_extension_probing;
     gint colorize_r; gint colorize_g; gint colorize_b;
-    gboolean terminate;
     gboolean filepopup_showprogressbar;
     gboolean close_jtf_dialog;
     gboolean twoway_scroll;
--- 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;