Page 1 of 1
VLC freeze when the webcam unplug
Posted: 03 Oct 2012 04:36
by dxball
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...
Re: VLC freeze when the webcam unplug
Posted: 03 Oct 2012 16:36
by Jean-Baptiste Kempf
This is probably a VLC bug. And there is no solution until someone fixes it.
Re: VLC freeze when the webcam unplug
Posted: 04 Oct 2012 03:28
by dxball
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.
Re: VLC freeze when the webcam unplug
Posted: 04 Oct 2012 12:34
by Jean-Baptiste Kempf
Issue is likely in modules/access/dshow/
Re: VLC freeze when the webcam unplug
Posted: 16 Jan 2013 11:10
by shanedonn
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
Re: VLC freeze when the webcam unplug
Posted: 16 Jan 2013 17:05
by Rémi Denis-Courmont
There is no known work-around and the only known solution is to fix the bug.
Re: VLC freeze when the webcam unplug
Posted: 16 Jan 2013 17:16
by shanedonn
Has a bug been submitted for this??
Re: VLC freeze when the webcam unplug
Posted: 16 Jan 2013 18:11
by Rémi Denis-Courmont
Maybe. Personally, I do not retain the full list of open bugs by heart. You'd better check by yourself.
Re: VLC freeze when the webcam unplug
Posted: 16 Jan 2013 18:52
by Jean-Baptiste Kempf
I don't think so.
Re: VLC freeze when the webcam unplug
Posted: 05 Sep 2013 20:58
by maitrepiet
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?
Re: VLC freeze when the webcam unplug
Posted: 13 Sep 2013 20:37
by maitrepiet
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.