python: Update audiotestsrc to return correct tuple on FlowReturn Errors
authorChris Wiggins <chris@wiggins.nz>
Wed, 27 Oct 2021 04:20:39 +0000 (17:20 +1300)
committerChris Wiggins <chris@wiggins.nz>
Wed, 27 Oct 2021 04:20:39 +0000 (17:20 +1300)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1259>

subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py

index 08e1269..5e5ef3b 100644 (file)
@@ -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