]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Change playstart to a 64-but unsigned int. Store time of start of connection (for...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 14 May 2022 08:58:05 +0000 (18:58 +1000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 14 May 2022 08:58:05 +0000 (18:58 +1000)
player.h

index be76e2f76eb707940ff0907e0f7e590a325ff57a..499b38e1d1efa8dae1ed0dee5d515f1f27eaa987 100644 (file)
--- 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;