mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
videomixer: use GST_STIME_ARGS for GstClockTimeDiff
No need to manually handle negative values of diff, GST_STIME_ARGS does exactly this.
This commit is contained in:
parent
d90347edf2
commit
ae729440b1
1 changed files with 3 additions and 3 deletions
|
@ -801,9 +801,9 @@ gst_videomixer2_update_qos (GstVideoMixer2 * mix, gdouble proportion,
|
|||
GstClockTimeDiff diff, GstClockTime timestamp)
|
||||
{
|
||||
GST_DEBUG_OBJECT (mix,
|
||||
"Updating QoS: proportion %lf, diff %s%" GST_TIME_FORMAT ", timestamp %"
|
||||
GST_TIME_FORMAT, proportion, (diff < 0) ? "-" : "",
|
||||
GST_TIME_ARGS (ABS (diff)), GST_TIME_ARGS (timestamp));
|
||||
"Updating QoS: proportion %lf, diff %" GST_STIME_FORMAT ", timestamp %"
|
||||
GST_TIME_FORMAT, proportion, GST_STIME_ARGS (diff),
|
||||
GST_TIME_ARGS (timestamp));
|
||||
|
||||
GST_OBJECT_LOCK (mix);
|
||||
mix->proportion = proportion;
|
||||
|
|
Loading…
Reference in a new issue