tests: Stop recording segment position in seek_with_stop

There are two valid timing in GstAggregator where the segment event
is pushed before GstAggregator sets its srcpad->segment.position in
gst_aggregator_pad_chain_internal. Segment.position is basically
a helper field for internal elements use so we should not require
a specific value here as we are not checking a particular element
behavior.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/106

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/174>
This commit is contained in:
Thibault Saunier 2020-05-05 23:03:36 -04:00
parent f5cb409266
commit 5c05b4942e
3 changed files with 12 additions and 12 deletions

View file

@ -7,8 +7,8 @@ meta,
handles-states=true, handles-states=true,
ignore-eos=true, ignore-eos=true,
configs = { configs = {
"$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"", "$(validateflow), pad=videosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\"",
"$(validateflow), pad=audiosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}\"", "$(validateflow), pad=audiosink:sink, record-buffers=true, ignored-fields=\"stream-start={stream-id,group-id,stream}, segment={position,}\"",
} }
add-clip, name=c0, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=0, duration=1.0 add-clip, name=c0, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=0, duration=1.0

View file

@ -1,10 +1,10 @@
event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE; event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE;
event caps: audio/x-raw, rate=(int)44100, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, channel-mask=(bitmask)0x0000000000000003; event caps: audio/x-raw, rate=(int)44100, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, channel-mask=(bitmask)0x0000000000000003;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=0:00:00.000000000 event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.010000000 buffer: pts=0:00:00.000000000, dur=0:00:00.010000000
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=0:00:00.000000000 event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.010000000 buffer: pts=0:00:00.000000000, dur=0:00:00.010000000
buffer: pts=0:00:00.010000000, dur=0:00:00.010000000 buffer: pts=0:00:00.010000000, dur=0:00:00.010000000
buffer: pts=0:00:00.020000000, dur=0:00:00.010000000 buffer: pts=0:00:00.020000000, dur=0:00:00.010000000
@ -59,7 +59,7 @@ event gap: GstEventGap, timestamp=(guint64)500000000, duration=(guint64)18446744
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=0:00:00.000000000 event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.010000000 buffer: pts=0:00:00.000000000, dur=0:00:00.010000000
buffer: pts=0:00:00.010000000, dur=0:00:00.010000000 buffer: pts=0:00:00.010000000, dur=0:00:00.010000000
buffer: pts=0:00:00.020000000, dur=0:00:00.010000000 buffer: pts=0:00:00.020000000, dur=0:00:00.010000000
@ -114,7 +114,7 @@ event gap: GstEventGap, timestamp=(guint64)500000000, duration=(guint64)18446744
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=0:00:00.000000000 event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.010000000 buffer: pts=0:00:00.000000000, dur=0:00:00.010000000
buffer: pts=0:00:00.010000000, dur=0:00:00.010000000 buffer: pts=0:00:00.010000000, dur=0:00:00.010000000
buffer: pts=0:00:00.020000000, dur=0:00:00.010000000 buffer: pts=0:00:00.020000000, dur=0:00:00.010000000
@ -219,7 +219,7 @@ event gap: GstEventGap, timestamp=(guint64)1000000000, duration=(guint64)1844674
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:01.000000000, offset=0:00:00.000000000, stop=0:00:01.500000000, flags=0x01, time=0:00:01.000000000, base=0:00:00.000000000, position=0:00:01.000000000 event segment: format=TIME, start=0:00:01.000000000, offset=0:00:00.000000000, stop=0:00:01.500000000, flags=0x01, time=0:00:01.000000000, base=0:00:00.000000000
buffer: pts=0:00:01.000000000, dur=0:00:00.010000000 buffer: pts=0:00:01.000000000, dur=0:00:00.010000000
buffer: pts=0:00:01.010000000, dur=0:00:00.010000000 buffer: pts=0:00:01.010000000, dur=0:00:00.010000000
buffer: pts=0:00:01.020000000, dur=0:00:00.010000000 buffer: pts=0:00:01.020000000, dur=0:00:00.010000000

View file

@ -1,10 +1,10 @@
event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE; event stream-start: GstEventStreamStart, flags=(GstStreamFlags)GST_STREAM_FLAG_NONE;
event caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)30/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709; event caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, framerate=(fraction)30/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.033333333 buffer: pts=0:00:00.000000000, dur=0:00:00.033333333
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.033333333 buffer: pts=0:00:00.000000000, dur=0:00:00.033333333
buffer: pts=0:00:00.033333333, dur=0:00:00.033333334 buffer: pts=0:00:00.033333333, dur=0:00:00.033333334
buffer: pts=0:00:00.066666667, dur=0:00:00.033333333 buffer: pts=0:00:00.066666667, dur=0:00:00.033333333
@ -23,7 +23,7 @@ buffer: pts=0:00:00.466666667, dur=0:00:00.033333333
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:00.500000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.033333333 buffer: pts=0:00:00.000000000, dur=0:00:00.033333333
buffer: pts=0:00:00.033333333, dur=0:00:00.033333334 buffer: pts=0:00:00.033333333, dur=0:00:00.033333334
buffer: pts=0:00:00.066666667, dur=0:00:00.033333333 buffer: pts=0:00:00.066666667, dur=0:00:00.033333333
@ -42,7 +42,7 @@ buffer: pts=0:00:00.466666667, dur=0:00:00.033333333
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000, position=none event segment: format=TIME, start=0:00:00.000000000, offset=0:00:00.000000000, stop=0:00:01.000000000, flags=0x01, time=0:00:00.000000000, base=0:00:00.000000000
buffer: pts=0:00:00.000000000, dur=0:00:00.033333333 buffer: pts=0:00:00.000000000, dur=0:00:00.033333333
buffer: pts=0:00:00.033333333, dur=0:00:00.033333334 buffer: pts=0:00:00.033333333, dur=0:00:00.033333334
buffer: pts=0:00:00.066666667, dur=0:00:00.033333333 buffer: pts=0:00:00.066666667, dur=0:00:00.033333333
@ -76,7 +76,7 @@ buffer: pts=0:00:00.966666667, dur=0:00:00.033333333
event eos: (no structure) event eos: (no structure)
event flush-start: (no structure) event flush-start: (no structure)
event flush-stop: GstEventFlushStop, reset-time=(boolean)true; event flush-stop: GstEventFlushStop, reset-time=(boolean)true;
event segment: format=TIME, start=0:00:01.000000000, offset=0:00:00.000000000, stop=0:00:01.500000000, flags=0x01, time=0:00:01.000000000, base=0:00:00.000000000, position=none event segment: format=TIME, start=0:00:01.000000000, offset=0:00:00.000000000, stop=0:00:01.500000000, flags=0x01, time=0:00:01.000000000, base=0:00:00.000000000
buffer: pts=0:00:01.000000000, dur=0:00:00.033333333 buffer: pts=0:00:01.000000000, dur=0:00:00.033333333
buffer: pts=0:00:01.033333333, dur=0:00:00.033333334 buffer: pts=0:00:01.033333333, dur=0:00:00.033333334
buffer: pts=0:00:01.066666667, dur=0:00:00.033333333 buffer: pts=0:00:01.066666667, dur=0:00:00.033333333