Expected use case of audiolatency element is that mimic audio capture
device which is most likely live source. So audiolatency element
should use live mode as well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2265>
/* Setup srcpad */
self->audiosrc = gst_element_factory_make ("audiotestsrc", NULL);
- g_object_set (self->audiosrc, "wave", 8, "samplesperbuffer", 240, NULL);
+ g_object_set (self->audiosrc, "wave", 8, "samplesperbuffer", 240,
+ "is-live", TRUE, NULL);
gst_bin_add (GST_BIN (self), self->audiosrc);
templ = gst_static_pad_template_get (&src_template);