mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
media test: cleanup the thread pool in tests
This commit is contained in:
parent
a3e6b11f11
commit
6916875a0b
1 changed files with 8 additions and 0 deletions
|
@ -94,6 +94,8 @@ GST_START_TEST (test_launch)
|
||||||
g_object_unref (factory);
|
g_object_unref (factory);
|
||||||
|
|
||||||
g_object_unref (pool);
|
g_object_unref (pool);
|
||||||
|
|
||||||
|
gst_rtsp_thread_pool_cleanup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -203,6 +205,8 @@ GST_START_TEST (test_media_prepare)
|
||||||
"( videotestsrc is-live=true ! rtpvrawpay pt=96 name=pay0 )");
|
"( videotestsrc is-live=true ! rtpvrawpay pt=96 name=pay0 )");
|
||||||
|
|
||||||
g_object_unref (pool);
|
g_object_unref (pool);
|
||||||
|
gst_rtsp_thread_stop (thread);
|
||||||
|
gst_rtsp_thread_pool_cleanup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -284,6 +288,8 @@ GST_START_TEST (test_media_dyn_prepare)
|
||||||
gst_object_unref (srcpad);
|
gst_object_unref (srcpad);
|
||||||
g_object_unref (media);
|
g_object_unref (media);
|
||||||
g_object_unref (pool);
|
g_object_unref (pool);
|
||||||
|
|
||||||
|
gst_rtsp_thread_pool_cleanup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -355,6 +361,8 @@ GST_START_TEST (test_media_reset)
|
||||||
gst_rtsp_url_free (url);
|
gst_rtsp_url_free (url);
|
||||||
g_object_unref (factory);
|
g_object_unref (factory);
|
||||||
g_object_unref (pool);
|
g_object_unref (pool);
|
||||||
|
|
||||||
|
gst_rtsp_thread_pool_cleanup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue