[pulseaudio-commits] r1956 - in /branches/lennart/src: pulsecore/time-smoother.c pulsecore/time-smoother.h tests/smoother-test.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Oct 27 05:58:55 PDT 2007
Author: lennart
Date: Sat Oct 27 14:58:54 2007
New Revision: 1956
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1956&root=pulseaudio&view=rev
Log:
add missing pa_smoother destructor
Modified:
branches/lennart/src/pulsecore/time-smoother.c
branches/lennart/src/pulsecore/time-smoother.h
branches/lennart/src/tests/smoother-test.c
Modified: branches/lennart/src/pulsecore/time-smoother.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/time-smoother.c?rev=1956&root=pulseaudio&r1=1955&r2=1956&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/time-smoother.c (original)
+++ branches/lennart/src/pulsecore/time-smoother.c Sat Oct 27 14:58:54 2007
@@ -108,6 +108,12 @@
return s;
}
+void pa_smoother_free(pa_smoother* s) {
+ pa_assert(s);
+
+ pa_xfree(s);
+}
+
static void drop_old(pa_smoother *s, pa_usec_t x) {
unsigned j;
Modified: branches/lennart/src/pulsecore/time-smoother.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/time-smoother.h?rev=1956&root=pulseaudio&r1=1955&r2=1956&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/time-smoother.h (original)
+++ branches/lennart/src/pulsecore/time-smoother.h Sat Oct 27 14:58:54 2007
@@ -30,6 +30,7 @@
typedef struct pa_smoother pa_smoother;
pa_smoother* pa_smoother_new(pa_usec_t adjust_x, pa_usec_t history_x, pa_bool_t monotonic);
+void pa_smoother_free(pa_smoother* s);
void pa_smoother_put(pa_smoother *s, pa_usec_t x, pa_usec_t y);
pa_usec_t pa_smoother_get(pa_smoother *s, pa_usec_t x);
Modified: branches/lennart/src/tests/smoother-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/tests/smoother-test.c?rev=1956&root=pulseaudio&r1=1955&r2=1956&view=diff
==============================================================================
--- branches/lennart/src/tests/smoother-test.c (original)
+++ branches/lennart/src/tests/smoother-test.c Sat Oct 27 14:58:54 2007
@@ -69,4 +69,7 @@
printf("%llu\t%llu\n", x/PA_USEC_PER_MSEC, pa_smoother_get(s, x)/PA_USEC_PER_MSEC);
}
+ pa_smoother_free(s);
+
+ return 0;
}
More information about the pulseaudio-commits
mailing list