wayland/wlbuffer: just return if used_by_compositor is true when attach
authorHaihua Hu <jared.hu@nxp.com>
Thu, 18 Oct 2018 05:35:04 +0000 (13:35 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 23:12:53 +0000 (00:12 +0100)
commit087f9cfded0071ff3959354e47741198949dc0d4
tree56f936e556cb58008553cd230975fd12c95edf7a
parent4e8a6469789325b74acfef1795ee8288268ffdbb
wayland/wlbuffer: just return if used_by_compositor is true when attach

When buffer is used by compositor, we don't need attach it and hold one
more reference. Just check used_by_compositor, just return if it is true.
Assert error log is not need, this is normal behavior.
ext/wayland/wlbuffer.c