qsvvpp: Perform full init only when needed
authorJoe Olivas <joseph.k.olivas@intel.com>
Sun, 2 Sep 2018 18:06:48 +0000 (20:06 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 4 Sep 2018 12:32:22 +0000 (12:32 +0000)
commit642fd4769becc2f4827f8375a3d9e8edd2f5df77
treef023bd7860863b4b5dc035efc18b13c6b4bb215d
parent141c960e21d2860e354f9b90df136184dd00a9a8
qsvvpp: Perform full init only when needed

Removing unused VPP sessions by initializing only when used in order to help
reduce CPU utilization.

Thanks to Maxym for the guidance.

Signed-off-by: Joe Olivas <joseph.k.olivas@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/hwcontext_qsv.c