test-netclock: Use gst_pipeline_set_latency() to set a high-enough, equal latency for all receivers

This commit is contained in:
Sebastian Dröge 2015-06-13 17:14:43 +02:00
parent a5044fa1f9
commit fdfe97f447

View file

@ -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");