Page 1 of 1

libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 26 Jun 2012 11:19
by 5kinman
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.

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 26 Jun 2012 13:35
by Jean-Baptiste Kempf
Use gdb to diagnose the issue.

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 26 Jun 2012 16:01
by spider58
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

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 27 Jun 2012 03:13
by 5kinman
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.

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 27 Jun 2012 16:25
by Rémi Denis-Courmont
I have noticed a similar problem when using threaded avcodec. I do not know if it is a bug in lavc or VLC though.

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 05 Jul 2012 12:23
by 5kinman
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?

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 05 Jul 2012 13:30
by Rémi Denis-Courmont
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.

Re: libvlc_media_player_stop() hangs for libvlc 2.0.1-4

Posted: 20 Jun 2013 17:06
by joseAndresGomezTovar
Hi,

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

Thank you