[Bug 647293] New: Fix pad callbacks so they handle when parent goes away

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Apr 9 10:13:41 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=647293
  GStreamer | gstreamer (core) | 0.10.x

           Summary: Fix pad callbacks so they handle when parent goes away
    Classification: Platform
           Product: GStreamer
           Version: 0.10.x
        OS/Version: All
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: haakon.sporsheim at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=185596)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=185596)
patch

1) We need to lock and get a strong ref to the parent, if still there.
2) If it has gone away, we need to handle that gracefully.

This is necessary in order to safely modify a running pipeline. Has been
observed when a streaming thread is doing a buffer_alloc() while an
application thread sends an event on a pad further downstream, and from
within a pad probe (holding STREAM_LOCK) carries out the pipeline plumbing
while the streaming thread has its buffer_alloc() in progress.

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