mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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.
This commit is contained in:
parent
028a4666fa
commit
a5044fa1f9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue