-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
frontend_source_list_free not found in obspython #11538
Comments
Documented method is for the C API. Obspython has some added peculiarities as not everything is wrapped, and not everything that's wrapped is wrapped correctly. scenes_list = obs.obs_frontend_get_scenes()
for source in scenes_list:
print(obs.obs_source_get_name(source))
obs.obs_source_release(source) |
You shouldn't release the scenes manually if you release the list as a whole. I will add that in my opinion, in obspython, this function should only be used if you need to get the scenes in the order they are in the scenes dock. If you don't particularly need that order, I consider the more proper way to be |
Got you. Thanks. |
Operating System Info
Windows 11
Other OS
No response
OBS Studio Version
30.2.3
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/HtBfW67hMmYYh3GV
OBS Studio Crash Log URL
No response
Expected Behavior
Should free the created list and return True
Current Behavior
AttributeError: module 'obspython' has no attribute 'obs_frontend_source_list_free'
Steps to Reproduce
scenes = obs.obs_frontend_get_scenes()
obs.obs_frontend_source_list_free(scenes)
Anything else we should know?
This is my first bug report, if I'm missing something please be kind. :)
The text was updated successfully, but these errors were encountered: