vss.c: Use audio_format_name() where possible.
authorAndre Noll <maan@systemlinux.org>
Mon, 22 Oct 2007 22:14:36 +0000 (00:14 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 22 Oct 2007 22:14:36 +0000 (00:14 +0200)
vss.c

diff --git a/vss.c b/vss.c
index 5415929..5d919f7 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -183,7 +183,7 @@ void vss_init(void)
                SUPPORTED_AUDIO_FORMATS);
        FOR_EACH_AUDIO_FORMAT(i) {
                PARA_NOTICE_LOG("initializing %s handler\n",
-                       afl[i].name);
+                       audio_format_name(i));
                afl[i].init(&afl[i]);
        }
        ms2tv(announce_time, &announce_tv);
@@ -322,7 +322,7 @@ static struct timeval *vss_compute_timeout(void)
        if (mmd->audio_format < 0 || !vss_playing() || !map)
                return NULL;
        vss_next_chunk_time(&next_chunk);
-       if (chk_barrier(afl[mmd->audio_format].name, &now, &next_chunk,
+       if (chk_barrier(audio_format_name(mmd->audio_format), &now, &next_chunk,
                        &the_timeout, 0) < 0)
                return &the_timeout;
        /* chunk is due or bof */