suggested patch to cmdline --pause [attached patch]

"Rick C. Petty" <[email protected]> Mon, 20 Mar 2006 17:05:25 -0600
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> I've attached a patch (against xmms-1.2.10) for the --pause command.  This
> patch turns the command-line "--pause" into a "pause, no matter what".  It
> does not change the behavior of the GUI control for toggling a pause, nor
> should it change the behavior of plugins who rely upon the toggling effect.

Sorry, I hit send too quickly.  Patch should be attached this time.

-- Rick C. Petty

--W/nzBZO5zC0uMSeA
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: attachment; filename="patch-xmms::controlsocket.c"

--- xmms/controlsocket.c.orig	Mon Feb 23 14:31:43 2004
+++ xmms/controlsocket.c	Mon Mar 20 12:39:36 2006
@@ -479,7 +479,9 @@
 					mainwin_eject_pushed();
 				break;
 			case CMD_PAUSE:
-				input_pause();
+				if (get_input_playing() &&
+				    !get_input_paused())
+					input_pause();
 				break;
 			case CMD_STOP:
 				input_stop();

--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xmms-devel mailing list
[email protected]
http://lists.xmms.org/mailman/listinfo/xmms-devel

--W/nzBZO5zC0uMSeA--