v4l2videoenc: unref buffer pool after usage properly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7435>
This commit is contained in:
Hou Qi 2024-09-02 17:45:30 +09:00 committed by GStreamer Marge Bot
parent 6394113b26
commit b1fd616514

View file

@ -818,9 +818,9 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
gst_object_unref (opool); gst_object_unref (opool);
goto activate_failed; 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) { if (task_state == GST_TASK_STOPPED || task_state == GST_TASK_PAUSED) {