[gst-devel] GStreamer in double loop
arnout at mind.be
Fri Jun 19 00:09:57 CEST 2009
On Thursday 18 June 2009 21:53:29 Jeffrey Barish wrote:
> > You can use GLib's GIOChannel API to register the socket file
> > descriptor, and get the GObject mainloop to poll it for you efficiently.
> > See g_io_channel_unix_new () and g_io_add_watch ()
> Normally a good approach. One detail I omitted was that the sockets can
> change, so in this case I don't see how I can use this approach.
When you create a new socket, you can also create a new IO channel and watch
for it, no?
If you want to change the sockets you are watching, you can remove the IO
watch source and add it again later on.
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: D206 D44B 5155 DF98 550D 3F2A 2213 88AA A1C7 C933
More information about the gstreamer-devel