[Bug 755748] New: gst-rtsp-server: Retain reference to rtsp-media when preparing

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 28 09:00:44 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=755748

            Bug ID: 755748
           Summary: gst-rtsp-server: Retain reference to rtsp-media when
                    preparing
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-rtsp-server
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: sebras at hotmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

default_prepare() takes a transfer-none reference GstRTSPMedia object. Later on
a g_idle_source_new() is created and a pointer to the media object is passed as
user data. If the media is freed before the idle source is dispatched the media
object pointer is invalid, but the idle source callback expects it to still be
valid. To fix this a reference to the media object is taken when registering
the source callback function and a corresponding release of the reference is
done when the souce is destroyed.

I have seen this happen in practice but I have unfortunately lost the log.

-- 
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