Displaying 6 results from an estimated 6 matches for "action_data".
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -207,6 +207,7 @@ swfdec_player_add_action (SwfdecPlayer *
g_return_if_fail (action_func != NULL);
action = swfdec_ring_buffer_push (player->actions);
+ SWFDEC_LOG ("adding action %p %p %p", object, action_func, action_data);
if (action == NULL) {
/* FIXME: limit number of actions to not get inf loops due to scripts? */
swfdec_ring_buffer_set_size (player->actions,
@@ -239,8 +240,11 @@ swfdec_player_remove_all_actions (Swfdec
for (i = 0; i < swfdec_ring_buffer_get_n_elements (player->actions);...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...t8 *) advance - G_STRUCT_OFFSET (SwfdecPlayer, external_timeout));
+
+ player->external_timeout.callback = NULL;
+ swfdec_player_perform_external_actions (player);
+}
+
+void
+swfdec_player_add_external_action (SwfdecPlayer *player, gpointer object,
+ SwfdecActionFunc action_func, gpointer action_data)
+{
+ SwfdecPlayerAction *action;
+
+ g_return_if_fail (SWFDEC_IS_PLAYER (player));
+ g_return_if_fail (object != NULL);
+ g_return_if_fail (action_func != NULL);
+
+ SWFDEC_LOG ("adding external action %p %p %p", object, action_func, action_data);
+ action = swfdec_ring_buffer_push...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...pointer object;
+ SwfdecActionFunc func;
+ gpointer data;
+} SwfdecPlayerExternalAction;
+
/**
- * swfdec_player_add_action:
+ * swfdec_player_add_event:
* @player: a #SwfdecPlayer
- * @object: object identifying the action
- * @action_func: function to execute
- * @action_data: additional data to pass to @func
+ * @movie: the movie on which to trigger the event
+ * @type: type of the event
+ * @importance: importance of the event
*
* Adds an action to the @player. Actions are used by Flash player to solve
* reentrancy issues. Instead of calling back into the Action...
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
2007 Aug 02
0
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
...l actions happen ASAP
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index a8e648a..ec8e159 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -370,8 +370,9 @@ swfdec_player_add_external_action (Swfde
action->func = action_func;
action->data = action_data;
if (!player->external_timeout.callback) {
- /* trigger execution in 100 ms */
- player->external_timeout.timestamp = player->time + SWFDEC_MSECS_TO_TICKS (100);
+ /* trigger execution immediately, but at least 100ms after the last external timeout */
+ player->external_t...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...player_perform_external_actions (player);
+ priv->external_timeout.callback = NULL;
+ swfdec_player_perform_external_actions (priv->player);
}
void
@@ -518,38 +530,40 @@ swfdec_player_add_external_action (SwfdecPlayer *player, gpointer object,
SwfdecActionFunc action_func, gpointer action_data)
{
SwfdecPlayerExternalAction *action;
+ SwfdecPlayerPrivate *priv;
g_return_if_fail (SWFDEC_IS_PLAYER (player));
g_return_if_fail (object != NULL);
g_return_if_fail (action_func != NULL);
SWFDEC_LOG ("adding external action %p %p %p", object, action_func, action_data...
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
...imestamp >= player->time);
g_return_if_fail (timeout->callback != NULL);
SWFDEC_LOG ("adding timeout %p in %"G_GUINT64_FORMAT" msecs", timeout,
@@ -478,11 +478,21 @@ swfdec_player_add_external_action (Swfde
action->func = action_func;
action->data = action_data;
if (!player->external_timeout.callback) {
- /* trigger execution immediately, but at least 100ms after the last external timeout */
- player->external_timeout.timestamp = MAX (player->time + 1,
- player->external_timeout.timestamp + SWFDEC_MSECS_TO_TICKS (100));
+ /* trigge...