gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] [PATCH] find_target("..") error


From: Otávio Ribeiro
Subject: [Gnash-dev] [PATCH] find_target("..") error
Date: Sat, 12 Aug 2006 15:55:55 -0300

Hi for all,

when a use the current cvs version of gnash to play the attached movie file the first frame (loading frame) freeze, the play button on the right upper side doesn't appear and the following error message is printed:

15:44:51: ERROR: find_target("..") failed

I've looking around and find out that  the parent movie clip will be aways NULL. There is even a comment on the code:

// this is possibly NULL, it seems
return get_parent();

so.. to solve that... when the parent is null, i've returned the root movie clip back instead of null and a lot of movies started to play... buttons that doesn't appear start to work, etc..

so.. follow the patch.


=====================================start===================================

Index: server/character.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/character.cpp,v
retrieving revision 1.3
diff -u -r1.3 character.cpp
--- server/character.cpp 7 Jul 2006 01:01:11 -0000 1.3
+++ server/character.cpp 12 Aug 2006 18:37:41 -0000
@@ -150,8 +150,12 @@
}
else if (name == "..")
{
- // this is possibly NULL, it seems
- return get_parent();
+
+ if(!get_parent())
+ return get_root_movie();
+ else
+ // this is possibly NULL, it seems
+ return get_parent();
}
else if (name == "_level0"
     || name == "_root")

=====================================end===================================

regards,
Otávio Ribeiro
reply via email to

[Prev in Thread] Current Thread [Next in Thread]