data: Avoid races in the scrub_forward seeking scenario
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 14 Oct 2013 14:07:03 +0000 (11:07 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 14 Oct 2013 14:07:03 +0000 (11:07 -0300)
Make sure that it does not last too long if the file is long (scrubing
on 10 secs maximum), and make sure that we do not end up seeking after
the max duration

validate/data/scrub_forward_seeking.scenario

index 992db3b..88cc8b9 100644 (file)
@@ -1,3 +1,3 @@
 pause, playback_time=0.0
-seek, playback_time=0.0, start=position+0.1, repeat="duration/0.1-2", flags=accurate+flush
+seek, playback_time=0.0, start=position+0.1, repeat="min(10, (duration - 0.5))/0.1", flags=accurate+flush
 play, playback_time=0.0