diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-06-13 17:14:43 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-06-13 17:14:43 +0200 |
commit | fdfe97f447282c3ad9c1004516926173ba4a525d (patch) | |
tree | e46fe91698b32ccff8aaef60ced620c9a9e43aac | |
parent | a5044fa1f9337b68c03873e450a2f089b3ed81e5 (diff) |
test-netclock: Use gst_pipeline_set_latency() to set a high-enough, equal latency for all receivers
-rw-r--r-- | examples/test-netclock-client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/test-netclock-client.c b/examples/test-netclock-client.c index 2da9b73..e862ca9 100644 --- a/examples/test-netclock-client.c +++ b/examples/test-netclock-client.c @@ -122,6 +122,10 @@ main (int argc, char *argv[]) gst_pipeline_use_clock (GST_PIPELINE (pipe), net_clock); + /* Set this high enough so that it's higher than the minimum latency + * on all receivers */ + gst_pipeline_set_latency (GST_PIPELINE (pipe), 500 * GST_MSECOND); + if (gst_element_set_state (pipe, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) { g_print ("Failed to set state to PLAYING\n"); |