[vlc-commits] [Git][videolan/vlc][master] avsb: check for empty buffers being passed

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Aug 12 15:34:33 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
9b737741 by Advait Dhamorikar at 2024-08-12T15:20:25+00:00
avsb: check for empty buffers being passed

- - - - -


1 changed file:

- modules/audio_output/apple/avsamplebuffer.m


Changes:

=====================================
modules/audio_output/apple/avsamplebuffer.m
=====================================
@@ -253,6 +253,12 @@ customBlock_Free(void *refcon, void *doomedMemoryBlock, size_t sizeInBytes)
             _outChainLast = &_outChain;
 
         CMSampleBufferRef buffer = [self wrapBuffer:&block];
+        if (buffer == nil)
+        {
+            vlc_mutex_unlock(&_bufferLock);
+            return;
+        }
+
         _ptsSamples += CMSampleBufferGetNumSamples(buffer);
 
         [_renderer enqueueSampleBuffer:buffer];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9b737741e3afa3cd58e6804e7a33283839276fb8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9b737741e3afa3cd58e6804e7a33283839276fb8
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list