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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Sep 29 05:02:01 PDT 2015


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

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |t.i.m at zen.co.uk
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.6.1

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
commit 6f1cad9237956235e5cf326c1e6394e5ae39433a
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date:   Mon Sep 28 17:40:59 2015 +0200

    rtsp-media: Take reference to media that will be prepared

    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.

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

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