summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-16 19:29:24 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-16 19:29:24 +0200
commitb29ddcfa28e9f1c6e664e3bbe202c4faf41998e7 (patch)
treed14c30b45547963747b65d037c1cede96702a954 /main.c
parent602dc1dcdb9937ac2aaeb28aaedc0cf6d39abaaa (diff)
ensure that all messages sent before mainloop get executed;
this fixes problem with gtkui not catching playlistswitched event, etc
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index ff14abe5..6462111b 100644
--- a/main.c
+++ b/main.c
@@ -391,7 +391,6 @@ player_mainloop (void) {
uintptr_t ctx;
uint32_t p1;
uint32_t p2;
- messagepump_wait ();
int term = 0;
while (messagepump_pop(&msg, &ctx, &p1, &p2) != -1) {
// broadcast to all plugins
@@ -475,6 +474,7 @@ player_mainloop (void) {
if (term) {
return;
}
+ messagepump_wait ();
//usleep(50000);
//plug_trigger_event (DB_EV_FRAMEUPDATE, 0);
}