correct way to shutdown gst-rtsp-server?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

correct way to shutdown gst-rtsp-server?

Joel Keller
Hi,

I've noticed that gst_deinit() hangs waiting for rtsp-server related threads if I attempt to shutdown my application while an RTSP client connection remains.  Specifically, when it is time for the server to shut down, I exit the main loop to which the rstp-server is attached, and do g_source_remove, g_source_destroy for the server object.  Still I see that if I leave a VLC/ffplay window RTSP client window open, gst_deinit() hangs until I close the window.

Could anyone give me a pointer on how to force a clean shutdown of gst-rtsp-server such that all existing 
are dropped & gst_deinit() can proceed.

Thanks,

Joel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: correct way to shutdown gst-rtsp-server?

Xavier Claessens-2
Hi,

There is a related bug with a patch I made a while ago:
https://bugzilla.gnome.org/show_bug.cgi?id=767021

Would be nice to rebase that patch and see if we can get it merged.

Regards,
Xavier Claessens.Le mercredi 20 décembre 2017 à 09:48 -0500, Joel Keller a écrit :

> Hi,
>
> I've noticed that gst_deinit() hangs waiting for rtsp-server related
> threads if I attempt to shutdown my application while an RTSP client
> connection remains.  Specifically, when it is time for the server to
> shut down, I exit the main loop to which the rstp-server is attached,
> and do g_source_remove, g_source_destroy for the server object. 
> Still I see that if I leave a VLC/ffplay window RTSP client window
> open, gst_deinit() hangs until I close the window.
>
> Could anyone give me a pointer on how to force a clean shutdown of
> gst-rtsp-server such that all existing 
> are dropped & gst_deinit() can proceed.
>
> Thanks,
>
> Joel
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel