tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit 2d9defd42391c23d3a63e866bfa843a856fd0808
parent bba6cce573d46b02dbb207b005721b370cab1698
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed, 13 Mar 2024 20:44:01 +0100

Handle exit from seeking

Diffstat:
Msrc/player_mplay.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/player_mplay.c b/src/player_mplay.c @@ -336,6 +336,9 @@ player_seek(int sec) fprintf(mplay.stdin, "%i\n", sec); line = mplay_readline(); if (!line || !(arg = mplay_info_arg(line, MPLAY_INFO_STR_SEEK))) { + if ((arg = mplay_info_arg(line, MPLAY_INFO_STR_EXIT))) { + return player_clear_track(); + } mplay_kill(); MPLAY_STATUS(line); return PLAYER_ERR;