changeset 2408:b380e84148bb trunk

[svn] - rename some hooks so that they are more logical
author nenolod
date Thu, 25 Jan 2007 21:59:33 -0800
parents 1dc1d36d0347
children 30ab29ed32d8
files ChangeLog src/audacious/playlist.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 25 21:29:51 2007 -0800
+++ b/ChangeLog	Thu Jan 25 21:59:33 2007 -0800
@@ -1,3 +1,12 @@
+2007-01-26 05:29:51 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [3824]
+  - add hooks: playback begin, playback end, playlist reached end
+  
+  trunk/src/audacious/playback.c |    4 +++-
+  trunk/src/audacious/playlist.c |    5 +++++
+  2 files changed, 8 insertions(+), 1 deletion(-)
+
+
 2007-01-26 05:19:44 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [3822]
   - allow for hooks to be automatically registered if they are needed
--- a/src/audacious/playlist.c	Thu Jan 25 21:29:51 2007 -0800
+++ b/src/audacious/playlist.c	Thu Jan 25 21:59:33 2007 -0800
@@ -1343,7 +1343,7 @@
     if ((cfg.no_playlist_advance && !cfg.repeat) || cfg.stopaftersong)  
       ip_data.stop = FALSE;
 
-    hook_call("playback finish", playlist->position);
+    hook_call("playback end", playlist->position);
 
     PLAYLIST_LOCK(playlist->mutex);
     
@@ -1383,7 +1383,7 @@
 
         if (!cfg.repeat) {
             PLAYLIST_UNLOCK(playlist->mutex);
-	    hook_call("playlist reached end", playlist->position);
+	    hook_call("playlist end reached", playlist->position);
             mainwin_clear_song_info();
             mainwin_set_info_text();
             return;