audiolatency: Use live mode audiotestsrc

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>
This commit is contained in:
Seungha Yang 2021-05-20 15:28:13 +09:00
parent 818db8f0b3
commit 3bd600741c

View file

@ -190,7 +190,8 @@ gst_audiolatency_init (GstAudioLatency * self)
/* Setup srcpad */ /* Setup srcpad */
self->audiosrc = gst_element_factory_make ("audiotestsrc", NULL); 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); gst_bin_add (GST_BIN (self), self->audiosrc);
templ = gst_static_pad_template_get (&src_template); templ = gst_static_pad_template_get (&src_template);