]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add a little more detail to the resend requests
authorMike Brady <mikebrady@eircom.net>
Tue, 17 Apr 2018 20:08:29 +0000 (21:08 +0100)
committerMike Brady <mikebrady@eircom.net>
Tue, 17 Apr 2018 20:08:29 +0000 (21:08 +0100)
player.c
rtp.c

index 30633ffe72e5f040815463f829bc586cf3f8aa1e..c333e3187bacd2dd85f53b54df8377571e92a995 100644 (file)
--- a/player.c
+++ b/player.c
@@ -528,8 +528,8 @@ void player_put_packet(seq_t seqno, uint32_t actual_timestamp, int64_t timestamp
                 if (config.disable_resend_requests == 0) {
                   rtp_request_resend(next, 1, conn);
                   // if (j>=3)
-                  //debug(2, "Resend request level #%d for packet %u in range %u to %u.", j, next,
-                  //      conn->ab_read, conn->ab_write);
+                  debug(2, "Resend request level #%d for packet %u in range %u to %u.", j, next,
+                        conn->ab_read, conn->ab_write);
                   conn->resend_requests++;
                 }
               }
@@ -1694,8 +1694,8 @@ static void *player_thread_func(void *arg) {
         //          debug(3, "Play frame %d.", play_number);
         conn->play_number_after_flush++;
         if (inframe->timestamp == 0) {
-          debug(2, "Player has supplied a silent frame, (possibly frame %u).",
-                SUCCESSOR(conn->last_seqno_read));
+          debug(1, "Player has supplied a silent frame, (possibly frame %u) for play number %d.",
+                SUCCESSOR(conn->last_seqno_read),play_number);
           conn->last_seqno_read = (SUCCESSOR(conn->last_seqno_read) &
                                    0xffff); // manage the packet out of sequence minder
           config.output->play(silence, conn->max_frames_per_packet * conn->output_sample_ratio);
diff --git a/rtp.c b/rtp.c
index aa3a7e0c70b958c47158ae1bbc67902ba22d6d88..b009991051c70a95ea2f59ef9003aa6d3be385da 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -953,7 +953,7 @@ void clear_reference_timestamp(rtsp_conn_info *conn) {
 void rtp_request_resend(seq_t first, uint32_t count, rtsp_conn_info *conn) {
   if (conn->rtp_running) {
     // if (!request_sent) {
-    debug(2, "requesting resend of %d packets starting at %u.", count, first);
+    // debug(2, "requesting resend of %d packets starting at %u.", count, first);
     //  request_sent = 1;
     //}