diff options
author | Seungha Yang <seungha@centricular.com> | 2021-05-20 15:28:13 +0900 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-05-21 00:42:51 +0100 |
commit | 91b57c20ec2bb9bb71ddf13073d87e5851b05e1a (patch) | |
tree | 4246b44687d6412f9908effc9aa4388af5536b55 | |
parent | f1d80b87ee122068f4019926654277d9763e16d2 (diff) | |
download | gstreamer-plugins-bad-91b57c20ec2bb9bb71ddf13073d87e5851b05e1a.tar.gz |
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/2271>
-rw-r--r-- | gst/audiolatency/gstaudiolatency.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/audiolatency/gstaudiolatency.c b/gst/audiolatency/gstaudiolatency.c index 7e6ec42a3..c4adb1569 100644 --- a/gst/audiolatency/gstaudiolatency.c +++ b/gst/audiolatency/gstaudiolatency.c @@ -186,7 +186,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); |