[Repo/Sink] Consider a failure case of the render-buffer-function
authorWook Song <wook16.song@samsung.com>
Thu, 19 Mar 2020 05:11:28 +0000 (14:11 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 31 Mar 2020 00:20:50 +0000 (09:20 +0900)
commit6f215c847caa45e1c67c952356afdd5cffaea128
treed7fddc1b437c54d11743ec7363f1832d7bcc6e3f
parentfc4eacd78b4c2b1422b9fccf2e64186c819a6575
[Repo/Sink] Consider a failure case of the render-buffer-function

A failure case of the function, gst_tensor_reposink_render_buffer, was
not carefully considered. Therefore, the pipeline becomes stuck when
gst_tensor_reposink_render_buffer fails. In order to avoid such situation,
this patch modifies the function to explicitly return GST_FLOW_ERROR when
a buffer could not be rendered.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/nnstreamer/tensor_repo/tensor_reposink.c