summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-01-29 11:52:38 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-02-02 17:22:43 +0100
commited505f5ed412f8fc52e69bf6f6b62a676d1b3831 (patch)
treeaafdbfc410f50496ca08191f65043ed746536fa4
parent67c0bf2cdbe6b61bf7b2de27a2e2eb696dd28e15 (diff)
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.
-rw-r--r--gst/vaapi/gstvaapivideobufferpool.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c
index 432de681..09744f97 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;
}
}