[gst-devel] How to properly handle a disconnected (abruptly ended) input video stream?

Andy Wingo wingo at pobox.com
Tue Mar 14 04:23:01 CET 2006


Hi,

On Sun, 2006-03-12 at 16:02 +0100, Ola Theander wrote:
> sometimes the application's user disconnects the
> composite video cable without properly turn of the recoding in my
> application.

There is an element message posted to the bus when bus resets happen
(i.e., when the set of nodes on the bus changes). You can catch it in
your message handler. Can't recall what its name is tho, check the docs
or gst-launch -m dv1394src ! fakesink when replugging. When you get the
message you can do what you like, including setting the pipeline to NULL
-- it should unlock properly.

Regards,
-- 
Andy Wingo
http://wingolog.org/





More information about the gstreamer-devel mailing list