diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-04-05 09:54:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-04-05 09:54:43 +0000 |
commit | c208b05a0e9f2bfb0ae02410f34cf3431cab4dde (patch) | |
tree | e9a510154bb11288a56c376931fc6eba017378a2 /src/outputBuffer.c | |
parent | e2e7d113ad085e276fbf3803934416c8ac7a70d1 (diff) | |
download | mpd-c208b05a0e9f2bfb0ae02410f34cf3431cab4dde.tar.gz mpd-c208b05a0e9f2bfb0ae02410f34cf3431cab4dde.tar.xz mpd-c208b05a0e9f2bfb0ae02410f34cf3431cab4dde.zip |
Don't rely on memcmp() for structs, padding bits are random
git-svn-id: https://svn.musicpd.org/mpd/trunk@4016 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index 46b98c479..f6c9e0ab6 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -74,7 +74,7 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream, static char * convBuffer = NULL; static long convBufferLen = 0; - if(memcmp(&(cb->audioFormat),&(dc->audioFormat),sizeof(AudioFormat))==0) + if(cmpAudioFormat(&(cb->audioFormat),&(dc->audioFormat))==0) { data = dataIn; datalen = dataInLen; |