MikeK's software notebook

MikeK's software notebook

What you will find

This used to be the place where I wrote stuff I was thinking about while working on the Mozilla project.

Maybe in the near future I'll start to update it again as I'm involved in a couple of new open-source projects - updates pending...

/usr/include/gstreamer-0.10/gst/gstbuffer.h:359: error: comma at end of enumerator list

GStreamerPosted by Mike Kristoffersen 23 Mar, 2009 14:07:39
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;


  • Comments(0)//developer.mikek.dk/#post11