[vlc-commits] [Git][videolan/vlc][master] codec: videotoolbox: don't restart on kVTVideoDecoderReferenceMissingErr
    Steve Lhomme (@robUx4) 
    gitlab at videolan.org
       
    Fri May 17 10:11:14 UTC 2024
    
    
  
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
20eb666f by Marvin Scholz at 2024-05-17T09:53:39+00:00
codec: videotoolbox: don't restart on kVTVideoDecoderReferenceMissingErr
In f7434e60fc38e78b9356600d1452e850eb5ec2d9 I made this a non-critical
error but after some more testing with a stream with a lot of missing
references, it works fine when not restarting VideoToolbox fully when
this happens and actually results in better playback.
- - - - -
1 changed file:
- modules/codec/videotoolbox/decoder.c
Changes:
=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -1748,11 +1748,13 @@ static int HandleVTStatus(decoder_t *p_dec, OSStatus status,
             case -8960 /* codecErr */:
             case kVTVideoDecoderMalfunctionErr:
             case kVTInvalidSessionErr:
-            case kVTVideoDecoderReferenceMissingErr:
             case kVTVideoDecoderBadDataErr:
             case -8969 /* codecBadDataErr */:
                 *p_vtsession_status = VTSESSION_STATUS_RESTART;
                 break;
+            case kVTVideoDecoderReferenceMissingErr:
+                *p_vtsession_status = VTSESSION_STATUS_OK;
+                break;
             default:
                 *p_vtsession_status = VTSESSION_STATUS_ABORT;
                 break;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/20eb666f54d18ce22aa260f9ca2c58ac7de37ad4
-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/20eb666f54d18ce22aa260f9ca2c58ac7de37ad4
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