projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8eeb1f
)
vss_init(): Use FOR_EACH_AUDIO_FORMAT() instead of open coding the loop.
author
Andre Noll
<maan@systemlinux.org>
Wed, 12 Sep 2007 09:23:54 +0000
(11:23 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 12 Sep 2007 09:23:54 +0000
(11:23 +0200)
Fixes a segfault on startup in case not all three audio formats are supported.
vss.c
patch
|
blob
|
history
diff --git
a/vss.c
b/vss.c
index 3ef850c7ccb8bfad203ce659b320dd94ada2d8e9..a6d3dfc03469095e8b5d398bf79d930c44133ca9 100644
(file)
--- a/
vss.c
+++ b/
vss.c
@@
-173,7
+173,7
@@
void vss_init(void)
PARA_DEBUG_LOG("supported audio formats: %s\n",
SUPPORTED_AUDIO_FORMATS);
-
for (i = 0; afl[i].name; i++
) {
+
FOR_EACH_AUDIO_FORMAT(i
) {
PARA_NOTICE_LOG("initializing %s handler\n",
afl[i].name);
afl[i].init(&afl[i]);