mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Use the same X display name for VDPAU that SDL is using
This commit is contained in:
@@ -135,9 +135,15 @@ bool VDPAURenderer::initialize(PDECODER_PARAMETERS params)
|
||||
m_VideoWidth = params->width;
|
||||
m_VideoHeight = params->height;
|
||||
|
||||
char* displayName = nullptr;
|
||||
#ifdef HAS_X11
|
||||
SDL_assert(info.subsystem == SDL_SYSWM_X11);
|
||||
displayName = XDisplayString(info.info.x11.display);
|
||||
#endif
|
||||
|
||||
err = av_hwdevice_ctx_create(&m_HwContext,
|
||||
AV_HWDEVICE_TYPE_VDPAU,
|
||||
nullptr, nullptr, 0);
|
||||
displayName, nullptr, 0);
|
||||
|
||||
#if defined(APP_IMAGE) || defined(USE_FALLBACK_DRIVER_PATHS)
|
||||
// AppImages will be running with our libvdpau.so which means they don't know about
|
||||
|
||||
Reference in New Issue
Block a user