From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 13 Aug 2020 16:44:35 +0000 (+0100) Subject: Potentially fix a flaw in resyncing. A flush is set up but not triggered. X-Git-Tag: 3.3.8~16^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65391a6916c1ce72d90d56bbc7da3982ae6551b5;p=thirdparty%2Fshairport-sync.git Potentially fix a flaw in resyncing. A flush is set up but not triggered. --- diff --git a/player.c b/player.c index dcef6c4e..d725ed9c 100644 --- 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