libvlc_media_tracks_get returns 0 on mac os x

This forum is about all development around libVLC.
Zajo
New Cone
New Cone
Posts: 2
Joined: 16 Jan 2016 04:11

libvlc_media_tracks_get returns 0 on mac os x

Postby Zajo » 16 Jan 2016 04:21

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!

dongxf
Blank Cone
Blank Cone
Posts: 10
Joined: 14 Oct 2011 07:31

Re: libvlc_media_tracks_get returns 0 on mac os x

Postby dongxf » 19 Jan 2016 09:01

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media_tracks_get returns 0 on mac os x

Postby Rémi Denis-Courmont » 19 Jan 2016 09:19

Some formats spawn tracks asynchronously. Sorry but deal with it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests