mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
deinterlace: use GST_STIME_ARGS for GstClockTimeDiff
No need to manually handle negative values of diff, GST_STIME_ARGS is available for this.
This commit is contained in:
parent
133e7bab32
commit
d90347edf2
1 changed files with 3 additions and 3 deletions
|
@ -1191,9 +1191,9 @@ gst_deinterlace_update_qos (GstDeinterlace * self, gdouble proportion,
|
||||||
GstClockTimeDiff diff, GstClockTime timestamp)
|
GstClockTimeDiff diff, GstClockTime timestamp)
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (self,
|
GST_DEBUG_OBJECT (self,
|
||||||
"Updating QoS: proportion %lf, diff %s%" GST_TIME_FORMAT ", timestamp %"
|
"Updating QoS: proportion %lf, diff %" GST_STIME_FORMAT ", timestamp %"
|
||||||
GST_TIME_FORMAT, proportion, (diff < 0) ? "-" : "",
|
GST_TIME_FORMAT, proportion, GST_STIME_ARGS (diff),
|
||||||
GST_TIME_ARGS (ABS (diff)), GST_TIME_ARGS (timestamp));
|
GST_TIME_ARGS (timestamp));
|
||||||
|
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
self->proportion = proportion;
|
self->proportion = proportion;
|
||||||
|
|
Loading…
Reference in a new issue