mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
maintain backward compatibility with g_memdup.
This commit is contained in:
parent
05403cc0c6
commit
5ceef394ca
@ -5,6 +5,17 @@
|
||||
#include <gst/app/gstappsrc.h>
|
||||
#include <gst/video/video.h>
|
||||
|
||||
#define GLIB_CHECK_VERSION(major,minor,micro) \
|
||||
(GLIB_MAJOR_VERSION > (major) || \
|
||||
(GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \
|
||||
(GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \
|
||||
GLIB_MICRO_VERSION >= (micro)))
|
||||
|
||||
// g_memdup2 was added in glib 2.67.4, maintain compatibility with older versions
|
||||
#if !GLIB_CHECK_VERSION(2, 67, 4)
|
||||
#define g_memdup2 g_memdup
|
||||
#endif
|
||||
|
||||
typedef struct GstPipelineCtx {
|
||||
int pipelineId;
|
||||
GstElement *pipeline;
|
||||
|
Loading…
Reference in New Issue
Block a user