mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
video-src: print node id
This commit is contained in:
parent
e69cf24f24
commit
e03289b4ac
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ static void on_stream_state_changed(void *_data, enum pw_stream_state old, enum
|
||||||
printf("stream state: \"%s\"\n", pw_stream_state_as_string(state));
|
printf("stream state: \"%s\"\n", pw_stream_state_as_string(state));
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
case PW_STREAM_STATE_CONFIGURE:
|
||||||
|
printf("node id: %d\n", pw_stream_get_node_id(data->stream));
|
||||||
|
break;
|
||||||
case PW_STREAM_STATE_STREAMING:
|
case PW_STREAM_STATE_STREAMING:
|
||||||
{
|
{
|
||||||
struct timespec timeout, interval;
|
struct timespec timeout, interval;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue