mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 16:29:55 +02:00
maintain backward compatibility with g_memdup.
This commit is contained in:
parent
05403cc0c6
commit
5ceef394ca
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue