]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Ensure the AP2 Buffered Stream buffer size is hidden when playing an AP1 stream in...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 18 May 2022 09:03:01 +0000 (10:03 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 18 May 2022 09:03:01 +0000 (10:03 +0100)
player.c

index 9b27573f5476d65d9c4ec9c7f61fd8d15f25e0de..bdc21cbba5ab6c2402ef450eca752a18285c2abe 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1570,9 +1570,9 @@ int *statistics_print_profile;
 // be printed -- 2 means print, 1 means print only in a debug mode, 0 means skip
 
 // clang-format off
-int ap1_synced_statistics_print_profile[] =                  {2, 2, 2, 0, 2, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1};
-int ap1_nosync_statistics_print_profile[] =                  {2, 0, 0, 0, 2, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0, 1, 0};
-int ap1_nodelay_statistics_print_profile[] =                 {0, 0, 0, 0, 2, 1, 1, 2, 0, 1, 1, 1, 1, 0, 0, 1, 0};
+int ap1_synced_statistics_print_profile[] =                  {2, 2, 2, 0, 2, 1, 1, 2, 1, 1, 1, 0, 1, 1, 2, 2, 1, 1};
+int ap1_nosync_statistics_print_profile[] =                  {2, 0, 0, 0, 2, 1, 1, 2, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0};
+int ap1_nodelay_statistics_print_profile[] =                 {0, 0, 0, 0, 2, 1, 1, 2, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0};
 
 int ap2_realtime_synced_stream_statistics_print_profile[] =  {2, 2, 2, 0, 2, 1, 1, 2, 1, 1, 1, 0, 0, 1, 2, 2, 0, 0};
 int ap2_realtime_nosync_stream_statistics_print_profile[] =  {2, 0, 0, 0, 2, 1, 1, 2, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0};
@@ -2446,6 +2446,8 @@ void *player_thread_func(void *arg) {
                   else
                     statistics_item("Min Buffer Size", "%*" PRIu32 "", 15,
                                     conn->ap2_audio_buffer_minimum_size);
+#else
+                    statistics_item("N/A", "   "); // dummy -- should never be visible
 #endif
                   statistics_item("Nominal FPS", "%*.2f", 11, conn->remote_frame_rate);
                   statistics_item("Received FPS", "%*.2f", 12, conn->input_frame_rate);