Page 1 of 1

A quick question about libvlc_video_get_track_count

Posted: 14 Jun 2013 21:25
by tpcarmen
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;
};

Re: A quick question about libvlc_video_get_track_count

Posted: 15 Jun 2013 01:57
by Jean-Baptiste Kempf
Tracks are the list of channels. Not "titles"

Re: A quick question about libvlc_video_get_track_count

Posted: 15 Jun 2013 09:06
by sherington
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

Re: A quick question about libvlc_video_get_track_count

Posted: 15 Jun 2013 18:10
by tpcarmen
Tracks are the list of channels. Not "titles"
Thanks, that explains why I didn't get what I was expecting.

Terry

Re: A quick question about libvlc_video_get_track_count

Posted: 15 Jun 2013 18:17
by tpcarmen
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