[pulseaudio-commits] Branch 'next' - src/modules

Arun Raghavan arun at kemper.freedesktop.org
Fri May 27 04:21:13 UTC 2016


 src/modules/module-ladspa-sink.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 8eab8dabc4c18b9717c527f0adb67aa23c72c06c
Author: KimJeongYeon <jeongyeon.kim at samsung.com>
Date:   Thu May 19 11:35:44 2016 +0900

    ladspa-sink: avoid to configure invalid format
    
    LADSPA allows float format only, but module-ladspa-sink possibly
    could be loaded with ***any*** 'format' parameter. Therefore noisy
    sound heard. This patch avoids to be configured as invalid format.
    
    Signed-off-by: KimJeongYeon <jeongyeon.kim at samsung.com>
    Signed-off-by: Arun Raghavan <arun at arunraghavan.net>

diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index 38b94e3..a6290b9 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -981,6 +981,11 @@ int pa__init(pa_module*m) {
         goto fail;
     }
 
+    if (ss.format != PA_SAMPLE_FLOAT32) {
+        pa_log("LADSPA accepts float format only");
+        goto fail;
+    }
+
     if (!(plugin = pa_modargs_get_value(ma, "plugin", NULL))) {
         pa_log("Missing LADSPA plugin name");
         goto fail;



More information about the pulseaudio-commits mailing list