segment: mark GstSegmentFlags as flags rather than enum
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 26 Sep 2012 08:55:28 +0000 (10:55 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 26 Sep 2012 08:55:48 +0000 (10:55 +0200)
... which really makes a difference when trying to serialize
a flags value which is a combination of flags, which is hard
to do as an enum type.

gst/gstsegment.h

index 580106b..c364ce6 100644 (file)
@@ -131,7 +131,7 @@ typedef enum {
  * values of the seek flags.
  */
 /* Note: update gst_segment_do_seek() when adding new flags here */
-typedef enum {
+typedef enum { /*< flags >*/
   GST_SEGMENT_FLAG_NONE            = GST_SEEK_FLAG_NONE,
   GST_SEGMENT_FLAG_RESET           = GST_SEEK_FLAG_FLUSH,
   GST_SEGMENT_FLAG_SKIP            = GST_SEEK_FLAG_SKIP,