[Bug 722556] pad: Cleanup hooks on dispose

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 20 07:10:38 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=722556
  GStreamer | gstreamer (core) | git

--- Comment #5 from Andrey Utkin <me at andrey-utkin.pp.ua> 2014-01-20 15:10:33 UTC ---
(In reply to comment #4)
> Yes, that's a big application level error if there are still pad blocks while
> you dispose the pad. Everything should just crash then because the blocked
> threads will use a pad that no longer exists after they were unblocked :)

Isn't the matter is that we have hooks still present, not threads actually
being stuck?

> Can you describe the actual situation a bit better?

Assume a pad callback procedure that wants to execute once and uninstall
itself. In my case its function is to release the requested source pad (the pad
on which actual probe is set up). But looks it can happen that task thread that
should push through that pad is paused or stopped for some reason, and later
the whole pipeline is shut down, so our callback haven't executed at all. This
seems to result in a leak of memory related to that requested pad.

I cannot be sure that my description is fully correct, of course it's better to
check with testcase than to take my speculations on trust.

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