[vlc-devel] [PATCH] Track counting always selects "video" type track list despite category choice (audio/spu) -> assert failure in vlc_player_GetTrackAt() from ./src/player/player.c
Pascal Souchet
psplob at gmail.com
Thu Jul 2 18:32:55 CEST 2020
---
lib/media_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index 2f390468c4..9c7a7a76aa 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1871,7 +1871,7 @@ libvlc_media_player_get_track_from_id( libvlc_media_player_t *p_mi,
for (size_t i = 0; i < ARRAY_SIZE(cats); ++i)
{
enum es_format_category_e cat = cats[i];
- size_t count = vlc_player_GetTrackCount(player, VIDEO_ES);
+ size_t count = vlc_player_GetTrackCount(player, cat);
for (size_t j = 0; j < count; ++j)
{
--
2.17.1
More information about the vlc-devel
mailing list