OSDN Git Service

drm_hwcomposer: Don't close same handle several times.
authorRoman Stratiienko <r.stratiienko@gmail.com>
Wed, 25 Aug 2021 03:15:42 +0000 (06:15 +0300)
committerRoman Stratiienko <r.stratiienko@gmail.com>
Wed, 25 Aug 2021 09:44:41 +0000 (12:44 +0300)
commit8514329f7e98dba60c396a8d0cab72daeb78e65e
tree467174a29a0a3ae0b29cb94bc424776308a47e02
parent66763d51428e5ca834e9cc29ad86299ac06381dd
drm_hwcomposer: Don't close same handle several times.

Video (YUV) frames can have several planes in the same buffer,
in this case all the planes will be represented by the same
gem_handle, which must be closed only once.

Fixes logcat noise during video playback.

Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
drm/DrmFbImporter.cpp