Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
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
39bb942b
Commit
39bb942b
authored
Apr 18, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tagschecking: Remove bus GSource to prevent a valgrind warning
parent
dd2ff5a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tests/check/pipelines/tagschecking.c
tests/check/pipelines/tagschecking.c
+6
-2
No files found.
tests/check/pipelines/tagschecking.c
View file @
39bb942b
...
...
@@ -87,6 +87,7 @@ test_mux_tags (const gchar * tag_str, const gchar * caps,
GstElement
*
mux
;
GstTagSetter
*
setter
;
gchar
*
launch_str
;
guint
bus_watch
=
0
;
GST_DEBUG
(
"testing xmp muxing on : %s"
,
muxer
);
...
...
@@ -104,7 +105,7 @@ test_mux_tags (const gchar * tag_str, const gchar * caps,
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_READY
);
...
...
@@ -124,6 +125,7 @@ test_mux_tags (const gchar * tag_str, const gchar * caps,
g_main_loop_unref
(
loop
);
g_object_unref
(
mux
);
g_object_unref
(
pipeline
);
g_source_remove
(
bus_watch
);
}
/*
...
...
@@ -148,6 +150,7 @@ test_demux_tags (const gchar * tag_str, const gchar * demuxer,
gint
comparison
;
GstElement
*
demux
;
gchar
*
launch_str
;
guint
bus_watch
=
0
;
GST_DEBUG
(
"testing tags : %s"
,
tag_str
);
...
...
@@ -170,7 +173,7 @@ test_demux_tags (const gchar * tag_str, const gchar * demuxer,
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
);
sent_tags
=
gst_structure_from_string
(
tag_str
,
NULL
);
...
...
@@ -224,6 +227,7 @@ test_demux_tags (const gchar * tag_str, const gchar * demuxer,
g_main_loop_unref
(
loop
);
g_object_unref
(
demux
);
g_object_unref
(
pipeline
);
g_source_remove
(
bus_watch
);
}
/*
...
...
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