segment: mark GstSegmentFlags as flags rather than enum

... 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.
This commit is contained in:
Mark Nauwelaerts 2012-09-26 10:55:28 +02:00
parent b14a3ad4ef
commit cc41130664

View 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,