shithub: plan9front

Download patch

ref: e18da032f0b875e86d66f728cb0007840d1fbc79
parent: d168b89ab110a2d1fcaf72ad085a789092b82b00
author: Sigrid <ftrvxmtrx@gmail.com>
date: Thu May 27 01:47:10 EDT 2021

zuke: fix seeking in paused mode

--- a/sys/src/cmd/audio/zuke/zuke.c	Sun May 23 11:06:14 2021
+++ b/sys/src/cmd/audio/zuke/zuke.c	Thu May 27 01:47:10 2021
@@ -663,9 +663,10 @@
 		}else if(r != 0){
 			if(c == Ctoggle){
 				audiooff();
-				if(recv(player->ctl, &c) < 0 || c == Cstop)
+				if(recv(player->ctl, &c) < 0)
 					goto stop;
-			}else if(c == Cseekrel){
+			}
+			if(c == Cseekrel){
 				boffset = MAX(0, boffset + player->seek*Bps);
 				n = 0;
 				break;