[Bug 710088] rtsp-server: Socket ownership handling broken in gst_rtsp_connection_create_from_socket()

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Oct 16 12:37:04 CEST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=710088
  GStreamer | gst-rtsp-server | git

--- Comment #2 from Ognyan Tonchev <ognyan.tonchev at axis.com> 2013-10-16 10:36:58 UTC ---
this code is a bit confusing, gst_rtsp_connection_create_from_socket() does not
take ownership of the socket. It reffs the socket indirectly by calling
g_socket_connection_factory_create_connection(socket) which returns GIOStream.
The refernce is then dropped from gst_rtsp_connection_close() by unreffing the
stream:

    g_object_unref (conn->stream0);
    conn->stream0 = NULL;
    conn->socket0 = NULL;

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list