From: Tim-Philipp Müller Date: Mon, 18 Nov 2013 15:28:32 +0000 (+0000) Subject: tests: fix GstBus unit test with latest GLib X-Git-Tag: 1.3.1~317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47679cf2f8055f37be0b0dde1d7ea68be0972460;p=platform%2Fupstream%2Fgstreamer.git tests: fix GstBus unit test with latest GLib g_source_remove() works on the default main context, and we're doing things with a custom context. Fixes warning with newer GLib versions. --- diff --git a/tests/check/gst/gstbus.c b/tests/check/gst/gstbus.c index 6ceb71f..870a700 100644 --- a/tests/check/gst/gstbus.c +++ b/tests/check/gst/gstbus.c @@ -232,7 +232,8 @@ GST_START_TEST (test_watch_with_custom_context) fail_unless_equals_int (num_eos, 10); fail_unless_equals_int (num_app, 10); - g_source_remove (id); + if ((source = g_main_context_find_source_by_id (ctx, id))) + g_source_destroy (source); g_main_loop_unref (main_loop); g_main_context_unref (ctx);