From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 14 May 2022 08:58:05 +0000 (+1000) Subject: Change playstart to a 64-but unsigned int. Store time of start of connection (for... X-Git-Tag: 4.1-rc1~24^2~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa06bed6b49e256296eda3d00cc011ff658e308;p=thirdparty%2Fshairport-sync.git Change playstart to a 64-but unsigned int. Store time of start of connection (for initial muting). Remove a redundant flag. --- diff --git a/player.h b/player.h index be76e2f7..499b38e1 100644 --- a/player.h +++ b/player.h @@ -167,7 +167,9 @@ typedef struct { volatile int watchdog_barks; // number of times the watchdog has timed out and done something int unfixable_error_reported; // set when an unfixable error command has been executed. - time_t playstart; + uint64_t playstart; + uint64_t connection_start_time; // the time the device is selected, which could be a long time + // before a play pthread_t thread, timer_requester, rtp_audio_thread, rtp_control_thread, rtp_timing_thread, player_watchdog_thread; @@ -282,7 +284,6 @@ typedef struct { // this is what connects an rtp timestamp to the remote time int anchor_remote_info_is_valid; - int anchor_clock_is_new; // these can be modified if the master clock changes over time uint64_t anchor_clock;