video-src: print node id

This commit is contained in:
Wim Taymans 2018-11-12 09:52:59 +01:00
parent e69cf24f24
commit e03289b4ac

View file

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