]> code.delx.au - pulseaudio/blobdiff - polyp/sample-util.c
Print an error message before aborting.
[pulseaudio] / polyp / sample-util.c
index d2bb31507fcaa6a2081fe4c62612b7a0e4c6641e..2310f3cb45178604403bf0d3fce1aeb0a07b7d4a 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <liboil/liboilfuncs.h>
 
+#include "log.h"
 #include "sample-util.h"
 
 pa_memblock *pa_silence_memblock(pa_memblock* b, const pa_sample_spec *spec) {
@@ -316,6 +317,8 @@ void pa_volume_memchunk(pa_memchunk*c, const pa_sample_spec *spec, const pa_cvol
         }
 
         default:
+            pa_log_error(__FILE__": ERROR: Unable to change volume of format %s.\n",
+                pa_sample_format_to_string(spec->format));
             abort();
     }
 }