summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-30 11:38:20 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-30 11:38:20 +0000
commitf8808a25257a79256f1c7c651386b94c259cbc57 (patch)
treecd9dec3986286027ef87a2ba0693bd2177e4843e /polyp
parentdb6dc13e683fbcdb40498f7d1e1e83eba520ac4d (diff)
Print an error message before aborting.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@467 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/sample-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/polyp/sample-util.c b/polyp/sample-util.c
index d2bb3150..2310f3cb 100644
--- a/polyp/sample-util.c
+++ b/polyp/sample-util.c
@@ -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();
}
}