gst_rtsp_client_close raise CRITICAL
Submitted by yjjnls
I want to dynamicly stop the rtsp-server while the pipeline is running. gst_rtsp_client_close() is used to close the streaming client. But I got the warning below:
GLib-CRITICAL **: g_main_context_unref: assertion 'g_atomic_int_get (&context->ref_count) > 0' failed
I found gst_rtsp_client_finalize() is invoked firstly and unref the main context. The gst_rtsp_client_close() do the same thing and raise the critical warnning.
If GST_DEBUG=rtspclient:5 is set, the debug log will consoled and my application run correctly, where gst_rtsp_client_finalize() is invoked later.
I think the problem may be similar to https://bugzilla.gnome.org/show_bug.cgi?id=790909