mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
add some more useful defines
Add define to match all ids for nodes and params. Add define for invalid permissions
This commit is contained in:
parent
cf53ededd0
commit
043e7f24fe
25 changed files with 50 additions and 50 deletions
|
|
@ -941,13 +941,13 @@ static int create_stream(pa_stream_direction_t direction,
|
|||
if (direction == PA_STREAM_RECORD)
|
||||
devid = s->direct_on_input;
|
||||
else
|
||||
devid = SPA_ID_INVALID;
|
||||
devid = PW_ID_ANY;
|
||||
|
||||
if (dev == NULL) {
|
||||
if ((str = getenv("PIPEWIRE_NODE")) != NULL)
|
||||
devid = atoi(str);
|
||||
}
|
||||
else if (devid == SPA_ID_INVALID) {
|
||||
else if (devid == PW_ID_ANY) {
|
||||
uint32_t mask;
|
||||
|
||||
if (direction == PA_STREAM_PLAYBACK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue