From: Chris Wiggins Date: Wed, 27 Oct 2021 04:20:39 +0000 (+1300) Subject: python: Update audiotestsrc to return correct tuple on FlowReturn Errors X-Git-Tag: 1.19.3~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e6d26ac2b09d1923544ecaabb0b05797357a2bf;p=platform%2Fupstream%2Fgstreamer.git python: Update audiotestsrc to return correct tuple on FlowReturn Errors Part-of: --- 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