From f845e711f93952805f2773900d64a499e293b270 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 25 Aug 2007 15:28:54 +0100 Subject: [PATCH] only report volume change fail once Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/mixer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/mixer.c b/lib/mixer.c index b4704b9..5ef30a2 100644 --- a/lib/mixer.c +++ b/lib/mixer.c @@ -100,7 +100,12 @@ int mixer_channel(const char attribute((unused)) *c) { int mixer_control(int attribute((unused)) *left, int attribute((unused)) *right, int attribute((unused)) set) { - error(0, "don't know how to set volume on this platform"); + static int reported; + + if(!reported) { + error(0, "don't know how to set volume on this platform"); + reported = 1; + } return -1; } #endif -- [mdw]