message: keep weak reference to `src`?
Maybe GstMessage
should have weak reference to src
?
Pipelines in my app live long, creating and removing sinks when necessary. I wasn't interested in bus messages, so I didn't add bus callback. Those sinks were posting messages on bus and got referenced, so removing them from pipeline (last reference) wasn't enough to dispose of them.
With bus watch attached, everything is okay. But probably whether sink should be disposed or not should not depend on whether user added bus watch.
Edited by Kyrylo Polezhaiev