From b1fd6165148dc748820bc1b9392466ba01003223 Mon Sep 17 00:00:00 2001 From: Hou Qi Date: Mon, 2 Sep 2024 17:45:30 +0900 Subject: [PATCH] v4l2videoenc: unref buffer pool after usage properly Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c index a13f414033..83490e13bc 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c @@ -818,9 +818,9 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder, gst_object_unref (opool); goto activate_failed; } - if (opool) - gst_object_unref (opool); } + if (opool) + gst_object_unref (opool); } if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {