[vlc-commits] [Git][videolan/vlc][master] avsb: restart in case of critical failure
    Felix Paul Kühne (@fkuehne) 
    gitlab at videolan.org
       
    Mon Aug 12 09:06:56 UTC 2024
    
    
  
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
4c13e010 by Thomas Guillem at 2024-08-12T08:41:53+00:00
avsb: restart in case of critical failure
Seen some crashes with the following error: "AVFoundationErrorDomain
Code=-11803". It means the OS daemon has crashed.
It could happen on dev branch when starting with screwed timings. But I
guess it could happen on nominal case too (but very unlikely).
Restart the aout in that case.
- - - - -
1 changed file:
- modules/audio_output/apple/avsamplebuffer.m
Changes:
=====================================
modules/audio_output/apple/avsamplebuffer.m
=====================================
@@ -298,6 +298,12 @@ customBlock_Free(void *refcon, void *doomedMemoryBlock, size_t sizeInBytes)
 
     vlc_cond_signal(&_bufferWait);
     vlc_mutex_unlock(&_bufferLock);
+
+    if (_renderer.status == AVQueuedSampleBufferRenderingStatusFailed)
+    {
+        msg_Err(_aout, "AVQueuedSampleBufferRenderingStatusFailed, restarting");
+        aout_RestartRequest(_aout, false);
+    }
 }
 
 - (void)stopSyncRenderer
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4c13e01089d324421562695c82444cb70c8aab1d
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4c13e01089d324421562695c82444cb70c8aab1d
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