mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
fix errno values
This commit is contained in:
parent
7cbdaeb3b6
commit
3ee9cbd57d
3 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ pw_control_new(struct pw_core *core,
|
||||||
direction = SPA_DIRECTION_OUTPUT;
|
direction = SPA_DIRECTION_OUTPUT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errno = -ENOTSUP;
|
errno = ENOTSUP;
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,7 @@ bool pw_debug_is_category_enabled(const char *name)
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
const char *pw_get_application_name(void)
|
const char *pw_get_application_name(void)
|
||||||
{
|
{
|
||||||
errno = -ENOTSUP;
|
errno = ENOTSUP;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ static struct param *add_param(struct pw_stream *stream,
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
if (param == NULL || !spa_pod_is_object(param)) {
|
if (param == NULL || !spa_pod_is_object(param)) {
|
||||||
errno = -EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue