audioencoder: correctly compare audio info positions

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680553
This commit is contained in:
Mark Nauwelaerts 2012-07-25 11:54:14 +02:00
parent 1df4110245
commit d55529621c

View file

@ -1205,8 +1205,8 @@ audio_info_is_equal (GstAudioInfo * from, GstAudioInfo * to)
return FALSE; return FALSE;
if (GST_AUDIO_INFO_CHANNELS (from) > 64) if (GST_AUDIO_INFO_CHANNELS (from) > 64)
return TRUE; return TRUE;
return memcmp (from->position, to->position, return (memcmp (from->position, to->position,
GST_AUDIO_INFO_CHANNELS (from) * sizeof (to->position[0])); GST_AUDIO_INFO_CHANNELS (from) * sizeof (to->position[0])) == 0);
} }
static gboolean static gboolean