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

Image Slideshow private image sources being passed to obs_enum_sources. #11362

Open
FiniteSingularity opened this issue Oct 7, 2024 · 0 comments

Comments

@FiniteSingularity
Copy link

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/6i7sDBeYDxFWihBz

OBS Studio Crash Log URL

No response

Expected Behavior

[The OBS documentation] (https://docs.obsproject.com/reference-sources#c.obs_source_create_private) indicates that private sources are not enumerated by the obs_enum_sources function. Thus private sources created should not be passed to the callback provided to obs_enum_sources.

Current Behavior

In my plugin, I am seeing private sources (specifically those created by the Image Slideshow source) passed to the callback function I provide for obs_enum_sources. I have added a check for obs_obj_is_private for sources in my callback function, and logged any private sources the callback sees. As you can see at the very bottom of the provided log file, two private image sources are being passed back. I have also validated that these are not normal image sources (as all created image sources have already been passed through obs_enum_sources, and the only two private image sources in the scene collection originate from the Image Slideshow source.

I have had several reports of this issue causing crashes with my plugin. I have since fixed the issue with the check for a private source.

Steps to Reproduce

  1. Create an obs_enum_sources callback, that checks for private sources.
  2. Create a scene collection with an Image Slideshow (and some images in that slideshow).
  3. Trigger the obs_enum_sources call.
  4. See the private image sources appear in the callback.

Anything else we should know?

No response

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