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:
Thibault Saunier 2015-05-27 16:41:00 +02:00
parent dfe29c56e5
commit 83a8835a65

View file

@ -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;
}