fix audiod decoder flags for aac
authorAndre <maan@p133.(none)>
Sat, 13 May 2006 20:26:55 +0000 (22:26 +0200)
committerAndre <maan@p133.(none)>
Sat, 13 May 2006 20:26:55 +0000 (22:26 +0200)
Do not try to encode the audio format in a single digit. Just use

0: off
1: receiver activated
2: writer started
3: receiver activated and writer is running

regardless of the audio format.

audiod.c

index bd87cf8..00cdf34 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -368,8 +368,6 @@ __malloc static char *decoder_flags(void)
                        flag += 1;
                if (s->wpid > 0)
                        flag += 2;
-               if (flag != '0')
-                       flag += s->format * 4;
                decoder_flags[i] = flag;
        }
        decoder_flags[MAX_STREAM_SLOTS] = '\0';