diff src/audacious/playback.c @ 3082:91df04ec5ef7

From: Daniel Drake <dsd@gentoo.org> We don't need to check playback status 100 times per second. Just start and stop the visualization when those operations actually happen.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 16 Jul 2007 13:31:51 -0500
parents 01ae56759d15
children 20830a69b5f5
line wrap: on
line diff
--- a/src/audacious/playback.c	Fri Jul 13 09:36:51 2007 -0500
+++ b/src/audacious/playback.c	Mon Jul 16 13:31:51 2007 -0500
@@ -49,6 +49,7 @@
 #include "ui_playlist.h"
 #include "ui_skinselector.h"
 #include "util.h"
+#include "visualization.h"
 
 #include "playback.h"
 
@@ -120,6 +121,8 @@
         gtk_widget_show(mainwin_position);
     }
 
+    vis_playback_start();
+
     hook_call("playback begin", entry);
 }
 
@@ -186,6 +189,8 @@
     if (song_info_timeout_source)
         g_source_remove(song_info_timeout_source);
 
+    vis_playback_stop();
+
     g_return_if_fail(mainwin_playstatus != NULL);
     playstatus_set_status_buffering(mainwin_playstatus, FALSE);
 }