summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-01-27 14:42:28 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-01-28 15:29:54 +0100
commit326bb582b57db2f1edcb4739a2bd62a54052e4a2 (patch)
tree62f7db4a46064b04a25eb1bb1b1d130f76b69970
parent3ef2f724745214ef8fe7091dab3628c8920b9a8d (diff)
downloadtdelibs-326bb582b57db2f1edcb4739a2bd62a54052e4a2.tar.gz
tdelibs-326bb582b57db2f1edcb4739a2bd62a54052e4a2.zip
Fix if-else syntax for the case missing OSS support
(cherry picked from commit dd6da7345a2993129436cd5527e098d4e11acad8)
-rw-r--r--libtdemid/deviceman.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libtdemid/deviceman.cc b/libtdemid/deviceman.cc
index fec0ff090..82f973d3f 100644
--- a/libtdemid/deviceman.cc
+++ b/libtdemid/deviceman.cc
@@ -705,9 +705,7 @@ void DeviceManager::seqbuf_dump (void)
void DeviceManager::seqbuf_clean(void)
{
#ifdef HAVE_ALSA_SUPPORT
- if (alsa)
- ((AlsaOut *)device[default_dev])->seqbuf_clean();
- else
+ if (alsa) { ((AlsaOut *)device[default_dev])->seqbuf_clean(); return ; }
#endif
#ifdef HAVE_OSS_SUPPORT
_seqbufptr=0;