search for: swfdec_player_get_movie_from_valu

Displaying 9 results from an estimated 9 matches for "swfdec_player_get_movie_from_valu".

2007 Oct 14
0
4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c test/trace
...r *start; - if (path == end) - return NULL; + if (path == end) { + if (o == NULL) + o = cx->frame->target; + if (SWFDEC_IS_MOVIE (o)) + return o; + else + return NULL; + } if (path[0] == '/') { o = cx->frame->target; @@ -550,8 +556,10 @@ swfdec_player_get_movie_from_value (SwfdecPlayer *player, SwfdecAsValue *val) cx = SWFDEC_AS_CONTEXT (player); s = swfdec_as_value_to_string (cx, 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\"...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...movie = swfdec_player_get_movie_from_string ( + movie = swfdec_player_get_level (SWFDEC_PLAYER (cx), target, TRUE, !variables); + if (movie == NULL) { + movie = (SwfdecSpriteMovie *) swfdec_player_get_movie_from_string ( SWFDEC_PLAYER (cx), target); - if (movie == NULL) { - /* swfdec_player_get_movie_from_value() should have warned already */ - } else if (variables) { - swfdec_movie_load_variables (movie, url, method, NULL); + if (!SWFDEC_IS_SPRITE_MOVIE (movie)) + movie = NULL; + } + if (movie == NULL) { + /* swfdec_player_get_movie_from_value() should have warned already */ + }...
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...bswfdec/swfdec_sprite_movie_as.c @@ -789,17 +789,21 @@ swfdec_sprite_movie_getBounds (SwfdecAsContext *cx, SwfdecAsObject *object, x0 = x1 = y0 = y1 = 0x7FFFFFF; } else { SwfdecRect rect = movie->extents; + SwfdecMovie *other; + if (argc > 0) { - SwfdecMovie *other = swfdec_player_get_movie_from_value ( - SWFDEC_PLAYER (cx), &argv[0]); - if (other) { - if (movie->parent) - swfdec_movie_rect_local_to_global (movie->parent, &rect); - swfdec_movie_rect_global_to_local (other, &rect); - } else { - SWFDEC_FIXME ("what's getBounds relative to invalid?");...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...CE (sec) && !variables) ? SWFDEC_RESOURCE (sec) : NULL); - if (movie == NULL) { - movie = (SwfdecSpriteMovie *) swfdec_player_get_movie_from_string ( - SWFDEC_PLAYER (cx), target); - if (!SWFDEC_IS_SPRITE_MOVIE (movie)) - movie = NULL; - } - if (movie == NULL) { - /* swfdec_player_get_movie_from_value() should have warned already */ - } else if (variables) { - swfdec_movie_load_variables (SWFDEC_MOVIE (movie), url, method, NULL); - } else { - swfdec_sprite_movie_load (movie, url, method, NULL); + movie = swfdec_player_get_movie_from_string (SWFDEC_PLAYER (cx), target); + i...
2007 Oct 15
0
8 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_sound.c libswfdec/swfdec_sound.h test/trace
...stack_peek (cx, 1)))) { - swfdec_player_set_drag_movie (SWFDEC_PLAYER (cx), movie, center, rectp); + if (!SWFDEC_IS_PLAYER (cx)) { + SWFDEC_ERROR ("called startDrag on a non-SwfdecPlayer"); } else { - SWFDEC_ERROR ("startDrag on something not a Movie"); + movie = swfdec_player_get_movie_from_value (SWFDEC_PLAYER (cx), swfdec_as_stack_peek (cx, 1)); + if (movie != NULL) { + swfdec_player_set_drag_movie (SWFDEC_PLAYER (cx), movie, center, rectp); + } else { + SWFDEC_ERROR ("startDrag on something not a Movie"); + } } swfdec_as_stack_pop_n (cx, stack_size);...
2008 Jun 15
1
14 commits - configure.ac swfdec/.gitignore swfdec-gtk/swfdec_gtk_loader.c swfdec-gtk/swfdec_playback_alsa.c swfdec/Makefile.am swfdec/swfdec_asnative.h swfdec/swfdec_as_string.c swfdec/swfdec_audio.c swfdec/swfdec_audio_load.c swfdec/swfdec_audio_load.h
...er, const SwfdecURL * load_url, SwfdecPolicyFunc func, gpointer data); +void swfdec_player_load_default (SwfdecPlayer * player, + const char * url_string, + SwfdecPolicyFunc func, + gpointer data); + /* in swfdec_as_interpret.c */ SwfdecMovie * swfdec_player_get_movie_from_value (SwfdecPlayer * player, diff --git a/swfdec/swfdec_policy_file.c b/swfdec/swfdec_policy_file.c index 9a2471d..084202d 100644 --- a/swfdec/swfdec_policy_file.c +++ b/swfdec/swfdec_policy_file.c @@ -1,5 +1,5 @@ /* Swfdec - * Copyright (C) 2007 Benjamin Otte <otte at gnome.org> + * Co...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...the sound object to attach. * But I'm not sure what is used for global sounds. * So we just use a random one that looks good for now. */ - sound->target = player->roots->data; + sound->target = player->priv->roots->data; } else { sound->target = swfdec_player_get_movie_from_value (player, &argv[0]); } diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite.c index d17cbd5..ae61642 100644 --- a/libswfdec/swfdec_sprite.c +++ b/libswfdec/swfdec_sprite.c @@ -126,20 +126,21 @@ int tag_func_set_background_color (SwfdecSwfDecoder * s, guint tag) { SwfdecPlaye...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...edraws when the properties actually changed don't use a SwfdecSoundChunk element in SwfdecAudioEvent anymore enqueue and parse later all STARTSOUND tags instead of parsing them at the beginning add new function to create audio events replace swfdec_movie_get_by_path with swfdec_player_get_movie_from_value remove audio_skip usage simplify SWFDEC_AS_CHECK macro by auto-casting the result parameter allow optional arguments after a '|' separator in SWFDEC_AS_CHECK wrong comparison, oops warn if an ASNative doesn't exist set the stop sample to end of sampl...
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
...w_now (SwfdecPlayer * player, + const SwfdecURL * url); +void swfdec_player_allow_or_load (SwfdecPlayer * player, + const SwfdecURL * url, + const SwfdecURL * load_url, + SwfdecPolicyFunc func, + gpointer data); /* in swfdec_as_interpret.c */ SwfdecMovie * swfdec_player_get_movie_from_value (SwfdecPlayer * player, diff --git a/libswfdec/swfdec_policy_file.c b/libswfdec/swfdec_policy_file.c index d0f3e90..e275119 100644 --- a/libswfdec/swfdec_policy_file.c +++ b/libswfdec/swfdec_policy_file.c @@ -34,6 +34,20 @@ #include "swfdec_xml.h" #include "swfdec_xml_nod...