search for: swfdec_action_get_movie_by_path

Displaying 8 results from an estimated 8 matches for "swfdec_action_get_movie_by_path".

2007 Sep 26
1
Youtube broken by 89d295a94
Hello! The current swfdec from git won't play videos on youtube. I had bisected the change. 8fc53e76 ("merge the too get_variable functions") is the last good revision. 89d295a94 ("implement swfdec_action_get_movie_by_path() and use it for GetVariable") is broken. Broken revisions show "share" and "watch" on blinking white background with two labels saying "_level0" instead of "From:" and "Views:". This can be tested simply by running "swfplay player2.swf&...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...sprite_movie.c | 37 ---------- 5 files changed, 179 insertions(+), 65 deletions(-) New commits: diff-tree 89d295a9455fead858e48ffcae0cc5808d72ee22 (from 8fc53e764a741a293e8037d2caa0af55bc9df645) Author: Benjamin Otte <otte at gnome.org> Date: Wed Sep 5 23:25:22 2007 +0200 implement swfdec_action_get_movie_by_path() and use it for GetVariable This is the second try to make FLash 4-style variables work. Tests will follow tomorrow diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index fcbd035..a94d3ca 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfde...
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...ame, &val)) + return NULL; + if (!SWFDEC_AS_VALUE_IS_OBJECT (&val)) + return NULL; - ret = SWFDEC_AS_VALUE_GET_OBJECT (&val); ++ ret = (SwfdecMovie *) SWFDEC_AS_VALUE_GET_OBJECT (&val); + if (!SWFDEC_IS_MOVIE (ret)) + return NULL; + return ret; +} + /** * swfdec_action_get_movie_by_path: * @cx: a #SwfdecAsContext @@@ -445,9 -426,10 +445,26 @@@ swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path, SwfdecAsObject **object, const char **variable) { -- SwfdecAsObject *movie; -- const char *s; - gboolean was_slash = FALSE; - SwfdecAsValue val; -...
2007 Oct 14
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c test/trace
...val); ret = swfdec_action_lookup_object (cx, NULL, s, s + strlen (s)); - if (!SWFDEC_IS_MOVIE (ret)) + if (!SWFDEC_IS_MOVIE (ret)) { + SWFDEC_WARNING ("\"%s\" does not reference a movie", s); return NULL; + } return SWFDEC_MOVIE (ret); } @@ -607,7 +615,10 @@ swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path, /* variable to use is the part after the last dot or colon */ *variable = end + 1; /* look up object for start of path */ - movie = swfdec_action_lookup_object (cx, NULL, path, end); + if (path == end) + movie = NULL; + else + movie = swfdec...
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...o register %u: not enough registers", + try_data->register_number); + } + } else { + // FIXME: this is duplicate of SetVariable + SwfdecAsObject *object; + const char *s, *rest; + + s = swfdec_as_context_get_string (cx, try_data->variable_name); + if (swfdec_action_get_movie_by_path (cx, s, &object, &rest)) { + if (object && rest) { + swfdec_as_object_set_variable (object, + swfdec_as_context_get_string (cx, rest), &cx->throw_value); + } else { + if (object) { + rest = s; + } else { + rest = swfdec_as_context_get_string (cx, rest); +...
2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
...cx->frame->registers[try_data->register_number] = val; } else { SWFDEC_ERROR ("cannot set Error to register %u: not enough registers", try_data->register_number); @@ -2683,14 +2678,14 @@ swfdec_action_try_end_try (SwfdecAsFrame *frame, gpointer data) if (swfdec_action_get_movie_by_path (cx, s, &object, &rest)) { if (object && rest) { swfdec_as_object_set_variable (object, - swfdec_as_context_get_string (cx, rest), &cx->throw_value); + swfdec_as_context_get_string (cx, rest), &val); } else { if (object) { rest = s; } els...
2007 Sep 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_scope.c libswfdec/swfdec_as_scope.h libswfdec/swfdec_as_script_function.c
...pret.c b/libswfdec/swfdec_as_interpret.c index 70f3c09..b9204a6 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -578,16 +578,14 @@ swfdec_action_get_variable (SwfdecAsCont val = swfdec_as_stack_peek (cx, 1); s = swfdec_as_value_to_string (cx, val); if (swfdec_action_get_movie_by_path (cx, s, &object, &s)) { - if (object == NULL) - object = swfdec_as_frame_find_variable (cx->frame, s); - } else { - object = NULL; - } - if (object != NULL) { - if (s) { - swfdec_as_object_get_variable (object, swfdec_as_context_get_string (cx, s), val); + if...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...use hasOwnProperty instead of != undefined to figure out if the object has the property use the right frame when creating an audio stream make this work when time_t is 32bit, too merge the too get_variable functions, so we can export swfdec_movie_get_by_path() implement swfdec_action_get_movie_by_path() and use it for GetVariable add special magic for movie lookups make the init script take a version and always run it as Flash 8 require the GC to be only run when the player is running make sure the player isn't interrupted when unlocking check the given version...