Displaying 3 results from an estimated 3 matches for "g_slist_insert".
2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...t (SwfdecTextFieldMovie *text,
findex_new = g_new (SwfdecFormatIndex, 1);
findex_new->index_ = end_index;
findex_new->format = swfdec_text_format_copy (findex->format);
+ if (findex_new->format == NULL) {
+ g_free (findex_new);
+ break;
+ }
iter = g_slist_insert (iter, findex_new, 1);
}
@@ -1071,6 +1075,10 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
findex_new = g_new (SwfdecFormatIndex, 1);
findex_new->index_ = start_index;
findex_new->format = swfdec_text_format_copy (findex->format);
+...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...if (findex_end_index > end_index) {
findex_new = g_new (SwfdecFormatIndex, 1);
findex_new->index = end_index;
@@ -729,8 +735,25 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
swfdec_text_format_add (findex_new->format, format);
iter = g_slist_insert (iter, findex_new, 1);
+ findex = findex_new;
} else {
swfdec_text_format_add (findex->format, format);
+
+ // if current format now equals previous one, remove current
+ if (findex_prev != NULL &&
+ swfdec_text_format_equal (findex->format, findex_prev-&g...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...(SwfdecTextFieldMovie *text,
if (findex_end_index > end_index) {
findex_new = g_new (SwfdecFormatIndex, 1);
- findex_new->index = end_index;
+ findex_new->index_ = end_index;
findex_new->format = swfdec_text_format_copy (findex->format);
iter = g_slist_insert (iter, findex_new, 1);
}
- if (findex->index < start_index) {
+ if (findex->index_ < start_index) {
findex_new = g_new (SwfdecFormatIndex, 1);
- findex_new->index = start_index;
+ findex_new->index_ = start_index;
findex_new->format = swfdec...