mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 01:38:44 +00:00
Fix warnings in 32-bit builds
This commit is contained in:
parent
f07201baa9
commit
6eb5e07007
2 changed files with 4 additions and 4 deletions
|
@ -254,7 +254,7 @@ ssize_t EglImageFactory::exportVAImages(AVFrame *frame, VADRMPRIMESurfaceDescrip
|
|||
// Max 33 attributes (1 key + 1 value for each)
|
||||
const int EGL_ATTRIB_COUNT = 33 * 2;
|
||||
EGLAttrib attribs[EGL_ATTRIB_COUNT] = {
|
||||
EGL_LINUX_DRM_FOURCC_EXT, layer.drm_format,
|
||||
EGL_LINUX_DRM_FOURCC_EXT, (EGLAttrib)layer.drm_format,
|
||||
EGL_WIDTH, i == 0 ? frame->width : frame->width / 2,
|
||||
EGL_HEIGHT, i == 0 ? frame->height : frame->height / 2,
|
||||
EGL_IMAGE_PRESERVED_KHR, EGL_TRUE,
|
||||
|
|
|
@ -973,14 +973,14 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy,
|
|||
}
|
||||
else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[0].drm_format, descriptor.objects[0].drm_format_modifier)) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Exporting separate layers due to lack of support for importing format and modifier: %08x %016lx",
|
||||
"Exporting separate layers due to lack of support for importing format and modifier: %08x %016" PRIx64,
|
||||
descriptor.layers[0].drm_format,
|
||||
descriptor.objects[0].drm_format_modifier);
|
||||
m_EglExportType = EglExportType::Separate;
|
||||
}
|
||||
else {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Exporting composed layers with format and modifier: %08x %016lx",
|
||||
"Exporting composed layers with format and modifier: %08x %016" PRIx64,
|
||||
descriptor.layers[0].drm_format,
|
||||
descriptor.objects[0].drm_format_modifier);
|
||||
m_EglExportType = EglExportType::Composed;
|
||||
|
@ -1002,7 +1002,7 @@ VAAPIRenderer::initializeEGL(EGLDisplay dpy,
|
|||
else if (!m_EglImageFactory.supportsImportingModifier(dpy, descriptor.layers[i].drm_format,
|
||||
descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier)) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"EGL implementation lacks support for importing format and modifier: %08x %016lx",
|
||||
"EGL implementation lacks support for importing format and modifier: %08x %016" PRIx64,
|
||||
descriptor.layers[i].drm_format,
|
||||
descriptor.objects[descriptor.layers[i].object_index[0]].drm_format_modifier);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue