GNOME Bugzilla – Bug 628452
dshowvideosrc: The element doesn't handle device disconnections
Last modified: 2018-05-04 09:14:27 UTC
The dshowvideosrc plugin doesn't handle device disconnections. A quick an dirty way of solving it is replacing g_cond_wait in ::create() with a timed wait and error out after X seconds. The good way woud be to set an event listener for the dshow graph and handle graphs event properly to notify a device disconnection. Feedback is welcome.
Is this still something that we want to implement? DirectShow is deprecated and the plugins not ported to 1.x yet. For now just doing the timeout solution seems ok'ish, better than nothing.
Let's close this then. It's still valid but DirectShow is deprecated and nobody seems to care enough to implement this :)