summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-04 16:38:10 +0100
committerJohns <johns98@gmx.net>2012-02-04 16:38:10 +0100
commit8db8b68edd6043b73fbe601a9567b0d4979b7195 (patch)
treedbf6c95913d86844ba928fce6a685115804d8f74 /audio.c
parent00cafd18edd2b5624c8ba8f7f2924b1fb1e1644c (diff)
downloadvdr-plugin-softhddevice-8db8b68edd6043b73fbe601a9567b0d4979b7195.tar.gz
vdr-plugin-softhddevice-8db8b68edd6043b73fbe601a9567b0d4979b7195.tar.bz2
Makes Workarounds command line configurable.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 14de4a4..4a72161 100644
--- a/audio.c
+++ b/audio.c
@@ -123,6 +123,8 @@ static const AudioModule NoopModule; ///< forward definition of noop module
// Variables
//----------------------------------------------------------------------------
+char AudioAlsaDriverBroken; ///< disable broken driver message
+
static const char *AudioModuleName; ///< which audio module to use
/// Selected audio module.
@@ -334,7 +336,9 @@ static int AlsaPlayRingbuffer(void)
if (first) {
// happens with broken alsa drivers
if (AudioThread) {
- Error(_("audio/alsa: broken driver %d\n"), avail);
+ if (!AudioAlsaDriverBroken) {
+ Error(_("audio/alsa: broken driver %d\n"), avail);
+ }
usleep(5 * 1000);
}
}