[Swfdec] player/swfplay.c

Benjamin Otte company at kemper.freedesktop.org
Fri Aug 24 06:49:15 PDT 2007


 player/swfplay.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
diff-tree e840582fbb91f6fcd3b21a3511f0d72becc33af1 (from 672054a7dcbd5853d9381c06d5185d13273bb2a7)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Aug 24 15:37:24 2007 +0200

    quit correctly even when it's done in init code
    
    I hate main loops...

diff --git a/player/swfplay.c b/player/swfplay.c
index 0c2ff6b..739de8c 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -171,7 +171,8 @@ main (int argc, char *argv[])
 
   swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
 
-  g_main_loop_run (loop);
+  if (g_main_loop_is_running (loop))
+    g_main_loop_run (loop);
 
   g_object_unref (player);
   g_main_loop_unref (loop);


More information about the Swfdec mailing list