Displaying 10 results from an estimated 10 matches for "swfdec_movie_get_version".
2007 Nov 09
1
segmentation fault when no decoder found
...movies.it/video/logo.png
SWFDEC: ERROR: swfdec_resource.c(247): swfdec_resource_loader_target_parse: no decoder found
Program received signal SIGSEGV, Segmentation fault.
---Type <return> to continue, or q <return> to quit---bt
[Switching to Thread 0xb71a2920 (LWP 31559)]
0xb2e79d8f in swfdec_movie_get_version (movie=0xaea2608) at swfdec_movie.c:366
366 return SWFDEC_SWF_DECODER (movie->resource->decoder)->version;
Attached a quick patch that fix the issue for me.
Sorry for not posting to bugzilla, i'm having troubles with http://bugs.freedesktop.org/.
Cheers,
Riccardo
-------------...
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
...(!a.a)
+ loadMovie ("fscommand:QUIT", "");
+};
+onEnterFrame ();
commit 6af94b966fbd37bb415f0e8a8c7223c92f6dbb5a
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Nov 9 15:20:39 2007 +0100
don't call MovieClip.onFoo events in Flash <= 5
also add swfdec_movie_get_version () to get a per-movie version.
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 1859971..fefa930 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -360,6 +360,12 @@ swfdec_movie_set_constructor (SwfdecSpriteMovie *movie)
swfdec_as_object_set_construct...
2007 Nov 10
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie_as.c test/trace
...oder's one.
The decoder can be NULL if there's no file
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 57c18d0..8ec7961 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -390,7 +390,7 @@ swfdec_movie_resolve (SwfdecMovie *movie)
guint
swfdec_movie_get_version (SwfdecMovie *movie)
{
- return SWFDEC_SWF_DECODER (movie->resource->decoder)->version;
+ return movie->resource->version;
}
void
commit 57466e38e16e8c4736884eac000099afe9fa16de
Author: Benjamin Otte <otte at gnome.org>
Date: Sat Nov 10 13:15:49 2007 +0100
add a v...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...ie's coordiante system. Use swfdec_movie_get_mouse
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 363d4b1..183e022 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -271,7 +271,7 @@ SwfdecMovie * swfdec_movie_resolve (SwfdecMovie * movie);
guint swfdec_movie_get_version (SwfdecMovie * movie);
void swfdec_movie_execute (SwfdecMovie * movie,
SwfdecEventType condition);
-gboolean swfdec_movie_queue_script (SwfdecMovie * movie,
+void swfdec_movie_queue_script (SwfdecMovie * movie,
SwfdecEventType condition);
void swfdec_movie_load_var...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...swfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -424,6 +424,10 @@ swfdec_movie_execute (SwfdecMovie *movie, SwfdecEventType condition)
if (condition == SWFDEC_EVENT_CONSTRUCT || condition < SWFDEC_EVENT_PRESS)
return;
thisp = SWFDEC_AS_OBJECT (movie->parent);
+ if (swfdec_movie_get_version (movie) <= 5) {
+ while (!SWFDEC_IS_SPRITE_MOVIE (thisp))
+ thisp = SWFDEC_AS_OBJECT (SWFDEC_MOVIE (thisp)->parent);
+ }
g_assert (thisp);
} else {
thisp = SWFDEC_AS_OBJECT (movie);
commit fb326d9f0c90c8e3edb2aba66c1ac0ad12a6f6f4
Author: Benjamin Otte <otte at gnome.or...
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
...TE_DESTROYED)
+ return movie;
+ if (movie->parent == NULL) {
+ SWFDEC_FIXME ("figure out how to resolve root movies");
+ return NULL;
+ }
+ /* FIXME: include unnamed ones? */
+ return swfdec_movie_get_by_name (movie->parent, movie->original_name, FALSE);
+}
+
guint
swfdec_movie_get_version (SwfdecMovie *movie)
{
@@ -1061,7 +1088,8 @@ swfdec_movie_get_variable (SwfdecAsObject *object, SwfdecAsObject *orig,
{
SwfdecMovie *movie = SWFDEC_MOVIE (object);
- if (movie->state == SWFDEC_MOVIE_STATE_DESTROYED)
+ movie = swfdec_movie_resolve (movie);
+ if (movie == NULL)
retu...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...ling of propflags in set, for get/set and props in proto
Add version 8 tests for propflags and propflags-set tests
Implement MovieClip's blendMode property
Merge branch 'master' into blend
Fix some issues with the blendMode property
Fix getSWFVersion to use swfdec_movie_get_version and not cx->version
Add SWFDEC_BLEND_MODE defines
Merge branch 'master' into policy
Free the policy loaders
Move handling of BOMs from LoadObject to Loader
Forgot to remove a variable from LoadObject
Change LoadObject to use callback functions, to work...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...eClip.transform (set)");
}
-
static const char *blend_mode_names[] = {
SWFDEC_AS_STR_normal,
SWFDEC_AS_STR_layer,
commit d6bbe08789201aac14eeb6b3f65eb5d0da466136
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Mon Nov 26 22:30:00 2007 +0200
Fix getSWFVersion to use swfdec_movie_get_version and not cx->version
Updated tests to detect the difference
diff --git a/libswfdec/swfdec_sprite_movie_as.c b/libswfdec/swfdec_sprite_movie_as.c
index 6b381d1..2615a01 100644
--- a/libswfdec/swfdec_sprite_movie_as.c
+++ b/libswfdec/swfdec_sprite_movie_as.c
@@ -277,7 +277,8 @@ swfdec_spr...
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
...ct_set_constructor (SWFDEC_AS_OBJECT (movie), constructor);
}
@@ -498,14 +498,14 @@ swfdec_movie_execute (SwfdecMovie *movie, SwfdecEventType condition)
swfdec_event_list_execute (movie->events, thisp, condition, 0);
}
/* FIXME: how do we compute the version correctly here? */
- if (swfdec_movie_get_version (movie) <= 5)
- return;
- name = swfdec_event_type_get_name (condition);
- if (name != NULL) {
- swfdec_as_object_call (SWFDEC_AS_OBJECT (movie), name, 0, NULL, NULL);
+ if (swfdec_movie_get_version (movie) > 5) {
+ name = swfdec_event_type_get_name (condition);
+ if (name != N...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...* movie,
cairo_t * cr,
const SwfdecColorTransform *trans,
const SwfdecRect * inval);
+cairo_pattern_t *swfdec_movie_mask (cairo_t * cr,
+ SwfdecMovie * movie,
+ const SwfdecRect * inval);
SwfdecMovie * swfdec_movie_resolve (SwfdecMovie * movie);
guint swfdec_movie_get_version (SwfdecMovie * movie);
void swfdec_movie_execute (SwfdecMovie * movie,
commit f6ed409b542fef63c07c1b5ae119f19e2a110cdc
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Nov 19 17:15:05 2007 +0100
actually free the patterns after use
diff --git a/libswfdec/swfdec_movie.c b/libsw...