From e66ccc702b922e2688aba3adc9441f395ea3faad Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 22 Nov 2006 08:13:08 +0000 Subject: [PATCH] Further reduce GUI blocking. --- .../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 27d4073f7..d32b1a636 100644 --- a/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c +++ b/campcaster/src/modules/gstreamerElements/src/minimal-audio-smil.c @@ -512,6 +512,8 @@ handle_audio_element(LivesupportMinimalAudioSmil * smil, attr; attr = (xmlAttribute*) attr->next) { + while(g_main_context_pending(NULL)) g_main_context_iteration(NULL,FALSE); + xmlNode * node; /* TODO: support attribute values that are represented with @@ -585,6 +587,8 @@ handle_audio_element(LivesupportMinimalAudioSmil * smil, /* now handle the possible animate elements inside this audio element */ element = pplay; for (ix = 0, node = audio->children; node; node = node->next, ++ix) { + while(g_main_context_pending(NULL)) g_main_context_iteration(NULL,FALSE); + if (node->type == XML_ELEMENT_NODE) { GstElement * elem = 0;