svthevcenc: Fix potential use of unitialized variable

In gst_svthevc_enc_propose_allocation if we don't get info from
the caps, we'd goto done, which could potentially try to unref
and unitialized pool variable.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5476>
This commit is contained in:
Jordan Petridis 2023-09-29 16:55:15 +02:00 committed by GStreamer Marge Bot
parent e1ca575408
commit 0bc353085f

View file

@ -1501,7 +1501,7 @@ gst_svthevc_enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
GstCaps *caps;
GstVideoInfo info;
GstVideoAlignment video_align;
GstBufferPool *pool;
GstBufferPool *pool = NULL;
GstStructure *config;
guint i, size, min, max;