v4l2: videodec: Fix broken template caps
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 21 May 2020 21:12:55 +0000 (17:12 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 May 2020 19:11:47 +0000 (19:11 +0000)
commit3ea71a63f674e4fb01006f4c43ddef19e080187a
tree6c8a2e5f8644073758bff0e2302b56488ca7855c
parentd93664d65d20191aa2af0075f8f0e65a78820199
v4l2: videodec: Fix broken template caps

The profiles and levels were applied to the common caps instead of the copy.
That had the side effect of setting profiles/level from one CODEC onto
another. Leaving to encoder not being registered or not-negotiated errors.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/599>
sys/v4l2/gstv4l2videoenc.c