Displaying 6 results from an estimated 6 matches for "swfdec_player_create_movie_at_level".
2008 Jun 28
2
[Bug 16558] New: flenstedmodern.com: assertion `swfdec_player_get_movie_at_level (player, level) == NULL' failed
...nt
Priority: medium
Component: library
AssignedTo: swfdec at lists.freedesktop.org
ReportedBy: riccardo at datahost.it
QAContact: swfdec at lists.freedesktop.org
When you click from the second time in the menu you got:
(gecko:2833): Swfdec-CRITICAL **: swfdec_player_create_movie_at_level:
assertion `swfdec_player_get_movie_at_level (player, level) == NULL' failed
SWFDEC: WARN : swfdec_resource.c(557): swfdec_resource_create_movie: target
does not reference a movie, not loading about_top.swf
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...rl (swfdec_loader_get_url (resource->loader)));
+ swfdec_loader_close (resource->loader);
+ swfdec_player_unroot_object (player, G_OBJECT (resource));
+ return FALSE;
+ }
+ movie = swfdec_player_get_movie_at_level (player, level);
+ }
+ if (movie == NULL) {
+ movie = swfdec_player_create_movie_at_level (player, resource, level);
+ } else {
+ /* can't use swfdec_movie_duplicate() here, we copy to same depth */
+ SwfdecMovie *mov = SWFDEC_MOVIE (movie);
+ SwfdecMovie *copy;
+
+ copy = swfdec_movie_new (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context),
+ mov->depth, mov-...
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
...vel", 6) != 0)
- return NULL;
+ return -1;
name += 6;
/* extract depth from rest string (or fail if it's not a depth) */
errno = 0;
l = strtoul (name, &end, 10);
if (errno != 0 || *end != 0 || l > G_MAXINT)
+ return -1;
+ return l;
+}
+
+SwfdecSpriteMovie *
+swfdec_player_create_movie_at_level (SwfdecPlayer *player, SwfdecResource *resource,
+ int level)
+{
+ SwfdecMovie *movie;
+ const char *s;
+
+ g_return_val_if_fail (SWFDEC_IS_PLAYER (player), NULL);
+ g_return_val_if_fail (level >= 0, NULL);
+ g_return_val_if_fail (swfdec_player_get_movie_at_level (player, level) == NULL,...
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
...+ mov->blend_mode, NULL);
+ swfdec_movie_remove (mov);
+ return SWFDEC_SPRITE_MOVIE (copy);
+}
+
static gboolean
swfdec_resource_create_movie (SwfdecResource *resource)
{
@@ -186,21 +206,7 @@ swfdec_resource_create_movie (SwfdecResource *resource)
if (movie == NULL) {
movie = swfdec_player_create_movie_at_level (player, resource, level);
} else {
- /* can't use swfdec_movie_duplicate() here, we copy to same depth */
- SwfdecMovie *mov = SWFDEC_MOVIE (movie);
- SwfdecMovie *copy;
-
- copy = swfdec_movie_new (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context),
- mov->depth, mov-...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...der *loader, gpointer ta
{
SwfdecSpriteMovie *movie;
SwfdecResource *resource;
- SwfdecMovie *mov;
int level = -1;
char *target = targetp;
@@ -307,15 +306,24 @@ swfdec_resource_do_load (SwfdecPlayer *player, SwfdecLoader *loader, gpointer ta
}
if (movie == NULL) {
movie = swfdec_player_create_movie_at_level (player, resource, level);
- mov = SWFDEC_MOVIE (movie);
- g_object_unref (resource);
} else {
- mov = SWFDEC_MOVIE (movie);
- swfdec_sprite_movie_unload (movie);
- g_object_unref (mov->resource);
- mov->resource = resource;
- swfdec_resource_set_movie (mov->resourc...
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
...eplace the movie with the right resource
diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c
index d5a1856..8a9e92e 100644
--- a/libswfdec/swfdec_resource.c
+++ b/libswfdec/swfdec_resource.c
@@ -216,7 +216,7 @@ swfdec_resource_create_movie (SwfdecResource *resource)
movie = swfdec_player_create_movie_at_level (player, resource, level);
} else {
/* FIXME: is this correct? */
- movie = swfdec_resource_replace_movie (movie, SWFDEC_MOVIE (movie)->resource);
+ movie = swfdec_resource_replace_movie (movie, resource);
}
swfdec_player_unroot (player, resource);
return TRUE;
commit 9d3d...