From af04eebdbc517bc8c1e453ccec46d0e0d64bd217 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 21 Nov 2006 23:38:12 +0000 Subject: [PATCH] Don't block the GUI. --- .../src/modules/gstreamerElements/src/minimal-audio-smil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c b/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c index 7e1462c75..27d4073f7 100644 --- a/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c +++ b/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c @@ -659,6 +659,8 @@ handle_par_element(LivesupportMinimalAudioSmil * smil, for (index = 0, node = par->children; node; node = node->next, ++index) { + while(g_main_context_pending(NULL)) g_main_context_iteration(NULL,FALSE); + if (node->type == XML_ELEMENT_NODE) { GstElement * element = 0; @@ -732,6 +734,8 @@ process_smil_file(LivesupportMinimalAudioSmil * smil) } for (node = node->children; node; node = node->next) { + while(g_main_context_pending(NULL)) g_main_context_iteration(NULL,FALSE); + if (node->type == XML_ELEMENT_NODE) { GstElement * element = 0;