libpipewire: integrate loop into an external one
I am trying to understand whether it is possible to integrate libpipewire loop into an application's one. Is this achievable at all?
Moreover, i was playing around with tutorial 5 and toying with
pw_stream_connect, i noticed that third argument does not do much for me:
pw_stream_connect(data.stream, PW_DIRECTION_INPUT, argc > 1 ? (uint32_t)atoi(argv) : PW_ID_ANY, PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS, params, 1);
I tried to pass my webcam object ID and it obviously worked; however it worked fine even using a wrong object ID. Is this ok? Maybe I didn't understand the parameter's meaning.
Thank you very much for your time and effort.