summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Svensson <linussn@axis.com>2014-04-01 16:55:13 +0200
committerWim Taymans <wtaymans@redhat.com>2014-04-08 15:00:42 +0200
commit6916875a0b31bc2484cb16613813974348ba068c (patch)
tree92d816e76b410e7f4fe300c1749ccb531c030c40 /tests
parenta3e6b11f11e18f2d67cffafdd65a51f47cd7b64f (diff)
downloadgstreamer-6916875a0b31bc2484cb16613813974348ba068c.tar.gz
media test: cleanup the thread pool in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/check/gst/media.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/check/gst/media.c b/tests/check/gst/media.c
index a0261594ad..e23fa3740b 100644
--- a/tests/check/gst/media.c
+++ b/tests/check/gst/media.c
@@ -94,6 +94,8 @@ GST_START_TEST (test_launch)
g_object_unref (factory);
g_object_unref (pool);
+
+ gst_rtsp_thread_pool_cleanup ();
}
GST_END_TEST;
@@ -203,6 +205,8 @@ GST_START_TEST (test_media_prepare)
"( videotestsrc is-live=true ! rtpvrawpay pt=96 name=pay0 )");
g_object_unref (pool);
+ gst_rtsp_thread_stop (thread);
+ gst_rtsp_thread_pool_cleanup ();
}
GST_END_TEST;
@@ -284,6 +288,8 @@ GST_START_TEST (test_media_dyn_prepare)
gst_object_unref (srcpad);
g_object_unref (media);
g_object_unref (pool);
+
+ gst_rtsp_thread_pool_cleanup ();
}
GST_END_TEST;
@@ -355,6 +361,8 @@ GST_START_TEST (test_media_reset)
gst_rtsp_url_free (url);
g_object_unref (factory);
g_object_unref (pool);
+
+ gst_rtsp_thread_pool_cleanup ();
}
GST_END_TEST;