tmus

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

commit 3c6cb23a13a590c0a68b521ddb6ccde9a55287fc
parent 4f3bfa23ed263e79db97d14032f569fa539ab9fc
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sat,  4 Feb 2023 15:46:24 +0100

Continue after playing track fails on mplay_run

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

diff --git a/src/player_mplay.c b/src/player_mplay.c @@ -184,7 +184,6 @@ player_update(void) fprintf(mplay.stdin, "status\n"); line = mplay_readline(); - if (!player.loaded) return; if (!line || strncmp(line, "+STATUS:", 8)) { MPLAY_STATUS(line); return; @@ -211,6 +210,7 @@ player_play_track(struct track *track, bool new) ASSERT(track != NULL); player_clear_track(); + player.track = track; if (!mplay_run(track)) return PLAYER_ERR; @@ -218,7 +218,6 @@ player_play_track(struct track *track, bool new) /* new invocations are removed from history */ if (new) link_pop(&track->link_hs); - player.track = track; player.time_pos = 0; player.time_end = 0;