Small cleanups and additions

This commit is contained in:
Wim Taymans 2017-09-18 21:47:44 +02:00
parent 93a52f4837
commit 2f6c4544fe
3 changed files with 13 additions and 2 deletions

View file

@ -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;

View file

@ -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

View file

@ -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