Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Camilo Celis Guzman
gst-plugins-good
Commits
68da32e7
Commit
68da32e7
authored
Apr 18, 2011
by
Sebastian Dröge
Browse files
wavpack: Remove bus GSource to prevent a valgrind warning
parent
84c3b063
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/check/pipelines/wavpack.c
View file @
68da32e7
...
...
@@ -95,6 +95,7 @@ GST_START_TEST (test_encode_decode)
GstBus
*
bus
;
GMainLoop
*
loop
;
GstBuffer
*
in
,
*
out
;
guint
bus_watch
=
0
;
srcadapter
=
gst_adapter_new
();
fail_unless
(
srcadapter
!=
NULL
);
...
...
@@ -148,7 +149,7 @@ GST_START_TEST (test_encode_decode)
bus
=
gst_element_get_bus
(
pipeline
);
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
);
had_first_buffer
=
FALSE
;
...
...
@@ -179,6 +180,7 @@ GST_START_TEST (test_encode_decode)
g_main_loop_unref
(
loop
);
g_object_unref
(
srcadapter
);
g_object_unref
(
sinkadapter
);
g_source_remove
(
bus_watch
);
}
GST_END_TEST
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment