search for: end_vec

Displaying 5 results from an estimated 5 matches for "end_vec".

Did you mean: end_vecs
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
.../swfdec_morphshape.c @@ -52,9 +52,15 @@ swfdec_graphic_create_movie (SwfdecGraph static void swfdec_morph_shape_dispose (GObject *object) { - SwfdecMorphShape *shape = SWFDEC_MORPH_SHAPE (object); + SwfdecMorphShape *morph = SWFDEC_MORPH_SHAPE (object); + guint i; - g_array_free (shape->end_vecs, TRUE); + if (morph->end_vecs != NULL) { + for (i = 0; i < morph->end_vecs->len; i++) + g_free (g_array_index (morph->end_vecs, SwfdecShapeVec, i).path.data); + g_array_free (morph->end_vecs, TRUE); + morph->end_vecs = NULL; + } G_OBJECT_CLASS (swfdec_morp...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...hs get accumulated in * different ways, this could lead to the morphs not looking like they should. * Need a good testcase for this first though. + * FIXME: Also, due to error handling, there needs to be syncing of code paths */ tmp = shape->vecs; shape->vecs = morph->end_vecs; diff-tree f307c3b4ba316d4d1880e1aeba079878230e3db8 (from 707ba1588fcaf3b02491b66df2071c8d702675e1) Author: Benjamin Otte <otte@gnome.org> Date: Mon Apr 16 11:18:51 2007 +0200 fix possible error with referencing realloc'ed memory diff --git a/libswfdec/swfdec_shape.c b/libswfdec/...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...SwfdecGraphic *graphic, gsize *size) { guint i; SwfdecMorphShape *morph = SWFDEC_MORPH_SHAPE (graphic); @@ -40,10 +40,12 @@ swfdec_graphic_create_movie (SwfdecGraph movie->morph = morph; g_object_ref (morph); + *size = sizeof (SwfdecMorphMovie) + sizeof (cairo_path_t) * morph->end_vecs->len; movie->paths = g_new0 (cairo_path_t, morph->end_vecs->len); for (i = 0; i < morph->end_vecs->len; i++) { movie->paths[i].num_data = g_array_index (morph->end_vecs, SwfdecShapeVec, i).path.num_data; movie->paths[i].data = g_new (cairo_path_data_t,...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...OR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); diff --git a/libswfdec/swfdec_morphshape.h b/libswfdec/swfdec_morphshape.h index 42308fe..e09133c 100644 --- a/libswfdec/swfdec_morphshape.h +++ b/libswfdec/swfdec_morphshape.h @@ -41,8 +41,8 @@ struct _SwfdecMorphShape { GArray * end_vecs; /* end vectors */ /* used while parsing */ - unsigned int n_fill_bits; - unsigned int n_line_bits; + guint n_fill_bits; + guint n_line_bits; }; struct _SwfdecMorphShapeClass { diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h index 2890f9c..f1db624 100644 --- a/lib...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...OR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); diff --git a/libswfdec/swfdec_morphshape.h b/libswfdec/swfdec_morphshape.h index 42308fe..e09133c 100644 --- a/libswfdec/swfdec_morphshape.h +++ b/libswfdec/swfdec_morphshape.h @@ -41,8 +41,8 @@ struct _SwfdecMorphShape { GArray * end_vecs; /* end vectors */ /* used while parsing */ - unsigned int n_fill_bits; - unsigned int n_line_bits; + guint n_fill_bits; + guint n_line_bits; }; struct _SwfdecMorphShapeClass { diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h index 2890f9c..f1db624 100644 --- a/lib...