vaapivideobufferpool: turn errors into warnings

set_config() vmethod should fail gracefully, thus upstream could
negotiate another pool if possible.

Instead of sending error messages to the bus, let demote the level
to warning.
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-01-29 11:52:38 +01:00
parent 67c0bf2cdb
commit ed505f5ed4

View file

@ -286,32 +286,32 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool,
/* ERRORS */ /* ERRORS */
error_invalid_config: error_invalid_config:
{ {
GST_ERROR_OBJECT (base_pool, "invalid config"); GST_WARNING_OBJECT (base_pool, "invalid config");
return FALSE; return FALSE;
} }
error_no_caps: error_no_caps:
{ {
GST_ERROR_OBJECT (base_pool, "no caps in config"); GST_WARNING_OBJECT (base_pool, "no caps in config");
return FALSE; return FALSE;
} }
error_invalid_caps: error_invalid_caps:
{ {
GST_ERROR_OBJECT (base_pool, "invalid caps %" GST_PTR_FORMAT, caps); GST_WARNING_OBJECT (base_pool, "invalid caps %" GST_PTR_FORMAT, caps);
return FALSE; return FALSE;
} }
error_invalid_allocator: error_invalid_allocator:
{ {
GST_ERROR_OBJECT (base_pool, "no allocator in config"); GST_INFO_OBJECT (base_pool, "no allocator in config");
return FALSE; return FALSE;
} }
error_no_vaapi_video_meta_option: error_no_vaapi_video_meta_option:
{ {
GST_ERROR_OBJECT (base_pool, "no GstVaapiVideoMeta option in config"); GST_WARNING_OBJECT (base_pool, "no GstVaapiVideoMeta option in config");
return FALSE; return FALSE;
} }
error_no_allocator: error_no_allocator:
{ {
GST_ERROR_OBJECT (base_pool, "no allocator defined"); GST_WARNING_OBJECT (base_pool, "no allocator defined");
return FALSE; return FALSE;
} }
} }