[vlc-commits] player: fix typo in vlc_player_SelectEsIdList
Thomas Guillem
git at videolan.org
Wed Feb 26 13:12:32 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Feb 19 11:32:52 2020 +0100| [2b4e0223eac515f3edcb8ad38ced593b4b3515d9] | committer: Thomas Guillem
player: fix typo in vlc_player_SelectEsIdList
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b4e0223eac515f3edcb8ad38ced593b4b3515d9
---
src/player/player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/player/player.c b/src/player/player.c
index 8d92bd996a..97a1bc857d 100644
--- a/src/player/player.c
+++ b/src/player/player.c
@@ -462,7 +462,7 @@ vlc_player_SelectEsIdList(vlc_player_t *player,
Ids will be released in input.c:ControlRelease */
size_t track_count = 0;
for (size_t i = 0; es_id_list[i] != NULL; i++)
- if (track_count < max_tracks && vlc_es_id_GetCat(es_id_list[i]))
+ if (track_count < max_tracks && vlc_es_id_GetCat(es_id_list[i]) == cat)
track_count++;
/* Copy es_id_list into an allocated list so that it remains in memory until
More information about the vlc-commits
mailing list