Skip to content

Display and control your Android device

Fix local NDEBUG define

Romain Vimont33a8c39beb97
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
};