summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch')
-rw-r--r--meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch b/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch
deleted file mode 100644
index bd849a75dd..0000000000
--- a/meta-oe/recipes-multimedia/mplayer/libplacebo/0001-Fix-compiling-demos-without-nuklear.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From ad0bbc5099d99bbb0c914b39cb5ab4920fd6eeda Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sun, 16 Feb 2025 14:23:40 +0100
4Subject: [PATCH] Fix compiling demos without nuklear
5
6Demos can't be compiled if nuklear headers are not present, because
7the implementation of parse_args function is guarded by HAVE_NUKLEAR macro.
8
9To allow compiling demos without the Nuklear headers, move the implementation
10outside of this ifdef.
11
12Upstream-Status: Submitted [https://github.com/haasn/libplacebo/pull/315]
13---
14 demos/settings.c | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17diff --git a/demos/settings.c b/demos/settings.c
18index 197e8b7e..73f0e5b9 100644
19--- a/demos/settings.c
20+++ b/demos/settings.c
21@@ -14,9 +14,6 @@
22 #define PL_BASENAME basename
23 #endif
24
25-#ifdef HAVE_NUKLEAR
26-#include "ui.h"
27-
28 bool parse_args(struct plplay_args *args, int argc, char *argv[])
29 {
30 static struct option long_options[] = {
31@@ -89,6 +86,9 @@ error:
32 return false;
33 }
34
35+#ifdef HAVE_NUKLEAR
36+#include "ui.h"
37+
38 static void add_hook(struct plplay *p, const struct pl_hook *hook, const char *path)
39 {
40 if (!hook)