mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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.
This commit is contained in:
parent
9f669e5ea5
commit
47679cf2f8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue