[Bug 678306] [decodebin2] improve element instance handling
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jun 18 05:50:58 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=678306
GStreamer | gst-plugins-base | git
Sebastian Dröge <slomo> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slomo at circular-chaos.org
--- Comment #1 from Sebastian Dröge <slomo at circular-chaos.org> 2012-06-18 12:50:51 UTC ---
(In reply to comment #0)
> [...]
> At least 2 improvements/fixes seem to apply here:
> * arrange for the old element instances to be taken down to e.g. READY
> * put the old elements in some cached-element list so they can be re-used next
> time some such element is needed in a chain (like for example a subsequent
> channel switch).
>
> [note that keeping the old ones around in READY allows to re-use some global
> setup performed when going to READY]
For this see e2a038acee2969ed0b558093fa1c8b7422073e40 in base too (which was
reverted later because it wasn't optimal). Switching elements to READY is not
trivial here, especially if you want to re-use the elements for the next group
already. (But you can switch them to READY from the streaming thread(s) of the
next group as far as I see it)
Would you keep elements cached for the whole lifetime of decodebin or would
they be removed once the new group is exposed and they're not needed?
--
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