summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-04-18 10:19:52 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-04-18 10:19:52 +0200
commit37b387804746a3a170f04eb25e62de1a6f59cfb1 (patch)
treefae3796291310a03697baf79a4732592d3f6b926
parent5d38f0d398cc43c55f57453f32fc2856f722138c (diff)
oggmux: Remove bus GSource to prevent a valgrind warning
-rw-r--r--tests/check/pipelines/oggmux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/pipelines/oggmux.c b/tests/check/pipelines/oggmux.c
index a104c254b..81056caf6 100644
--- a/tests/check/pipelines/oggmux.c
+++ b/tests/check/pipelines/oggmux.c
@@ -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);
}