mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Small cleanups and additions
This commit is contained in:
parent
93a52f4837
commit
2f6c4544fe
3 changed files with 13 additions and 2 deletions
|
|
@ -729,7 +729,7 @@ impl_add_server(struct pw_protocol *protocol,
|
|||
|
||||
pw_loop_add_hook(pw_core_get_main_loop(core), &s->hook, &impl_hooks, s);
|
||||
|
||||
pw_log_info("protocol-native %p: Added server %p", protocol, this);
|
||||
pw_log_info("protocol-native %p: Added server %p %s", protocol, this, name);
|
||||
|
||||
return this;
|
||||
|
||||
|
|
|
|||
|
|
@ -257,7 +257,6 @@ update_info(struct pw_node *this)
|
|||
this->info.output_formats[this->info.n_output_formats] = spa_format_copy(fmt);
|
||||
}
|
||||
}
|
||||
this->info.props = this->properties ? &this->properties->dict : NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -71,6 +71,18 @@ static inline bool pw_properties_parse_bool(const char *value) {
|
|||
return (strcmp(value, "true") == 0 || atoi(value) == 1);
|
||||
}
|
||||
|
||||
static inline int pw_properties_parse_int(const char *value) {
|
||||
return strtol(value, NULL, 0);
|
||||
}
|
||||
|
||||
static inline int64_t pw_properties_parse_int64(const char *value) {
|
||||
return strtoll(value, NULL, 0);
|
||||
}
|
||||
|
||||
static inline uint64_t pw_properties_parse_uint64(const char *value) {
|
||||
return strtoull(value, NULL, 0);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue