Mercurial > audlegacy-plugins
diff src/evdev-plug/ed.c @ 431:f757e1aa62e6 trunk
[svn] pause functionality should play if not already playing, now
author | kiyoshi |
---|---|
date | Mon, 15 Jan 2007 02:48:34 -0800 |
parents | 5e46b57d1eda |
children | f5ed9a6ad3f1 |
line wrap: on
line diff
--- a/src/evdev-plug/ed.c Sun Jan 14 23:53:59 2007 -0800 +++ b/src/evdev-plug/ed.c Mon Jan 15 02:48:34 2007 -0800 @@ -152,7 +152,10 @@ void ed_action_pb_pause ( gpointer param ) { - xmms_remote_pause( ed_gp.xmms_session ); + if (xmms_remote_is_playing( ed_gp.xmms_session ) || xmms_remote_is_paused( ed_gp.xmms_session )) + xmms_remote_pause( ed_gp.xmms_session ); + else + xmms_remote_play( ed_gp.xmms_session ); } void