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
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
37b38780
Commit
37b38780
authored
Apr 18, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggmux: Remove bus GSource to prevent a valgrind warning
parent
5d38f0d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/check/pipelines/oggmux.c
tests/check/pipelines/oggmux.c
+3
-1
No files found.
tests/check/pipelines/oggmux.c
View file @
37b38780
...
...
@@ -258,6 +258,7 @@ test_pipeline (const char *pipeline)
GError
*
error
=
NULL
;
GMainLoop
*
loop
;
GstPadLinkReturn
linkret
;
guint
bus_watch
=
0
;
bin
=
gst_parse_launch
(
pipeline
,
&
error
);
fail_unless
(
bin
!=
NULL
,
"Error parsing pipeline: %s"
,
...
...
@@ -280,7 +281,7 @@ test_pipeline (const char *pipeline)
/* run until we receive EOS */
loop
=
g_main_loop_new
(
NULL
,
FALSE
);
bus
=
gst_element_get_bus
(
bin
);
gst_bus_add_watch
(
bus
,
(
GstBusFunc
)
eos_watch
,
loop
);
bus_watch
=
gst_bus_add_watch
(
bus
,
(
GstBusFunc
)
eos_watch
,
loop
);
gst_object_unref
(
bus
);
start_pipeline
(
bin
,
pad
);
...
...
@@ -305,6 +306,7 @@ test_pipeline (const char *pipeline)
/* clean up */
g_main_loop_unref
(
loop
);
g_source_remove
(
bus_watch
);
gst_object_unref
(
pad
);
gst_object_unref
(
bin
);
}
...
...
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