audio: moved cmpAudioFormat() to audio_format.h

Rename it to audio_format_equals() and return "true" if they are
equal.
This commit is contained in:
Max Kellermann
2008-09-09 10:05:15 +02:00
parent 7f1cccb3ea
commit be9212ba84
5 changed files with 14 additions and 22 deletions

@@ -162,7 +162,7 @@ decoder_data(struct decoder *decoder, InputStream * inStream, int seekable,
static size_t convBufferLen;
int ret;
if (cmpAudioFormat(&(ob.audioFormat), &(dc.audioFormat)) == 0) {
if (audio_format_equals(&ob.audioFormat, &dc.audioFormat)) {
data = dataIn;
datalen = dataInLen;
} else {