vtdec: minimize renegotiation to make hw decoding more reliable
authorAlessandro Decina <alessandro.d@gmail.com>
Thu, 16 Jun 2016 04:18:18 +0000 (14:18 +1000)
committerAlessandro Decina <alessandro.d@gmail.com>
Thu, 23 Jun 2016 01:45:27 +0000 (11:45 +1000)
commit9a026799f0a90424d7e20513f45709b4dfdc3d86
treed82a529e3f862ad32d97916565526e8f3af33665
parentba69afdc475f1fd41b2fb3141ada2531f190cf02
vtdec: minimize renegotiation to make hw decoding more reliable

The hardware decoder can become (temporarily) unavailable across
VTDecompressionSessionCreate/Destroy calls. During negotiation if the currently
configured caps are still accepted by downstream we keep using them so we don't
have to destroy and recreate the decoding session.

This indirectly fixes https://bugzilla.gnome.org/show_bug.cgi?id=767429, by
making vtdec stick to GLMemory.
sys/applemedia/vtdec.c