Commit Diff
Commit:
239029b61f575847650021a5b4904ed426a2e9e4
Date:
Mon May 9 18:32:02 2022
UTC
Message:
don't call player_sendeof on IMSG_STOP
the refactoring introduced this error where we call report an EOF upon
IMSG_STOP, making the player infinitely loop.
--- player.c
+++ player.c
@@ -274,7 +274,7 @@ player(int debug, int verbose)
int
player(int debug, int verbose)
{
- int flags;
+ int flags, r;
log_init(debug, LOG_DAEMON);
log_setverbose(verbose);
@@ -314,9 +314,10 @@ player(int debug, int verbose)
while (nextfd == -1)
player_dispatch();
- if (player_playnext() == -1)
+ r = player_playnext();
+ if (r == -1)
player_senderr();
- else
+ if (r == 0)
player_sendeof();
}
Omar Polo