]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Potentially fix a flaw in resyncing. A flush is set up but not triggered.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 13 Aug 2020 16:44:35 +0000 (17:44 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 13 Aug 2020 16:44:35 +0000 (17:44 +0100)
player.c

index dcef6c4e3f1cdb5504a4727c5e2d6bc89107daee..d725ed9cc365825ae09ac7caabb41cd7db7c2f6e 100644 (file)
--- a/player.c
+++ b/player.c
@@ -2320,6 +2320,7 @@ void *player_thread_func(void *arg) {
                 uint32_t frames_to_drop_sized = local_frames_to_drop;
 
                 debug_mutex_lock(&conn->flush_mutex, 1000, 1);
+                conn->flush_requested = 1;
                 conn->flush_rtp_timestamp =
                     inframe->given_timestamp +
                     frames_to_drop_sized; // flush all packets up to (and including?) this