plugin: bufferpool: use hashmap to cache dmabuf mem-surface
authorHe Junyan <junyan.he@hotmail.com>
Sun, 15 Mar 2020 14:07:31 +0000 (22:07 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 4 Apr 2020 12:21:57 +0000 (14:21 +0200)
commitce3bf2c2aef123d2d57e3a99fa532fd960acf499
tree3f8a45b750fe722156f03a4fbea1d14bb384382a
parent7701844813e9c1ed559a0014cfa29986d907ae09
plugin: bufferpool: use hashmap to cache dmabuf mem-surface

The old way of refer memory by bufferproxy is not a good one, since it
make the logic error prone.

Now it is established a map between surface-bufferproxy and its GstMemory,
caching the memory bound by a surface looked for the specified surface.
gst/vaapi/gstvaapivideobufferpool.c