Commit d5552962 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

audioencoder: correctly compare audio info positions

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680553
parent 1df41102
......@@ -1205,8 +1205,8 @@ audio_info_is_equal (GstAudioInfo * from, GstAudioInfo * to)
return FALSE;
if (GST_AUDIO_INFO_CHANNELS (from) > 64)
return TRUE;
return memcmp (from->position, to->position,
GST_AUDIO_INFO_CHANNELS (from) * sizeof (to->position[0]));
return (memcmp (from->position, to->position,
GST_AUDIO_INFO_CHANNELS (from) * sizeof (to->position[0])) == 0);
}
static gboolean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment