Page 1 of 1
libvlc_media_tracks_get returns 0 on mac os x
Posted: 16 Jan 2016 04:21
by Zajo
Hello, on Mac OS X I'm using libvlc to play videos, and I'm calling libvlc_media_tracks_get but it returns 0 after the media was successfully parsed. This same code works correctly on Windows, with the same media file. Any idea what I might be doing wrong? What is the best way to diagnose the issue? Thanks!
Re: libvlc_media_tracks_get returns 0 on mac os x
Posted: 19 Jan 2016 09:01
by dongxf
I have the same question on Windows. after parsed media, libvlc_media_tracks_get returns 0 for mpeg2 file, but returns >0 for mkv file.
after played media and delayed for about 1-2 seconds, it always returns > 0.
Thanks!
Re: libvlc_media_tracks_get returns 0 on mac os x
Posted: 19 Jan 2016 09:19
by RĂ©mi Denis-Courmont
Some formats spawn tracks asynchronously. Sorry but deal with it.