From c9e13f8834be62f2ccb8215b5db41d664018abfe Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 28 Jun 2022 16:38:09 -0400 Subject: [PATCH] python: Fix the audiotestsrc example Since 830d1595b94ee855b664b2101f0832fbd0181b9c AudioInfo::from_caps has been hidden in python Part-of: --- .../gst-python/examples/plugins/python/py_audiotestsrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py b/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py index 3684d67347..eb8271adf4 100644 --- a/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py +++ b/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py @@ -86,7 +86,7 @@ class AudioTestSrc(GstBase.BaseSrc): self.set_format(Gst.Format.TIME) def do_set_caps(self, caps): - self.info.from_caps(caps) + self.info = GstAudio.AudioInfo.new_from_caps(caps) self.set_blocksize(self.info.bpf * SAMPLESPERBUFFER) return True