segment: separate the seek and segment flags

Separate the seek flags and segment flags as separate enums because we might
want to have different flags for both.
This commit is contained in:
Wim Taymans 2011-06-08 16:41:05 +02:00
parent 3cb8b33935
commit 3798b5fe5b

View file

@ -100,6 +100,22 @@ typedef enum {
GST_SEEK_FLAG_SKIP = (1 << 4)
} GstSeekFlags;
/**
* GstSegmentFlags:
* @GST_SEGMENT_FLAG_NONE: no flags
* @GST_SEGMENT_FLAG_RESET: reset the pipeline running_time to the segment
* running_time
* @GST_SEGMENT_FLAG_SKIP: perform skip playback
*
* Flags for the GstSegment structure. Currently mapped to the corresponding
* values of the seek flags.
*/
typedef enum {
GST_SEGMENT_FLAG_NONE = GST_SEEK_FLAG_NONE,
GST_SEGMENT_FLAG_RESET = GST_SEEK_FLAG_FLUSH,
GST_SEGMENT_FLAG_SKIP = GST_SEEK_FLAG_SKIP
} GstSegmentFlags;
/**
* GstSegment:
* @flags: flags for this segment
@ -116,7 +132,7 @@ typedef enum {
*/
struct _GstSegment {
/*< public >*/
GstSeekFlags flags;
GstSegmentFlags flags;
gdouble rate;
gdouble applied_rate;