mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix detection of reallocarray
Fix detection of reallocarray (e.g. on glibc) raised since commit
0708a39b43
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
63d2102594
commit
85ca67b927
13 changed files with 35 additions and 20 deletions
|
|
@ -196,7 +196,7 @@ int endpoint_stream_update(struct endpoint_stream *this,
|
|||
this->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
p = pw_reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
if (p == NULL) {
|
||||
free(this->params);
|
||||
this->params = NULL;
|
||||
|
|
@ -227,7 +227,7 @@ int endpoint_stream_update(struct endpoint_stream *this,
|
|||
this->info.params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
p = pw_reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
if (p == NULL) {
|
||||
free(this->info.params);
|
||||
this->info.params = NULL;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ int endpoint_update(struct endpoint *this,
|
|||
this->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
p = pw_reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
if (p == NULL) {
|
||||
free(this->params);
|
||||
this->params = NULL;
|
||||
|
|
@ -245,7 +245,7 @@ int endpoint_update(struct endpoint *this,
|
|||
this->info.params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
p = pw_reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
if (p == NULL) {
|
||||
free(this->info.params);
|
||||
this->info.params = NULL;
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ int endpoint_link_update(struct endpoint_link *this,
|
|||
this->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
p = pw_reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
if (p == NULL) {
|
||||
free(this->params);
|
||||
this->params = NULL;
|
||||
|
|
@ -241,7 +241,7 @@ int endpoint_link_update(struct endpoint_link *this,
|
|||
this->info.params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
p = pw_reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
if (p == NULL) {
|
||||
free(this->info.params);
|
||||
this->info.params = NULL;
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ int session_update(struct session *this,
|
|||
this->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
p = pw_reallocarray(this->params, n_params, sizeof(struct spa_pod*));
|
||||
if (p == NULL) {
|
||||
free(this->params);
|
||||
this->params = NULL;
|
||||
|
|
@ -222,7 +222,7 @@ int session_update(struct session *this,
|
|||
this->info.params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
p = pw_reallocarray(this->info.params, info->n_params, sizeof(struct spa_param_info));
|
||||
if (p == NULL) {
|
||||
free(this->info.params);
|
||||
this->info.params = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue