From 3bd600741c425000ab0ea8ba650ee1e93ad3a7a7 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 20 May 2021 15:28:13 +0900 Subject: [PATCH] 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: --- gst/audiolatency/gstaudiolatency.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/audiolatency/gstaudiolatency.c b/gst/audiolatency/gstaudiolatency.c index 4ae5bfaf7d..80d0026942 100644 --- a/gst/audiolatency/gstaudiolatency.c +++ b/gst/audiolatency/gstaudiolatency.c @@ -190,7 +190,8 @@ gst_audiolatency_init (GstAudioLatency * self) /* 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);