[vlc-commits] videotoolbox: always abort in case of unknown errors

Thomas Guillem git at videolan.org
Fri Mar 9 13:41:55 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar  9 13:02:27 2018 +0100| [da295d94d11518087dac0d21633ae62a1fba1b22] | committer: Thomas Guillem

videotoolbox: always abort in case of unknown errors

Better to fallback to avcodec in that case.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da295d94d11518087dac0d21633ae62a1fba1b22
---

 modules/codec/videotoolbox.m | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 6465fd8131..8c92d6bb5a 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -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;
         }
     }



More information about the vlc-commits mailing list