On Thu, Aug 18, 2016 at 10:14 AM, Nick Deubert <ndeubert gmail com> wrote:
On Thu, Aug 18, 2016 at 3:28 AM, Jens Georg <mail jensge org> wrote:Everything! GUPnP-related has to be created in the worker thread after g_main_context_push_thread_default. Otherwise half of your call-backs end up in main thread.Thanks for the quick reply. Ok then is the attached code (which seems to work) correct? Thanks for your help.
Or I suppose do I even need the main loop in main()? Is it as simple as just creating a GMainContext and pushing it before doing anything else? Would the attached code be safe? Thanks.
Attachment:
light-server.c
Description: Text Data