mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
validate: ssim: Respect requested dump recurrence parameter
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1810>
This commit is contained in:
parent
c275b5c678
commit
616d1dd6ba
1 changed files with 1 additions and 2 deletions
|
@ -583,8 +583,7 @@ _should_dump_buffer (ValidateSsimOverride * self,
|
||||||
if (priv->recurrence == 0)
|
if (priv->recurrence == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (position > priv->last_dump_position ?
|
if (GST_CLOCK_DIFF (priv->last_dump_position, position) >= priv->recurrence)
|
||||||
position - priv->last_dump_position : 0 >= priv->recurrence)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue