Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_rtsp example throw: TypeError: 'Iterator' object is not iterable #14

Open
shithead opened this issue Dec 9, 2021 · 0 comments
Open

Comments

@shithead
Copy link

shithead commented Dec 9, 2021

Throw an Error TypeError: 'Iterator' object is not iterable in example run_rtsp.py.

return [e for e in element.iterate_elements() if isinstance(e, cls)]

Log:

Traceback (most recent call last):
  File "rtsp-server.py", line 212, in do_configure
    appsrcs = get_child_by_cls(rtsp_media.get_element(), GstApp.AppSrc)
  File "rtsp-server.py", line 162, in get_child_by_cls
    return [e for e in element.iterate_elements() if isinstance(e, cls)]
TypeError: 'Iterator' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant