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
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user