Commit 7f9d0a2d authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: restart in case of kVTVideoDecoderMalfunctionErr

parent 82641ce4
......@@ -1694,12 +1694,12 @@ static int HandleVTStatus(decoder_t *p_dec, OSStatus status,
{
switch (status)
{
case -8960 /* codecErr */:
case kVTParameterErr:
case kCVReturnInvalidArgument:
case kVTVideoDecoderMalfunctionErr:
*p_vtsession_status = VTSESSION_STATUS_ABORT;
break;
case -8960 /* codecErr */:
case kVTVideoDecoderMalfunctionErr:
case -8969 /* codecBadDataErr */:
case kVTVideoDecoderBadDataErr:
case kVTInvalidSessionErr:
......
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