changeset 3029:9c0673583d73

Don't change config just because time remaining can't be shown for an internet stream (Debian bug #500081)
author John Lindgren <john.lindgren@tds.net>
date Fri, 10 Apr 2009 01:34:22 -0400
parents b20622733f08
children c442f8407dcb
files src/skins/ui_main.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_main.c	Fri Apr 10 00:28:00 2009 -0400
+++ b/src/skins/ui_main.c	Fri Apr 10 01:34:22 2009 -0400
@@ -71,7 +71,7 @@
 #include <audlegacy/plugin.h>
 #include "skins_cfg.h"
 
-static GTimeVal cb_time; 
+static GTimeVal cb_time;
 static const int TRISTATE_THRESHOLD = 200;
 
 enum {
@@ -1169,7 +1169,7 @@
         g_signal_connect( G_OBJECT(checkbt) , "toggled" ,
                           G_CALLBACK(on_broken_gtk_engine_warning_toggle) , NULL );
         g_signal_connect( G_OBJECT(warning_dlg) , "response" ,
-                          G_CALLBACK(gtk_widget_destroy) , NULL );        
+                          G_CALLBACK(gtk_widget_destroy) , NULL );
         gtk_widget_show_all(warning_dlg);
         gtk_window_stick(GTK_WINDOW(warning_dlg));
     }
@@ -2385,9 +2385,6 @@
     if (ab_position_a != -1 && ab_position_b != -1 && time > ab_position_b)
         audacious_drct_seek(ab_position_a/1000);
 
-    if (length == -1 && config.timer_mode == TIMER_REMAINING)
-        config.timer_mode = TIMER_ELAPSED;
-
     playlistwin_set_time(time, length, config.timer_mode);
 
     if (config.timer_mode == TIMER_REMAINING) {