mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
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:
parent
67c0bf2cdb
commit
ed505f5ed4
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue