Displaying 3 results from an estimated 3 matches for "max_per_advance".
2007 Nov 01
0
4 commits - libswfdec/swfdec_sound_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/crashfinder.c test/Makefile.am
...libswfdec/swfdec.h>
+
+int
+main (int argc, char **argv)
+{
+ GOptionContext *context;
+ GError *err;
+ SwfdecPlayer *player;
+ SwfdecLoader *loader;
+ guint i;
+ cairo_surface_t *surface;
+ cairo_t *cr;
+ gboolean aborts;
+ glong play_per_file = 30;
+ glong max_per_file = 60;
+ glong max_per_advance = 10;
+ GTimer *timer;
+ char **filenames = NULL;
+ const GOptionEntry entries[] = {
+ {
+ "play-time", 'p', 0, G_OPTION_ARG_INT, &play_per_file,
+ "How many seconds will be played from each file (default 30)", NULL
+ },
+ {
+ "max-per...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...libswfdec/swfdec.h>
-
-int
-main (int argc, char **argv)
-{
- GOptionContext *context;
- GError *err;
- SwfdecPlayer *player;
- SwfdecLoader *loader;
- guint i;
- cairo_surface_t *surface;
- cairo_t *cr;
- gboolean aborts;
- glong play_per_file = 30;
- glong max_per_file = 60;
- glong max_per_advance = 10;
- GTimer *timer;
- char **filenames = NULL;
- const GOptionEntry entries[] = {
- {
- "play-time", 'p', 0, G_OPTION_ARG_INT, &play_per_file,
- "How many seconds will be played from each file (default 30)", NULL
- },
- {
- "max-per...
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...ka.lampila at iki.fi>
Date: Fri Nov 9 18:55:51 2007 +0200
Fix crashfinder crashing on empty files
diff --git a/test/crashfinder.c b/test/crashfinder.c
index 2724e03..3c4a4a7 100644
--- a/test/crashfinder.c
+++ b/test/crashfinder.c
@@ -124,6 +124,8 @@ main (int argc, char **argv)
MIN (max_per_advance, max_per_file - elapsed));
advance = swfdec_player_get_next_event (player);
+ if (advance == -1)
+ break;
swfdec_player_advance (player, advance);
swfdec_player_render (player, cr, 0, 0, 0, 0);