python: Update audiotestsrc to return correct tuple on FlowReturn Errors
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1259>
This commit is contained in:
parent
20b87e39e9
commit
1e6d26ac2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user