lv2: update to 1.16.0.

This commit is contained in:
maxice8 2019-02-19 06:05:52 -03:00 committed by maxice8
parent 4f35a705f7
commit b7ac81735f
4 changed files with 4 additions and 83 deletions

View File

@ -1,25 +0,0 @@
From f8fdd7a48d12465d2ef8153d25337593c88687e3 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Sun, 12 Feb 2017 18:20:31 +0100
Subject: Fix memory leak
---
plugins/eg-sampler.lv2/sampler.c | 2 ++
1 file changed, 2 insertions(+)
diff --git plugins/eg-sampler.lv2/sampler.c plugins/eg-sampler.lv2/sampler.c
index ca92a9c..95cb45e 100644
--- plugins/eg-sampler.lv2/sampler.c
+++ plugins/eg-sampler.lv2/sampler.c
@@ -564,6 +564,8 @@ restore(LV2_Handle instance,
free(buf);
}
+ free(path);
+
return LV2_STATE_SUCCESS;
}
--
cgit v1.2.1

View File

@ -1,42 +0,0 @@
From dc9ff1250c049b5b60cef16f07be4c031ce2fa4c Mon Sep 17 00:00:00 2001
From: Harry van Haaren <harryhaaren@gmail.com>
Date: Sat, 19 May 2018 14:15:15 +0100
Subject: eg-sampler: Fix segfault on old_sample null deref
Fixes a segmentation fault in eg-sampler when a sample is loaded for the first
time. Dereferencing old_sample->path causes the NULL pointer segfault.
Resolved by always simplifying code to always write_set_file,
even if the filename is the same.
Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
---
plugins/eg-sampler.lv2/sampler.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git plugins/eg-sampler.lv2/sampler.c plugins/eg-sampler.lv2/sampler.c
index 3bd8b6c..aa8a1c1 100644
--- plugins/eg-sampler.lv2/sampler.c
+++ plugins/eg-sampler.lv2/sampler.c
@@ -220,13 +220,11 @@ work_response(LV2_Handle instance,
old_sample };
self->schedule->schedule_work(self->schedule->handle, sizeof(msg), &msg);
- if (strcmp(old_sample->path, new_sample->path)) {
- // Send a notification that we're using a new sample
- lv2_atom_forge_frame_time(&self->forge, self->frame_offset);
- write_set_file(&self->forge, &self->uris,
- new_sample->path,
- new_sample->path_len);
- }
+ // Send a notification that we're using a new sample
+ lv2_atom_forge_frame_time(&self->forge, self->frame_offset);
+ write_set_file(&self->forge, &self->uris,
+ new_sample->path,
+ new_sample->path_len);
return LV2_WORKER_SUCCESS;
}
--
cgit v1.2.1

View File

@ -1,12 +0,0 @@
Explicitly include stdint.h for the int64_t definition.
--- plugins/eg-fifths.lv2/fifths.c 2014-02-08 04:03:16.000000000 +0100
+++ plugins/eg-fitths.lv2/fifths.c 2015-10-09 17:20:36.198433090 +0200
@@ -18,6 +18,7 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#ifndef __cplusplus
# include <stdbool.h>
#endif

View File

@ -1,16 +1,16 @@
# Template file for 'lv2' # Template file for 'lv2'
pkgname=lv2 pkgname=lv2
version=1.14.0 version=1.16.0
revision=2 revision=1
build_style=waf build_style=waf
hostmakedepends="python" hostmakedepends="python3"
makedepends="libsndfile-devel gtk+-devel" makedepends="libsndfile-devel gtk+-devel"
short_desc="Plugin standard for audio systems" short_desc="Plugin standard for audio systems"
maintainer="Juan RP <xtraeme@voidlinux.org>" maintainer="Juan RP <xtraeme@voidlinux.org>"
license="ISC" license="ISC"
homepage="http://lv2plug.in" homepage="http://lv2plug.in"
distfiles="http://lv2plug.in/spec/${pkgname}-${version}.tar.bz2" distfiles="http://lv2plug.in/spec/${pkgname}-${version}.tar.bz2"
checksum=b8052683894c04efd748c81b95dd065d274d4e856c8b9e58b7c3da3db4e71d32 checksum=dec3727d7bd34a413a344a820678848e7f657b5c6019a0571c61df76d7bdf1de
lib32disabled=yes lib32disabled=yes
post_install() { post_install() {