Influencing playbin2/decodebin2 auto-plugging

Tvrtko Ursulin tvrtko.ursulin at onelan.co.uk
Tue Aug 7 01:55:10 PDT 2012


On Monday 06 August 2012 17:07:36 Tim-Philipp Müller wrote:
> On Mon, 2012-08-06 at 17:01 +0100, Tvrtko Ursulin wrote:
> > I see now that when my autoplug-select handler is installed, playbin2's
> > one is not called at all. And it actually looks like a non-trivial code
> > there.
> > 
> > Solvable? I really liked this approach.. if this is a dead end I will have
> > to attempt your other suggestion of iterating over the plugin registry
> > and modify ranks. Hopefully it is doable from Python.
> > 
> > Do you perhaps have any pointers (examples) to start me up there?
> 
> Should be doable from python.
> 
> Or perhaps the "autoplug-sort" signal would be enough for your purposes?
> I don't think playbin2 uses that (yet).

It works!

Attached sample code in case anyone else needs it one day.

Thanks Tim!

Regards,

Tvrtko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: playbin-vaapi.py
Type: text/x-python
Size: 6559 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120807/2ce4d8b9/attachment-0001.py>


More information about the gstreamer-devel mailing list