diff options
author | Max Kellermann <max@duempel.org> | 2008-10-10 14:03:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-10 14:03:33 +0200 |
commit | 6101dc6c768b09dbcdc1840a84b619a5a6a20129 (patch) | |
tree | af2369299cff4af045fe8717584a29b6234aac51 /src/audioOutputs/audioOutput_shout.c | |
parent | 817a033f5591fefb842e355ef211d09e855661ef (diff) | |
download | mpd-6101dc6c768b09dbcdc1840a84b619a5a6a20129.tar.gz mpd-6101dc6c768b09dbcdc1840a84b619a5a6a20129.tar.xz mpd-6101dc6c768b09dbcdc1840a84b619a5a6a20129.zip |
audio_format: unsigned integers
"bits" and "channels" cannot be negative.
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_shout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index b9deef295..34327573c 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -252,7 +252,7 @@ static void *my_shout_init_driver(struct audio_output *audio_output, char temp[11]; memset(temp, 0, sizeof(temp)); - snprintf(temp, sizeof(temp), "%d", sd->audio_format.channels); + snprintf(temp, sizeof(temp), "%u", sd->audio_format.channels); shout_set_audio_info(sd->shout_conn, SHOUT_AI_CHANNELS, temp); snprintf(temp, sizeof(temp), "%d", sd->audio_format.sampleRate); |