ptp: Make sure to always initialize the variables we put into the statistics structur...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 8 Jun 2015 10:22:56 +0000 (12:22 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 8 Jun 2015 10:22:56 +0000 (12:22 +0200)
CID 1304676, 1304677, 1304678, 1304679.

libs/gst/net/gstptpclock.c

index 028c4f2..fe406ec 100644 (file)
@@ -1090,6 +1090,8 @@ update_ptp_time (PtpDomainData * domain, PtpPendingSync * sync)
         GST_TIME_ARGS (sync->follow_up_recv_time_local),
         GST_TIME_ARGS (domain->mean_path_delay));
     synced = FALSE;
+    gst_clock_get_calibration (GST_CLOCK_CAST (domain->domain_clock),
+        &internal_time, &external_time, &rate_num, &rate_den);
     goto out;
   }
 #endif