turning off the webcam again
I am trying to understand lifecycle of remote resources, in connection with the camera portal.
In my test app, I create a pipewiresrc using the fd I got from the camera portal, and stuff that in a pipeline to play. All is fine, camera light turns on, the stream plays. But when I hit the Stop button, and unref the pipeline object, the camera light never turns off until I kill the process. I verified with a weak ref that the pipewiresrc object is getting disposed.
Expected behavior: The camera light is on as long as the app is showing the stream, and turns off when the app stops doing so.