mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-21 09:49:06 +00:00
Upgrade SDL (2.32.8)
This commit is contained in:
parent
ac16be54c8
commit
1a9ffb3814
2 changed files with 2 additions and 36 deletions
|
@ -1,33 +0,0 @@
|
||||||
From 6be87ceb33a9aad3bf5204bb13b3a5e8b498fd26 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Neal Gompa <neal@gompa.dev>
|
|
||||||
Date: Mon, 10 Feb 2025 05:00:56 -0500
|
|
||||||
Subject: [PATCH] pipewire: Ensure that the correct struct is used for
|
|
||||||
enumeration APIs
|
|
||||||
|
|
||||||
PipeWire now requires the correct struct type is used, otherwise
|
|
||||||
it will fail to compile.
|
|
||||||
|
|
||||||
Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f
|
|
||||||
|
|
||||||
Fixes: https://github.com/libsdl-org/SDL/issues/12224
|
|
||||||
(cherry picked from commit d35bef64e913dd7d5dd3153a4b61f10ef837dad6)
|
|
||||||
---
|
|
||||||
src/audio/pipewire/SDL_pipewire.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c
|
|
||||||
index 889e05decb..5d1bfc28de 100644
|
|
||||||
--- a/src/audio/pipewire/SDL_pipewire.c
|
|
||||||
+++ b/src/audio/pipewire/SDL_pipewire.c
|
|
||||||
@@ -590,7 +590,7 @@ static void node_event_info(void *object, const struct pw_node_info *info)
|
|
||||||
|
|
||||||
/* Need to parse the parameters to get the sample rate */
|
|
||||||
for (i = 0; i < info->n_params; ++i) {
|
|
||||||
- pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL);
|
|
||||||
+ pw_node_enum_params((struct pw_node*)node->proxy, 0, info->params[i].id, 0, 0, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
hotplug_core_sync(node);
|
|
||||||
--
|
|
||||||
2.49.0
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ cd "$DEPS_DIR"
|
||||||
. common
|
. common
|
||||||
process_args "$@"
|
process_args "$@"
|
||||||
|
|
||||||
VERSION=2.32.2
|
VERSION=2.32.8
|
||||||
FILENAME=SDL-$VERSION.tar.gz
|
FILENAME=SDL-$VERSION.tar.gz
|
||||||
PROJECT_DIR=SDL-release-$VERSION
|
PROJECT_DIR=SDL-release-$VERSION
|
||||||
SHA256SUM=f2c7297ae7b3d3910a8b131e1e2a558fdd6d1a4443d5e345374d45cadfcb05a4
|
SHA256SUM=dd35e05644ae527848d02433bec24dd0ea65db59faecf1a0e5d1880c533dac2c
|
||||||
|
|
||||||
cd "$SOURCES_DIR"
|
cd "$SOURCES_DIR"
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ then
|
||||||
else
|
else
|
||||||
get_file "https://github.com/libsdl-org/SDL/archive/refs/tags/release-$VERSION.tar.gz" "$FILENAME" "$SHA256SUM"
|
get_file "https://github.com/libsdl-org/SDL/archive/refs/tags/release-$VERSION.tar.gz" "$FILENAME" "$SHA256SUM"
|
||||||
tar xf "$FILENAME" # First level directory is "$PROJECT_DIR"
|
tar xf "$FILENAME" # First level directory is "$PROJECT_DIR"
|
||||||
patch -d "$PROJECT_DIR" -p1 < "$PATCHES_DIR"/SDL-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$BUILD_DIR/$PROJECT_DIR"
|
mkdir -p "$BUILD_DIR/$PROJECT_DIR"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue