media test: cleanup the thread pool in tests
authorLinus Svensson <linussn@axis.com>
Tue, 1 Apr 2014 14:55:13 +0000 (16:55 +0200)
committerWim Taymans <wtaymans@redhat.com>
Tue, 8 Apr 2014 13:00:42 +0000 (15:00 +0200)
tests/check/gst/media.c

index a026159..e23fa37 100644 (file)
@@ -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;