[vlc-devel] [PATCH 10/14] player: fix typo in vlc_player_SelectEsIdList

Thomas Guillem thomas at gllm.fr
Fri Feb 21 16:59:41 CET 2020


---
 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 89c16caf6a8..300b14ceabf 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
-- 
2.20.1



More information about the vlc-devel mailing list