test-netclock: Use new ntp-time-source property on rtpbin
authorSebastian Dröge <sebastian@centricular.com>
Fri, 12 Jun 2015 21:35:32 +0000 (23:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 12 Jun 2015 21:35:32 +0000 (23:35 +0200)
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
examples/test-netclock.c

index 57c9c6ade36a56d9eb3daace2f079d1c2fa8961c..2da9b73fc7f422f8f3b0f0cd97ec9e3232bfe1cd 100644 (file)
@@ -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
index 2b5856a8ed2f62d6efa991822a61c8cb2e415ee3..6fa728a1735e693a80a37c7febb0a135c88e9d38 100644 (file)
@@ -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;
 }