X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fva_display.cpp;fp=shared%2Fva_display.cpp;h=dac1dc00ae22d1a0c793fee671e8217b19d69f97;hb=c30205e449b4f09023b2970022ef89141131b2e6;hp=c74d75940dea1c1e4036e4c93403162510571d46;hpb=7092d222bb356549ef453f9c6f0b21123fd8a2ce;p=nageru diff --git a/shared/va_display.cpp b/shared/va_display.cpp index c74d759..dac1dc0 100644 --- a/shared/va_display.cpp +++ b/shared/va_display.cpp @@ -104,7 +104,7 @@ unique_ptr try_open_va( break; } } - if (!found_profile) { + if (found_profile == VAProfileNone) { if (error != nullptr) *error = "Can't find entry points for suitable codec profile"; return nullptr; }