[vlc-commits] [Git][videolan/vlc][3.0.x] afile: check equality, not starts with
Jean-Baptiste Kempf
gitlab at videolan.org
Wed Jun 16 06:34:12 UTC 2021
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
2d599711 by Lyndon Brown at 2021-06-16T05:37:02+00:00
afile: check equality, not starts with
(cherry picked from commit ae6af4007e7b957052ad88dee3af8958e31ca7f0)
- - - - -
1 changed file:
- modules/audio_output/file.c
Changes:
=====================================
modules/audio_output/file.c
=====================================
@@ -181,7 +181,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
i_format_list_size = (int)ARRAY_SIZE(format_list);
for (i = 0; i < i_format_list_size; i++)
{
- if ( !strncmp( format_list[i], psz_format, strlen(format_list[i]) ) )
+ if ( !strcmp( format_list[i], psz_format ) )
{
break;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d5997118d7f0078827682c3dca155235ecf1454
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d5997118d7f0078827682c3dca155235ecf1454
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list