From 33a8c39beb970db5efa6449d4e3058134f3be8e5 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 11 Sep 2024 11:26:07 +0200 Subject: [PATCH] Fix local NDEBUG define The struct definition and the implementation did not use the same NDEBUG constant. --- app/src/delay_buffer.c | 2 -- app/src/delay_buffer.h | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/delay_buffer.c b/app/src/delay_buffer.c index f6141b35..b27d4939 100644 --- a/app/src/delay_buffer.c +++ b/app/src/delay_buffer.c @@ -8,8 +8,6 @@ #include "util/log.h" -#define SC_BUFFERING_NDEBUG // comment to debug - /** Downcast frame_sink to sc_delay_buffer */ #define DOWNCAST(SINK) container_of(SINK, struct sc_delay_buffer, frame_sink) diff --git a/app/src/delay_buffer.h b/app/src/delay_buffer.h index 53592372..f0fe97d3 100644 --- a/app/src/delay_buffer.h +++ b/app/src/delay_buffer.h @@ -12,12 +12,14 @@ #include "util/tick.h" #include "util/vecdeque.h" +#define SC_BUFFERING_NDEBUG // comment to debug + // forward declarations typedef struct AVFrame AVFrame; struct sc_delayed_frame { AVFrame *frame; -#ifndef NDEBUG +#ifndef SC_BUFFERING_NDEBUG sc_tick push_date; #endif };