mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
validate:scenario: Round up computed ClockTime values
Otherwise we end up with rounding error and instead of seeking to 0.1 we seek to 0.09999999999 for example Reviewers: Mathieu_Du Differential Revision: http://phabricator.freedesktop.org/D203
This commit is contained in:
parent
dfe29c56e5
commit
83a8835a65
1 changed files with 3 additions and 1 deletions
|
@ -461,8 +461,10 @@ gst_validate_action_get_clocktime (GstValidateScenario * scenario,
|
|||
|
||||
if (val == -1.0)
|
||||
*retval = GST_CLOCK_TIME_NONE;
|
||||
else
|
||||
else {
|
||||
*retval = val * GST_SECOND;
|
||||
*retval = GST_ROUND_UP_4 (*retval);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue