mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
use true and false for boolean properties
So that it's easier to convert them to booleans in introspection code later.
This commit is contained in:
parent
b60d7bf2bc
commit
c4b2be2aad
16 changed files with 28 additions and 28 deletions
|
|
@ -928,7 +928,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
if ((str = spa_dict_lookup(info, "resample.quality")) != NULL)
|
||||
this->props.quality = atoi(str);
|
||||
if ((str = spa_dict_lookup(info, "resample.peaks")) != NULL)
|
||||
this->peaks = atoi(str);
|
||||
this->peaks = strcmp(str, "true") == 0 || atoi(str) == 1;
|
||||
if ((str = spa_dict_lookup(info, "factory.mode")) != NULL) {
|
||||
if (strcmp(str, "split") == 0)
|
||||
this->mode = MODE_SPLIT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue