From 73a58cb0a2b861df6c20a8c30747117562fa7523 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 27 Nov 2013 18:32:22 +1100 Subject: [PATCH] netclock: Fix docstring for round-trip-limit and uninit access warning. Fix a typo in a doc string - the property is round-trip-limit, not roundtrip-limit. Remove a bogus GST_WARNING that can print an uninitialised variable and is redundant anyway. --- libs/gst/net/gstnetclientclock.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index 990c9397a6..8c6399b2f7 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -130,7 +130,7 @@ gst_net_client_clock_class_init (GstNetClientClockClass * klass) DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** - * GstNetClientClock::roundtrip-limit: + * GstNetClientClock::round-trip-limit: * * Maximum allowed round-trip for packets. If this property is set to a nonzero * value, all packets with a round-trip interval larger than this limit will be @@ -311,17 +311,9 @@ gst_net_client_clock_observe_times (GstNetClientClock * self, return; bogus_observation: - { - GST_WARNING_OBJECT (self, - "bogus round-trip interval; too long round trip or " - "receive time < send time (%" GST_TIME_FORMAT " - %" GST_TIME_FORMAT - " => %" GST_TIME_FORMAT ")", GST_TIME_ARGS (local_1), - GST_TIME_ARGS (local_2), GST_TIME_ARGS (rtt)); - /* Schedule a new packet again soon */ - self->priv->timeout_expiration = - gst_util_get_timestamp () + (GST_SECOND / 4); - return; - } + /* Schedule a new packet again soon */ + self->priv->timeout_expiration = gst_util_get_timestamp () + (GST_SECOND / 4); + return; } static gpointer