mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 17:14:23 +00:00
wavpack: Remove bus GSource to prevent a valgrind warning
This commit is contained in:
parent
84c3b06353
commit
68da32e735
1 changed files with 3 additions and 1 deletions
|
@ -95,6 +95,7 @@ GST_START_TEST (test_encode_decode)
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
GstBuffer *in, *out;
|
GstBuffer *in, *out;
|
||||||
|
guint bus_watch = 0;
|
||||||
|
|
||||||
srcadapter = gst_adapter_new ();
|
srcadapter = gst_adapter_new ();
|
||||||
fail_unless (srcadapter != NULL);
|
fail_unless (srcadapter != NULL);
|
||||||
|
@ -148,7 +149,7 @@ GST_START_TEST (test_encode_decode)
|
||||||
|
|
||||||
bus = gst_element_get_bus (pipeline);
|
bus = gst_element_get_bus (pipeline);
|
||||||
fail_unless (bus != NULL);
|
fail_unless (bus != NULL);
|
||||||
gst_bus_add_watch (bus, bus_handler, loop);
|
bus_watch = gst_bus_add_watch (bus, bus_handler, loop);
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
|
|
||||||
had_first_buffer = FALSE;
|
had_first_buffer = FALSE;
|
||||||
|
@ -179,6 +180,7 @@ GST_START_TEST (test_encode_decode)
|
||||||
g_main_loop_unref (loop);
|
g_main_loop_unref (loop);
|
||||||
g_object_unref (srcadapter);
|
g_object_unref (srcadapter);
|
||||||
g_object_unref (sinkadapter);
|
g_object_unref (sinkadapter);
|
||||||
|
g_source_remove (bus_watch);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue