Page 1 of 1

[SOLVED] Deadlock when reusing a media player ?

Posted: 17 Oct 2009 10:52
by Underground78
Hello,

I am new to the LibVLC and it seems that I am doing something wrong with it.

After playing with the LibVLC SampleCode Qt, my aim is now to play a stream from a playlist file. I think I have found how to know if medias have been parsed from a playlist thanks to the libvlc_MediaSubItemAdd and libvlc_MediaPlayerEndReached events. But when I want to play the first media parsed from the playlist using the media player I have used previously to load the playlist, it just seems to hang.

What is the good way to do that ?

Thanks in advance ! :)
Underground78

Re: Reusing a media player to play medias parsed from a playlist

Posted: 18 Oct 2009 20:52
by Underground78
Hello,

Here the log I get if I don't do anything when libvlc_MediaPlayerEndReached is triggered :

Code: Select all

playlist debug: pls should have 1 entries main debug: EOF reached main debug: removing module "playlist" main debug: removing module "stream_filter_record" main debug: removing module "access_http" main debug: waitpipe: object killed main debug: thread ended
Here the log when I try to play something after libvlc_MediaPlayerEndReached has been triggered :

Code: Select all

playlist debug: pls should have 1 entries main debug: EOF reached
and then nothing happens ...

Is there something to do before setting a new media and play it after libvlc_MediaPlayerEndReached beening triggered ?

Thanks

Re: Deadlock when reusing a media player ?

Posted: 24 Oct 2009 19:39
by Underground78
Hello,

Can somebody point me to something that can help me to find where something goes wrong ? Is there any procedure to follow to solve this kind of problem or should I give up ?

Thanks in advance

Re: Deadlock when reusing a media player ?

Posted: 25 Oct 2009 08:49
by RĂ©mi Denis-Courmont
This is not the best place to get help with bug reports. vlc-devel is more likely to get attention.

Re: Deadlock when reusing a media player ?

Posted: 25 Oct 2009 09:25
by Underground78
This is not the best place to get help with bug reports. vlc-devel is more likely to get attention.
Ok, I will try to use the mailing-list.

Re: Deadlock when reusing a media player ?

Posted: 26 Oct 2009 14:42
by Underground78
You were right, the mailing-list was the good place to get help : http://mailman.videolan.org/pipermail/v ... 68012.html. :)

Problem solved by using Qt's signal/slot mechanism !