How to detect dynamically loaded plugins in playbin based app ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to detect dynamically loaded plugins in playbin based app ?

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

Any suggestion will be appreciated.

Thanks,
-chou
Reply | Threaded
Open this post in threaded view
|

Re: How to detect dynamically loaded plugins in playbin based app ?

Sebastian Dröge-3
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to detect dynamically loaded plugins in playbin based app ?

rland
That's wonderful! sebastian,thx for your information.
Reply | Threaded
Open this post in threaded view
|

Re: How to detect dynamically loaded plugins in playbin based app ?

Duncan Palmer-2
That sounds really handy. I've previously registered element-added handlers on all new bins as they created by decodebin, in an attempt to work around the element-added limitations.

On 27 July 2016 at 16:43, lucky chou <[hidden email]> wrote:
That's wonderful! sebastian,thx for your information.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-detect-dynamically-loaded-plugins-in-playbin-based-app-tp4678856p4678867.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel