[query] Set tensor query caps when state changes from PAUSED to PLAYING
authorYelin Jeong <yelini.jeong@samsung.com>
Thu, 13 Jun 2024 09:53:16 +0000 (18:53 +0900)
committerSangjung Woo <again4you@gmail.com>
Thu, 11 Jul 2024 09:30:38 +0000 (18:30 +0900)
commit2720baee89226eb065ffd1dc1e3705c94a768737
treed2d032af202443e65fd497808866a10cf581357d
parentefb7cf5b060afd155f288f0f2fea79615a71c339
[query] Set tensor query caps when state changes from PAUSED to PLAYING

This patch makes to set tensor query caps, when state changes from PAUSED to PLAYING.
When the tensor_query_server is stopped, edge_handle is released.
So we need to set caps again when restarted.
If caps are not set, client connection is not possible after restart tensor_query_server.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
gst/nnstreamer/tensor_query/tensor_query_serversink.c
gst/nnstreamer/tensor_query/tensor_query_serversrc.c