I have been trying to build a RTSP server using gst-rtsp-server. I now want to be able to close an active connection from the server side. However, if I call gst_rtsp_client_close() I get some undefined behaviors.
Most of the time I can see a debug log:
It will setup the rtsp server to accept a connection and then call gst_rtsp_client_close() after 2 seconds.