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