# HG changeset patch # User nenolod # Date 1169791173 28800 # Node ID b380e84148bb4ef4a073c0605b1b530464ef27a3 # Parent 1dc1d36d0347997169267eab8080f09f8b653ce4 [svn] - rename some hooks so that they are more logical diff -r 1dc1d36d0347 -r b380e84148bb ChangeLog --- 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 + 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 revision [3822] - allow for hooks to be automatically registered if they are needed diff -r 1dc1d36d0347 -r b380e84148bb src/audacious/playlist.c --- 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;