plugins: don't create display at caps query
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 28 Oct 2015 11:59:02 +0000 (12:59 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 9 Nov 2015 15:18:19 +0000 (16:18 +0100)
commitd69f747d0949bc87816bb74ac33135b618296c45
treecad9ccb676952c6f495173211ea0d1f5fd98ce85
parentb2707c8eece0a57906b3225f3f8706d94d41831c
plugins: don't create display at caps query

Caps query can happen before the element has a bus. The display creation should
be should occur on the context negotiation, when the bus is already configured.
Then at caps query no display should be created.

Instead of force the display creation, we graciously fail the allowed_caps()
creation.

This change only applies for vaapidecode and vaapisink. The vaapipostroc, as a
basetransform descendant, seems to be not affected by this, nor the encoders.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=757598
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapisink.c