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:
parent
1ae7ab03d9
commit
7288b034ac
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user