libvlc_media_player_stop() hangs for libvlc 2.0.1-4

This forum is about all development around libVLC.
5kinman
Blank Cone
Blank Cone
Posts: 29
Joined: 14 Nov 2008 10:18
Location: Hong Kong

libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby 5kinman » 26 Jun 2012 11:19

I am using the ubuntu 12.04 and libvlc-dev 2.0.1-4 for developing a video-stream client via the udp multicast protocol.

Most of the time the stream can be played smoothly. However if the stream cannot be decoded correctly (some packet has lost?) at the very beginning, the libvlc cannnot stop the stream (libvlc_media_player_stop() hang up, no response even if wait for minutes).

When using the very old vlc version ( 0.9.8 ), the libvlc_media_player_stop() function always work, but this version of vlc is not supported by new ubuntu os.


I would like to know if there is any options for the libvlc to prevent the hang up issue. Thx.

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: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby Jean-Baptiste Kempf » 26 Jun 2012 13:35

Use gdb to diagnose the issue.
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.

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby spider58 » 26 Jun 2012 16:01

Use gdb to diagnose the issue.
i have same issue too, but gdb is not for debugging to a VB.NET application i think. I tried it but GDB says
no debugging symbols found

5kinman
Blank Cone
Blank Cone
Posts: 29
Joined: 14 Nov 2008 10:18
Location: Hong Kong

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby 5kinman » 27 Jun 2012 03:13

Thanks for the quick reply.

I've tried the application in gdb with re-compiling in Qt with debug mode.

I found that each time when the income stream is not well decoded,
libvlc has the following output to the terminal:

Code: Select all

libdvbpsi error (PSI decoder): TS discontinuity (received [A number], expected 0) for PID [Another number])
and there will be many thread destroying and creating message (these thread related messages is shown when running in gdb), repeating for several times.

Thx.

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

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby Rémi Denis-Courmont » 27 Jun 2012 16:25

I have noticed a similar problem when using threaded avcodec. I do not know if it is a bug in lavc or VLC though.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

5kinman
Blank Cone
Blank Cone
Posts: 29
Joined: 14 Nov 2008 10:18
Location: Hong Kong

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby 5kinman » 05 Jul 2012 12:23

So, the only thing we can do is waiting for the next update of libvlc and try if this kind of issue is fixed or not?

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

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby Rémi Denis-Courmont » 05 Jul 2012 13:30

The only thing to do is to investigate in further details and send a patch for the next version of libvlc. Bugs do not get fixed by waiting.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

joseAndresGomezTovar
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Nov 2012 11:21
VLC version: 2.1.2
Operating System: Windows 7
Location: Madrid - Spain

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Postby joseAndresGomezTovar » 20 Jun 2013 17:06

Hi,

Is this bug fixed in the v2.0.3?
Do you know how can we prevent it?

Thank you


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests