search for: max_runtime

Displaying 7 results from an estimated 7 matches for "max_runtime".

2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...DEC_DEBUG ("UNLOCK"); + g_timer_stop (player->runtime); swfdec_player_update_mouse_cursor (player); g_object_thaw_notify (G_OBJECT (player)); swfdec_player_emit_signals (player); @@ -1307,7 +1309,7 @@ swfdec_player_check_continue (SwfdecAsContext *context) if (player->max_runtime == 0) return TRUE; - return g_timer_elapsed (player->runtime, NULL) * 1000 > player->max_runtime; + return g_timer_elapsed (player->runtime, NULL) * 1000 <= player->max_runtime; } static void @@ -2499,7 +2501,9 @@ swfdec_player_get_maximum_runtime (SwfdecPlayer *player)...
2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
...add max-runtime switch to set maximum runtime. Set default runtime to 0 diff --git a/player/swfplay.c b/player/swfplay.c index 7a0985b..79978be 100644 --- a/player/swfplay.c +++ b/player/swfplay.c @@ -103,6 +103,7 @@ main (int argc, char *argv[]) { int delay = 0; int speed = 100; + int max_runtime = 0; SwfdecLoader *loader; SwfdecPlayer *player; GError *error = NULL; @@ -117,6 +118,7 @@ main (int argc, char *argv[]) { "always-gc", 'g', 0, G_OPTION_ARG_NONE, &gc, "run the garbage collector as often as possible", NULL }, { "delay", &...
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
...case PROP_SCALE: - g_value_set_enum (value, player->scale_mode); + g_value_set_enum (value, priv->scale_mode); break; case PROP_SYSTEM: - g_value_set_object (value, player->system); + g_value_set_object (value, priv->system); break; case PROP_MAX_RUNTIME: - g_value_set_ulong (value, player->max_runtime); + g_value_set_ulong (value, priv->max_runtime); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); @@ -721,69 +740,70 @@ swfdec_player_get_property (GObject *object, guint param_id, GValu...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
..., loader, variables); movie = swfdec_movie_new (player, -16384, NULL, player->resource, NULL, SWFDEC_AS_STR__level0); movie->name = SWFDEC_AS_STR_EMPTY; g_object_unref (loader); @@ -2597,3 +2642,4 @@ swfdec_player_set_maximum_runtime (SwfdecPlayer *player, gulong msecs) player->max_runtime = msecs; g_object_notify (G_OBJECT (player), "max-runtime"); } + diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h index 91f48f9..a30433a 100644 --- a/libswfdec/swfdec_player_internal.h +++ b/libswfdec/swfdec_player_internal.h @@ -61,7 +61,7 @@ struc...
2007 Nov 08
0
8 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_player.c test/trace
...r.c b/libswfdec/swfdec_player.c index 7d665b5..019b962 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -1485,7 +1485,7 @@ swfdec_player_class_init (SwfdecPlayerClass *klass) SWFDEC_TYPE_SYSTEM, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MAX_RUNTIME, g_param_spec_ulong ("max-runtime", "maximum runtime", "maximum time in msecs scripts may run in the player before aborting", - 0, G_MAXULONG, 0, G_PARAM_READWRITE)); + 0, G_MAXULONG, 10 * 1000, G_PARAM_READWRITE)); /** * SwfdecPlayer::invalidate: @...
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
...}; +#define SWFDEC_PLAYER_N_ACTION_QUEUES 4 + struct _SwfdecPlayer { SwfdecAsContext context; @@ -118,13 +121,11 @@ struct _SwfdecPlayer SwfdecTimeout iterate_timeout; /* callback for iterating */ GTimer * runtime; /* for checking how long we've been running */ gulong max_runtime; /* maximum number of seconds the player may run */ - /* iterating */ - GList * movies; /* list of all moveis that want to be iterated */ - SwfdecRingBuffer * actions; /* all actions we've queued up so far */ SwfdecRingBuffer * external_actions; /* external actions we've que...
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
...23:45:53 2008 +0100 add a socket-type property diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 45ce8a9..2e2b728 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -621,7 +621,8 @@ enum { PROP_SCALE, PROP_SCRIPTING, PROP_SYSTEM, - PROP_MAX_RUNTIME + PROP_MAX_RUNTIME, + PROP_SOCKET_TYPE }; G_DEFINE_TYPE (SwfdecPlayer, swfdec_player, SWFDEC_TYPE_AS_CONTEXT) @@ -735,6 +736,9 @@ swfdec_player_get_property (GObject *object, guint param_id, GValue *value, case PROP_MAX_RUNTIME: g_value_set_ulong (value, priv->max_runtime);...