changeset 3177:a6299755b78a trunk

Don't call playback_get_time() if not playing in mainwin_idle_func().
author Christian Birchinger <joker@netswarm.net>
date Thu, 26 Jul 2007 23:54:07 +0200
parents 21c6e57af470
children 0c6e89336d86
files src/audacious/ui_main.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Thu Jul 26 22:33:34 2007 +0200
+++ b/src/audacious/ui_main.c	Thu Jul 26 23:54:07 2007 +0200
@@ -2984,9 +2984,9 @@
 mainwin_idle_func(gpointer data)
 {
     static gint count = 0;
-    gint time = playback_get_time();
-
-    input_update_vis(time);
+
+    if (playback_get_playing())  
+        input_update_vis(playback_get_time());    
 
     GDK_THREADS_ENTER();