vlc | branch: master | Marvin Scholz <[email protected]> | Mon Oct 16 00:14:51 
2017 +0200| [60b921795a4809ae7daf54702c32ba45837e3de1] | committer: Marvin 
Scholz

videotoolbox: Handle kVTParameterErr as error

Previously kVTParameterErr was not indicated as an error but as
VTSESSION_STATUS_OK in HandleVTStatus.

Ref #18925

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

 modules/codec/videotoolbox.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 7b4524566c..d406ac54bf 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1329,6 +1329,7 @@ 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to