gstreamer/tests/check/scenarios/seek_with_stop.validatetest
Thibault Saunier 5c05b4942e 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>
2020-05-05 23:12:14 -04:00

27 lines
No EOL
1.2 KiB
Text

meta,
tool = "ges-launch-$(gst_api_version)",
args = {
--videosink, "$(videosink) name=videosink",
--audiosink, "$(audiosink) name=audiosink",
},
handles-states=true,
ignore-eos=true,
configs = {
"$(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}, segment={position,}\"",
}
add-clip, name=c0, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=0, duration=1.0
set-child-properties, element-name=c0, pattern=blue, time-mode=time-code, valignment=center, halignment=center
add-clip, name=c1, asset-id=GESTestClip, layer-priority=0, type=GESTestClip, start=1.0, duration=1.0
set-child-properties, element-name=c1, pattern=red, time-mode=time-code, valignment=center, halignment=center
pause
seek, start=0.0, stop=0.5, flags=accurate+flush
play
seek, on-message=eos, start=0.0, stop=0.5, flags=accurate+flush
seek, on-message=eos, start=0.0, stop=1.0, flags=accurate+flush
seek, on-message=eos, start=1.0, stop=1.5, flags=accurate+flush
stop, on-message=eos