Fix local NDEBUG define

The struct definition and the implementation did not use the same NDEBUG
constant.
This commit is contained in:
Romain Vimont 2024-09-11 11:26:07 +02:00
parent 903a5aaaf5
commit 33a8c39beb
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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
};