data: Avoid races in the scrub_forward seeking scenario

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
This commit is contained in:
Thibault Saunier 2013-10-14 11:07:03 -03:00
parent 182f4e9a41
commit 3990d7716c

View 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