[vlc-commits] videotoolbox: fix exception on late-start

Felix Paul Kühne git at videolan.org
Mon Aug 24 15:38:34 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Aug 24 14:42:23 2015 +0200| [0c79ec9bfa0ecc7a90024718db2d3125cd8a1ed8] | committer: Felix Paul Kühne

videotoolbox: fix exception on late-start

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 0ba844c..422dd51 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -975,6 +975,9 @@ skip:
 
     *pp_block = NULL;
 
+    if (unlikely(!p_sys->b_started))
+        return NULL;
+
     NSUInteger outputFramesCount = [p_sys->outputFrames count];
 
     if (outputFramesCount > 5) {



More information about the vlc-commits mailing list