mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
adapter: improve error message
Make sure we debug the result code that is returned.
This commit is contained in:
parent
e2181c582d
commit
80a543e043
1 changed files with 2 additions and 1 deletions
|
|
@ -185,8 +185,9 @@ static int find_format(struct pw_impl_node *node, enum pw_direction direction,
|
||||||
SPA_DIRECTION_OUTPUT, 0,
|
SPA_DIRECTION_OUTPUT, 0,
|
||||||
SPA_PARAM_EnumFormat, &state,
|
SPA_PARAM_EnumFormat, &state,
|
||||||
NULL, &format, &b)) != 1) {
|
NULL, &format, &b)) != 1) {
|
||||||
|
res = res < 0 ? res : -ENOENT;
|
||||||
pw_log_warn(NAME " %p: can't get format: %s", node, spa_strerror(res));
|
pw_log_warn(NAME " %p: can't get format: %s", node, spa_strerror(res));
|
||||||
return res < 0 ? res : -ENOENT;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res = spa_format_parse(format, media_type, media_subtype)) < 0)
|
if ((res = spa_format_parse(format, media_type, media_subtype)) < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue