aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_parser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-03-16 23:37:41 +0100
committerMax Kellermann <max@duempel.org>2011-03-16 23:37:41 +0100
commit4f293ecd6f4c7a07d72fbf0b9d0d454244b12c2a (patch)
tree830490ade657a93950dbcfba0e606dbaa5092af9 /src/audio_parser.c
parentb6303313f0145c4caf58195ba4a85d2f4fa2967c (diff)
downloadmpd-4f293ecd6f4c7a07d72fbf0b9d0d454244b12c2a.tar.gz
mpd-4f293ecd6f4c7a07d72fbf0b9d0d454244b12c2a.tar.xz
mpd-4f293ecd6f4c7a07d72fbf0b9d0d454244b12c2a.zip
audio_format, output_thread: add more audio_format_valid() assertions
Diffstat (limited to 'src/audio_parser.c')
-rw-r--r--src/audio_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio_parser.c b/src/audio_parser.c
index 039ffa1ab..ca5182c4a 100644
--- a/src/audio_parser.c
+++ b/src/audio_parser.c
@@ -192,6 +192,7 @@ audio_format_parse(struct audio_format *dest, const char *src,
}
audio_format_init(dest, rate, sample_format, channels);
+ assert(audio_format_valid(dest));
return true;
}