tools: gst-launch: don't try to remove already-removed GSource from main loop
authorTim-Philipp Müller <tim@centricular.com>
Thu, 5 Dec 2013 00:26:13 +0000 (00:26 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Dec 2013 00:26:13 +0000 (00:26 +0000)
commit208e303568a11ad0419b2632d6a3c90517487abb
treefc8efdd7008c30b9d53c6dbae3c9c4c7fa2c6c70
parentccba91308dd323f1c9d9caaf8e92951c5c840c03
tools: gst-launch: don't try to remove already-removed GSource from main loop

It's considered a programming error in recent GLib versions now.
We may already have removed the source by returning FALSE from
the callback if it was fired. Fixes warning with newer GLibs
when interrupting a pipeline with Control-C.
tools/gst-launch.c