Displaying 13 results from an estimated 13 matches for "trace_cb".
Did you mean:
trace_
2007 Jun 15
0
Branch 'as' - 4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c test/trace
...tte <otte at gnome.org>
Date: Thu Jun 14 16:06:25 2007 +0200
implement FSCommand:quit so tests can decide to quit whenever they like
diff --git a/test/trace/trace.c b/test/trace/trace.c
index 55f8e98..50bb5c6 100644
--- a/test/trace/trace.c
+++ b/test/trace/trace.c
@@ -11,16 +11,27 @@ trace_cb (SwfdecPlayer *player, const ch
g_string_append_printf (string, "%s\n", message);
}
+static void
+fscommand_cb (SwfdecPlayer *player, const char *command, const char *parameter, gpointer data)
+{
+ gboolean *quit = data;
+
+ if (g_str_equal (command, "quit")) {
+ *qui...
2007 Jun 13
0
Branch 'as' - 2 commits - libswfdec/swfdec_sprite.c test/trace
...xt_event (player);
-
- if (advance > time_left)
- break;
- swfdec_player_advance (player, advance);
- time_left -= advance;
- }
+ advance = ceil (10000 / swfdec_player_get_rate (player));
+ swfdec_player_advance (player, advance);
g_signal_handlers_disconnect_by_func (player, trace_cb, string);
g_object_unref (player);
diff-tree a28bd0320a3af095152f11883e3af38152208d27 (from 4aec39b9f9a750efe75864a54b035ed872ab6644)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 13 18:19:08 2007 +0200
init and construct event are implemented, don't warn about them...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...signals[LAST_SIGNAL];
static void
swfdec_player_manager_get_property (GObject *object, guint param_id, GValue *value,
@@ -89,6 +120,12 @@ swfdec_player_manager_set_property (GObj
static void breakpoint_hit_cb (SwfdecDebugger *debugger, guint id, SwfdecPlayerManager *manager);
static void
+trace_cb (SwfdecPlayer *player, const char *str, SwfdecPlayerManager *manager)
+{
+ swfdec_player_manager_output (manager, "Trace: %s", str);
+}
+
+static void
swfdec_player_manager_set_player (SwfdecPlayerManager *manager, SwfdecPlayer *player)
{
if (manager->player == player)
@@ -102,6...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...der *loader;
SwfdecPlayer *player;
SwfdecBuffer *buffer;
- guint i;
+ guint time_left;
GError *error = NULL;
char *str;
GString *string;
@@ -31,12 +32,22 @@ run_test (const char *filename)
player = swfdec_player_new ();
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
swfdec_player_set_loader (player, loader);
+ if (!swfdec_player_is_initialized (player)) {
+ g_print (" ERROR: player is not initialized\n");
+ g_object_unref (player);
+ return FALSE;
+ }
+ time_left = ceil (10000 / swfdec_player_get_rate (player));
/* FIX...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...+++ b/test/trace/trace.c
@@ -101,6 +101,7 @@ run_test (gpointer testp, gpointer unuse
}
string = g_string_new ("");
player = swfdec_player_new ();
+ g_object_set (player, "memory-until-gc", (gulong) 0, NULL);
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
g_signal_connect (player, "fscommand", G_CALLBACK (fscommand_cb), &quit);
swfdec_player_set_loader (player, loader);
diff-tree fc39dd27d21c49d37b3a4fee94b721e798a0fae4 (from 076ba52a01ec3e9348822c37781b6cd4b6c24a28)
Author: Benjamin Otte <otte at gnome.org>
Date...
2007 Aug 26
0
9 commits - libswfdec-gtk/swfdec_source.c libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c test/dump.c test/Makefile.am
...ader;
SwfdecPlayer *player;
SwfdecBuffer *buffer;
- guint time_left;
+ gulong time_left = G_MAXULONG;
char *str;
GString *string, *output;
GError *error = NULL;
@@ -105,11 +111,6 @@ run_test (gpointer testp, gpointer unuse
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
g_signal_connect (player, "fscommand", G_CALLBACK (fscommand_cb), &quit);
swfdec_player_set_loader (player, loader);
- if (!swfdec_player_is_initialized (player)) {
- g_string_append_printf (output, " ERROR: player is not initialized\n");
- g_object_...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...(test->filename);
+ g_free (test->output);
+ g_slice_free (Test, test);
+}
+
+static int
+test_compare (gconstpointer a, gconstpointer b)
+{
+ const Test *ta = (const Test *) a;
+ const Test *tb = (const Test *) b;
+
+ return strcmp (ta->filename, tb->filename);
+}
+
static void
trace_cb (SwfdecPlayer *player, const char *message, GString *string)
{
@@ -41,8 +76,8 @@ fscommand_cb (SwfdecPlayer *player, cons
}
}
-static gboolean
-run_test (const char *filename)
+static void
+run_test (Test *test)
{
SwfdecLoader *loader;
SwfdecPlayer *player;
@@ -55,8 +90,8 @@ run_test...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...layer_manager.c
+++ b/player/swfdec_player_manager.c
@@ -133,6 +133,7 @@ swfdec_player_manager_set_player (Swfdec
if (manager->player) {
g_signal_handlers_disconnect_by_func (manager->player, breakpoint_hit_cb, manager);
+ g_signal_handlers_disconnect_by_func (manager->player, trace_cb, manager);
g_object_unref (manager->player);
}
manager->player = player;
diff-tree 2840d8d12a279fe3b7132f236d73789a4c5d3403 (from 84b6fb897c2025028cefbd15c6c8b0ae2b19ff10)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Mar 9 13:57:50 2007 +0100
implement ActionGetTim...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
.../test/trace/trace.c
+++ b/test/trace/trace.c
@@ -100,7 +100,7 @@ run_test (gpointer testp, gpointer unuse
goto fail;
}
string = g_string_new ("");
- player = swfdec_player_new ();
+ player = swfdec_player_new (NULL);
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
g_signal_connect (player, "fscommand", G_CALLBACK (fscommand_cb), &quit);
swfdec_player_set_loader (player, loader);
diff-tree 510ecc39d83221ead3735a72c2ec044111ac299c (from 70d532781b8e404e33afe989d94d7d3fa14ad90c)
Author: Benjamin Otte <otte at gnome.org>
Date...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...(test->filename);
- g_free (test->output);
- g_slice_free (Test, test);
-}
-
-static int
-test_compare (gconstpointer a, gconstpointer b)
-{
- const Test *ta = (const Test *) a;
- const Test *tb = (const Test *) b;
-
- return strcmp (ta->filename, tb->filename);
-}
-
-static void
-trace_cb (SwfdecPlayer *player, const char *message, GString *string)
-{
- g_string_append_printf (string, "%s\n", message);
-}
-
-static void
-fscommand_cb (SwfdecPlayer *player, const char *command, const char *parameter, gpointer data)
-{
- gboolean *quit = data;
-
- if (g_str_equal (command...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...-100,7 -100,8 +100,8 @@@
goto fail;
}
string = g_string_new ("");
- player = swfdec_player_new ();
+ player = swfdec_player_new (NULL);
+ g_object_set (player, "memory-until-gc", (gulong) 0, NULL);
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
g_signal_connect (player, "fscommand", G_CALLBACK (fscommand_cb), &quit);
swfdec_player_set_loader (player, loader);
diff --cc vivified/core/vivi_breakpoint.c
index 15cfc26,0000000..11ae4bf
mode 100644,000000..100644
@@@ -1,236 -1,0 +1,241 @@@
+/* Vivified
+ * Cop...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...ce (player, advance);
- if (inter)
- swfdec_interaction_advance (inter, player, advance);
time_left -= advance;
+ if (inter) {
+ swfdec_interaction_advance (inter, player, advance);
+ if (time_left == 0)
+ break;
+ }
}
g_signal_handlers_disconnect_by_func (player, trace_cb, string);
g_object_unref (player);
diff-tree 72794f6dd88161fe9e36b11b5e6d3cd9cf86099f (from 54739135d48fe769f52512d64f211de3cdd2c138)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Aug 23 20:19:30 2007 +0200
implement _url
diff --git a/libswfdec/swfdec_movie_asprops.c b/libswf...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...-100,7 -100,8 +100,8 @@@
goto fail;
}
string = g_string_new ("");
- player = swfdec_player_new ();
+ player = swfdec_player_new (NULL);
+ g_object_set (player, "memory-until-gc", (gulong) 0, NULL);
g_signal_connect (player, "trace", G_CALLBACK (trace_cb), string);
g_signal_connect (player, "fscommand", G_CALLBACK (fscommand_cb), &quit);
swfdec_player_set_loader (player, loader);
diff --cc vivified/core/vivi_breakpoint.c
index 15cfc26,0000000..11ae4bf
mode 100644,000000..100644
@@@ -1,236 -1,0 +1,241 @@@
+/* Vivified
+ * Cop...