From a5044fa1f9337b68c03873e450a2f089b3ed81e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 12 Jun 2015 23:35:32 +0200 Subject: [PATCH] test-netclock: Use new ntp-time-source property on rtpbin Select the clock time to be used as NTP time source. This allows proper synchronization between receivers, independent of sharing base times, and just requires them to use the same clock. --- examples/test-netclock-client.c | 2 +- examples/test-netclock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test-netclock-client.c b/examples/test-netclock-client.c index 57c9c6ade3..2da9b73fc7 100644 --- a/examples/test-netclock-client.c +++ b/examples/test-netclock-client.c @@ -29,7 +29,7 @@ static void source_created (GstElement * pipe, GstElement * source) { g_object_set (source, "latency", PLAYBACK_DELAY_MS, - "use-pipeline-clock", TRUE, "buffer-mode", 4, "ntp-sync", TRUE, NULL); + "ntp-time-source", 3, "buffer-mode", 4, "ntp-sync", TRUE, NULL); } static gboolean diff --git a/examples/test-netclock.c b/examples/test-netclock.c index 2b5856a8ed..6fa728a173 100644 --- a/examples/test-netclock.c +++ b/examples/test-netclock.c @@ -118,7 +118,7 @@ test_rtsp_media_init (TestRTSPMedia * media) static gboolean custom_setup_rtpbin (GstRTSPMedia * media, GstElement * rtpbin) { - g_object_set (rtpbin, "use-pipeline-clock", TRUE, NULL); + g_object_set (rtpbin, "ntp-time-source", 3, NULL); return TRUE; } -- 2.34.1