vlc | branch: master | Thomas Guillem <[email protected]> | Tue Jan  9 17:09:32 
2018 +0100| [7f9d0a2d8f6136a8c95d995d0d4b55ceff9870d9] | committer: Thomas 
Guillem

videotoolbox: restart in case of kVTVideoDecoderMalfunctionErr

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

 modules/codec/videotoolbox.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index a15209b8b4..ea84330317 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -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:

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

Reply via email to