mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue