Skip to content

Commit

Permalink
Fix VLC version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbraendli committed Mar 11, 2018
1 parent 2285fef commit c5c4e08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/VLCInput.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit c5c4e08

Please sign in to comment.