vlc | branch: master | Thomas Guillem <[email protected]> | Wed Nov 22 08:46:32 
2017 +0100| [7edf23a71a995efffcb5ce9415d258c2c6a82af3] | committer: Thomas 
Guillem

videotoolbox: fix "videotoolbox-hw-decoder-only" option type

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 020bd890a1..1ad3d3c983 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -602,7 +602,7 @@ static CFMutableDictionaryRef 
CreateSessionDescriptionFormat(decoder_t *p_dec,
 
     /* on OS X, we can force VT to fail if no suitable HW decoder is available,
      * preventing the aforementioned SW fallback */
-    if (var_InheritInteger(p_dec, "videotoolbox-hw-decoder-only"))
+    if (var_InheritBool(p_dec, "videotoolbox-hw-decoder-only"))
         CFDictionarySetValue(decoderConfiguration,
                              
kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder,
                              kCFBooleanTrue);

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

Reply via email to