Open nekohayo opened 4 years ago
I have the exact same issue with my Nikon D5200. OBS outputs "double free or corruption (out)" when it crashes from this issue. In addition to crashing when I hide and then show the camera, it also crashes when I switch from a scene that does not use the camera to a scene that does use the camera. For example, when switching to my "Be Right Back" scene (which does not display my camera) and then back to my main scene, OBS crashes.
I've tested the above commit and can confirm that it works to prevent crashes from this issue.
If I add this plugin as a video source with my DSLR plugged in so I can use it in obs studio, if I temporarily disable the source (with the "eye" icon in the sources list) and then try to turn it on again, OBS will freeze or crash with the following:
If I try to run it in gdb, it looks like this when the crash is triggered: