gst-launch: Use g_unix_signal_add() to handle keyboard interruption
authorKrzysztof Konopko <krzysztof.konopko@gmail.com>
Wed, 13 Feb 2013 00:27:28 +0000 (00:27 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 14 Feb 2013 09:10:59 +0000 (10:10 +0100)
commit6099b35f7e64a80050d23fb224b1fd6b22a5f88d
tree538cda466aacaf7b2566d8d283147ce4eec53bb2
parent651ed1acd8b978c58768643646ce65b3fc596d6e
gst-launch: Use g_unix_signal_add() to handle keyboard interruption

Current implementation uses a traditional signal handler and a 250ms
timeout callback in the event loop.  Adding a GSource with
g_unix_signal_add() to the GMainLoop is a much more elegant solution.
The signal handler with this approach can send a message to the bus
directly rather than set a flag as all dispatching intricacies are handled
by GLib.

https://bugzilla.gnome.org/show_bug.cgi?id=693481
tools/gst-launch.c