Skip to content
Snippets Groups Projects
Commit 20eb666f authored by Marvin Scholz's avatar Marvin Scholz Committed by Steve Lhomme
Browse files

codec: videotoolbox: don't restart on kVTVideoDecoderReferenceMissingErr

In f7434e60 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.
parent 872d7690
No related branches found
No related tags found
1 merge request!5410codec: videotoolbox: don't restart on kVTVideoDecoderReferenceMissingErr
Pipeline #470921 passed with warnings with stage
in 19 minutes and 39 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment