segment->flags |= GST_SEGMENT_FLAG_RESET;
if ((flags & GST_SEEK_FLAG_SKIP) != 0)
segment->flags |= GST_SEGMENT_FLAG_SKIP;
+ if ((flags & GST_SEEK_FLAG_SEGMENT) != 0)
+ segment->flags |= GST_SEGMENT_FLAG_SEGMENT;
segment->start = start;
segment->stop = stop;
segment->time = start;
* @GST_SEGMENT_FLAG_RESET: reset the pipeline running_time to the segment
* running_time
* @GST_SEGMENT_FLAG_SKIP: perform skip playback
+ * @GST_SEGMENT_FLAG_SEGMENT: send SEGMENT_DONE instead of EOS
*
* 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
+ GST_SEGMENT_FLAG_SKIP = GST_SEEK_FLAG_SKIP,
+ GST_SEGMENT_FLAG_SEGMENT = GST_SEEK_FLAG_SEGMENT
} GstSegmentFlags;
/**