]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fixes vainfo get_config_attributes() return with error
authorUkn Unknown <4031821+uknunknown@users.noreply.github.com>
Sun, 2 Nov 2025 19:39:32 +0000 (11:39 -0800)
committerFlole <Flole998@users.noreply.github.com>
Sun, 2 Nov 2025 22:44:54 +0000 (23:44 +0100)
- fixes vainfo get_config_attributes() return with error

src/transcoding/codec/vainfo.c

index f994351333903f703211ef7a9598961a1d9de13b..69c1678969d94bbd441eb8b95c7c91abf3dbde9f 100644 (file)
@@ -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) {