slackbuilds_ponce/multimedia/obs-studio/0011-Fix-FTBFS-on-32bit-archs.patch
Christoph Willing 6239c40536
multimedia/obs-studio: Add patch to fix 32bit build
Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2024-05-18 06:55:31 +07:00

43 lines
1.3 KiB
Diff

From: =?utf-8?q?=22IOhannes_m_zm=C3=B6lnig_=28Debian/GNU=29=22?=
<umlaeute@debian.org>
Date: Tue, 27 Jun 2023 14:06:19 +0200
Subject: Fix FTBFS on 32bit archs
---
libobs-opengl/gl-egl-common.c | 4 +++-
libobs/obs.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
--- obs-studio.orig/libobs-opengl/gl-egl-common.c
+++ obs-studio/libobs-opengl/gl-egl-common.c
@@ -368,16 +368,18 @@
uint64_t **modifiers,
size_t *n_modifiers)
{
+ EGLuint64KHR n_modifiers_egl = *n_modifiers;
if (!glad_eglQueryDmaBufModifiersEXT) {
blog(LOG_ERROR, "Unable to load eglQueryDmaBufModifiersEXT");
return false;
}
if (!query_dmabuf_modifiers(egl_display, drm_format, modifiers,
- n_modifiers)) {
+ &n_modifiers_egl)) {
*n_modifiers = 0;
*modifiers = NULL;
return false;
}
+ *n_modifiers = n_modifiers_egl;
return true;
}
--- obs-studio.orig/libobs/obs.c
+++ obs-studio/libobs/obs.c
@@ -885,7 +885,7 @@
obs->video.mixes.array[i] = NULL;
}
if (num_views > 0)
- blog(LOG_WARNING, "Number of remaining views: %ld", num_views);
+ blog(LOG_WARNING, "Number of remaining views: %ld", (long int)num_views);
pthread_mutex_unlock(&obs->video.mixes_mutex);
pthread_mutex_destroy(&obs->video.mixes_mutex);