From af2cb6445ad56383478322d463fd15d0aea1b3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 9 Jun 2015 13:53:47 +0200 Subject: [PATCH] test-netclock-client: Use new GstClock API to wait for clock synchronization --- examples/test-netclock-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test-netclock-client.c b/examples/test-netclock-client.c index bd0ae74371..c6c981225f 100644 --- a/examples/test-netclock-client.c +++ b/examples/test-netclock-client.c @@ -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);