validate: scenarios: set need clock sync for switching subtitle track

As soon as the track is changed, the pipeline state is set to NULL
by execution 'stop' action even if there is a 'playback-time' with 5sec.
If the AV sink is not synchronized,
audio fakesink and video fakesink has different position value.
When the validate request the position information of pipeline
to do 'stop' action, the audio fakesink response of the position query
with the bigger value than 5sec.

https://bugzilla.gnome.org/show_bug.cgi?id=755101
This commit is contained in:
eunhae choi 2015-09-16 17:12:17 +09:00 committed by Thibault Saunier
parent 82f6ef48e9
commit 9e1cea6c4b
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
description, summary="Change subtitle track at 1 second while playing back", min-subtitle-track=2, duration=5.0 description, summary="Change subtitle track at 1 second while playing back", min-subtitle-track=2, duration=5.0, need-clock-sync=true
switch-track, playback-time=1.0, type=text, index=(string)+1 switch-track, playback-time=1.0, type=text, index=(string)+1
stop, playback-time=5.0 stop, playback-time=5.0

View file

@ -1,4 +1,4 @@
description, summary="Change subtitle track while pipeline is PAUSED", min-subtitle-track=2, duration=5.0, handles-states=true description, summary="Change subtitle track while pipeline is PAUSED", min-subtitle-track=2, duration=5.0, handles-states=true, need-clock-sync=true
pause; pause;
wait, duration=0.5 wait, duration=0.5
switch-track, type=text, index=(string)+1 switch-track, type=text, index=(string)+1