mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate:tools: Do not check if position > duration
This is actually done by the scenario themselve. Instead if it is the case, we return 0, this way it will timeout if it happens too many times concecutively
This commit is contained in:
parent
6bd9177205
commit
654bacebc9
1 changed files with 1 additions and 5 deletions
|
@ -228,11 +228,7 @@ def get_current_position(test, max_passed_stop=0.5):
|
|||
position, duration = _get_position(test)
|
||||
|
||||
if position > duration + max_passed_stop:
|
||||
test.set_result(Result.FAILED,
|
||||
"The position is reported as > than the"
|
||||
" duration (position: %d > duration: %d)"
|
||||
% (position, duration))
|
||||
return Result.FAILED
|
||||
return 0
|
||||
|
||||
return position
|
||||
|
||||
|
|
Loading…
Reference in a new issue