commit b0321740ce8033bf207f36c64d5cd1a55b284850
Author: Jan Grulich <jgrulich(a)redhat.com>
Date: Mon Feb 19 11:22:49 2024 +0100
Fix i686 build
obs-studio-fix-incompatible-pointer-type.patch | 13 +++++++++++++
obs-studio-freeworld.spec | 3 +++
2 files changed, 16 insertions(+)
---
diff --git a/obs-studio-fix-incompatible-pointer-type.patch
b/obs-studio-fix-incompatible-pointer-type.patch
new file mode 100644
index 0000000..f34e81b
--- /dev/null
+++ b/obs-studio-fix-incompatible-pointer-type.patch
@@ -0,0 +1,13 @@
+diff --git a/libobs-opengl/gl-egl-common.c b/libobs-opengl/gl-egl-common.c
+index f06cd19..023068f 100644
+--- a/libobs-opengl/gl-egl-common.c
++++ b/libobs-opengl/gl-egl-common.c
+@@ -373,7 +373,7 @@ bool gl_egl_query_dmabuf_modifiers_for_format(EGLDisplay
egl_display,
+ return false;
+ }
+ if (!query_dmabuf_modifiers(egl_display, drm_format, modifiers,
+- n_modifiers)) {
++ (EGLuint64KHR*)n_modifiers)) {
+ *n_modifiers = 0;
+ *modifiers = NULL;
+ return false;
diff --git a/obs-studio-freeworld.spec b/obs-studio-freeworld.spec
index f5e482e..36e2e01 100644
--- a/obs-studio-freeworld.spec
+++ b/obs-studio-freeworld.spec
@@ -52,6 +52,9 @@ Patch0103:
0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch
Patch1001: obs-studio-30-cmake-3.20.patch
## Use fdk-aac by default
Patch1002: obs-studio-UI-use-fdk-aac-by-default.patch
+## Fix error: passing argument 4 of ‘query_dmabuf_modifiers’ from
+## incompatible pointer type [-Wincompatible-pointer-types]
+Patch1003: obs-studio-fix-incompatible-pointer-type.patch
BuildRequires: gcc