Add patch to avoid invalid conversion error with C++ compilers

This commit is contained in:
Wim Taymans 2019-01-04 13:15:19 +01:00
parent 7a0bdc4ea0
commit fa04e24df1
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,25 @@
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 a/src/pipewire/utils.h b/src/pipewire/utils.h
index 2ce9fdde..7262ff42 100644
--- a/src/pipewire/utils.h
+++ b/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);
--
2.19.2

View File

@ -15,7 +15,7 @@
Name: pipewire
Summary: Media Sharing Server
Version: 0.2.5
Release: 1%{?snap:.%{snap}git%{shortcommit}}%{?dist}
Release: 2%{?snap:.%{snap}git%{shortcommit}}%{?dist}
License: LGPLv2+
URL: https://pipewire.org/
%if 0%{?gitrel}
@ -27,6 +27,7 @@ Source0: https://github.com/PipeWire/pipewire/archive/%{version}.tar.gz
%endif
## upstream patches
Patch0: 0001-Avoid-invalid-conversion-error-with-C-compilators.patch
## upstreamable patches
@ -103,6 +104,8 @@ This package contains command line utilities for the PipeWire media server.
%prep
%setup -q -T -b0 -n %{name}-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}}
%patch0 -p1 -b .0000
%build
%meson -D docs=true -D man=true -D gstreamer=enabled -D systemd=true
%meson_build
@ -164,6 +167,9 @@ exit 0
%{_bindir}/spa-inspect
%changelog
* Fri Jan 04 2019 Wim Taymans <wtaymans@redhat.com> - 0.2.5-2
- Add patch to avoid invalid conversion error with C++ compilers
* Thu Nov 22 2018 Wim Taymans <wtaymans@redhat.com> - 0.2.5-1
- Update to 0.2.5