mirror of https://github.com/Genymobile/scrcpy
Fix local NDEBUG define
The struct definition and the implementation did not use the same NDEBUG constant.
This commit is contained in:
parent
903a5aaaf5
commit
33a8c39beb
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue