test-netclock-client: Use new GstClock API to wait for clock synchronization
authorSebastian Dröge <sebastian@centricular.com>
Tue, 9 Jun 2015 11:53:47 +0000 (13:53 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 9 Jun 2015 11:53:47 +0000 (13:53 +0200)
examples/test-netclock-client.c

index bd0ae74..c6c9812 100644 (file)
@@ -111,8 +111,8 @@ main (int argc, char *argv[])
     return 1;
   }
 
-  /* Wait 0.5 seconds for the clock to stabilise */
-  g_usleep (G_USEC_PER_SEC / 2);
+  /* Wait for the clock to stabilise */
+  gst_clock_wait_for_sync (net_clock, GST_CLOCK_TIME_NONE);
 
   loop = g_main_loop_new (NULL, FALSE);