v4l2videodec: Add ref/unref code to avoid crash 00/260700/1 accepted/tizen/unified/20210707.070822 submit/tizen/20210702.012922 submit/tizen/20210705.030138
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 1 Jul 2021 08:06:46 +0000 (17:06 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 1 Jul 2021 08:12:27 +0000 (17:12 +0900)
commit7327af0af5fcb1c5d538bcd99b6b9c6154e80166
treeb997b8961f5763a68541ff4053fe45570393ca12
parentb4d691c46129af712fb3e7df15ebf06b25cfcb77
v4l2videodec: Add ref/unref code to avoid crash

- The crash could be occurred when a buffer from v4l2allocator is returned after the element is released.
- This patch prevents release of element until all buffers are returned.

[Version] 1.16.2-28
[Issue Type] Improvement

Change-Id: I5a17788254e30d0601bd6463f9b84c539f1815a6
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/gst-plugins-good.spec
sys/v4l2/gstv4l2bufferpool.c