VLC freeze when the webcam unplug

This forum is about all development around libVLC.
dxball
New Cone
New Cone
Posts: 9
Joined: 09 Aug 2012 09:35
VLC version: 2.0.3
Operating System: Windows

VLC freeze when the webcam unplug

Postby dxball » 03 Oct 2012 04:36

Hi. I'm using libvlc to develop some streaming application.
This is the issue what i have:
When i'm streaming some live source (dshow webcam), everything is perfect.
But as the webcam disconnect by some reason(eq. unplug...), the vlc instance got freeze.
I try to use Windows Message "WM_DEVICECHANGE" and "DBT_DEVICEREMOVECOMPLETE" to stop the media player when i detect the device remove, but vlc still hang...

Is there any solution to fix this?

By the way. I had try the same action to the VLC Player, the result was same as libvlc.

Thanks for any help...

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: VLC freeze when the webcam unplug

Postby Jean-Baptiste Kempf » 03 Oct 2012 16:36

This is probably a VLC bug. And there is no solution until someone fixes it.
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.

dxball
New Cone
New Cone
Posts: 9
Joined: 09 Aug 2012 09:35
VLC version: 2.0.3
Operating System: Windows

Re: VLC freeze when the webcam unplug

Postby dxball » 04 Oct 2012 03:28

This is probably a VLC bug. And there is no solution until someone fixes it.
Thanks, J.B.

I'll try to find how to fix it.

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: VLC freeze when the webcam unplug

Postby Jean-Baptiste Kempf » 04 Oct 2012 12:34

Issue is likely in modules/access/dshow/
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.

shanedonn
New Cone
New Cone
Posts: 2
Joined: 16 Jan 2013 10:57

Re: VLC freeze when the webcam unplug

Postby shanedonn » 16 Jan 2013 11:10

Hi,
I am experiencing the same problem. VLC will hang on the following calls
-libvlc_media_player_stop
-libvlc_media_player_release

when the stream is lost and will complete execution when the stream returns.

Is there any workaround/solution for this?? Any help greatly appreciated!
Thanks,
Shane.
PS: I am using VLC media player 2.0.5 Twoflower

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

Re: VLC freeze when the webcam unplug

Postby Rémi Denis-Courmont » 16 Jan 2013 17:05

There is no known work-around and the only known solution is to fix the bug.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

shanedonn
New Cone
New Cone
Posts: 2
Joined: 16 Jan 2013 10:57

Re: VLC freeze when the webcam unplug

Postby shanedonn » 16 Jan 2013 17:16

Has a bug been submitted for this??

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

Re: VLC freeze when the webcam unplug

Postby Rémi Denis-Courmont » 16 Jan 2013 18:11

Maybe. Personally, I do not retain the full list of open bugs by heart. You'd better check by yourself.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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: VLC freeze when the webcam unplug

Postby Jean-Baptiste Kempf » 16 Jan 2013 18:52

I don't think so.
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.

maitrepiet
Blank Cone
Blank Cone
Posts: 69
Joined: 27 Oct 2009 14:44

Re: VLC freeze when the webcam unplug

Postby maitrepiet » 05 Sep 2013 20:58

I'm suffering from the same problem. Any progress on this? Is there a way to detect the system hangs? If so, I could try to kill the tread the hard way?

maitrepiet
Blank Cone
Blank Cone
Posts: 69
Joined: 27 Oct 2009 14:44

Re: VLC freeze when the webcam unplug

Postby maitrepiet » 13 Sep 2013 20:37

I have submitted a bug for it.
I would love to help solving. Unfortunately I'm not familiar enough with the vlc code to do it myself, but I can test.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests