Destroy Gstreamer RTSP Server Object without exiting main application
Michael MacIntosh
mmacintosh at linear-systems.com
Thu Feb 1 21:03:48 UTC 2018
Hello,
When you attach your server to the GMainContext using
gst_rtsp_server_attach, that function returns a gsource pointer, which
you can use to destroy it when you are done.
You can find the source using g_main_context_find_source_by_id
https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#g-main-context-find-source-by-id
And then calling g_source_destroy on that GSource pointer.
That should free up the port.
Hope that helps!
On 1/31/2018 11:02 PM, rhythm87 wrote:
> I'm creating a GstRTSPServer, and associating a service i.e. port to it using
> GstRtspServer.RTSPServer.set_service(). Now I want to destroy or kill the
> server so as to free the port, but without exiting my main application, so
> that port can be reused. How can I do the same without exiting my main
> application.
>
> P.S.: I referred to Free Desktop Docs
> <https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPServer.html>
> but couldn't find a method for the same. I'm using python bindings for the
> same.
>
> Please suggest.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
More information about the gstreamer-devel
mailing list