How to detect dynamically loaded plugins in playbin based app ?

Sebastian Dröge sebastian at centricular.com
Wed Jul 27 06:16:02 UTC 2016


On Di, 2016-07-26 at 19:02 -0700, lucky chou wrote:
> Hi, I need to write a tool,  playbin2 based on of app real-time print
> automatically loaded element's info,such as name,rank,
> obj addr,etc...
> That is to say, when loading a plugin into bin immediately use  signals or
> events or message to notify app to print it.
> If  do not modify the SDK's  code, there is a way to do it?
> 
> I read the gstbin.c  code, see there is a element-added signal, 
> when a element to join bin, will emit a element-added signal.
> 
> But only send to its parent bin, that is, will not be nested into a more
> upper bin.
> For example, uridecodebin can receive an signal when decodebin2 is added ,
> but will
>  not receive element-added signal when a decoder(such as
> avdec_aac,avdec_h264...) 
> element plugged  in....

In GStreamer 1.9.1 and newer there's deep-element-added and deep-
element-removed, which will give you information about elements
added/removed somewhere deep inside playbin.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160727/df734894/attachment-0001.sig>


More information about the gstreamer-devel mailing list