Displaying 5 results from an estimated 5 matches for "do_fscommand".
Did you mean:
do_command
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...rt for player scripts (aka FSCommand)
also add a --no-scripts option to get rid of it
diff --git a/player/swfplay.c b/player/swfplay.c
index 23e3f8f..996deb2 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -59,6 +59,15 @@ view_swf (SwfdecPlayer *player, gboolean
}
static void
+do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
+{
+ if (g_str_equal (command, "quit")) {
+ gtk_main_quit ();
+ }
+ /* FIXME: add more */
+}
+
+static void
print_trace (SwfdecPlayer *player, const char *message, gpointer unused)
{
g_print ("...
2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
...cce05a412c848005f88)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Aug 22 14:18:52 2007 +0200
only quit the main loop once
diff --git a/player/swfplay.c b/player/swfplay.c
index 996deb2..7521acf 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -62,7 +62,11 @@ static void
do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
{
if (g_str_equal (command, "quit")) {
- gtk_main_quit ();
+ static gboolean already_quit = FALSE;
+ if (!already_quit) {
+ gtk_main_quit ();
+ already_quit = TRUE;
+ }
}
/* FIX...
2007 Aug 24
0
2 commits - player/swfplay.c
...ay.c b/player/swfplay.c
index 7521acf..0c2ff6b 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -31,6 +31,8 @@
#include "swfdec_slow_loader.h"
+static GMainLoop *loop = NULL;
+
static void
set_title (GtkWindow *window, const char *filename)
{
@@ -62,11 +64,8 @@ static void
do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window)
{
if (g_str_equal (command, "quit")) {
- static gboolean already_quit = FALSE;
- if (!already_quit) {
- gtk_main_quit ();
- already_quit = TRUE;
- }
+ g_assert (loop);
+ g_main_loo...
2007 Oct 12
0
2 commits - player/swfplay.c test/trace
...the window when exiting
avoids leaking the whole window hierarchy and with it the player.
Now the player's dispose is properly run again.
diff --git a/player/swfplay.c b/player/swfplay.c
index 4b9cf03..f9b2fb3 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -65,7 +65,10 @@ do_fscommand (SwfdecPlayer *player, cons
{
if (g_str_equal (command, "quit")) {
g_assert (loop);
- g_main_loop_quit (loop);
+ if (g_main_loop_is_running (loop)) {
+ gtk_widget_destroy (window);
+ g_main_loop_quit (loop);
+ }
}
/* FIXME: add more */
}
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...9;t open file \"%s\": %s\n", argv[1], s);
g_object_unref (loader);
+ g_free (s);
return 1;
}
loop = g_main_loop_new (NULL, TRUE);
@@ -178,9 +176,6 @@ main (int argc, char *argv[])
if (!no_scripts)
g_signal_connect (player, "fscommand", G_CALLBACK (do_fscommand), window);
- if (delay)
- loader = swfdec_slow_loader_new (loader, delay);
-
swfdec_player_set_loader_with_variables (player, loader, variables);
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
commit 03d96dece1a5aef7f3212d4999b8a3ff71fff43f
Author: Benjamin Otte...