From: Ukn Unknown <4031821+uknunknown@users.noreply.github.com> Date: Sun, 2 Nov 2025 19:39:32 +0000 (-0800) Subject: fixes vainfo get_config_attributes() return with error X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2169e12352579de6adafcff646c6a6afc132bec5;p=thirdparty%2Ftvheadend.git fixes vainfo get_config_attributes() return with error - fixes vainfo get_config_attributes() return with error --- diff --git a/src/transcoding/codec/vainfo.c b/src/transcoding/codec/vainfo.c index f99435133..69c167896 100644 --- a/src/transcoding/codec/vainfo.c +++ b/src/transcoding/codec/vainfo.c @@ -141,7 +141,7 @@ get_config_attributes(VADisplay va_dpy, VAProfile profile, VAEntrypoint entrypoi attrib_list, max_num_attributes); if (VA_STATUS_ERROR_UNSUPPORTED_PROFILE == va_status || VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT == va_status) - return 0; + return -1; if (attrib_list[VAConfigAttribEncMaxRefFrames].value & (~VA_ATTRIB_NOT_SUPPORTED)) { if (show_log) {