GNOME Bugzilla – Bug 663555
segfault removing a stream with a connected client
Last modified: 2014-02-25 22:28:08 UTC
Here is the segfault
+ Trace 229008
and here is the code: GstRTSPMediaMapping *mapping; mapping=gst_rtsp_server_get_media_mapping(rtspserver); gst_rtsp_media_mapping_remove_factory(mapping,streamurl.constData()); g_object_unref(mapping); gst-rtsp-server crash if I remove a media_mapping and a client is still connected
Created attachment 200896 [details] [review] Patch that avoid segfault Probably is not the best solution but this way gst-rtsp-server works without segfault, please note that with this patch an "Invalid read of size 8" valgrind warning is given on the first null check if media_unprepared is called on an already finalized media
commit 37a7ec8033511cc8950047daad7e28953b9f5fe9 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Tue Nov 20 12:29:55 2012 +0100 factory: keep ref to factory while media active While the media from a factory is alive, keep a ref to the factory. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=663555