A quick question about libvlc_video_get_track_count

This forum is about all development around libVLC.
tpcarmen
New Cone
New Cone
Posts: 8
Joined: 07 Jan 2013 03:51

A quick question about libvlc_video_get_track_count

Postby tpcarmen » 14 Jun 2013 21:25

I'm not sure if this isn't working correctly or I'm misunderstanding the usage of the word "track".

I have a DVD that contains probably 10 different animation videos accessible from the main dvd menu, however libvlc_video_get_track_count returns "2", which is clearly incorrect.

Is my understanding of what a "track" is incorrect, or is libvlc_video_get_track_count broken or am I simply not using it correctly?

Thanks!

PS. Now that I'm working on axvlc.dll, is there a bug list for it somewhere? If it has outstanding bugs, I'd be happy to start working on them as time allows.

Terry

Code Below:

STDMETHODIMP VLCVideo::get_trackcount(long* trackcount)
{
if( NULL == trackcount )
return E_POINTER;

libvlc_media_player_t *p_md;
HRESULT hr = getMD(&p_md);
if( SUCCEEDED(hr) )
{
*trackcount = libvlc_video_get_track_count(p_md);
}
return hr;
};

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: A quick question about libvlc_video_get_track_count

Postby Jean-Baptiste Kempf » 15 Jun 2013 01:57

Tracks are the list of channels. Not "titles"
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: A quick question about libvlc_video_get_track_count

Postby sherington » 15 Jun 2013 09:06

Tracks are the list of channels. Not "titles"
So these should work for the OP use case...

Code: Select all

libvlc_media_player_get_title_count libvlc_media_player_set_title libvlc_media_player_get_title

tpcarmen
New Cone
New Cone
Posts: 8
Joined: 07 Jan 2013 03:51

Re: A quick question about libvlc_video_get_track_count

Postby tpcarmen » 15 Jun 2013 18:10

Tracks are the list of channels. Not "titles"
Thanks, that explains why I didn't get what I was expecting.

Terry

tpcarmen
New Cone
New Cone
Posts: 8
Joined: 07 Jan 2013 03:51

Re: A quick question about libvlc_video_get_track_count

Postby tpcarmen » 15 Jun 2013 18:17

Tracks are the list of channels. Not "titles"
So these should work for the OP use case...

Code: Select all

libvlc_media_player_get_title_count libvlc_media_player_set_title libvlc_media_player_get_title
Thanks, that looks like it should do it.

Terry


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests