mplay.flac

Controllable music player (flac)
git clone https://git.sinitax.com/sinitax/mplay.flac
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit b4661f9d4f32824c11f363ddb9a0d7c7906fea36
parent d2dca76581231ec61ce6cc9a25cbf1494181799c
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sun,  7 Apr 2024 23:40:44 +0200

Properly handle EOF

Diffstat:
Mmplay.flac.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mplay.flac.c b/mplay.flac.c @@ -505,7 +505,9 @@ key_input(void) float fval; int key; - while ((key = mplay_getkey()) == MPLAY_KEY_EOF); + while ((key = mplay_getkey()) == MPLAY_KEY_INV); + + if (key == MPLAY_KEY_EOF) return false; switch (mplay_action(key)) { case MPLAY_ACTION_VOLUME: