GNOME Bugzilla – Bug 753637
proposal: merge FsElementAddedNotifier in gstreamer (as GstElementAddedNotifier?)
Last modified: 2015-08-15 09:29:56 UTC
Created attachment 309297 [details] [review] base: import GstElementAddedNotifier from farstream (FsElementAddedNotifier) Farstream includes a class called "FsElementAddedNotifier", which I have found quite useful in various projects that don't use farstream. FsElementAddedNotifier basically extends the functionality of GstChildProxy and emits a signal when an element is added in a bin or any of its child bins, regardless of the parent-child depth level. In farstream this is used in combination with fsconference in order to set encoder properties in the encoders that get autoplugged inside the conference bin. Similarly, outside of farstream, I have found this useful in combination with decodebin/uridecodebin, which are also autoplugging elements. Setting the properties of those elements can only be done properly with this class. I think that merging it in GStreamer would be useful. The question would be how to name it and where to place it. I would propose to just name it "GstElementAddedNotifier" and place it in gstbase. The attached patch implements this proposal.
I think this is a duplicate of bug #578933
This looks pretty gross (although I realise of course that there are limits to what one can do from the outside) :) There must be better solutions. *** This bug has been marked as a duplicate of bug 578933 ***