[vlc-devel] [PATCH 2/2] videotoolbox: remove explicit abort error cases
Marvin Scholz
epirat07 at gmail.com
Thu Oct 1 14:38:18 CEST 2020
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)
More information about the vlc-devel
mailing list