audioencoder: correctly compare audio info positions
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680553
This commit is contained in:
parent
1df4110245
commit
d55529621c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user