mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
netclientclock: Always dump clock observations in logs
This makes it possible to examine what values we get in logs, and potentially tune our filtering/extrapolation in various scenarios.
This commit is contained in:
parent
1bc8d9f2ea
commit
a3ae9213e5
1 changed files with 7 additions and 4 deletions
|
@ -360,6 +360,11 @@ gst_net_client_internal_clock_observe_times (GstNetClientInternalClock * self,
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
rtt_limit = self->roundtrip_limit;
|
rtt_limit = self->roundtrip_limit;
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (self,
|
||||||
|
"local1 %" G_GUINT64_FORMAT " remote1 %" G_GUINT64_FORMAT " remote2 %"
|
||||||
|
G_GUINT64_FORMAT " local2 %" G_GUINT64_FORMAT, local_1, remote_1,
|
||||||
|
remote_2, local_2);
|
||||||
|
|
||||||
/* If the server told us a poll interval and it's bigger than the
|
/* If the server told us a poll interval and it's bigger than the
|
||||||
* one configured via the property, use the server's */
|
* one configured via the property, use the server's */
|
||||||
if (self->last_remote_poll_interval != GST_CLOCK_TIME_NONE &&
|
if (self->last_remote_poll_interval != GST_CLOCK_TIME_NONE &&
|
||||||
|
@ -477,10 +482,8 @@ gst_net_client_internal_clock_observe_times (GstNetClientInternalClock * self,
|
||||||
remote_avg = (remote_2 + remote_1) / 2;
|
remote_avg = (remote_2 + remote_1) / 2;
|
||||||
|
|
||||||
GST_LOG_OBJECT (self,
|
GST_LOG_OBJECT (self,
|
||||||
"local1 %" G_GUINT64_FORMAT " remote1 %" G_GUINT64_FORMAT " remote2 %"
|
"remoteavg %" G_GUINT64_FORMAT " localavg %" G_GUINT64_FORMAT,
|
||||||
G_GUINT64_FORMAT " remoteavg %" G_GUINT64_FORMAT " localavg %"
|
remote_avg, local_avg);
|
||||||
G_GUINT64_FORMAT " local2 %" G_GUINT64_FORMAT, local_1, remote_1,
|
|
||||||
remote_2, remote_avg, local_avg, local_2);
|
|
||||||
|
|
||||||
clock = GST_CLOCK_CAST (self);
|
clock = GST_CLOCK_CAST (self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue