[vlc-commits] videotoolbox: restart in case of kVTVideoDecoderMalfunctionErr

Thomas Guillem git at videolan.org
Fri Jan 12 09:48:48 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan  9 17:09:32 2018 +0100| [eddaf7b02656025c3dec83b0a715cd960ff146bb] | committer: Thomas Guillem

videotoolbox: restart in case of kVTVideoDecoderMalfunctionErr

(cherry picked from commit 7f9d0a2d8f6136a8c95d995d0d4b55ceff9870d9)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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:



More information about the vlc-commits mailing list