mplay.mp3

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

commit 0a8acdd37993d1ac33755921d99a5150367f74f7
parent fd123c33e60985734e8bd4d550a94a2fe259a3e8
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sun,  7 Apr 2024 23:40:00 +0200

Properly handle EOF

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

diff --git a/mplay.mp3.c b/mplay.mp3.c @@ -370,7 +370,8 @@ 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: