From 7aeb2f6711a5b0dafa0aa4cdd4645ef619de9470 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: --- subprojects/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 3684d67..eb8271a 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 -- 2.7.4