0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

mac-virtualcam: Release pixel buffer pool for DAL as well

The pixel buffer pool is used to create pixel buffers with both the CMIO
extension and the DAL plugin. As such, it is created independent of
which camera type is used, and should be released independent of it as
well.
This commit is contained in:
gxalpha 2023-05-27 14:58:48 +02:00 committed by Patrick Heyer
parent 48a0e7822a
commit 2a4c8594a1

View File

@ -540,10 +540,10 @@ static void virtualcam_output_stop(void *data, uint64_t ts)
if (cmio_extension_supported()) {
CMIODeviceStopStream(vcam->deviceID, vcam->streamID);
CFRelease(vcam->formatDescription);
CVPixelBufferPoolRelease(vcam->pool);
} else {
[vcam->machServer stop];
}
CVPixelBufferPoolRelease(vcam->pool);
}
static void virtualcam_output_raw_video(void *data, struct video_data *frame)