0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

mac-virtualcam: Omit enqueue result codes

This commit is contained in:
gxalpha 2023-05-20 16:48:03 +02:00 committed by Rodney
parent 1291461219
commit 47d6d7e943

View File

@ -626,10 +626,11 @@ static void virtualcam_output_raw_video(void *data, struct video_data *frame)
.presentationTimeStamp =
CMTimeMake(frame->timestamp, NSEC_PER_SEC)};
OSStatus result = CMSampleBufferCreateForImageBuffer(
kCFAllocatorDefault, frameRef, true, NULL, NULL,
vcam->formatDescription, &timingInfo, &sampleBuffer);
result = CMSimpleQueueEnqueue(vcam->queue, sampleBuffer);
CMSampleBufferCreateForImageBuffer(kCFAllocatorDefault,
frameRef, true, NULL, NULL,
vcam->formatDescription,
&timingInfo, &sampleBuffer);
CMSimpleQueueEnqueue(vcam->queue, sampleBuffer);
} else {
// Share pixel buffer with clients
[vcam->machServer sendPixelBuffer:frameRef