summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2012-04-12 23:26:43 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-04-13 10:11:32 +0200
commit58a443de5c06dfabbb739f29375a1ad49d694d8f (patch)
tree15fbfd642c88ba86d0c3c45a34adf6c633eb6be6 /lib
parent4bc1112dc5f19675e8291d437c4c134c6886342a (diff)
gsttestpipeline: Check the bus still exists when trying to disconnect from it
Diffstat (limited to 'lib')
-rw-r--r--lib/insanity-gst/insanitygstpipelinetest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/insanity-gst/insanitygstpipelinetest.c b/lib/insanity-gst/insanitygstpipelinetest.c
index fc8f90a..70dd591 100644
--- a/lib/insanity-gst/insanitygstpipelinetest.c
+++ b/lib/insanity-gst/insanitygstpipelinetest.c
@@ -628,7 +628,9 @@ insanity_gst_pipeline_test_test (InsanityThreadedTest * test)
id = g_signal_connect (G_OBJECT (ptest->priv->bus), "message",
(GCallback) & on_message, ptest);
g_main_loop_run (ptest->priv->loop);
- g_signal_handler_disconnect (G_OBJECT (ptest->priv->bus), id);
+
+ if (ptest->priv->bus)
+ g_signal_handler_disconnect (G_OBJECT (ptest->priv->bus), id);
insanity_test_done (INSANITY_TEST (ptest));
}