Help with Gst.Iterator.find_custom() in python

Marianna S. Buschle msb at qtec.com
Tue May 25 08:47:36 UTC 2021


Hi, thanks for the help

I had tried using the iterator directly previously, but couldn't get it to
work either.
So I though that maybe it was me not knowing how to use it.

But with your code I'm getting similar errors:

API Exception: {'type': 'TypeError', 'args': ("'Iterator' object is not
iterable",), 'message': "'Iterator' object is not iterable"}
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/jsonrpc/manager.py", line 113, in
_get_responses
    result = method(*request.args, **request.kwargs)
  File "/home/msb/QtecGit/python-tests/gst_ctrl.py", line 283, in play
    gst_handler.play(index)
  File "/home/msb/QtecGit/python-tests/gst_ctrl.py", line 79, in play
    elem = gst_bin_get_by_gtype(self.pipeline[index], "filesink")
  File "/home/msb/QtecGit/python-tests/gst_ctrl.py", line 61, in
gst_bin_get_by_gtype
    return None if factory is None else next(filter(lambda c: c.__gtype__ ==
factory.get_element_type(), bin.iterate_recurse()), None)
TypeError: 'Iterator' object is not iterable




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list