Page 1 of 1

[dotnet interface] Double playing

Posted: 15 Nov 2007 15:40
by ccriniti
Hello all,

I'm using in c# the vlc dotnet interface and I have a problem with my program.

At the end of a track I call :
Vlc_Add_And_Play(playlist[playlist_playing_item]);
----
private void Vlc_Add_And_Play(string new_current_track)
{

vlc_current_track = new_current_track;

vlc_engine.Stop();
vlc_engine.ClearPlayList();

int track_number = vlc_engine.AddToPlayList(vlc_current_track, "", "".Split('\n'));

vlc_engine.PlayItem(track_number);
vlc_engine.Show();
}


My problem is each track is repeated 2 times (but the vlc_current_track changes each times). I don't understand why.

Can anyone help me ???

Thanks for your help !!!