[tensor_converter] Remove a seemingly unnecessary caps attribute views=1
authorTorsten Schulz <torsten.schulz@gmail.com>
Fri, 13 Jan 2023 01:47:56 +0000 (17:47 -0800)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 6 Feb 2023 02:43:06 +0000 (11:43 +0900)
commit8d74e873b2d018217ec84a3116aee78ef4836168
treeaa82e791b7ff6f0e8ffac3bf6e2fd5c0a2fdb8db
parent287127b75f1db44985916786566a8181d9d5f22e
[tensor_converter] Remove a seemingly unnecessary caps attribute views=1

This fix makes tensor_converter compatible with vaapih264dec and adds a WARNING if incoming video caps views>1.

The need for this workaround and warning has been surfaced because of
a bug in vaapih264hdec https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1712
which provides `video/x-raw, ... multiview-mode=(string)mono, ... views=(int)2`.
The caps restriction of `views=(int)1` prohibits the successful negotiation.

This has been tested with a mono video but not with a truly
stereoscopic video which might need further handling in the buffer
processing.

Signed-off-by: Torsten Schulz <torsten.schulz@gmail.com>
gst/nnstreamer/elements/gsttensor_converter.c
gst/nnstreamer/elements/gsttensor_converter_media_info_video.h