]> git.pld-linux.org Git - packages/twinkle.git/commitdiff
- fix building with webrtc-libilbc 3.x master auto/th/twinkle-1.10.2-2
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Feb 2021 18:39:19 +0000 (19:39 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Feb 2021 18:39:19 +0000 (19:39 +0100)
- rel 2

twinkle.spec
webrtc-libilbc3.patch [new file with mode: 0644]

index 35511f7a6999fac25971555939a733098b622905..57b5b536fec3649c48ac587a7600e86ac0371e14 100644 (file)
@@ -5,12 +5,13 @@ Summary:      twinkle - SIP Soft Phone
 Summary(pl.UTF-8):     twinkle - telefon programowy SIP
 Name:          twinkle
 Version:       1.10.2
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Applications/Communications
 Source0:       https://github.com/LubosD/twinkle/archive/v%{version}.tar.gz
 # Source0-md5: ca6884f9834a25e89fc945b48a91c7a2
 Patch0:                ilbc.patch
+Patch1:                webrtc-libilbc3.patch
 URL:           http://twinkle.dolezel.info/
 BuildRequires: Qt5Quick-devel
 BuildRequires: Qt5Widgets-devel
@@ -45,6 +46,7 @@ telefonicznych po sieciach IP.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
diff --git a/webrtc-libilbc3.patch b/webrtc-libilbc3.patch
new file mode 100644 (file)
index 0000000..073862d
--- /dev/null
@@ -0,0 +1,26 @@
+--- twinkle-1.10.2/src/audio/audio_decoder.h~  2021-02-14 19:33:32.000000000 +0100
++++ twinkle-1.10.2/src/audio/audio_decoder.h   2021-02-14 19:35:59.634214690 +0100
+@@ -48,6 +48,10 @@
+ extern "C" {
+ #endif
+ #include <ilbc.h>
++#define initDecode WebRtcIlbcfix_InitDecode
++#define initEncode WebRtcIlbcfix_InitEncode
++#define iLBC_decode WebRtcIlbcfix_DecodeImpl
++#define iLBC_encode WebRtcIlbcfix_EncodeImpl
+ #ifndef HAVE_ILBC_CPP
+ }
+ #endif
+--- twinkle-1.10.2/src/audio/audio_encoder.h~  2021-02-14 19:33:32.000000000 +0100
++++ twinkle-1.10.2/src/audio/audio_encoder.h   2021-02-14 19:36:51.594446403 +0100
+@@ -47,6 +47,10 @@
+ extern "C" {
+ #endif
+ #include <ilbc.h>
++#define initDecode WebRtcIlbcfix_InitDecode
++#define initEncode WebRtcIlbcfix_InitEncode
++#define iLBC_decode WebRtcIlbcfix_DecodeImpl
++#define iLBC_encode WebRtcIlbcfix_EncodeImpl
+ #ifndef HAVE_ILBC_CPP
+ }
+ #endif
This page took 0.033883 seconds and 4 git commands to generate.