So the version of the compiler that is used here aparently doesn’t support the following:

typedef enum {
GST_BUFFER_COPY_FLAGS = (1 << 0),
GST_BUFFER_COPY_TIMESTAMPS = (1 << 1),
GST_BUFFER_COPY_CAPS = (1 << 2),
} GstBufferCopyFlags;

Which as far as I remember is one of the of the “newer” add-ons to the language, it’s easy to solve, as we just have to remove the last comma:

typedef enum {
GST_BUFFER_COPY_FLAGS = (1 << 0),
GST_BUFFER_COPY_TIMESTAMPS = (1 << 1),
GST_BUFFER_COPY_CAPS = (1 << 2)
} GstBufferCopyFlags;