Skip to content

bus: Ensure that a unique GSource is ever attached

Until now we were enforcing that only 1 signal GSource was attached the bus but we could attach as many GSource with gst_bus_create_watch as we wanted... but in the end only 1 GSource will ever be dispatched for a given GstMessage leading to totally broken behavior.


I think we might be able to be smarter and allow attaching several GSource to the bus but it would require quite some refactoring (and potential weird/ugly corner cases) so this MR takes the simple approaches and just ensure that the behavior is sensible.

Edited by Thibault Saunier

Merge request reports