mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 08:33:51 +02:00
pipewire: add patch to prevent invalid conversion error with C++
This commit is contained in:
parent
4267e20b03
commit
86d4b73baa
2 changed files with 23 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
From 371da358d1580dc06218d18a12a99611cac39e4e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jan Grulich <jgrulich@redhat.com>
|
||||||
|
Date: Wed, 2 Jan 2019 10:05:40 +0100
|
||||||
|
Subject: [PATCH] Avoid invalid conversion error with C++ compilators
|
||||||
|
|
||||||
|
---
|
||||||
|
src/pipewire/utils.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git src/pipewire/utils.h src/pipewire/utils.h
|
||||||
|
index 2ce9fdde..7262ff42 100644
|
||||||
|
--- src/pipewire/utils.h
|
||||||
|
+++ src/pipewire/utils.h
|
||||||
|
@@ -58,7 +58,7 @@ pw_spa_pod_copy(const struct spa_pod *pod)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
size = SPA_POD_SIZE(pod);
|
||||||
|
- if ((c = malloc(size)) == NULL)
|
||||||
|
+ if ((c = (struct spa_pod *) malloc(size)) == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return (struct spa_pod *) memcpy(c, pod, size);
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pipewire'
|
# Template file for 'pipewire'
|
||||||
pkgname=pipewire
|
pkgname=pipewire
|
||||||
version=0.2.5
|
version=0.2.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dman=true -Dgstreamer=enabled -Ddocs=true -Dsystemd=false"
|
configure_args="-Dman=true -Dgstreamer=enabled -Ddocs=true -Dsystemd=false"
|
||||||
hostmakedepends="doxygen graphviz pkg-config xmltoman"
|
hostmakedepends="doxygen graphviz pkg-config xmltoman"
|
||||||
|
|
Loading…
Add table
Reference in a new issue