RTSP server won't be destroyed until media is pre-rolled (or 20s timeout)
@xclaesse
Submitted by Xavier Claessens Link to original bug (#767021)
Description
Created attachment 328727
test case
My application has an RTSP server that can be started/stopped by the user. When shutting down the server, I disconnect all clients, unref the server, and call gst_rtsp_thread_pool_cleanup() to be sure all resources has been cleaned.
If a client connects just before I stop the server, it will wait for pre-roll in gst_rtsp_media_get_status(). If pre-roll never happens it will unblock on a 20s timeout.
I think in the case that the client disconnects, it should unblock that condition.
Attachment 328727, "test case":
test-shutdown.c