obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Image Slideshow private image sources being passed to `obs_enum_sources`.

Open FiniteSingularity opened this issue 1 year ago • 0 comments

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

FiniteSingularity avatar Oct 07 '24 14:10 FiniteSingularity