From f8808a25257a79256f1c7c651386b94c259cbc57 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 30 Jan 2006 11:38:20 +0000 Subject: Print an error message before aborting. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@467 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/sample-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'polyp') 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 +#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(); } } -- cgit