vaapidecodebin: enable vpp if it is available
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 1 Jul 2015 12:17:17 +0000 (14:17 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 2 Jul 2015 10:29:35 +0000 (12:29 +0200)
commit5c799b35f71ce70aa7e493c1471920355a30deef
treee748dfe4059292306e25036ef321c4c467d71a19
parent157ce777277e053a4beaca09d2e0ddc7a46801a2
vaapidecodebin: enable vpp if it is available

Instead of creating and adding VPP into the bin at setup, we wait until
we are sure the VA driver supports it. We know that when the VA video
context is received by the bin. Afterwards, it is decided to instanciate
and link the VPP or not.

This is more efficient and safer than waiting the VPP to fail and then
disable it.

https://bugzilla.gnome.org/show_bug.cgi?id=749554
gst/vaapi/gstvaapidecodebin.c
gst/vaapi/gstvaapidecodebin.h