# HG changeset patch # User Giacomo Lozito # Date 1184194914 -7200 # Node ID c981df78db8c60f28f7c3c343d1bb9f44344b2c5 # Parent ff886a3a209889eba895764449001e4467b87440 added hooks: playback pause and playback unpause diff -r ff886a3a2098 -r c981df78db8c src/audacious/playback.c --- a/src/audacious/playback.c Wed Jul 11 22:33:43 2007 +0200 +++ b/src/audacious/playback.c Thu Jul 12 01:01:54 2007 +0200 @@ -136,6 +136,11 @@ get_current_input_playback()->plugin->pause(get_current_input_playback(), ip_data.paused); + if (ip_data.paused) + hook_call("playback pause", NULL); + else + hook_call("playback unpause", NULL); + g_return_if_fail(mainwin_playstatus != NULL); if (ip_data.paused)