Crash in souphttpclientsink

amistry mistry_amit at yahoo.com
Mon Mar 27 17:34:31 UTC 2017


For benefit of others, here is what fixed the souphttpclientsink crash on the
iOS platform. When the pipeline is signaled to stop, the souphttpclientsink
plugin's stop gets called and tries to abort the soup session in turn
results to free some resources. These resources are still being used by
souphttpclientsink-thread, which is still running.

Following code snippet of gst_soup_http_client_sink_stop function should be
executed post g_thread_join on the souphttpclientsink-thread.  This fix
basically allows all remaining data to be handled by the main loop and
returned gracefully before the soup session is aborted.

if (souphttpsink->prop_session == NULL) {
    soup_session_abort (souphttpsink->session);
    g_object_unref (souphttpsink->session); }

Hope it helps!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Crash-in-souphttpclientsink-tp4682026p4682418.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list