mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
73b5e0a741
- `src/pipewire/thread.c`: patch to support use of custom `create_function` added in 16f629d224
Signed-off-by: Aditya Alok <alok@termux.dev>
14 lines
536 B
Diff
14 lines
536 B
Diff
--- pipewire-1.2.7/src/modules/module-rtp-sink.c 2024-11-26 14:37:54.000000000 +0530
|
|
+++ pipewire-1.2.7.mod/src/modules/module-rtp-sink.c 2025-01-08 16:46:26.537354237 +0530
|
|
@@ -258,6 +258,10 @@
|
|
pw_log_warn("setsockopt(SO_PRIORITY) failed: %m");
|
|
#endif
|
|
if (dscp > 0) {
|
|
+ #ifdef __ANDROID__
|
|
+ #define IPTOS_DSCP_MASK 0xfc
|
|
+ #define IPTOS_DSCP(x) ((x) & IPTOS_DSCP_MASK)
|
|
+ #endif
|
|
val = IPTOS_DSCP(dscp << 2);
|
|
if (setsockopt(fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0)
|
|
pw_log_warn("setsockopt(IP_TOS) failed: %m");
|