Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alarrosa:branches:multimedia:libs
libva
0004-va-fix-handling-when-all-wayland-backends-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-va-fix-handling-when-all-wayland-backends-fail.patch of Package libva
From b8c7eed68846a8b9cdf1040be414880a4e0924a8 Mon Sep 17 00:00:00 2001 From: shironeko <shironeko@tesaguri.club> Date: Sun, 7 Jan 2024 04:06:40 -0500 Subject: [PATCH] va: fix handling when all wayland backends fail when all backend failed vaGetDisplayWl will just return a context that was already destroyed. This leads to crashes if downstream tries to use the context. --- va/wayland/va_wayland.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/va/wayland/va_wayland.c b/va/wayland/va_wayland.c index b3e1f5c8a..95ac3c36b 100644 --- a/va/wayland/va_wayland.c +++ b/va/wayland/va_wayland.c @@ -133,12 +133,10 @@ vaGetDisplayWl(struct wl_display *display) for (i = 0; g_backends[i].create != NULL; i++) { if (g_backends[i].create(pDisplayContext)) - break; + return (VADisplay)pDisplayContext; g_backends[i].destroy(pDisplayContext); } - return (VADisplay)pDisplayContext; - error: va_DisplayContextDestroy(pDisplayContext); return NULL;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor