vaapidecode: update internal decoder sink caps
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 13 Jan 2017 20:26:15 +0000 (21:26 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 18 Jan 2017 10:30:49 +0000 (11:30 +0100)
commit86548296280a4e3f640799faefed2cee073e33ec
tree75e0ac7454aac96e367cd7b1e199d112b3f47ddf
parent4807a85e82e09e314ba14df4353f13004f9b1381
vaapidecode: update internal decoder sink caps

When a new sink caps arrive the internal decoder state is updated
and, if it is, request a downstream renegotiation.

Previously, when new caps arrived the whole decoder where destroyed
and recreated. Now, if the caps are compatible or has the same codec,
the internal decoder is kept, but a downstream renegotiation is
requested.

https://bugzilla.gnome.org/show_bug.cgi?id=776979
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder.h
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecode.h