Commit f7df6eb7 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: always abort in case of unknown errors

Better to fallback to avcodec in that case.

(cherry picked from commit da295d94)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 1dc878e2
......@@ -1763,10 +1763,6 @@ static int HandleVTStatus(decoder_t *p_dec, OSStatus status,
{
switch (status)
{
case kVTParameterErr:
case kCVReturnInvalidArgument:
*p_vtsession_status = VTSESSION_STATUS_ABORT;
break;
case kVTPixelTransferNotSupportedErr:
case kVTPixelTransferNotPermittedErr:
*p_vtsession_status = VTSESSION_STATUS_RESTART_CHROMA;
......@@ -1779,7 +1775,7 @@ static int HandleVTStatus(decoder_t *p_dec, OSStatus status,
*p_vtsession_status = VTSESSION_STATUS_RESTART;
break;
default:
*p_vtsession_status = VTSESSION_STATUS_OK;
*p_vtsession_status = VTSESSION_STATUS_ABORT;
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment