Mercurial > audlegacy-plugins
comparison 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 |
comparison
equal
deleted
inserted
replaced
430:ed94145472df | 431:f757e1aa62e6 |
---|---|
150 } | 150 } |
151 | 151 |
152 void | 152 void |
153 ed_action_pb_pause ( gpointer param ) | 153 ed_action_pb_pause ( gpointer param ) |
154 { | 154 { |
155 xmms_remote_pause( ed_gp.xmms_session ); | 155 if (xmms_remote_is_playing( ed_gp.xmms_session ) || xmms_remote_is_paused( ed_gp.xmms_session )) |
156 xmms_remote_pause( ed_gp.xmms_session ); | |
157 else | |
158 xmms_remote_play( ed_gp.xmms_session ); | |
156 } | 159 } |
157 | 160 |
158 void | 161 void |
159 ed_action_pb_prev ( gpointer param ) | 162 ed_action_pb_prev ( gpointer param ) |
160 { | 163 { |