v4l2videoenc: report error only when buffer pool parameters are invalid

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8908>
This commit is contained in:
Hou Qi 2025-04-28 13:24:45 +09:00 committed by GStreamer Marge Bot
parent 1ae7ab03d9
commit 7288b034ac

View File

@ -785,7 +785,7 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
if (!gst_buffer_pool_set_config (opool, config)) {
config = gst_buffer_pool_get_config (opool);
if (gst_buffer_pool_config_validate_params (config,
if (!gst_buffer_pool_config_validate_params (config,
self->input_state->caps, self->v4l2output->info.vinfo.size, min,
min)) {
gst_structure_free (config);