From ed505f5ed412f8fc52e69bf6f6b62a676d1b3831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 29 Jan 2020 11:52:38 +0100 Subject: [PATCH] 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. --- gst/vaapi/gstvaapivideobufferpool.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c index 432de6811c..09744f9777 100644 --- a/gst/vaapi/gstvaapivideobufferpool.c +++ b/gst/vaapi/gstvaapivideobufferpool.c @@ -286,32 +286,32 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool, /* ERRORS */ error_invalid_config: { - GST_ERROR_OBJECT (base_pool, "invalid config"); + GST_WARNING_OBJECT (base_pool, "invalid config"); return FALSE; } error_no_caps: { - GST_ERROR_OBJECT (base_pool, "no caps in config"); + GST_WARNING_OBJECT (base_pool, "no caps in config"); return FALSE; } 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; } error_invalid_allocator: { - GST_ERROR_OBJECT (base_pool, "no allocator in config"); + GST_INFO_OBJECT (base_pool, "no allocator in config"); return FALSE; } 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; } error_no_allocator: { - GST_ERROR_OBJECT (base_pool, "no allocator defined"); + GST_WARNING_OBJECT (base_pool, "no allocator defined"); return FALSE; } }