mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
validate:ssim: Use stream time to reference frames
This commit is contained in:
parent
289c87de5d
commit
30ceb4ef40
1 changed files with 2 additions and 4 deletions
|
@ -629,12 +629,10 @@ _handle_buffer (GstValidateOverride * override,
|
|||
ValidateSsimOverride *o = VALIDATE_SSIM_OVERRIDE (override);
|
||||
ValidateSsimOverridePrivate *priv = o->priv;
|
||||
|
||||
GstClockTime running_time, position;
|
||||
GstClockTime position;
|
||||
|
||||
running_time = gst_segment_to_running_time (&pad_monitor->segment,
|
||||
position = gst_segment_to_stream_time (&pad_monitor->segment,
|
||||
GST_FORMAT_TIME, GST_BUFFER_PTS (buffer));
|
||||
position = gst_segment_position_from_running_time (&pad_monitor->segment,
|
||||
GST_FORMAT_TIME, running_time);
|
||||
|
||||
if (!_should_dump_buffer (o, pad_monitor, position)) {
|
||||
GST_LOG_OBJECT (override, "Not dumping buffer: %" GST_TIME_FORMAT,
|
||||
|
|
Loading…
Reference in a new issue