v4l2: codec: Fix GValue leak
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 21 May 2020 21:09:39 +0000 (17:09 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 May 2020 19:11:47 +0000 (19:11 +0000)
commitd93664d65d20191aa2af0075f8f0e65a78820199
tree40071b33db229780cd49629eb0a30b6638bd32ae
parent24e08553d6e8634b6e81f0d5971d1d1d41b95d81
v4l2: codec: Fix GValue leak

The levels and profiles probe function returned a dynamically allocated GValue
that was leaked. Simplify this by using a stack allocated GValue and a boolean
return value.

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