changeset 3718:a98b1189777b

add new hook, playback seek, and subscribe mainwin_update_song_info() to it.
author William Pitcock <nenolod@atheme.org>
date Thu, 11 Oct 2007 19:38:55 -0500
parents 8ec5bb8aac58
children 48795d67d9cb
files src/audacious/playback.c src/audacious/ui_main.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playback.c	Thu Oct 11 16:14:21 2007 -0500
+++ b/src/audacious/playback.c	Thu Oct 11 19:38:55 2007 -0500
@@ -502,6 +502,8 @@
         playback_pause();
         output_set_volume(l, r);
     }
+
+    hook_call("playback seek", playback);
 }
 
 void
--- a/src/audacious/ui_main.c	Thu Oct 11 16:14:21 2007 -0500
+++ b/src/audacious/ui_main.c	Thu Oct 11 19:38:55 2007 -0500
@@ -2447,6 +2447,8 @@
 
     hook_associate("playback audio error", (void *) mainwin_stop_pushed, NULL);
     hook_associate("playback audio error", (void *) run_no_output_device_dialog, NULL);
+
+    hook_associate("playback seek", (HookFunction) mainwin_update_song_info, NULL);
 }
 
 static void