[vlc-devel] [PATCH 2/2] videotoolbox: remove explicit abort error cases
Alexandre Janniaux
ajanni at videolabs.io
Fri Oct 2 07:47:34 CEST 2020
Hi,
It was actually useful to find the case where the error
was happening but it probably doesn't deserve a case
anyway.
LGTM.
Regards,
--
Alexandre Janniaux
Videolabs
On Thu, Oct 01, 2020 at 02:38:18PM +0200, Marvin Scholz wrote:
> All of these anyway fall through to default, so it is confusing to
> list those specifically, while a lot more errors are treated as
> reason for aborting the VideoToolbox decoding session.
> ---
> modules/codec/videotoolbox.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/modules/codec/videotoolbox.c b/modules/codec/videotoolbox.c
> index 91d9d08ff10..2f26858de4f 100644
> --- a/modules/codec/videotoolbox.c
> +++ b/modules/codec/videotoolbox.c
> @@ -1758,8 +1758,6 @@ static int HandleVTStatus(decoder_t *p_dec, OSStatus status,
> case kVTInvalidSessionErr:
> *p_vtsession_status = VTSESSION_STATUS_RESTART;
> break;
> - case -8969 /* codecBadDataErr */:
> - case kVTVideoDecoderBadDataErr:
> default:
> *p_vtsession_status = VTSESSION_STATUS_ABORT;
> break;
> --
> 2.24.3 (Apple Git-128)
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list