Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Commit 0cfc19b1 authored by Madeline Wade's avatar Madeline Wade

Reverting a change from python3 syntax

parent f3a3b8f8
Pipeline #50086 passed with stages
in 8 minutes and 36 seconds
......@@ -159,7 +159,7 @@ def transform_arrays(input_arrays, elemfunc, name, rate = 1, **elemfunc_kwargs):
pipeline = Gst.Pipeline(name = name)
head = pipeparts.mkgeneric(pipeline, None, "appsrc", caps = pipeio.caps_from_array(input_arrays[0], rate = rate))
def need_data(elem, arg, input_arrays, rate):
def need_data(elem, arg, (input_arrays, rate)):
if input_arrays:
arr = input_arrays.pop(0)
elem.set_property("caps", pipeio.caps_from_array(arr, rate))
......@@ -169,7 +169,7 @@ def transform_arrays(input_arrays, elemfunc, name, rate = 1, **elemfunc_kwargs):
return Gst.FlowReturn.EOS
head.connect("need-data", need_data, input_arrays, rate)
head.connect("need-data", need_data, (input_arrays, rate))
head = elemfunc(pipeline, head, **elemfunc_kwargs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment