mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
03c42e5b93
Fixes several possible crash issues that might occur on Intel-based Macs and older macOS versions: On modern macOS versions (13+) allocated memory is zero-allocated by default which makes NULL pointer checks work correctly after allocation. On older macOS versions this is not the case, so the OBSAVCaptureInfo struct needs to be zero-allocated to ensure the guards in the tick and render functions bail out correctly. On Intel-based Macs and/or older macOS versions passing a reference to the OBSAVCapture instance inside the OBSAVCapture struct can lead to a crash because of a possible circular reference that cannot be resolved at runtime. Passing only a reference of the OBSAVCapture to libobs and incrementing the retain count at source creation (decrementing in when the source is destroyed) avoids this issue entirely. |
||
---|---|---|
.. | ||
aja | ||
coreaudio-encoder | ||
decklink | ||
image-source | ||
linux-alsa | ||
linux-capture | ||
linux-jack | ||
linux-pipewire | ||
linux-pulseaudio | ||
linux-v4l2 | ||
mac-avcapture | ||
mac-capture | ||
mac-syphon | ||
mac-videotoolbox | ||
mac-virtualcam | ||
obs-browser@9c235def6e | ||
obs-ffmpeg | ||
obs-filters | ||
obs-libfdk | ||
obs-outputs | ||
obs-qsv11 | ||
obs-text | ||
obs-transitions | ||
obs-vst | ||
obs-webrtc | ||
obs-websocket@9ee6e2ff2a | ||
obs-x264 | ||
oss-audio | ||
rtmp-services | ||
sndio | ||
text-freetype2 | ||
vlc-video | ||
win-capture | ||
win-dshow | ||
win-wasapi | ||
CMakeLists.txt |