From c5c4e089f6939ac0e895a30976d6ebf12980b13f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 11 Mar 2018 16:11:02 +0100 Subject: Fix VLC version check --- src/VLCInput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 70af724..ae7356f 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -560,7 +560,10 @@ vlc_data_type_e check_vlc_uses_size_t() if (minor_ver_sz) { int minor_ver = atoi(minor_ver_sz); - if (major_ver >= 2 && minor_ver >= 2) { + if (major_ver > 2) { + return vlc_data_type_e::vlc_uses_size_t; + } + else if (major_ver >= 2 && minor_ver >= 2) { return vlc_data_type_e::vlc_uses_size_t; } else { -- cgit v1.2.3