]> git.lizzy.rs Git - plan9front.git/commitdiff
zuke: fix seeking in paused mode
authorSigrid <ftrvxmtrx@gmail.com>
Thu, 27 May 2021 05:47:10 +0000 (07:47 +0200)
committerSigrid <ftrvxmtrx@gmail.com>
Thu, 27 May 2021 05:47:10 +0000 (07:47 +0200)
sys/src/cmd/audio/zuke/zuke.c

index 0d786d6033a6e46b21553178856513e8d6062bc9..1e7635dc8987acc6440c3b9f582997db1af09461 100644 (file)
@@ -663,9 +663,10 @@ restart:
                }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;