mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
stream: pass target id as uint32_t
This commit is contained in:
parent
8089d856c8
commit
b905b70a76
7 changed files with 12 additions and 11 deletions
|
|
@ -120,7 +120,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
pw_stream_connect(data.stream,
|
||||
PW_DIRECTION_OUTPUT,
|
||||
argc > 1 ? argv[1] : NULL,
|
||||
argc > 1 ? atoi(argv[1]) : SPA_ID_INVALID,
|
||||
PW_STREAM_FLAG_AUTOCONNECT |
|
||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
||||
PW_STREAM_FLAG_RT_PROCESS,
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
pw_stream_connect(data.stream,
|
||||
PW_DIRECTION_INPUT,
|
||||
data.path,
|
||||
data.path ? atoi(data.path) : SPA_ID_INVALID,
|
||||
PW_STREAM_FLAG_AUTOCONNECT |
|
||||
PW_STREAM_FLAG_INACTIVE |
|
||||
PW_STREAM_FLAG_EXCLUSIVE |
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
|
|||
|
||||
pw_stream_connect(data->stream,
|
||||
PW_DIRECTION_OUTPUT,
|
||||
NULL, PW_STREAM_FLAG_DRIVER,
|
||||
SPA_ID_INVALID, PW_STREAM_FLAG_DRIVER,
|
||||
params, 1);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue