[SOLVED] Deadlock when reusing a media player ?

This forum is about all development around libVLC.
Underground78
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Sep 2009 11:57
VLC version: 1.1.9
Operating System: Windows
Location: France
Contact:

[SOLVED] Deadlock when reusing a media player ?

Postby Underground78 » 17 Oct 2009 10:52

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
Last edited by Underground78 on 26 Oct 2009 14:42, edited 2 times in total.

Underground78
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Sep 2009 11:57
VLC version: 1.1.9
Operating System: Windows
Location: France
Contact:

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

Postby Underground78 » 18 Oct 2009 20:52

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

Underground78
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Sep 2009 11:57
VLC version: 1.1.9
Operating System: Windows
Location: France
Contact:

Re: Deadlock when reusing a media player ?

Postby Underground78 » 24 Oct 2009 19:39

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

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

Re: Deadlock when reusing a media player ?

Postby Rémi Denis-Courmont » 25 Oct 2009 08:49

This is not the best place to get help with bug reports. vlc-devel is more likely to get attention.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Underground78
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Sep 2009 11:57
VLC version: 1.1.9
Operating System: Windows
Location: France
Contact:

Re: Deadlock when reusing a media player ?

Postby Underground78 » 25 Oct 2009 09:25

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.

Underground78
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Sep 2009 11:57
VLC version: 1.1.9
Operating System: Windows
Location: France
Contact:

Re: Deadlock when reusing a media player ?

Postby Underground78 » 26 Oct 2009 14:42

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 !


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests