changeset 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 ed94145472df
children 1716423d29fe
files ChangeLog src/evdev-plug/ed.c
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 14 23:53:59 2007 -0800
+++ b/ChangeLog	Mon Jan 15 02:48:34 2007 -0800
@@ -1,3 +1,13 @@
+2007-01-15 07:53:59 +0000  Daniel Barkalow <barkalow@iabervon.org>
+  revision [944]
+  Support shoutcast (over TCP) with VFS HTTP code. mpg123 has to accept
+  failure on seeking to the end of the file.
+  
+  trunk/src/curl/curl.c     |   24 ++++++++++++++++--------
+  trunk/src/mpg123/common.c |    6 ++++--
+  2 files changed, 20 insertions(+), 10 deletions(-)
+
+
 2007-01-15 06:39:39 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [942]
   - buildsystem glue for curl http:// transport
--- 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