mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
test-netclock-client: Use new GstClock API to wait for clock synchronization
This commit is contained in:
parent
6219766555
commit
af2cb6445a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue