From 1e6d26ac2b09d1923544ecaabb0b05797357a2bf Mon Sep 17 00:00:00 2001 From: Chris Wiggins Date: Wed, 27 Oct 2021 17:20:39 +1300 Subject: [PATCH] python: Update audiotestsrc to return correct tuple on FlowReturn Errors 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 08e1269..5e5ef3b 100644 --- a/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py +++ b/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py @@ -174,7 +174,7 @@ class AudioTestSrc(GstBase.BaseSrc): array[:] = 0 except Exception as e: Gst.error("Mapping error: %s" % e) - return Gst.FlowReturn.ERROR + return (Gst.FlowReturn.ERROR, None) buf.offset = self.next_sample buf.offset_end = next_sample -- 2.7.4