diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-07-09 22:11:31 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-07-09 22:16:46 +0200 |
commit | f165a77fdc9145b9962699a8963e15dde0fd2035 (patch) | |
tree | 2fd1ac55a97cede4b2b3975fe1dccc0008b8a6de /gst/gstsegment.c | |
parent | a8d5665db745d0be244471d671210ae4c4fffd39 (diff) |
segment: also copy the segment flag
Fixes segmented seeks (as tested e.g. in the adder tests in base).
Diffstat (limited to 'gst/gstsegment.c')
-rw-r--r-- | gst/gstsegment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstsegment.c b/gst/gstsegment.c index fb73068e9..f1c9c8381 100644 --- a/gst/gstsegment.c +++ b/gst/gstsegment.c @@ -323,6 +323,8 @@ gst_segment_do_seek (GstSegment * segment, gdouble rate, 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; |