mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue