mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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:
parent
3cb8b33935
commit
3798b5fe5b
1 changed files with 17 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue