Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marc-André Lureau
gst-plugins-good
Commits
84c3b063
Commit
84c3b063
authored
Apr 18, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavenc: Remove bus GSource to prevent a valgrind warning
parent
39bb942b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/check/pipelines/wavenc.c
tests/check/pipelines/wavenc.c
+5
-1
No files found.
tests/check/pipelines/wavenc.c
View file @
84c3b063
...
...
@@ -69,6 +69,7 @@ make_n_channel_wav (const gint channels, const GValueArray * arr)
GstBus
*
bus
;
GMainLoop
*
loop
;
guint
i
;
guint
bus_watch
=
0
;
audiotestsrc
=
g_new0
(
GstElement
*
,
channels
);
...
...
@@ -104,7 +105,7 @@ make_n_channel_wav (const gint channels, const GValueArray * arr)
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
);
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
);
...
...
@@ -113,6 +114,9 @@ make_n_channel_wav (const gint channels, const GValueArray * arr)
gst_object_unref
(
pipeline
);
g_free
(
audiotestsrc
);
g_main_loop_unref
(
loop
);
g_source_remove
(
bus_watch
);
}
GST_START_TEST
(
test_encode_stereo
)
...
...
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