GNOME Bugzilla – Bug 381301
[patch] Make GstBus watch work with any GMainContext
Last modified: 2007-02-27 17:43:40 UTC
The GstBus watch only works when added to the default GMainContext because it only wakes up the default context when a message is added. This patch keeps track of the sources and wakes up all the contexts they are added too.
Created attachment 77490 [details] [review] the patch
This patch doesn't solve the problem of multiple simultaneous sources listening on the bus, although I know we chatted about that. Are you going to address that, or just stick with this patch?
the multiple sources is vastly more complicated. This patch simply attempts to solve a different problem first.
The patch also has races and looks too complicated.
Created attachment 83476 [details] [review] alternative patch This is an alternative patch that allows me to do what I want, ie, poll the bus from another thread.
I like this patch
did you also spot the bug? :)