From MAILER-DAEMON Fri Jun 01 05:13:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu3Cj-0004Jd-HT for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 05:13:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu3Ch-0004JS-U3 for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:13:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu3Ce-0004J3-HG for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:13:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu3Ce-0004J0-69 for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:13:48 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu3Cd-00073N-6D for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:13:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu3CU-0001eS-69 for gnash-commit@gnu.org; Fri, 01 Jun 2007 09:13:38 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu3CU-0001eO-0N for gnash-commit@gnu.org; Fri, 01 Jun 2007 09:13:38 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 09:13:38 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog gui/gui.cpp gui/gui.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 09:13:52 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 09:13:37 Modified files: . : ChangeLog gui : gui.cpp gui.h Log message: * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning from the main rendering loop. This is aimed at removing the exit() call, altought currently we'll still call it as the default implementation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3429&r2=1.3430 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.78&r2=1.79 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.h?cvsroot=gnash&r1=1.51&r2=1.52 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3429 retrieving revision 1.3430 diff -u -b -r1.3429 -r1.3430 --- ChangeLog 31 May 2007 21:18:19 -0000 1.3429 +++ ChangeLog 1 Jun 2007 09:13:37 -0000 1.3430 @@ -1,3 +1,10 @@ +2007-06-01 Sandro Santilli + + * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning + from the main rendering loop. This is aimed at removing the exit() + call, altought currently we'll still call it as the default + implementation. + 2007-05-31 Bastiaan Jacques * macros/ffmpeg.m4: Define HAVE_SWSCALE_H if swscale.h is present. Index: gui/gui.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gui.cpp,v retrieving revision 1.78 retrieving revision 1.79 diff -u -b -r1.78 -r1.79 --- gui/gui.cpp 15 May 2007 09:30:36 -0000 1.78 +++ gui/gui.cpp 1 Jun 2007 09:13:37 -0000 1.79 @@ -162,7 +162,7 @@ Gui::menu_quit() { // GNASH_REPORT_FUNCTION; - exit(0); + quit(); } void Index: gui/gui.h =================================================================== RCS file: /sources/gnash/gnash/gui/gui.h,v retrieving revision 1.51 retrieving revision 1.52 diff -u -b -r1.51 -r1.52 --- gui/gui.h 28 May 2007 15:41:00 -0000 1.51 +++ gui/gui.h 1 Jun 2007 09:13:37 -0000 1.52 @@ -101,6 +101,13 @@ /// Start main rendering loop. virtual bool run() = 0; + /// End main rendering loop, making the call to run() return. + // + /// The default implementation calls exit(0), which isn't nice. + /// Please implement the proper main loop quitter in the subclasses. + /// + virtual void quit() { exit(0); } + /// Create a menu and attach it to our window. virtual bool createMenu() = 0; From MAILER-DAEMON Fri Jun 01 05:28:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu3QV-00038r-FQ for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 05:28:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu3QT-000355-40 for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:28:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu3QQ-000332-JY for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:28:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu3QQ-00032s-De for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:28:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu3QP-0000E0-C9 for gnash-commit@gnu.org; Fri, 01 Jun 2007 05:28:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu3QE-0002oW-W9 for gnash-commit@gnu.org; Fri, 01 Jun 2007 09:27:51 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu3QE-0002oS-Rc for gnash-commit@gnu.org; Fri, 01 Jun 2007 09:27:50 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 09:27:50 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog gui/Player.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 09:28:05 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 09:27:50 Modified files: . : ChangeLog gui : Player.cpp Log message: * gui/Player.cpp: print a debugging message when the main gui loop returns so we know if we exited cleanly or due to a call to exit(). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3430&r2=1.3431 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.51&r2=1.52 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3430 retrieving revision 1.3431 diff -u -b -r1.3430 -r1.3431 --- ChangeLog 1 Jun 2007 09:13:37 -0000 1.3430 +++ ChangeLog 1 Jun 2007 09:27:50 -0000 1.3431 @@ -1,5 +1,7 @@ 2007-06-01 Sandro Santilli + * gui/Player.cpp: print a debugging message when the main gui loop + returns so we know if we exited cleanly or due to a call to exit(). * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning from the main rendering loop. This is aimed at removing the exit() call, altought currently we'll still call it as the default Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.51 retrieving revision 1.52 diff -u -b -r1.51 -r1.52 --- gui/Player.cpp 22 May 2007 19:38:54 -0000 1.51 +++ gui/Player.cpp 1 Jun 2007 09:27:50 -0000 1.52 @@ -354,6 +354,8 @@ _gui->run(); + std::cerr << "Main loop ended, cleaning up" << std::endl; + // Clean up as much as possible, so valgrind will help find actual leaks. gnash::clear(); From MAILER-DAEMON Fri Jun 01 06:04:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu401-0000DI-Hy for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 06:04:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu3zz-0000Cd-FA for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:04:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu3zw-0000Bj-1K for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:04:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu3zu-0000Bf-1f for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:04:42 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu3zt-0004Nu-Ox for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:04:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu3zr-0006pV-M2 for gnash-commit@gnu.org; Fri, 01 Jun 2007 10:04:39 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu3zr-0006pS-GV for gnash-commit@gnu.org; Fri, 01 Jun 2007 10:04:39 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 10:04:39 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/vm/ActionExec.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 10:04:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 10:04:39 Modified files: . : ChangeLog server/vm : ActionExec.cpp Log message: * server/vm/ActionExec.cpp (call operator): if pc == oldPc that's still to be considered a branch-back, so count it; Increment branch-back limit to 2^16 (65535). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3431&r2=1.3432 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ActionExec.cpp?cvsroot=gnash&r1=1.35&r2=1.36 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3431 retrieving revision 1.3432 diff -u -b -r1.3431 -r1.3432 --- ChangeLog 1 Jun 2007 09:27:50 -0000 1.3431 +++ ChangeLog 1 Jun 2007 10:04:38 -0000 1.3432 @@ -1,5 +1,8 @@ 2007-06-01 Sandro Santilli + * server/vm/ActionExec.cpp (call operator): if pc == oldPc that's + still to be considered a branch-back, so count it; Increment + branch-back limit to 2^16 (65535). * gui/Player.cpp: print a debugging message when the main gui loop returns so we know if we exited cleanly or due to a call to exit(). * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning Index: server/vm/ActionExec.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ActionExec.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -u -b -r1.35 -r1.36 --- server/vm/ActionExec.cpp 25 May 2007 13:35:00 -0000 1.35 +++ server/vm/ActionExec.cpp 1 Jun 2007 10:04:39 -0000 1.36 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ActionExec.cpp,v 1.35 2007/05/25 13:35:00 strk Exp $ */ +/* $Id: ActionExec.cpp,v 1.36 2007/06/01 10:04:39 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -244,10 +244,10 @@ // as a timeout in seconds. // See: http://www.gnashdev.org/wiki/index.php/ScriptLimits // - if ( pc < oldPc ) + if ( pc <= oldPc ) { // TODO: specify in the .gnashrc ? - size_t maxBranchCount = 512; // what's enough ? + size_t maxBranchCount = 65524; // what's enough ? if ( ++branchCount > maxBranchCount ) { char buf[256]; From MAILER-DAEMON Fri Jun 01 06:21:12 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu4Fs-0002QA-KF for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 06:21:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu4Fr-0002Py-Jh for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:21:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu4Fq-0002PL-9a for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:21:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu4Fq-0002PI-78 for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:21:10 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu4Fp-0006Op-G9 for gnash-commit@gnu.org; Fri, 01 Jun 2007 06:21:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu4Fi-0008Kh-41 for gnash-commit@gnu.org; Fri, 01 Jun 2007 10:21:02 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu4Fh-0008KX-U0 for gnash-commit@gnu.org; Fri, 01 Jun 2007 10:21:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 10:21:01 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server/vm ActionExec.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 10:21:11 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 10:21:01 Modified files: server/vm : ActionExec.cpp Log message: 65536, not 65524 (typo) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ActionExec.cpp?cvsroot=gnash&r1=1.36&r2=1.37 Patches: Index: ActionExec.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ActionExec.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -u -b -r1.36 -r1.37 --- ActionExec.cpp 1 Jun 2007 10:04:39 -0000 1.36 +++ ActionExec.cpp 1 Jun 2007 10:21:01 -0000 1.37 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ActionExec.cpp,v 1.36 2007/06/01 10:04:39 strk Exp $ */ +/* $Id: ActionExec.cpp,v 1.37 2007/06/01 10:21:01 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -247,7 +247,7 @@ if ( pc <= oldPc ) { // TODO: specify in the .gnashrc ? - size_t maxBranchCount = 65524; // what's enough ? + size_t maxBranchCount = 65536; // what's enough ? if ( ++branchCount > maxBranchCount ) { char buf[256]; From MAILER-DAEMON Fri Jun 01 07:02:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu4tk-0001Gp-6h for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 07:02:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu4ti-0001GB-AS for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:02:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu4th-0001Ft-7f for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:02:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu4th-0001Fq-0m for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:02:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu4tg-0002it-H4 for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:02:20 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu4te-0004G9-U0 for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:02:19 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu4te-0004G5-LM for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:02:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 11:02:18 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog gui/Player.cpp gui/gtk.cpp gui/... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 11:02:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 11:02:18 Modified files: . : ChangeLog gui : Player.cpp gtk.cpp gtksup.h server : impl.cpp utilities : processor.cpp Log message: * gui/Player.cpp (run): remove sound_handler cleanup, will be done by gnash::clear(). * gui/: gtk.cpp, gtksup.h: implement gui::quit() * server/impl.cpp (clear): report the problem with cleaning up resources before all threads are completed, exit() rather then cleanup and document the reason for doing so. * utilities/processor.cpp (main): call gnash::clear() again, that's where proper threads cleanup is supposed to be implemented. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3432&r2=1.3433 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.91&r2=1.92 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtksup.h?cvsroot=gnash&r1=1.42&r2=1.43 http://cvs.savannah.gnu.org/viewcvs/gnash/server/impl.cpp?cvsroot=gnash&r1=1.107&r2=1.108 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/processor.cpp?cvsroot=gnash&r1=1.57&r2=1.58 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3432 retrieving revision 1.3433 diff -u -b -r1.3432 -r1.3433 --- ChangeLog 1 Jun 2007 10:04:38 -0000 1.3432 +++ ChangeLog 1 Jun 2007 11:02:16 -0000 1.3433 @@ -1,5 +1,16 @@ 2007-06-01 Sandro Santilli + * gui/Player.cpp (run): remove sound_handler cleanup, will + be done by gnash::clear(). + * gui/: gtk.cpp, gtksup.h: implement gui::quit() + * server/impl.cpp (clear): report the problem with cleaning + up resources before all threads are completed, exit() rather + then cleanup and document the reason for doing so. + * utilities/processor.cpp (main): call gnash::clear() again, that's + where proper threads cleanup is supposed to be implemented. + +2007-06-01 Sandro Santilli + * server/vm/ActionExec.cpp (call operator): if pc == oldPc that's still to be considered a branch-back, so count it; Increment branch-back limit to 2^16 (65535). Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- gui/Player.cpp 1 Jun 2007 09:27:50 -0000 1.52 +++ gui/Player.cpp 1 Jun 2007 11:02:17 -0000 1.53 @@ -359,10 +359,6 @@ // Clean up as much as possible, so valgrind will help find actual leaks. gnash::clear(); - // By setting the soundhandler to NULL we avoid it being used - // after it's been de-referenced - gnash::set_sound_handler(NULL); - return EXIT_SUCCESS; } Index: gui/gtk.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.91 retrieving revision 1.92 diff -u -b -r1.91 -r1.92 --- gui/gtk.cpp 14 May 2007 10:03:38 -0000 1.91 +++ gui/gtk.cpp 1 Jun 2007 11:02:17 -0000 1.92 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.91 2007/05/14 10:03:38 jgilmore Exp $ */ +/* $Id: gtk.cpp,v 1.92 2007/06/01 11:02:17 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -304,6 +304,12 @@ } void +GtkGui::quit() +{ + gtk_main_quit(); +} + +void GtkGui::setInterval(unsigned int interval) { _interval = interval; Index: gui/gtksup.h =================================================================== RCS file: /sources/gnash/gnash/gui/gtksup.h,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- gui/gtksup.h 28 May 2007 15:41:00 -0000 1.42 +++ gui/gtksup.h 1 Jun 2007 11:02:17 -0000 1.43 @@ -59,7 +59,11 @@ virtual bool init(int argc, char **argv[]); virtual bool createWindow(int width, int height); virtual bool createWindow(const char *title, int width, int height); + virtual bool run(); + + void quit(); + virtual bool createMenu(); virtual bool setupEvents(); virtual void renderBuffer(); Index: server/impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/impl.cpp,v retrieving revision 1.107 retrieving revision 1.108 diff -u -b -r1.107 -r1.108 --- server/impl.cpp 24 May 2007 20:10:42 -0000 1.107 +++ server/impl.cpp 1 Jun 2007 11:02:18 -0000 1.108 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: impl.cpp,v 1.107 2007/05/24 20:10:42 strk Exp $ */ +/* $Id: impl.cpp,v 1.108 2007/06/01 11:02:18 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -554,8 +554,30 @@ void clear() // Maximum release of resources. { + // Ideally, we should make sure that function properly signals all threads + // about exiting and giving them a chance to cleanly exit. + // + // If we clear shared memory here we're going to leave threads possibly + // accessing deleted memory, which would trigger a segfault. + // + // My experience is that calling exit(), altought it has the same problem, + // reduces the chances of segfaulting ... + // + // We want this fixed anyway as exit() + // itselt can also trigger segfaults. + // + // See task task #6959 and depending items + // + std::cerr << "Any segfault past this message is likely due to improper threads cleanup." << std::endl; + exit(EXIT_SUCCESS); + clear_library(); fontlib::clear(); + + // By setting the soundhandler to NULL we avoid it being used + // after it's been de-referenced + set_sound_handler(NULL); + } Index: utilities/processor.cpp =================================================================== RCS file: /sources/gnash/gnash/utilities/processor.cpp,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- utilities/processor.cpp 15 May 2007 16:31:02 -0000 1.57 +++ utilities/processor.cpp 1 Jun 2007 11:02:18 -0000 1.58 @@ -289,8 +289,8 @@ } } - // Clean up as much as possible, so valgrind will help find actual leaks. - //gnash::clear(); + // Signal core lib we're willing to quit. + gnash::clear(); return 0; } From MAILER-DAEMON Fri Jun 01 07:53:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu5h6-0006GS-Mk for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 07:53:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu5h5-0006GA-1Z for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:53:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu5h3-0006FA-UG for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:53:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu5h3-0006F5-Rd for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:53:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu5h3-0000OV-60 for gnash-commit@gnu.org; Fri, 01 Jun 2007 07:53:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu5h2-0000p5-2j for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:53:20 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu5h1-0000p1-Rd for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:53:19 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 11:53:19 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStream.cpp serv... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 11:53:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 11:53:19 Modified files: . : ChangeLog server/asobj : NetStream.cpp NetStream.h Log message: * server/asobj/NetStream.{cpp,h}: split processStatusNotifications so that onStatus handler call is performed while the statusMutex is NOT locked, to prevent attempts to lock the mutex again while reacting to status handlers. statusQueue type changed from vector to deque, for faster pop_front. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3433&r2=1.3434 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.61&r2=1.62 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.h?cvsroot=gnash&r1=1.44&r2=1.45 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3433 retrieving revision 1.3434 diff -u -b -r1.3433 -r1.3434 --- ChangeLog 1 Jun 2007 11:02:16 -0000 1.3433 +++ ChangeLog 1 Jun 2007 11:53:18 -0000 1.3434 @@ -1,5 +1,13 @@ 2007-06-01 Sandro Santilli + * server/asobj/NetStream.{cpp,h}: split processStatusNotifications + so that onStatus handler call is performed while the statusMutex + is NOT locked, to prevent attempts to lock the mutex again while + reacting to status handlers. statusQueue type changed from vector + to deque, for faster pop_front. + +2007-06-01 Sandro Santilli + * gui/Player.cpp (run): remove sound_handler cleanup, will be done by gnash::clear(). * gui/: gtk.cpp, gtksup.h: implement gui::quit() Index: server/asobj/NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -u -b -r1.61 -r1.62 --- server/asobj/NetStream.cpp 31 May 2007 15:52:28 -0000 1.61 +++ server/asobj/NetStream.cpp 1 Jun 2007 11:53:19 -0000 1.62 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.61 2007/05/31 15:52:28 tgc Exp $ */ +/* $Id: NetStream.cpp,v 1.62 2007/06/01 11:53:19 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -453,23 +453,19 @@ void NetStream::processStatusNotifications() { - // Get an exclusive lock so any notification from loader thread will wait - boost::mutex::scoped_lock lock(statusMutex); - - // No queued statuses to notify ... - if ( _statusQueue.empty() ) return; - // TODO: check for System.onStatus too ! use a private getStatusHandler() method for this. as_value status; - if ( get_member("onStatus", &status) && status.is_function()) + if ( ! get_member("onStatus", &status) || ! status.is_function()) { -#ifdef GNASH_DEBUG_STATUS - log_debug("Processing "SIZET_FMT" status notifications", _statusQueue.size()); -#endif + clearStatusQueue(); + return; + } - for (StatusQueue::iterator it=_statusQueue.begin(), itE=_statusQueue.end(); it!=itE; ++it) + StatusCode code; + while (1) { - StatusCode code = *it; + code = popNextPendingStatusNotification(); + if ( code == invalidStatus ) break; // no more pending notifications #ifdef GNASH_DEBUG_STATUS log_debug(" Invoking onStatus(%s)", getStatusCodeInfo(code).first); @@ -482,21 +478,18 @@ call_method(status, m_env, this, 1, m_env->get_top_index() ); } - } - - _statusQueue.clear(); } void NetStream::setStatus(StatusCode status) { - // status unchanged - if ( _lastStatus == status) return; - // Get a lock to avoid messing with statuses while processing them boost::mutex::scoped_lock lock(statusMutex); + // status unchanged + if ( _lastStatus == status) return; + _lastStatus = status; _statusQueue.push_back(status); } @@ -611,5 +604,28 @@ return o; } +NetStream::StatusCode +NetStream::popNextPendingStatusNotification() +{ + // Get an exclusive lock on the queue + boost::mutex::scoped_lock lock(statusMutex); + + // No queued statuses to notify ... + if ( _statusQueue.empty() ) return invalidStatus; + + StatusCode nextCode = _statusQueue.front(); + _statusQueue.pop_front(); + return nextCode; +} + +void +NetStream::clearStatusQueue() +{ + // Get an exclusive lock on the queue + boost::mutex::scoped_lock lock(statusMutex); + + _statusQueue.clear(); +} + } // end of gnash namespace Index: server/asobj/NetStream.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.h,v retrieving revision 1.44 retrieving revision 1.45 diff -u -b -r1.44 -r1.45 --- server/asobj/NetStream.h 31 May 2007 15:52:28 -0000 1.44 +++ server/asobj/NetStream.h 1 Jun 2007 11:53:19 -0000 1.45 @@ -19,7 +19,7 @@ // // -/* $Id: NetStream.h,v 1.44 2007/05/31 15:52:28 tgc Exp $ */ +/* $Id: NetStream.h,v 1.45 2007/06/01 11:53:19 strk Exp $ */ #ifndef __NETSTREAM_H__ #define __NETSTREAM_H__ @@ -37,6 +37,8 @@ #include "NetConnection.h" #include "FLVParser.h" +#include + // Forward declarations namespace gnash { //class NetConnection; @@ -103,12 +105,20 @@ /// - NetStream.Play.StreamNotFound /// - NetStream.Seek.InvalidTime /// + /// This method locks the statusMutex during operations + /// void setStatus(StatusCode code); /// \brief /// Call any onStatus event handler passing it /// any queued status change, see _statusQueue // + /// Will NOT lock the statusMutex itself, rather it will + /// iteratively call the popNextPendingStatusNotification() + /// private method, which will take care of locking it. + /// This is to make sure onStatus handler won't call methods + /// possibly trying to obtain the lock again (::play, ::pause, ...) + /// void processStatusNotifications(); // The actionscript enviroment for the AS callbacks @@ -266,7 +276,23 @@ private: - typedef std::vector StatusQueue; + /// Pop next queued status notification from the queue + // + /// Lock the statusMutex during operations + /// + /// @return The status code to notify, or invalidStatus when + /// the queue is empty + /// + StatusCode popNextPendingStatusNotification(); + + /// Clear status notification queue + // + /// Lock the statusMutex during operations + /// + void clearStatusQueue(); + + // TODO: change to a container with fast pop_front() + typedef std::deque StatusQueue; /// List of status messages to be processed StatusQueue _statusQueue; From MAILER-DAEMON Fri Jun 01 11:02:02 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu8dd-0008Qi-VZ for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 11:02:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu8dd-0008QU-2k for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:02:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu8db-0008QA-2m for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:01:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu8da-0008Q7-T6 for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:01:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu8da-0007A8-Bd for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:01:58 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu8dY-0002CI-Td for gnash-commit@gnu.org; Fri, 01 Jun 2007 15:01:56 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu8dY-0002CE-Nu for gnash-commit@gnu.org; Fri, 01 Jun 2007 15:01:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 15:01:56 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/gnashrc.xml gui/Player.cp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 15:02:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 15:01:56 Modified files: . : ChangeLog doc/C : gnashrc.xml gui : Player.cpp libbase : rc.cpp rc.h testsuite/libbase: TCXXRc.cpp gnashrc.in Log message: * libbase/rc.{cpp,h}: Add a "StartStopped" variable, to have the gui start in "stop" mode. * doc/C/gnashrc.xml: document the new "StartStopped" variable. * gui/Player.cpp (init_gui): set the Gui to "stop" if requested by the user (trough gnashrc) * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test "StartStopped" variable. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3434&r2=1.3435 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnashrc.xml?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.53&r2=1.54 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/rc.cpp?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/rc.h?cvsroot=gnash&r1=1.18&r2=1.19 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libbase/TCXXRc.cpp?cvsroot=gnash&r1=1.11&r2=1.12 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libbase/gnashrc.in?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3434 retrieving revision 1.3435 diff -u -b -r1.3434 -r1.3435 --- ChangeLog 1 Jun 2007 11:53:18 -0000 1.3434 +++ ChangeLog 1 Jun 2007 15:01:53 -0000 1.3435 @@ -1,5 +1,15 @@ 2007-06-01 Sandro Santilli + * libbase/rc.{cpp,h}: Add a "StartStopped" variable, to + have the gui start in "stop" mode. + * doc/C/gnashrc.xml: document the new "StartStopped" variable. + * gui/Player.cpp (init_gui): set the Gui to "stop" if requested + by the user (trough gnashrc) + * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test "StartStopped" + variable. + +2007-06-01 Sandro Santilli + * server/asobj/NetStream.{cpp,h}: split processStatusNotifications so that onStatus handler call is performed while the statusMutex is NOT locked, to prevent attempts to lock the mutex again while Index: doc/C/gnashrc.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/gnashrc.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- doc/C/gnashrc.xml 26 May 2007 17:08:48 -0000 1.8 +++ doc/C/gnashrc.xml 1 Jun 2007 15:01:54 -0000 1.9 @@ -170,6 +170,16 @@ + + StartStopped + + + Set to ``on'' to have the GUI start in "stop" mode. This is useful in particular + for the plugin, so you have to explicitly start any movie on a webpage. Off by default. + + + + Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -u -b -r1.53 -r1.54 --- gui/Player.cpp 1 Jun 2007 11:02:17 -0000 1.53 +++ gui/Player.cpp 1 Jun 2007 15:01:55 -0000 1.54 @@ -202,11 +202,19 @@ if ( do_render ) { _gui.reset(new GUI_CLASS(windowid, scale, do_loop, bit_depth)); + + RcInitFile& rcfile = RcInitFile::getDefaultInstance(); + if ( rcfile.startStopped() ) + { + _gui->stop(); + } + } else { _gui.reset(new NullGui(do_loop)); } + } movie_definition* Index: libbase/rc.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/rc.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- libbase/rc.cpp 25 May 2007 16:32:38 -0000 1.24 +++ libbase/rc.cpp 1 Jun 2007 15:01:55 -0000 1.25 @@ -60,7 +60,8 @@ _localhost_only(false), _sound(true), _plugin_sound(true), - _extensionsEnabled(false) + _extensionsEnabled(false), + _startStopped(false) { // GNASH_REPORT_FUNCTION; loadFiles(); @@ -189,6 +190,7 @@ extractSetting(&_verboseASCodingErrors, "ASCodingErrorsVerbosity", variable, value); extractSetting(&_verboseMalformedSWF, "MalformedSWFVerbosity", variable, value); extractSetting(&_extensionsEnabled, "EnableExtensions", variable, value); + extractSetting(&_startStopped, "StartStopped", variable, value); extractNumber(&_delay, "delay", variable, value); extractNumber(&_verbosity, "verbosity", variable, value); Index: libbase/rc.h =================================================================== RCS file: /sources/gnash/gnash/libbase/rc.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- libbase/rc.h 28 May 2007 15:41:02 -0000 1.18 +++ libbase/rc.h 1 Jun 2007 15:01:55 -0000 1.19 @@ -68,7 +68,12 @@ void showMalformedSWFErrors(bool value); bool enableExtensions() const { return _extensionsEnabled; } - //void enableExtension(bool mode) { _extensionsEnabled=mode; } + + /// Return true if user is willing to start the gui in "stop" mode + // + /// defaults to false. + /// + bool startStopped() const { return _startStopped; } int verbosityLevel() const { return _verbosity; } void verbosityLevel(int value) { _verbosity = value; } @@ -139,7 +144,9 @@ bool _sound; // whether sound is enable or not bool _plugin_sound; // whether sound is desired for the plugin - bool _extensionsEnabled; + bool _extensionsEnabled; // wheter to scan plugin path for extensions + + bool _startStopped; // whether to start the gui in "stop" mode }; //extern DSOEXPORT RcInitFile rcfile; Index: testsuite/libbase/TCXXRc.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/libbase/TCXXRc.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- testsuite/libbase/TCXXRc.cpp 28 May 2007 15:41:11 -0000 1.11 +++ testsuite/libbase/TCXXRc.cpp 1 Jun 2007 15:01:55 -0000 1.12 @@ -158,6 +158,12 @@ runtest.fail ("enableExtensions"); } + if (rc.startStopped() == 1) { + runtest.pass ("startStopped"); + } else { + runtest.fail ("startStopped"); + } + std::vector whitelist = rc.getWhiteList(); if (whitelist.size()) { if ((whitelist[0] == "www.doonesbury.com") Index: testsuite/libbase/gnashrc.in =================================================================== RCS file: /sources/gnash/gnash/testsuite/libbase/gnashrc.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- testsuite/libbase/gnashrc.in 25 May 2007 16:12:58 -0000 1.4 +++ testsuite/libbase/gnashrc.in 1 Jun 2007 15:01:55 -0000 1.5 @@ -42,3 +42,6 @@ # Enable extensions set enableExtensions on + +# Start the gui in STOP mode +set startStopped on From MAILER-DAEMON Fri Jun 01 11:23:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hu8yc-0006Ra-Rc for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 11:23:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu8yb-0006RJ-3z for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:23:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu8yZ-0006Qu-OE for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:23:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu8yZ-0006Qr-I7 for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:23:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hu8yZ-0001c3-7R for gnash-commit@gnu.org; Fri, 01 Jun 2007 11:23:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hu8yV-00047M-MJ for gnash-commit@gnu.org; Fri, 01 Jun 2007 15:23:35 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1Hu8yV-00047H-DP for gnash-commit@gnu.org; Fri, 01 Jun 2007 15:23:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 01 Jun 2007 15:23:35 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStreamGst.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 15:23:41 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/01 15:23:35 Modified files: . : ChangeLog server/asobj : NetStreamGst.cpp Log message: * server/asobj/NetStreamGst.cpp: protect all log_debug calls with a GNASH_DEBUG macro. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3435&r2=1.3436 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamGst.cpp?cvsroot=gnash&r1=1.52&r2=1.53 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3435 retrieving revision 1.3436 diff -u -b -r1.3435 -r1.3436 --- ChangeLog 1 Jun 2007 15:01:53 -0000 1.3435 +++ ChangeLog 1 Jun 2007 15:23:34 -0000 1.3436 @@ -1,5 +1,10 @@ 2007-06-01 Sandro Santilli + * server/asobj/NetStreamGst.cpp: protect all log_debug calls + with a GNASH_DEBUG macro. + +2007-06-01 Sandro Santilli + * libbase/rc.{cpp,h}: Add a "StartStopped" variable, to have the gui start in "stop" mode. * doc/C/gnashrc.xml: document the new "StartStopped" variable. Index: server/asobj/NetStreamGst.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamGst.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- server/asobj/NetStreamGst.cpp 31 May 2007 15:52:28 -0000 1.52 +++ server/asobj/NetStreamGst.cpp 1 Jun 2007 15:23:35 -0000 1.53 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamGst.cpp,v 1.52 2007/05/31 15:52:28 tgc Exp $ */ +/* $Id: NetStreamGst.cpp,v 1.53 2007/06/01 15:23:35 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -39,6 +39,9 @@ #include "URL.h" +// Define the following macro to enable debugging traces +//#define GNASH_DEBUG + namespace gnash { static gboolean @@ -377,7 +380,9 @@ void NetStreamGst::unrefElements() { +#ifdef GNASH_DEBUG log_debug("unreffing elements"); +#endif boost::mutex::scoped_lock lock(_pipelineMutex); @@ -523,7 +528,9 @@ bool NetStreamGst::buildFLVVideoPipeline(bool &video) { +#ifdef GNASH_DEBUG log_debug("Building FLV video decoding pipeline"); +#endif FLVVideoInfo* videoInfo = m_parser->getVideoInfo(); @@ -637,7 +644,9 @@ if (doSound) { +#ifdef GNASH_DEBUG log_debug("Building FLV video decoding pipeline"); +#endif audiosource = gst_element_factory_make ("fakesrc", NULL); if ( ! audiosource ) @@ -702,7 +711,9 @@ bool NetStreamGst::buildPipeline() { +#ifdef GNASH_DEBUG log_debug("Building non-FLV decoding pipeline"); +#endif boost::mutex::scoped_lock lock(_pipelineMutex); @@ -743,7 +754,9 @@ // Pass stuff from/to the NetConnection object. if ( !nc->openConnection(url) ) { setStatus(streamNotFound); +#ifdef GNASH_DEBUG log_debug(_("Gnash could not open movie: %s"), url.c_str()); +#endif return; } @@ -1005,12 +1018,16 @@ // or stop if loading is complete if (m_pausePlayback) { +#ifdef GNASH_DEBUG log_debug("Playback paused (out of data?)"); +#endif m_pausePlayback = false; if (_netCon->loadCompleted()) { +#ifdef GNASH_DEBUG log_debug("Load completed, setting playStop status and shutting down pipeline"); +#endif setStatus(playStop); // Drop gstreamer pipeline so callbacks are not called again @@ -1134,7 +1151,9 @@ { if (videosource && _handoffVideoSigHandler ) { +#ifdef GNASH_DEBUG log_debug("Disconnecting video handoff signal %lu", _handoffVideoSigHandler); +#endif g_signal_handler_disconnect(videosource, _handoffVideoSigHandler); _handoffVideoSigHandler = 0; } @@ -1149,7 +1168,9 @@ { if ( audiosource && _handoffAudioSigHandler ) { +#ifdef GNASH_DEBUG log_debug("Disconnecting audio handoff signal %lu", _handoffAudioSigHandler); +#endif g_signal_handler_disconnect(audiosource, _handoffAudioSigHandler); _handoffAudioSigHandler = 0; } @@ -1162,13 +1183,17 @@ bool NetStreamGst::connectVideoHandoffSignal() { +#ifdef GNASH_DEBUG log_debug("Connecting video handoff signal"); +#endif assert(_handoffVideoSigHandler == 0); _handoffVideoSigHandler = g_signal_connect (videosource, "handoff", G_CALLBACK (NetStreamGst::video_callback_handoff), this); +#ifdef GNASH_DEBUG log_debug("New _handoffVideoSigHandler id : %lu", _handoffVideoSigHandler); +#endif assert(_handoffVideoSigHandler != 0); @@ -1180,14 +1205,18 @@ bool NetStreamGst::connectAudioHandoffSignal() { +#ifdef GNASH_DEBUG log_debug("Connecting audio handoff signal"); +#endif assert(_handoffAudioSigHandler == 0); _handoffAudioSigHandler = g_signal_connect (audiosource, "handoff", G_CALLBACK (NetStreamGst::audio_callback_handoff), this); +#ifdef GNASH_DEBUG log_debug("New _handoffAudioSigHandler id : %lu", _handoffAudioSigHandler); +#endif assert(_handoffAudioSigHandler != 0); @@ -1219,7 +1248,9 @@ else if ( ret == GST_STATE_CHANGE_SUCCESS ) { // the state change succeeded +#ifdef GNASH_DEBUG log_debug("State change to NULL successful"); +#endif // just make sure GstState current, pending; @@ -1236,25 +1267,33 @@ // asynchronously in another thread // We'll wait for it... +#ifdef GNASH_DEBUG log_debug("State change to NULL will be asynchronous.. waiting for it"); +#endif GstState current, pending; do { ret = gst_element_get_state (GST_ELEMENT (pipeline), ¤t, &pending, GST_SECOND*1); +#ifdef GNASH_DEBUG log_debug(" NULL state change still not completed after X seconds"); +#endif } while ( ret == GST_STATE_CHANGE_ASYNC && current != GST_STATE_NULL ); if ( ret == GST_STATE_CHANGE_SUCCESS ) { assert ( current == GST_STATE_NULL ); +#ifdef GNASH_DEBUG log_debug(" Async NULL completed successfully"); +#endif } else if ( ret == GST_STATE_CHANGE_FAILURE ) { assert ( current != GST_STATE_NULL ); +#ifdef GNASH_DEBUG log_debug(" Async NULL completed failing."); +#endif return false; } else abort(); @@ -1266,7 +1305,9 @@ // the state change succeeded but the element // cannot produce data in PAUSED. // This typically happens with live sources. +#ifdef GNASH_DEBUG log_debug("State change succeeded but the element cannot produce data in PAUSED"); +#endif // @@ what to do in this case ? } @@ -1286,7 +1327,9 @@ { boost::mutex::scoped_lock lock(_pipelineMutex); +#ifdef GNASH_DEBUG log_debug("Setting status to bufferFull and enabling pipeline"); +#endif if ( videosource && ! _handoffVideoSigHandler ) { @@ -1319,7 +1362,9 @@ else if ( ret == GST_STATE_CHANGE_SUCCESS ) { // the state change succeeded +#ifdef GNASH_DEBUG log_debug("State change to PLAYING successful"); +#endif // just make sure GstState current, pending; @@ -1336,25 +1381,33 @@ // asynchronously in another thread // We'll wait for it... +#ifdef GNASH_DEBUG log_debug("State change to play will be asynchronous.. waiting for it"); +#endif GstState current, pending; do { ret = gst_element_get_state (GST_ELEMENT (pipeline), ¤t, &pending, GST_SECOND*1); +#ifdef GNASH_DEBUG log_debug(" Play still not completed after X seconds"); +#endif } while ( ret == GST_STATE_CHANGE_ASYNC && current != GST_STATE_PLAYING ); if ( ret == GST_STATE_CHANGE_SUCCESS ) { assert ( current == GST_STATE_PLAYING ); +#ifdef GNASH_DEBUG log_debug(" Async play completed successfully"); +#endif } else if ( ret == GST_STATE_CHANGE_FAILURE ) { assert ( current != GST_STATE_PLAYING ); +#ifdef GNASH_DEBUG log_debug(" Async play completed failing."); +#endif return false; } else abort(); @@ -1365,7 +1418,9 @@ // the state change succeeded but the element // cannot produce data in PAUSED. // This typically happens with live sources. +#ifdef GNASH_DEBUG log_debug("State change succeeded but the element cannot produce data in PAUSED"); +#endif // @@ what to do in this case ? } @@ -1385,11 +1440,15 @@ { boost::mutex::scoped_lock lock(_pipelineMutex); +#ifdef GNASH_DEBUG log_debug("Setting pipeline state to PAUSE"); +#endif if ( ! m_go ) { +#ifdef GNASH_DEBUG log_debug("Won't set the pipeline to PAUSE state if m_go is false"); +#endif return false; } @@ -1418,7 +1477,9 @@ else if ( ret == GST_STATE_CHANGE_SUCCESS ) { // the state change succeeded +#ifdef GNASH_DEBUG log_debug("State change to PAUSE successful"); +#endif // just make sure GstState current, pending; @@ -1435,25 +1496,33 @@ // asynchronously in another thread // We'll wait for it... +#ifdef GNASH_DEBUG log_debug("State change to paused will be asynchronous.. waiting for it"); +#endif GstState current, pending; do { ret = gst_element_get_state (GST_ELEMENT (pipeline), ¤t, &pending, GST_SECOND*1); +#ifdef GNASH_DEBUG log_debug(" Pause still not completed after X seconds"); +#endif } while ( ret == GST_STATE_CHANGE_ASYNC && current != GST_STATE_PAUSED ); if ( ret == GST_STATE_CHANGE_SUCCESS ) { assert ( current == GST_STATE_PAUSED ); +#ifdef GNASH_DEBUG log_debug(" Async pause completed successfully"); +#endif } else if ( ret == GST_STATE_CHANGE_FAILURE ) { assert ( current != GST_STATE_PAUSED ); +#ifdef GNASH_DEBUG log_debug(" Async pause completed failing."); +#endif return false; } else abort(); @@ -1464,7 +1533,9 @@ // the state change succeeded but the element // cannot produce data in PAUSED. // This typically happens with live sources. +#ifdef GNASH_DEBUG log_debug("State change succeeded but the element cannot produce data in PAUSED"); +#endif // @@ what to do in this case ? } From MAILER-DAEMON Fri Jun 01 13:50:17 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuBGT-0003Nr-Nz for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 13:50:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuBGS-0003Nc-CP for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:50:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuBGR-0003NQ-0A for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:50:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuBGQ-0003NN-R7 for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:50:14 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuBGQ-0006bK-Fj for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:50:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuBGJ-0006eJ-G3 for gnash-commit@gnu.org; Fri, 01 Jun 2007 17:50:07 +0000 Received: from bjacques by cvs with local (Exim 4.63) (envelope-from ) id 1HuBGJ-0006eG-CN for gnash-commit@gnu.org; Fri, 01 Jun 2007 17:50:07 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Fri, 01 Jun 2007 17:50:07 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac macros/ffmpeg.m4 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 17:50:16 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/01 17:50:07 Modified files: . : ChangeLog configure.ac macros : ffmpeg.m4 Log message: Avoid using swscale in certain ffmpeg versions. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3436&r2=1.3437 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.329&r2=1.330 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&r1=1.42&r2=1.43 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3436 retrieving revision 1.3437 diff -u -b -r1.3436 -r1.3437 --- ChangeLog 1 Jun 2007 15:23:34 -0000 1.3436 +++ ChangeLog 1 Jun 2007 17:50:06 -0000 1.3437 @@ -1,3 +1,8 @@ +2007-06-01 Bastiaan Jacques + + * macros/ffmpeg.m4: Avoid using libswscale with broken ffmpeg + versions. + 2007-06-01 Sandro Santilli * server/asobj/NetStreamGst.cpp: protect all log_debug calls @@ -48,7 +53,9 @@ * macros/ffmpeg.m4: Define HAVE_SWSCALE_H if swscale.h is present. * libbase/embedVideoDecoderFfmpeg.cpp: If swscale.h is available, - use swscale and friends. Otherwise, default to img_convert. + use swscale and friends. Otherwise, default to img_convert. Also, + conditionally include swscale.h itself. + * server/asobj/NetStreamFfmpeg.cpp: Remove unused include. 2007-05-31 Sandro Santilli Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.329 retrieving revision 1.330 diff -u -b -r1.329 -r1.330 --- configure.ac 31 May 2007 16:44:56 -0000 1.329 +++ configure.ac 1 Jun 2007 17:50:06 -0000 1.330 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.329 2007/05/31 16:44:56 martinwguy Exp $ +dnl $Id: configure.ac,v 1.330 2007/06/01 17:50:06 bjacques Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -212,9 +212,12 @@ [gui=gtk] ) -dnl if test x"$klash" = xyes -a x"$gui" != xkde; then -dnl AC_MSG_ERROR([You must use the kde GUI ( --enable-gui=KDE ) if you enable klash.]) -dnl fi +if test x"$klash" = xyes ; then + if test x"$gui" != xkde -a x"$gui" != xfltk; then + AC_MSG_ERROR([You must use either the kde GUI ( --enable-gui=KDE ) + or the fltk GUI ( --enable-gui=FLTK ) if you enable klash.]) + fi +fi AC_ARG_ENABLE(renderer, AC_HELP_STRING([--enable-renderer=engine], [Specify rendering engine: OpenGL, Agg or Cairo (experimental) [[OpenGL]] ]), @@ -462,9 +465,6 @@ if $LD --help 2>/dev/null | grep as-needed > /dev/null; then gcc_cv_ld_as_needed=yes fi -if test x"$gcc_cv_ld_as_needed" = xyes; then - LDFLAGS="${LDFLAGS} -Wl,--as-needed" -fi AC_MSG_RESULT($gcc_cv_ld_as_needed) dnl GNASH_PKG_FIND(dmalloc, [dmalloc.h], [dmalloc], mallinfo) Index: macros/ffmpeg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- macros/ffmpeg.m4 31 May 2007 21:18:20 -0000 1.42 +++ macros/ffmpeg.m4 1 Jun 2007 17:50:07 -0000 1.43 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: ffmpeg.m4,v 1.42 2007/05/31 21:18:20 bjacques Exp $ +dnl $Id: ffmpeg.m4,v 1.43 2007/06/01 17:50:07 bjacques Exp $ AC_DEFUN([GNASH_PATH_FFMPEG], [ @@ -134,7 +134,7 @@ if test x"$avcodec_h" != x; then swscale_h="`dirname $avcodec_h`/swscale.h" - if test -f "$swscale_h"; then + if test -f "$swscale_h" -a $ffmpeg_num_version -gt 51403; then AC_DEFINE(HAVE_SWSCALE_H, 1, [Define if swscale.h is found]) fi fi From MAILER-DAEMON Fri Jun 01 13:54:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuBKy-0004FY-Fn for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 13:54:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuBKw-0004En-LU for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:54:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuBKw-0004Eb-Ay for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:54:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuBKw-0004EU-22 for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:54:54 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuBKv-00077c-Pa for gnash-commit@gnu.org; Fri, 01 Jun 2007 13:54:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuBKv-0006vA-7p for gnash-commit@gnu.org; Fri, 01 Jun 2007 17:54:53 +0000 Received: from bjacques by cvs with local (Exim 4.63) (envelope-from ) id 1HuBKv-0006v6-2b for gnash-commit@gnu.org; Fri, 01 Jun 2007 17:54:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Fri, 01 Jun 2007 17:54:53 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 17:54:55 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/01 17:54:52 Modified files: . : ChangeLog configure.ac Log message: Revert unintentional change. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3437&r2=1.3438 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.330&r2=1.331 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3437 retrieving revision 1.3438 diff -u -b -r1.3437 -r1.3438 --- ChangeLog 1 Jun 2007 17:50:06 -0000 1.3437 +++ ChangeLog 1 Jun 2007 17:54:52 -0000 1.3438 @@ -2,6 +2,7 @@ * macros/ffmpeg.m4: Avoid using libswscale with broken ffmpeg versions. + * configure.ac: Revert unintentional change. 2007-06-01 Sandro Santilli Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.330 retrieving revision 1.331 diff -u -b -r1.330 -r1.331 --- configure.ac 1 Jun 2007 17:50:06 -0000 1.330 +++ configure.ac 1 Jun 2007 17:54:52 -0000 1.331 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.330 2007/06/01 17:50:06 bjacques Exp $ +dnl $Id: configure.ac,v 1.331 2007/06/01 17:54:52 bjacques Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -212,12 +212,9 @@ [gui=gtk] ) -if test x"$klash" = xyes ; then - if test x"$gui" != xkde -a x"$gui" != xfltk; then - AC_MSG_ERROR([You must use either the kde GUI ( --enable-gui=KDE ) - or the fltk GUI ( --enable-gui=FLTK ) if you enable klash.]) - fi -fi +dnl if test x"$klash" = xyes -a x"$gui" != xkde; then +dnl AC_MSG_ERROR([You must use the kde GUI ( --enable-gui=KDE ) if you enable klash.]) +dnl fi AC_ARG_ENABLE(renderer, AC_HELP_STRING([--enable-renderer=engine], [Specify rendering engine: OpenGL, Agg or Cairo (experimental) [[OpenGL]] ]), @@ -465,6 +462,9 @@ if $LD --help 2>/dev/null | grep as-needed > /dev/null; then gcc_cv_ld_as_needed=yes fi +if test x"$gcc_cv_ld_as_needed" = xyes; then + LDFLAGS="${LDFLAGS} -Wl,--as-needed" +fi AC_MSG_RESULT($gcc_cv_ld_as_needed) dnl GNASH_PKG_FIND(dmalloc, [dmalloc.h], [dmalloc], mallinfo) From MAILER-DAEMON Fri Jun 01 19:36:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuGft-0006O4-E6 for mharc-gnash-commit@gnu.org; Fri, 01 Jun 2007 19:36:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuGfr-0006Nt-On for gnash-commit@gnu.org; Fri, 01 Jun 2007 19:36:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuGfq-0006Nh-8v for gnash-commit@gnu.org; Fri, 01 Jun 2007 19:36:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuGfq-0006Ne-49 for gnash-commit@gnu.org; Fri, 01 Jun 2007 19:36:50 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuGfp-0005pt-OO for gnash-commit@gnu.org; Fri, 01 Jun 2007 19:36:49 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuGfp-0004e3-7J for gnash-commit@gnu.org; Fri, 01 Jun 2007 23:36:49 +0000 Received: from bjacques by cvs with local (Exim 4.63) (envelope-from ) id 1HuGfp-0004dx-31 for gnash-commit@gnu.org; Fri, 01 Jun 2007 23:36:49 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Fri, 01 Jun 2007 23:36:49 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetConnection.cpp ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 23:36:52 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/01 23:36:48 Modified files: . : ChangeLog server/asobj : NetConnection.cpp NetConnection.h NetStreamFfmpeg.cpp Log message: * server/asobj/NetConnection.{cpp,h}: Permit openConnection to be called more than once with the same URL. * server/asobj/NetStreamFfmpeg.cpp: Call detach_aux_streamer with a valid owner argument, so something will actually happen. Make sure that the NetConnection position is 0 just in case openConnection was called before. Fix a deadlock by avoiding calls to the sound handler in startPlayback(). This is cheating, but fixes bug #20036. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3438&r2=1.3439 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetConnection.cpp?cvsroot=gnash&r1=1.47&r2=1.48 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetConnection.h?cvsroot=gnash&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.81&r2=1.82 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3438 retrieving revision 1.3439 diff -u -b -r1.3438 -r1.3439 --- ChangeLog 1 Jun 2007 17:54:52 -0000 1.3438 +++ ChangeLog 1 Jun 2007 23:36:48 -0000 1.3439 @@ -1,3 +1,14 @@ +2007-06-02 Bastiaan Jacques + + * server/asobj/NetConnection.{cpp,h}: Permit openConnection + to be called more than once with the same URL. + * server/asobj/NetStreamFfmpeg.cpp: Call detach_aux_streamer + with a valid owner argument, so something will actually + happen. Make sure that the NetConnection position is 0 + just in case openConnection was called before. Fix a deadlock + by avoiding calls to the sound handler in startPlayback(). + This is cheating, but fixes bug #20036. + 2007-06-01 Bastiaan Jacques * macros/ffmpeg.m4: Avoid using libswscale with broken ffmpeg Index: server/asobj/NetConnection.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetConnection.cpp,v retrieving revision 1.47 retrieving revision 1.48 diff -u -b -r1.47 -r1.48 --- server/asobj/NetConnection.cpp 30 May 2007 12:18:49 -0000 1.47 +++ server/asobj/NetConnection.cpp 1 Jun 2007 23:36:48 -0000 1.48 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetConnection.cpp,v 1.47 2007/05/30 12:18:49 strk Exp $ */ +/* $Id: NetConnection.cpp,v 1.48 2007/06/01 23:36:48 bjacques Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -52,7 +52,6 @@ NetConnection::NetConnection() : as_object(getNetConnectionInterface()), - _url(), _loader() { attachProperties(); @@ -69,37 +68,45 @@ // if already running there is no need to setup things again if (_loader.get()) { - log_error("NetConnection::openConnection() called when already connected to a stream. Should we close the old stream and open a new one?."); - return false; + log_debug("NetConnection::openConnection() called when already connected to a stream. Checking if the existing connection can be used."); + std::string newurl; + if (_prefixUrl.size() > 0) { + newurl += _prefixUrl + "/" + url; + } else { + newurl += url; + } + if (newurl.compare(_completeUrl) == 0) return true; + else return false; } - if (_url.size() > 0) { - _url += "/"; + if (_prefixUrl.size() > 0) { + _completeUrl += _prefixUrl + "/" + url; + } else { + _completeUrl += url; } - _url += url; - URL uri(_url, get_base_url()); + URL uri(_completeUrl, get_base_url()); - _url = uri.str(); - assert(_url.find("://")!=string::npos); + std::string uriStr(uri.str()); + assert(uriStr.find("://")!=string::npos); // Check if we're allowed to open url if (!URLAccessManager::allow(uri)) { - log_security(_("Gnash is not allowed to open this url: %s"), _url.c_str()); + log_security(_("Gnash is not allowed to open this url: %s"), uriStr.c_str()); return false; } - log_msg(_("Connecting to movie: %s"), _url.c_str()); + log_msg(_("Connecting to movie: %s"), uriStr.c_str()); _loader.reset( new LoadThread() ); if (!_loader->setStream(std::auto_ptr(StreamProvider::getDefaultInstance().getStream(uri)))) { - log_error(_("Gnash could not open this url: %s"), _url.c_str()); + log_error(_("Gnash could not open this url: %s"), uriStr.c_str()); _loader.reset(); return false; } - log_msg(_("Connection etablished to movie: %s"), _url.c_str()); + log_msg(_("Connection etablished to movie: %s"), uriStr.c_str()); return true; } @@ -111,11 +118,11 @@ // What is this ? It is NOT documented in the header !! //if (url == "null" || url == "NULL") return; - // If there already is something in _url, then we already have a url, - // so no need to renew it. - if (_url.size() > 0) return; + // If there already is something in _prefixUrl, then we already have a url, + // so no need to renew it. This may not correct, needs some testing. + if (_prefixUrl.size() > 0) return; - _url += url; + _prefixUrl += url; } /*public*/ Index: server/asobj/NetConnection.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetConnection.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- server/asobj/NetConnection.h 30 May 2007 12:18:49 -0000 1.33 +++ server/asobj/NetConnection.h 1 Jun 2007 23:36:48 -0000 1.34 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: NetConnection.h,v 1.33 2007/05/30 12:18:49 strk Exp $ */ +/* $Id: NetConnection.h,v 1.34 2007/06/01 23:36:48 bjacques Exp $ */ #ifndef __NETCONNECTION_H__ #define __NETCONNECTION_H__ @@ -143,8 +143,11 @@ /// Extend the URL to be used for playing void addToURL(const std::string& url); - /// the url of the file - std::string _url; + /// the url prefix optionally passed to connect() + std::string _prefixUrl; + + /// the complete url of the file + std::string _completeUrl; /// the as_object which owns the connection boost::intrusive_ptr _owner; Index: server/asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.81 retrieving revision 1.82 diff -u -b -r1.81 -r1.82 --- server/asobj/NetStreamFfmpeg.cpp 31 May 2007 21:48:33 -0000 1.81 +++ server/asobj/NetStreamFfmpeg.cpp 1 Jun 2007 23:36:48 -0000 1.82 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.81 2007/05/31 21:48:33 bjacques Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.82 2007/06/01 23:36:48 bjacques Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -88,6 +88,7 @@ void NetStreamFfmpeg::pause(int mode) { + if (mode == -1) { if (m_pause) unpauseDecoding(); @@ -130,7 +131,7 @@ sound_handler* s = get_sound_handler(); if (s != NULL) { - s->detach_aux_streamer((void*) NULL); + s->detach_aux_streamer(this); } if (m_Frame) av_free(m_Frame); @@ -386,6 +387,7 @@ return false; } + nc->seek(0); inputPos = 0; // Check if the file is a FLV, in which case we use our own parser @@ -429,9 +431,6 @@ m_video_index = 0; m_audio_index = 1; - sound_handler* s = get_sound_handler(); - if (s) s->attach_aux_streamer(audio_streamer, (void*) this); - m_start_onbuffer = true; // Allocate a frame to store the decoded frame in @@ -569,8 +568,6 @@ return false; } - s->attach_aux_streamer(audio_streamer, (void*) this); - } unpauseDecoding(); From MAILER-DAEMON Sat Jun 02 02:50:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuNRK-0006VO-Ox for mharc-gnash-commit@gnu.org; Sat, 02 Jun 2007 02:50:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuNRJ-0006Rv-4Q for gnash-commit@gnu.org; Sat, 02 Jun 2007 02:50:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuNRH-0006Qf-12 for gnash-commit@gnu.org; Sat, 02 Jun 2007 02:50:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuNRG-0006Qc-Ty for gnash-commit@gnu.org; Sat, 02 Jun 2007 02:50:14 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuNRF-0004NX-Rn for gnash-commit@gnu.org; Sat, 02 Jun 2007 02:50:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuNRA-0005bF-7L for gnash-commit@gnu.org; Sat, 02 Jun 2007 06:50:08 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1HuNR9-0005bA-UY for gnash-commit@gnu.org; Sat, 02 Jun 2007 06:50:08 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 02 Jun 2007 06:50:07 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/vm/ASHandlers.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 06:50:17 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/02 06:50:07 Modified files: . : ChangeLog server/vm : ASHandlers.cpp Log message: * server/vm/ASHandlers.cpp (CommonGetUrl): log about _level# target for GetUrl being unsupported. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3439&r2=1.3440 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ASHandlers.cpp?cvsroot=gnash&r1=1.106&r2=1.107 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3439 retrieving revision 1.3440 diff -u -b -r1.3439 -r1.3440 --- ChangeLog 1 Jun 2007 23:36:48 -0000 1.3439 +++ ChangeLog 2 Jun 2007 06:50:06 -0000 1.3440 @@ -1,3 +1,8 @@ +2007-06-02 Sandro Santilli + + * server/vm/ASHandlers.cpp (CommonGetUrl): log about _level# + target for GetUrl being unsupported. + 2007-06-02 Bastiaan Jacques * server/asobj/NetConnection.{cpp,h}: Permit openConnection Index: server/vm/ASHandlers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ASHandlers.cpp,v retrieving revision 1.106 retrieving revision 1.107 diff -u -b -r1.106 -r1.107 --- server/vm/ASHandlers.cpp 18 May 2007 06:05:38 -0000 1.106 +++ server/vm/ASHandlers.cpp 2 Jun 2007 06:50:07 -0000 1.107 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ASHandlers.cpp,v 1.106 2007/05/18 06:05:38 zoulunkai Exp $ */ +/* $Id: ASHandlers.cpp,v 1.107 2007/06/02 06:50:07 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1774,6 +1774,12 @@ if ( ! target.is_undefined() && ! target.is_null() ) { target_string = target.to_string(&env); + if ( target_string.substr(0, 6) == "_level" ) + { + // Might set loadTargetFlag to true, but _level# would likely not + // be resolved anyway + log_unimpl(_("GetUrl with target %s unsupported"), target_string.c_str()); + } } // If the url starts with "FSCommand:", then this is @@ -1818,8 +1824,8 @@ const URL& baseurl = get_base_url(); URL url(url_s, baseurl); - log_msg(_("get url: target=%s, url=%s (%s)"), target_string.c_str(), - url.str().c_str(), url_c); + log_msg(_("get url: target=%s, url=%s (%s), method=%x"), target_string.c_str(), + url.str().c_str(), url_c, method); if ( loadTargetFlag ) { From MAILER-DAEMON Sat Jun 02 04:56:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuPPX-0007ou-6E for mharc-gnash-commit@gnu.org; Sat, 02 Jun 2007 04:56:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuPPU-0007lp-Lm for gnash-commit@gnu.org; Sat, 02 Jun 2007 04:56:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuPPS-0007jA-Fn for gnash-commit@gnu.org; Sat, 02 Jun 2007 04:56:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuPPS-0007j0-At for gnash-commit@gnu.org; Sat, 02 Jun 2007 04:56:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuPPR-0002K2-3g for gnash-commit@gnu.org; Sat, 02 Jun 2007 04:56:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69] helo=cvs) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuPPL-00086i-2r for gnash-commit@gnu.org; Sat, 02 Jun 2007 08:56:23 +0000 Received: from strk by cvs with local (Exim 4.63) (envelope-from ) id 1HuPPK-00086d-Tt for gnash-commit@gnu.org; Sat, 02 Jun 2007 08:56:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 02 Jun 2007 08:56:22 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server as_object.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 08:56:33 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/02 08:56:22 Modified files: server : as_object.cpp Log message: minor debugging errors cleanup CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.cpp?cvsroot=gnash&r1=1.50&r2=1.51 Patches: Index: as_object.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_object.cpp,v retrieving revision 1.50 retrieving revision 1.51 diff -u -b -r1.50 -r1.51 --- as_object.cpp 28 May 2007 15:41:05 -0000 1.50 +++ as_object.cpp 2 Jun 2007 08:56:22 -0000 1.51 @@ -119,6 +119,7 @@ } catch (ActionException& exc) { + // TODO: check if this should be an 'as' error.. (log_aserror) log_error(_("Caught exception: %s"), exc.what()); return false; } @@ -224,9 +225,11 @@ // SimpleProperty (if possible) if ( ! _members.setValue(key, val, *this) ) { - log_error(_("Attempt to set read-only property ``%s''" + IF_VERBOSE_ASCODING_ERRORS( + log_aserror(_("Attempt to set read-only property ``%s''" " on object ``%p''"), key.c_str(), (void*)this); + ); } } @@ -248,7 +251,7 @@ if ( ! _members.setValue(keylower, val, *this) ) { log_error(_("Attempt to initialize read-only property ``%s''" - " (%s) on object ``%p''"), + " (%s) on object ``%p'' twice"), keylower.c_str(), key.c_str(), (void*)this); // We shouldn't attempt to initialize a member twice, should we ? assert(0); @@ -262,7 +265,7 @@ if ( ! _members.setValue(key, val, *this) ) { log_error(_("Attempt to initialize read-only property ``%s''" - " on object ``%p''"), + " on object ``%p'' twice"), key.c_str(), (void*)this); // We shouldn't attempt to initialize a member twice, should we ? assert(0); @@ -418,10 +421,12 @@ // set_member_flags will take care of case conversion if ( ! set_member_flags(prop.c_str(), set_true, set_false) ) { - log_error(_("Can't set propflags on object " + IF_VERBOSE_ASCODING_ERRORS( + log_aserror(_("Can't set propflags on object " "property %s " "(either not found or protected)"), prop.c_str()); + ); } if ( next_comma == std::string::npos ) From MAILER-DAEMON Sat Jun 02 05:54:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuQJX-0004Nx-L5 for mharc-gnash-commit@gnu.org; Sat, 02 Jun 2007 05:54:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuQJV-0004Nm-EK for gnash-commit@gnu.org; Sat, 02 Jun 2007 05:54:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuQJT-0004MV-UT for gnash-commit@gnu.org; Sat, 02 Jun 2007 05:54:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuQJT-0004MI-R7 for gnash-commit@gnu.org; Sat, 02 Jun 2007 05:54:23 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuQJT-000194-EL for gnash-commit@gnu.org; Sat, 02 Jun 2007 05:54:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuQJS-0005nE-OK for gnash-commit@gnu.org; Sat, 02 Jun 2007 09:54:22 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HuQJS-0005n8-8L for gnash-commit@gnu.org; Sat, 02 Jun 2007 09:54:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Sat, 02 Jun 2007 09:54:22 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_ogl.cpp ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 09:54:25 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/02 09:54:21 Modified files: . : ChangeLog backend : render_handler_ogl.cpp libbase : log.cpp macros : opengl.m4 server/asobj : Date.cpp Log message: * backend/render_handler_ogl.cpp,libbase/log.cpp, macros/opengl.m4, server/asobj/Date.cpp: Fixes for builing on win32/MSYS/mingw. Linking is still broken. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3440&r2=1.3441 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_ogl.cpp?cvsroot=gnash&r1=1.73&r2=1.74 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/opengl.m4?cvsroot=gnash&r1=1.32&r2=1.33 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Date.cpp?cvsroot=gnash&r1=1.45&r2=1.46 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3440 retrieving revision 1.3441 diff -u -b -r1.3440 -r1.3441 --- ChangeLog 2 Jun 2007 06:50:06 -0000 1.3440 +++ ChangeLog 2 Jun 2007 09:54:18 -0000 1.3441 @@ -1,3 +1,9 @@ +2007-06-02 Tomas Groth Christensen + + * backend/render_handler_ogl.cpp,libbase/log.cpp, macros/opengl.m4, + server/asobj/Date.cpp: Fixes for builing on win32/MSYS/mingw. + Linking is still broken. + 2007-06-02 Sandro Santilli * server/vm/ASHandlers.cpp (CommonGetUrl): log about _level# Index: backend/render_handler_ogl.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_ogl.cpp,v retrieving revision 1.73 retrieving revision 1.74 diff -u -b -r1.73 -r1.74 --- backend/render_handler_ogl.cpp 3 May 2007 23:47:21 -0000 1.73 +++ backend/render_handler_ogl.cpp 2 Jun 2007 09:54:20 -0000 1.74 @@ -5,7 +5,7 @@ // A render_handler that uses SDL & OpenGL -/* $Id: render_handler_ogl.cpp,v 1.73 2007/05/03 23:47:21 nihilus Exp $ */ +/* $Id: render_handler_ogl.cpp,v 1.74 2007/06/02 09:54:20 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -32,7 +32,11 @@ #include #else # include +# ifdef WIN32 +# define GL_CLAMP_TO_EDGE 0x812F +# else # include +# endif # include # ifndef APIENTRY # define APIENTRY Index: libbase/log.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/log.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- libbase/log.cpp 31 May 2007 12:34:45 -0000 1.52 +++ libbase/log.cpp 2 Jun 2007 09:54:20 -0000 1.53 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: log.cpp,v 1.52 2007/05/31 12:34:45 strk Exp $ */ +/* $Id: log.cpp,v 1.53 2007/06/02 09:54:20 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -33,6 +33,8 @@ #if defined(_WIN32) && defined(WIN32) // Required for SYSTEMTIME definitions # include +# include +# include #else # include #endif Index: macros/opengl.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/opengl.m4,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- macros/opengl.m4 12 May 2007 09:59:44 -0000 1.32 +++ macros/opengl.m4 2 Jun 2007 09:54:20 -0000 1.33 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: opengl.m4,v 1.32 2007/05/12 09:59:44 tgc Exp $ +dnl $Id: opengl.m4,v 1.33 2007/06/02 09:54:20 tgc Exp $ AC_DEFUN([GNASH_PATH_OPENGL], [ @@ -80,7 +80,7 @@ ac_cv_path_opengl_lib="-L`(cd ${with_opengl_lib}; pwd)` -lGL -lGLU" else if test -f ${with_opengl_lib}/libopengl32.a; then - ac_cv_path_opengl_lib="-L`(cd ${with_opengl_lib}; pwd) -lopengl32 -lglu32`" + ac_cv_path_opengl_lib="-L`(cd ${with_opengl_lib}; pwd)` -lopengl32 -lglu32" else AC_MSG_ERROR([${with_opengl_lib} directory doesn't contain libGL.]) fi Index: server/asobj/Date.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Date.cpp,v retrieving revision 1.45 retrieving revision 1.46 diff -u -b -r1.45 -r1.46 --- server/asobj/Date.cpp 17 May 2007 22:55:58 -0000 1.45 +++ server/asobj/Date.cpp 2 Jun 2007 09:54:21 -0000 1.46 @@ -89,6 +89,7 @@ #if defined(_WIN32) || defined(WIN32) # define snprintf _snprintf +# include #else # include #endif From MAILER-DAEMON Sat Jun 02 14:20:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HuYCr-00011U-Ac for mharc-gnash-commit@gnu.org; Sat, 02 Jun 2007 14:20:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HuYCp-00011H-IT for gnash-commit@gnu.org; Sat, 02 Jun 2007 14:20:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuYCo-00010x-Mw for gnash-commit@gnu.org; Sat, 02 Jun 2007 14:20:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuYCo-00010u-Hx for gnash-commit@gnu.org; Sat, 02 Jun 2007 14:20:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HuYCo-00062I-8D for gnash-commit@gnu.org; Sat, 02 Jun 2007 14:20:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HuYCg-0003J8-Pi for gnash-commit@gnu.org; Sat, 02 Jun 2007 18:19:54 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HuYCg-0003J4-Ko for gnash-commit@gnu.org; Sat, 02 Jun 2007 18:19:54 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 02 Jun 2007 18:19:54 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server timers.cpp asobj/NetStreamFfmpeg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 18:20:03 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/02 18:19:54 Modified files: server : timers.cpp server/asobj : NetStreamFfmpeg.cpp Log message: Just a few WARNING comments (please read) and log_debugs prior to abort CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/timers.cpp?cvsroot=gnash&r1=1.31&r2=1.32 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.82&r2=1.83 Patches: Index: timers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/timers.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -u -b -r1.31 -r1.32 --- timers.cpp 28 May 2007 15:41:07 -0000 1.31 +++ timers.cpp 2 Jun 2007 18:19:54 -0000 1.32 @@ -19,7 +19,7 @@ // // -/* $Id: timers.cpp,v 1.31 2007/05/28 15:41:07 ann Exp $ */ +/* $Id: timers.cpp,v 1.32 2007/06/02 18:19:54 strk Exp $ */ #include "timers.h" #include "as_function.h" // for class as_function @@ -91,8 +91,11 @@ if (_start) { uint64_t now = tu_timer::get_profile_ticks(); - //log_msg("now: %lu", now); - assert(now > _start); + if (now <= _start) + { + log_debug("now: %lu, _start: %lu (aborting)", now, _start); + abort(); + } //printf("FIXME: %s: now is %f, start time is %f, interval is %f\n", __FUNCTION__, now, _start, _interval); if (now > _start + _interval) Index: asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.82 retrieving revision 1.83 diff -u -b -r1.82 -r1.83 --- asobj/NetStreamFfmpeg.cpp 1 Jun 2007 23:36:48 -0000 1.82 +++ asobj/NetStreamFfmpeg.cpp 2 Jun 2007 18:19:54 -0000 1.83 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.82 2007/06/01 23:36:48 bjacques Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.83 2007/06/02 18:19:54 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -124,6 +124,10 @@ delete _decodeThread; } + else + { + // WARNING: decoder might be still waiting on the decode_wait condition... + } // When closing gnash before playback is finished, the soundhandler @@ -665,7 +669,16 @@ if (ns->m_pause || (ns->m_qvideo.size() > 10 && ns->m_qaudio.size() > 10)) { - assert(ns->m_go); + if ( ! ns->m_go ) + { + log_debug("m_go=%d, m_start_onbuffer=%d, qVideoSize=%d, qAudioSize=%d", ns->m_go, ns->m_start_onbuffer, ns->m_qvideo.size(), ns->m_qaudio.size()); + // decodeFLVFrame above might set m_go to false when parsed buffer is over + // note that when parsed buffer is over decodeFLVFrame would return false, + // but the break above might still not be reached due to m_start_onbuffer + // or queue sizes not being 0. + assert(0); + break; + } #ifdef GNASH_DEBUG_THREADS log_debug("Waiting on lock.."); #endif @@ -686,6 +699,7 @@ // if the queue is full we wait until someone notifies us that data is needed. if (ns->m_pause || ((ns->m_qvideo.size() > 0 && ns->m_qaudio.size() > 0) && ns->m_unqueued_data)) { + assert ( ns->m_go ); // or we'll have a problem ending the wait... #ifdef GNASH_DEBUG_THREADS log_debug("Waiting on lock.."); #endif @@ -1276,7 +1290,11 @@ { // assert(decoding_mutex is locked by this thread!) - if (!m_pause) return; + if (!m_pause) + { + // WARNING: decoder might be still waiting on the decode_wait condition... + return; + } m_pause = false; From MAILER-DAEMON Sun Jun 03 14:17:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Huudq-0007VQ-SH for mharc-gnash-commit@gnu.org; Sun, 03 Jun 2007 14:17:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Huudo-0007V3-Uz for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:17:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Huudn-0007UP-Be for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:17:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Huudn-0007UM-8L for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:17:23 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Huudm-0004lp-WC for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:17:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Huudm-0001mj-C6 for gnash-commit@gnu.org; Sun, 03 Jun 2007 18:17:22 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Huudm-0001mf-2h for gnash-commit@gnu.org; Sun, 03 Jun 2007 18:17:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 03 Jun 2007 18:17:22 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStream.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 18:17:25 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/03 18:17:21 Modified files: . : ChangeLog server/asobj : NetStream.cpp Log message: * server/asobj/NetStream.cpp (::bufferLength): return milliseconds, as (correctly) documented. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3441&r2=1.3442 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.62&r2=1.63 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3441 retrieving revision 1.3442 diff -u -b -r1.3441 -r1.3442 --- ChangeLog 2 Jun 2007 09:54:18 -0000 1.3441 +++ ChangeLog 3 Jun 2007 18:17:18 -0000 1.3442 @@ -1,3 +1,8 @@ +2007-06-02 Sandro Santilli + + * server/asobj/NetStream.cpp (::bufferLength): return milliseconds, + as (correctly) documented. + 2007-06-02 Tomas Groth Christensen * backend/render_handler_ogl.cpp,libbase/log.cpp, macros/opengl.m4, Index: server/asobj/NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -u -b -r1.62 -r1.63 --- server/asobj/NetStream.cpp 1 Jun 2007 11:53:19 -0000 1.62 +++ server/asobj/NetStream.cpp 3 Jun 2007 18:17:20 -0000 1.63 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.62 2007/06/01 11:53:19 strk Exp $ */ +/* $Id: NetStream.cpp,v 1.63 2007/06/03 18:17:20 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -521,7 +521,8 @@ if (m_parser.get() == NULL) return 0; // m_parser will lock a mutex - return m_parser->getBufferLength()/1000; + // FLVParser::getBufferLength returns milliseconds already + return m_parser->getBufferLength(); } bool From MAILER-DAEMON Sun Jun 03 14:40:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Huv0D-0006KM-8A for mharc-gnash-commit@gnu.org; Sun, 03 Jun 2007 14:40:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Huv0B-0006K4-9c for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:40:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Huv0A-0006Je-HZ for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:40:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Huv0A-0006JZ-B5 for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:40:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Huv0A-0007Fv-14 for gnash-commit@gnu.org; Sun, 03 Jun 2007 14:40:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Huv02-0005E8-31 for gnash-commit@gnu.org; Sun, 03 Jun 2007 18:40:22 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Huv01-0005E5-T5 for gnash-commit@gnu.org; Sun, 03 Jun 2007 18:40:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 03 Jun 2007 18:40:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server/asobj NetStreamFfmpeg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 18:40:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/03 18:40:21 Modified files: server/asobj : NetStreamFfmpeg.cpp Log message: Another warnign for a possibly missed decode_wait notification CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.83&r2=1.84 Patches: Index: NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.83 retrieving revision 1.84 diff -u -b -r1.83 -r1.84 --- NetStreamFfmpeg.cpp 2 Jun 2007 18:19:54 -0000 1.83 +++ NetStreamFfmpeg.cpp 3 Jun 2007 18:40:21 -0000 1.84 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.83 2007/06/02 18:19:54 strk Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.84 2007/06/03 18:40:21 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -738,7 +738,11 @@ log_debug(" obtained (audio_streamer)"); #endif - if (!ns->m_go || ns->m_pause) return false; + if (!ns->m_go || ns->m_pause) + { + // WARNING: decoder might be still waiting on the decode_wait condition... + return false; + } while (len > 0 && ns->m_qaudio.size() > 0) { From MAILER-DAEMON Mon Jun 04 04:10:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hv7eA-0005Jj-T3 for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 04:10:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hv7e9-0005HR-I4 for gnash-commit@gnu.org; Mon, 04 Jun 2007 04:10:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hv7e8-0005F1-1w for gnash-commit@gnu.org; Mon, 04 Jun 2007 04:10:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hv7e7-0005Eu-SQ for gnash-commit@gnu.org; Mon, 04 Jun 2007 04:10:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hv7e6-0008EN-I0 for gnash-commit@gnu.org; Mon, 04 Jun 2007 04:10:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hv7e0-0007Gb-8A for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:10:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hv7dz-0007GY-Vh for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:10:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 08:10:27 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/timers.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 08:10:37 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 08:10:27 Modified files: . : ChangeLog server : timers.cpp Log message: * server/timers.cpp (expired): allow now == _start. Hopefully fixes bug #20047. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3442&r2=1.3443 http://cvs.savannah.gnu.org/viewcvs/gnash/server/timers.cpp?cvsroot=gnash&r1=1.32&r2=1.33 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3442 retrieving revision 1.3443 diff -u -b -r1.3442 -r1.3443 --- ChangeLog 3 Jun 2007 18:17:18 -0000 1.3442 +++ ChangeLog 4 Jun 2007 08:10:26 -0000 1.3443 @@ -1,3 +1,8 @@ +2007-06-04 Sandro Santilli + + * server/timers.cpp (expired): allow now == _start. + Hopefully fixes bug #20047. + 2007-06-02 Sandro Santilli * server/asobj/NetStream.cpp (::bufferLength): return milliseconds, Index: server/timers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/timers.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- server/timers.cpp 2 Jun 2007 18:19:54 -0000 1.32 +++ server/timers.cpp 4 Jun 2007 08:10:27 -0000 1.33 @@ -19,7 +19,7 @@ // // -/* $Id: timers.cpp,v 1.32 2007/06/02 18:19:54 strk Exp $ */ +/* $Id: timers.cpp,v 1.33 2007/06/04 08:10:27 strk Exp $ */ #include "timers.h" #include "as_function.h" // for class as_function @@ -91,11 +91,7 @@ if (_start) { uint64_t now = tu_timer::get_profile_ticks(); - if (now <= _start) - { - log_debug("now: %lu, _start: %lu (aborting)", now, _start); - abort(); - } + assert(now >= _start); // it is possible for now to be == _start //printf("FIXME: %s: now is %f, start time is %f, interval is %f\n", __FUNCTION__, now, _start, _interval); if (now > _start + _interval) From MAILER-DAEMON Mon Jun 04 05:04:48 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hv8Ua-00036E-3P for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 05:04:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hv8UW-00034l-Ve for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:04:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hv8UU-00033H-Mr for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:04:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hv8UT-000331-Rt for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:04:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hv8UQ-00074v-UL for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:04:40 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hv8UL-0003GK-AW for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:04:33 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hv8UL-0003GH-4t for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:04:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 09:04:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStreamFfmpeg.cp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 09:04:45 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 09:04:32 Modified files: . : ChangeLog server/asobj : NetStreamFfmpeg.cpp NetStreamFfmpeg.h Log message: * server/asobj/NetStreamFfmpeg.{cpp,h}: Drop the decoder mutex and conditional variable. Decoder should never stop till the end of the stream is fully decoder. Rename {pause,unpause}Decoding to {pause,unpause}Playback, which is matches reality more, and is also more correct. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3443&r2=1.3444 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.84&r2=1.85 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.h?cvsroot=gnash&r1=1.44&r2=1.45 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3443 retrieving revision 1.3444 diff -u -b -r1.3443 -r1.3444 --- ChangeLog 4 Jun 2007 08:10:26 -0000 1.3443 +++ ChangeLog 4 Jun 2007 09:04:32 -0000 1.3444 @@ -1,5 +1,13 @@ 2007-06-04 Sandro Santilli + * server/asobj/NetStreamFfmpeg.{cpp,h}: Drop the decoder mutex and + conditional variable. Decoder should never stop till the end of + the stream is fully decoder. Rename {pause,unpause}Decoding to + {pause,unpause}Playback, which is matches reality more, and is + also more correct. + +2007-06-04 Sandro Santilli + * server/timers.cpp (expired): allow now == _start. Hopefully fixes bug #20047. Index: server/asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.84 retrieving revision 1.85 diff -u -b -r1.84 -r1.85 --- server/asobj/NetStreamFfmpeg.cpp 3 Jun 2007 18:40:21 -0000 1.84 +++ server/asobj/NetStreamFfmpeg.cpp 4 Jun 2007 09:04:32 -0000 1.85 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.84 2007/06/03 18:40:21 strk Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.85 2007/06/04 09:04:32 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -91,13 +91,13 @@ if (mode == -1) { - if (m_pause) unpauseDecoding(); - else pauseDecoding(); + if (m_pause) unpausePlayback(); + else pausePlayback(); } else { - if (mode == 0) pauseDecoding(); - else unpauseDecoding(); + if (mode == 0) pausePlayback(); + else unpausePlayback(); } if (!m_pause && !m_go) { setStatus(playStart); @@ -112,23 +112,15 @@ if (m_go) { - // terminate thread + // request decoder thread termination m_go = false; -#ifdef GNASH_DEBUG_THREADS - log_debug("Waking up decoder thread on close()"); -#endif - decode_wait.notify_one(); // wait till thread is complete before main continues _decodeThread->join(); + delete _decodeThread; } - else - { - // WARNING: decoder might be still waiting on the decode_wait condition... - } - // When closing gnash before playback is finished, the soundhandler // seems to be removed before netstream is destroyed. @@ -225,7 +217,7 @@ // Is it already playing ? if (m_go) { - if (m_pause) unpauseDecoding(); + unpausePlayback(); // will check for m_pause itself.. return; } @@ -245,7 +237,7 @@ } m_go = true; - pauseDecoding(); + pausePlayback(); // This starts the decoding thread _decodeThread = new boost::thread(boost::bind(NetStreamFfmpeg::av_streamer, this)); @@ -574,7 +566,7 @@ } - unpauseDecoding(); + unpausePlayback(); return true; } @@ -607,14 +599,6 @@ { //GNASH_REPORT_FUNCTION; -#ifdef GNASH_DEBUG_THREADS - log_debug("Thread %d locking on ::av_streamer", pthread_self()); -#endif - boost::mutex::scoped_lock lock(ns->decoding_mutex); -#ifdef GNASH_DEBUG_THREADS - log_debug(" obtained (av_streamer)"); -#endif - // This should only happen if close() is called before this thread is ready if (!ns->m_go) { @@ -667,26 +651,6 @@ } } - if (ns->m_pause || (ns->m_qvideo.size() > 10 && ns->m_qaudio.size() > 10)) - { - if ( ! ns->m_go ) - { - log_debug("m_go=%d, m_start_onbuffer=%d, qVideoSize=%d, qAudioSize=%d", ns->m_go, ns->m_start_onbuffer, ns->m_qvideo.size(), ns->m_qaudio.size()); - // decodeFLVFrame above might set m_go to false when parsed buffer is over - // note that when parsed buffer is over decodeFLVFrame would return false, - // but the break above might still not be reached due to m_start_onbuffer - // or queue sizes not being 0. - assert(0); - break; - } -#ifdef GNASH_DEBUG_THREADS - log_debug("Waiting on lock.."); -#endif - ns->decode_wait.wait(lock); -#ifdef GNASH_DEBUG_THREADS - log_debug("Finished waiting."); -#endif - } } else { // If we have problems with decoding - break @@ -695,19 +659,6 @@ break; } - // If paused, wait for being unpaused, or - // if the queue is full we wait until someone notifies us that data is needed. - if (ns->m_pause || ((ns->m_qvideo.size() > 0 && ns->m_qaudio.size() > 0) && ns->m_unqueued_data)) - { - assert ( ns->m_go ); // or we'll have a problem ending the wait... -#ifdef GNASH_DEBUG_THREADS - log_debug("Waiting on lock.."); -#endif - ns->decode_wait.wait(lock); -#ifdef GNASH_DEBUG_THREADS - log_debug("Finished waiting."); -#endif - } } } @@ -730,17 +681,8 @@ NetStreamFfmpeg* ns = static_cast(owner); -#ifdef GNASH_DEBUG_THREADS - log_debug("Thread %d locking on ::audio_streamer", pthread_self()); -#endif - boost::mutex::scoped_lock lock(ns->decoding_mutex); -#ifdef GNASH_DEBUG_THREADS - log_debug(" obtained (audio_streamer)"); -#endif - if (!ns->m_go || ns->m_pause) { - // WARNING: decoder might be still waiting on the decode_wait condition... return false; } @@ -748,16 +690,6 @@ { raw_mediadata_t* samples = ns->m_qaudio.front(); - // If less than 3 frames in the queue notify the decoding thread - // so that we don't suddenly run out. - if (ns->m_qaudio.size() < 3) - { -#ifdef GNASH_DEBUG_THREADS - log_debug("Waking up decoder thread from audio_streamer due to short qaudio size (%lu)", static_cast(ns->m_qaudio.size())); -#endif - ns->decode_wait.notify_one(); - } - int n = imin(samples->m_size, len); memcpy(stream, samples->m_ptr, n); stream += n; @@ -797,7 +729,7 @@ // Stop! m_go = false; } else { - pauseDecoding(); + pausePlayback(); setStatus(bufferEmpty); m_start_onbuffer = true; } @@ -1005,13 +937,6 @@ bool NetStreamFfmpeg::decodeMediaFrame() { -#ifdef GNASH_DEBUG_THREADS - log_debug("Thread %d locking on ::decodeMediaFrame", pthread_self()); -#endif - boost::mutex::scoped_lock lock(decoding_mutex); -#ifdef GNASH_DEBUG_THREADS - log_debug(" obtained (decodeMediaFrame)"); -#endif if (m_unqueued_data) { @@ -1161,14 +1086,9 @@ // will return NULL if empty(). See multithread_queue::front raw_mediadata_t* video = m_qvideo.front(); - // If the queue is empty, we tell the decoding thread to wake up, - // and decode some more. + // If the queue is empty we have nothing to do if (!video) { -#ifdef GNASH_DEBUG_THREADS - log_debug("Waking up decoder thread from refreshVideoFrame due to empty video queue"); -#endif - decode_wait.notify_one(); return; } @@ -1210,15 +1130,6 @@ return; } - // If less than 3 frames in the queue notify the decoding thread - // so that we don't suddenly run out. - if (m_qvideo.size() < 3) - { -#ifdef GNASH_DEBUG_THREADS - log_debug("Waking up decoder thread from refreshVideoFrame due short video queue (%lu)", static_cast(m_qvideo.size())); -#endif - decode_wait.notify_one(); - } } } @@ -1226,13 +1137,6 @@ void NetStreamFfmpeg::advance() { -#ifdef GNASH_DEBUG_THREADS - log_debug("Thread %d locking on ::advance", pthread_self()); -#endif - boost::mutex::scoped_lock lock(decoding_mutex); -#ifdef GNASH_DEBUG_THREADS - log_debug(" obtained (advance)"); -#endif // Make sure al decoding has stopped // This can happen in 2 cases: @@ -1247,7 +1151,7 @@ log_debug("(advance): setting buffer full"); #endif setStatus(bufferFull); - unpauseDecoding(); + unpausePlayback(); m_start_onbuffer = false; } @@ -1276,12 +1180,10 @@ } } -void NetStreamFfmpeg::pauseDecoding() +void NetStreamFfmpeg::pausePlayback() { //GNASH_REPORT_FUNCTION - // assert(decoding_mutex is locked by this thread!) - if (m_pause) return; m_pause = true; @@ -1290,13 +1192,10 @@ m_time_of_pause = tu_timer::get_ticks(); } -void NetStreamFfmpeg::unpauseDecoding() +void NetStreamFfmpeg::unpausePlayback() { - // assert(decoding_mutex is locked by this thread!) - - if (!m_pause) + if (!m_pause) // already not paused { - // WARNING: decoder might be still waiting on the decode_wait condition... return; } @@ -1310,13 +1209,8 @@ m_start_clock += tu_timer::get_ticks() - m_time_of_pause; } - // Notify the decode thread/loop that we are running again -#ifdef GNASH_DEBUG_THREADS - log_debug("Waking up decoder thread from unpauseDecoding..."); -#endif - decode_wait.notify_one(); - - // Re-connect to the soundhandler + // Re-connect to the soundhandler. + // It was disconnected to avoid to keep playing sound while paused sound_handler* s = get_sound_handler(); if (s) s->attach_aux_streamer(audio_streamer, (void*) this); } Index: server/asobj/NetStreamFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.h,v retrieving revision 1.44 retrieving revision 1.45 diff -u -b -r1.44 -r1.45 --- server/asobj/NetStreamFfmpeg.h 31 May 2007 15:52:28 -0000 1.44 +++ server/asobj/NetStreamFfmpeg.h 4 Jun 2007 09:04:32 -0000 1.45 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: NetStreamFfmpeg.h,v 1.44 2007/05/31 15:52:28 tgc Exp $ */ +/* $Id: NetStreamFfmpeg.h,v 1.45 2007/06/04 09:04:32 strk Exp $ */ #ifndef __NETSTREAMFFMPEG_H__ #define __NETSTREAMFFMPEG_H__ @@ -235,45 +235,37 @@ NetStreamFfmpeg(); ~NetStreamFfmpeg(); - // Locks decoding_mutex - // - /// does NOT lock decoding_mutex, intended to be called - /// by ::advance which locks and by destructor (locking in destructor might be needed) - /// + // See dox in NetStream.h void close(); - /// Locks decoding_mutex - // - /// does NOT lock decoding_mutex, intended to be only called - /// by ::advance, itself locking. - /// + // See dox in NetStream.h void pause(int mode); - /// does NOT lock decoding_mutex, intended to be only called - /// by ::advance, itself locking. - /// + // See dox in NetStream.h void play(const std::string& source); - /// does NOT lock decoding_mutex. Users: - /// - ::advance (VM), itself locking - /// - ::startPlayback() non locking but called by av_streamer which locks - /// - ::seekMedia() set as a callback with init_put_byte (??) - /// + // See dox in NetStream.h + // + // Users: + // - ::advance (VM), itself locking + // - ::startPlayback() non locking but called by av_streamer which locks + // - ::seekMedia() set as a callback with init_put_byte (??) + // void seek(uint32_t pos); + // See dox in NetStream.h int32_t time(); - // Locks decoding_mutex + // See dox in NetStream.h void advance(); // Used for ffmpeg data read and seek callbacks with non-FLV static int readPacket(void* opaque, uint8_t* buf, int buf_size); + + // Used for ffmpeg data read and seek callbacks with non-FLV static offset_t seekMedia(void *opaque, offset_t offset, int whence); /// The decoding thread. Sets up the decoder, and decodes. - // - /// Locks decoding_mutex - /// static void av_streamer(NetStreamFfmpeg* ns); /// Callback used by sound_handler to get audio data @@ -282,8 +274,6 @@ /// /// It will be invoked by a separate thread (neither main, nor decoder thread). /// - /// Locks decoding_mutex - /// static bool audio_streamer(void *udata, uint8_t *stream, int len); private: @@ -291,28 +281,29 @@ // Setups the playback bool startPlayback(); - // Pauses the decoding - don't directly modify m_pause!! + // Pauses the playhead // - // does NOT lock decoding_mutex. Users: - // - ::decodeFLVFrame() not locking byt called by av_streamer which locks - // - ::pause() not locking but called by ::advance - // - ::play() not locking but called by ::advance which locks + // Users: + // - ::decodeFLVFrame() + // - ::pause() + // - ::play() // - void pauseDecoding(); + void pausePlayback(); - // Unpauses/resumes the decoding - don't directly modify m_pause!! + // Resumes the playback // - // does NOT lock decoding_mutex. Users: - // - ::av_streamer() which locks - // - ::play() not locking but called by ::advance which locks - // - ::startPlayback() not locking but called by ::av_streamer - // - ::advance() which locks + // Users: + // - ::av_streamer() + // - ::play() + // - ::startPlayback() + // - ::advance() // - void unpauseDecoding(); + void unpausePlayback(); /// Update the image/videoframe to be returned by next get_video() call. // - /// Does NOT lock decoding_mutex, uses by ::advance() which locks. + /// Uses by ::advance(). + /// /// Note that get_video will be called by video_stream_instance::display, which /// is usually called right after video_stream_instance::advance, so the result /// is that refreshVideoFrame() is called right before get_video(). This is important @@ -325,7 +316,7 @@ // Used to decode push the next available FLV frame to the audio or video queue // - // does NOT lock decoding_mutex, uses by ::advance() which locks + // Uses by ::advance(). // bool decodeFLVFrame(); @@ -363,16 +354,6 @@ // The decoding thread boost::thread* _decodeThread; - // Mutex used to make sure things arn't messed up when seeking and decoding (is it really necessary?) - boost::mutex decoding_mutex; - - // Condition used to pause the decoding thread/loop when - // playback is paused, or when the video and audio queues are full - // - // Associated with the decoding_mutex - // - boost::condition decode_wait; - // The timestamp of the last decoded video frame, in seconds. volatile uint32_t m_last_video_timestamp; From MAILER-DAEMON Mon Jun 04 05:15:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hv8fJ-0005Lb-6c for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 05:15:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hv8fH-0005LW-D4 for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:15:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hv8fF-0005LA-St for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:15:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hv8fF-0005L5-Kq for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:15:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hv8fE-0000DC-9o for gnash-commit@gnu.org; Mon, 04 Jun 2007 05:15:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hv8f8-0003jf-0k for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:15:42 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hv8f7-0003jc-Pe for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:15:41 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 09:15:41 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/FLVParser.cpp libbase/F... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 09:15:51 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 09:15:41 Modified files: . : ChangeLog libbase : FLVParser.cpp FLVParser.h Log message: * libbase/FLVParser.{cpp,h}: put FLVParser in the gnash namespace. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3444&r2=1.3445 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/FLVParser.cpp?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/FLVParser.h?cvsroot=gnash&r1=1.13&r2=1.14 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3444 retrieving revision 1.3445 diff -u -b -r1.3444 -r1.3445 --- ChangeLog 4 Jun 2007 09:04:32 -0000 1.3444 +++ ChangeLog 4 Jun 2007 09:15:40 -0000 1.3445 @@ -1,5 +1,9 @@ 2007-06-04 Sandro Santilli + * libbase/FLVParser.{cpp,h}: put FLVParser in the gnash namespace. + +2007-06-04 Sandro Santilli + * server/asobj/NetStreamFfmpeg.{cpp,h}: Drop the decoder mutex and conditional variable. Decoder should never stop till the end of the stream is fully decoder. Rename {pause,unpause}Decoding to Index: libbase/FLVParser.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/FLVParser.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- libbase/FLVParser.cpp 31 May 2007 14:30:03 -0000 1.20 +++ libbase/FLVParser.cpp 4 Jun 2007 09:15:41 -0000 1.21 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: FLVParser.cpp,v 1.20 2007/05/31 14:30:03 strk Exp $ +// $Id: FLVParser.cpp,v 1.21 2007/06/04 09:15:41 strk Exp $ #include "FLVParser.h" #include "amf.h" @@ -28,6 +28,8 @@ // Define the following macro the have seek() operations printed //#define GNASH_DEBUG_SEEK 1 +namespace gnash { + FLVParser::FLVParser(LoadThread& lt) : _lt(lt), @@ -668,4 +670,6 @@ return (in[0] << 16) | (in[1] << 8) | in[2]; } +} // end of gnash namespace + #undef PADDING_BYTES Index: libbase/FLVParser.h =================================================================== RCS file: /sources/gnash/gnash/libbase/FLVParser.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- libbase/FLVParser.h 30 May 2007 12:48:21 -0000 1.13 +++ libbase/FLVParser.h 4 Jun 2007 09:15:41 -0000 1.14 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: FLVParser.h,v 1.13 2007/05/30 12:48:21 strk Exp $ +// $Id: FLVParser.h,v 1.14 2007/06/04 09:15:41 strk Exp $ // Information about the FLV format can be found at http://osflash.org/flv @@ -28,6 +28,8 @@ #include #include +namespace gnash { + enum videoCodecType { VIDEO_CODEC_H263 = 2, // H263/SVQ3 video codec @@ -330,4 +332,6 @@ boost::mutex _mutex; }; +} // end of gnash namespace + #endif // __FLVPARSER_H__ From MAILER-DAEMON Mon Jun 04 08:02:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvBGS-0001KU-2i for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 08:02:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvBGP-0001HW-Oq for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:02:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvBGN-0001F7-Jn for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:02:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvBGN-0001Ev-40 for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:02:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvBGM-0001HS-60 for gnash-commit@gnu.org; Mon, 04 Jun 2007 08:02:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvBGL-0007Pu-39 for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:17 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvBGK-0007Pq-Fw for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:16 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 12:02:16 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/FLVParser.h server/asob... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 12:02:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 12:02:16 Modified files: . : ChangeLog libbase : FLVParser.h server/asobj : NetStreamFfmpeg.h Log message: * libbase/FLVParser.h: updated dox for nextAudioFrame() and nextVideoFrame() noting the non-blocking nature of the calls; add a parsingCompleted() method. * server/asobj/NetStreamFfmpeg.h: update documentation of decodeFLVFrame() CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3445&r2=1.3446 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/FLVParser.h?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.h?cvsroot=gnash&r1=1.45&r2=1.46 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3445 retrieving revision 1.3446 diff -u -b -r1.3445 -r1.3446 --- ChangeLog 4 Jun 2007 09:15:40 -0000 1.3445 +++ ChangeLog 4 Jun 2007 12:02:15 -0000 1.3446 @@ -1,5 +1,13 @@ 2007-06-04 Sandro Santilli + * libbase/FLVParser.h: updated dox for nextAudioFrame() and + nextVideoFrame() noting the non-blocking nature of the calls; + add a parsingCompleted() method. + * server/asobj/NetStreamFfmpeg.h: update documentation of + decodeFLVFrame() + +2007-06-04 Sandro Santilli + * libbase/FLVParser.{cpp,h}: put FLVParser in the gnash namespace. 2007-06-04 Sandro Santilli Index: libbase/FLVParser.h =================================================================== RCS file: /sources/gnash/gnash/libbase/FLVParser.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- libbase/FLVParser.h 4 Jun 2007 09:15:41 -0000 1.14 +++ libbase/FLVParser.h 4 Jun 2007 12:02:15 -0000 1.15 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: FLVParser.h,v 1.14 2007/06/04 09:15:41 strk Exp $ +// $Id: FLVParser.h,v 1.15 2007/06/04 12:02:15 strk Exp $ // Information about the FLV format can be found at http://osflash.org/flv @@ -189,23 +189,36 @@ FLVFrame* nextMediaFrame(); /// \brief - /// Returns the next audio frame in the timeline. If no frame has been - /// played before the first frame is returned. If there is no more frames - /// in the timeline NULL is returned. + /// Returns the next audio frame in the parsed buffer. // + /// If no frame has been played before the first frame is returned. + /// If there is no more frames in the parsed buffer NULL is returned, + /// you can check with parsingCompleted() to know wheter this is due to + /// EOF reached. + /// /// Locks the _mutex /// FLVFrame* nextAudioFrame(); /// \brief - /// Returns the next video frame in the timeline. If no frame has been - /// played before the first frame is returned. If there is no more frames - /// in the timeline NULL is returned. + /// Returns the next video frame in the parsed buffer. // + /// If no frame has been played before the first frame is returned. + /// If there is no more frames in the parsed buffer NULL is returned. + /// you can check with parsingCompleted() to know wheter this is due to + /// EOF reached. + /// /// Locks the _mutex /// FLVFrame* nextVideoFrame(); + /// Return true of parsing is completed + // + /// If this function returns true, any call to nextVideoFrame() or nextAudioFrame + /// will always return NULL + /// + bool parsingCompleted() const { return _parsingComplete; } + /// Returns a FLVVideoInfo class about the videostream // /// Locks the _mutex Index: server/asobj/NetStreamFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -b -r1.45 -r1.46 --- server/asobj/NetStreamFfmpeg.h 4 Jun 2007 09:04:32 -0000 1.45 +++ server/asobj/NetStreamFfmpeg.h 4 Jun 2007 12:02:16 -0000 1.46 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: NetStreamFfmpeg.h,v 1.45 2007/06/04 09:04:32 strk Exp $ */ +/* $Id: NetStreamFfmpeg.h,v 1.46 2007/06/04 12:02:16 strk Exp $ */ #ifndef __NETSTREAMFFMPEG_H__ #define __NETSTREAMFFMPEG_H__ @@ -314,10 +314,18 @@ // Used to decode and push the next available (non-FLV) frame to the audio or video queue bool decodeMediaFrame(); - // Used to decode push the next available FLV frame to the audio or video queue - // - // Uses by ::advance(). + /// Used to decode push the next available FLV frame to the audio or video queue // + /// Called by ::av_streamer to buffer more a/v frames when possible. + /// + /// This is a non-blocking call, if data isn't available in the parser no + /// new frame is decoded and this method returns false. Note that this doesn't + /// necessarely means the FLV stream is ended, rather it is possible the loader + /// thread is starving. + /// + /// TODO: return a more informative value to distinguish between EOF and starving + /// conditions ? + /// bool decodeFLVFrame(); // Used to decode a video frame and push it on the videoqueue From MAILER-DAEMON Mon Jun 04 09:36:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvCjm-0003Tp-IG for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 09:36:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvCjk-0003TZ-Oi for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:36:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvCjk-0003TN-1O for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:36:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvCjj-0003TK-Rx for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:36:43 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvCjj-0002ym-AP for gnash-commit@gnu.org; Mon, 04 Jun 2007 09:36:43 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l54DaZU4026099; Mon, 4 Jun 2007 15:36:38 +0200 Date: Mon, 4 Jun 2007 15:36:36 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1322206542.20070604153636@nova-sys.net> To: Rob Savoye Subject: Re[2]: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml In-Reply-To: <465EFEF6.5080308@welcomehome.org> References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 13:36:45 -0000 Hello Rob, Thursday, May 31, 2007, 6:59:34 PM, you wrote: RS> For the desktop, OpenGL is the backend of choice. Well, you say that and give performance priority (which, by the way, contradicts with all other considerations where quality is more important). That said, I'd love to see someone improving OpenGL rendering quality. Quinn Storm seems to be the only one working on OpenGL backend... RS> I don't see RS> this changing till the AGG or Cairo backends have close to the same RS> level of performance for video. There are quite a few plans for improving AGG performance (bottleneck is probably X server, not AGG itself), but AFAIK we're not optimising yet... Udo From MAILER-DAEMON Mon Jun 04 10:31:37 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvDar-0005z5-5k for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 10:31:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvDaq-0005z0-44 for gnash-commit@gnu.org; Mon, 04 Jun 2007 10:31:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvDao-0005yo-41 for gnash-commit@gnu.org; Mon, 04 Jun 2007 10:31:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvDan-0005yl-Ua for gnash-commit@gnu.org; Mon, 04 Jun 2007 10:31:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvDan-0000gV-KW for gnash-commit@gnu.org; Mon, 04 Jun 2007 10:31:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvDal-0002GM-PV for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:31:31 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvDal-0002GI-HD for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:31:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 14:31:31 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStreamFfmpeg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 14:31:36 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 14:31:31 Modified files: . : ChangeLog server/asobj : NetStreamFfmpeg.cpp Log message: * server/asobj/NetStreamFfmpeg.cpp (av_streamer): sleep for 1 microsecond between iterations, to allow other threads to run. Fixes the 100% CPU problem (thanks to UdoG for support). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3446&r2=1.3447 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.85&r2=1.86 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3446 retrieving revision 1.3447 diff -u -b -r1.3446 -r1.3447 --- ChangeLog 4 Jun 2007 12:02:15 -0000 1.3446 +++ ChangeLog 4 Jun 2007 14:31:30 -0000 1.3447 @@ -1,5 +1,11 @@ 2007-06-04 Sandro Santilli + * server/asobj/NetStreamFfmpeg.cpp (av_streamer): sleep for 1 + microsecond between iterations, to allow other threads to run. + Fixes the 100% CPU problem (thanks to UdoG for support). + +2007-06-04 Sandro Santilli + * libbase/FLVParser.h: updated dox for nextAudioFrame() and nextVideoFrame() noting the non-blocking nature of the calls; add a parsingCompleted() method. Index: server/asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.85 retrieving revision 1.86 diff -u -b -r1.85 -r1.86 --- server/asobj/NetStreamFfmpeg.cpp 4 Jun 2007 09:04:32 -0000 1.85 +++ server/asobj/NetStreamFfmpeg.cpp 4 Jun 2007 14:31:31 -0000 1.86 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.85 2007/06/04 09:04:32 strk Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.86 2007/06/04 14:31:31 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -647,6 +647,7 @@ // If we have problems with decoding - break if (!ns->decodeFLVFrame() && ns->m_start_onbuffer == false && ns->m_qvideo.size() == 0 && ns->m_qaudio.size() == 0) { + // TODO: do we really want to break here !? break; } } @@ -661,6 +662,8 @@ } + usleep(1); // task switch, to avoid 100% CPU + } #ifdef GNASH_DEBUG_THREADS From MAILER-DAEMON Mon Jun 04 12:02:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvF10-00058p-1X for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvF0z-00057h-2J for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvF0w-00056L-Dz for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvF0w-00055c-6Z for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:38 -0400 Received: from welcomehome.org ([69.15.127.230] helo=darkstar.welcomehome.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvF0v-00042v-E7 for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:02:37 -0400 Received: from bertha.welcomehome.org (bertha.welcomehome.org [192.168.2.11]) by darkstar.welcomehome.org (8.13.8/8.13.8) with ESMTP id l54G2ZLk004378; Mon, 4 Jun 2007 10:02:35 -0600 Message-ID: <4664373C.2070605@welcomehome.org> Date: Mon, 04 Jun 2007 10:01:00 -0600 From: Rob Savoye User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> In-Reply-To: <1322206542.20070604153636@nova-sys.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 3) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 16:02:41 -0000 Udo Giacomozzi wrote: > Well, you say that and give performance priority (which, by the way, > contradicts with all other considerations where quality is more > important). That said, I'd love to see someone improving OpenGL > rendering quality. Quinn Storm seems to be the only one working on > OpenGL backend... If people cared about quality, they wouldn't waste their time watching YouTube... Seriously, although we all care about the quality, most other people (read, not developers) will just use Gnash for ads on web pages, navigating web sites, or wasting time watching video. We are only really talking about people that build Gnash from source, and just use all the configure defaults. The people that build binary distributions of Gnash will configure it however they feel like, as my experience is they prefer to supply all relevant options themselves, and not rely on the default behavior being correct. So we can argue all we want about the default, but the fact is it's a minor issue. Quinn's tasks for Gnash are to focus on the graphics end of Gnash. Initially fixing OpenGL and Cairo, but ultimately maintaining all the renderer backends, so we can all focus on other parts of Gnash. - rob - From MAILER-DAEMON Mon Jun 04 12:45:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvFgk-0002Rw-0D for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 12:45:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvFgi-0002Pm-2V for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:45:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvFgf-0002NN-II for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:45:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFge-0002NB-Ql for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:45:44 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvFge-0001EV-9Q for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:45:44 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l54GjdU4003907; Mon, 4 Jun 2007 18:45:41 +0200 Date: Mon, 4 Jun 2007 18:45:39 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <488797587.20070604184539@nova-sys.net> To: Rob Savoye Subject: Re[2]: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml In-Reply-To: <4664373C.2070605@welcomehome.org> References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 16:45:48 -0000 Hello Rob, Monday, June 4, 2007, 6:01:00 PM, you wrote: RS> If people cared about quality, they wouldn't waste their time watching RS> YouTube... Seriously, although we all care about the quality, most other RS> people (read, not developers) will just use Gnash for ads on web pages, RS> navigating web sites, or wasting time watching video. We are only really RS> talking about people that build Gnash from source, and just use all the RS> configure defaults. It's just about knowing in what direction we want to go. As you said, it is *not* performance what we want right now, but you make an exception for OpenGL... So, I can't follow your argumentation. There is not only YouTube, Flash is used for a lot of other movies ;) Just like your commit that slowed Gnash down by 75% (!) and nobody seems to care about. It's okay for me since we (as a team, I personally have other priorities) decided to not focus on performance but then we should decide what we want. BTW, is AGG really so much slower when playing YouTube so that one notices the difference? RS> The people that build binary distributions of Gnash RS> will configure it however they feel like, as my experience is they RS> prefer to supply all relevant options themselves, and not rely on the RS> default behavior being correct. So all this discussion is unnecessary? RS> So we can argue all we want about the default, but the fact is RS> it's a minor issue. Agree. I personally don't care about the release details, but I'd like that we all agree on priorities. It's pointless to fiddle with tiny details (TimelineInfo) when the render fails on simple rendering tasks. RS> Quinn's tasks for Gnash are to focus on the graphics end of Gnash. RS> Initially fixing OpenGL and Cairo, but ultimately maintaining all the RS> renderer backends, so we can all focus on other parts of Gnash. Great! Good to know :) Udo From MAILER-DAEMON Mon Jun 04 12:59:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvFtd-00039q-Ks for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 12:59:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvFtb-00038U-S8 for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:59:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvFta-000368-R1 for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:59:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFta-00035Q-Iy for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:59:06 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvFta-00031G-51 for gnash-commit@gnu.org; Mon, 04 Jun 2007 12:59:06 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvFtY-0007vZ-HP for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:59:04 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvFtY-0007vW-Bi for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:59:04 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 16:59:04 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler.h backen... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 16:59:08 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 16:59:03 Modified files: . : ChangeLog backend : render_handler.h render_handler_agg.cpp render_handler_agg.h testsuite : MovieTester.cpp Log message: * backend/render_handler.h: expose a new getBitsPerPixel interface. * backend/render_handler_agg.{cpp,h}: implement getBitsPerPixel, const-correct the existing getBytesPerPixel. * testsuite/MovieTester.cpp (checkPixel): never use a tolerance inferior to the minimum tolerance for a renderer, with min tolerance being a function of BPP (formula suggested by UdoG). Fixes bug #20035. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3447&r2=1.3448 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler.h?cvsroot=gnash&r1=1.40&r2=1.41 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.83&r2=1.84 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.h?cvsroot=gnash&r1=1.16&r2=1.17 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.37&r2=1.38 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3447 retrieving revision 1.3448 diff -u -b -r1.3447 -r1.3448 --- ChangeLog 4 Jun 2007 14:31:30 -0000 1.3447 +++ ChangeLog 4 Jun 2007 16:59:02 -0000 1.3448 @@ -1,5 +1,15 @@ 2007-06-04 Sandro Santilli + * backend/render_handler.h: expose a new getBitsPerPixel interface. + * backend/render_handler_agg.{cpp,h}: implement getBitsPerPixel, + const-correct the existing getBytesPerPixel. + * testsuite/MovieTester.cpp (checkPixel): never use a tolerance + inferior to the minimum tolerance for a renderer, with min tolerance + being a function of BPP (formula suggested by UdoG). + Fixes bug #20035. + +2007-06-04 Sandro Santilli + * server/asobj/NetStreamFfmpeg.cpp (av_streamer): sleep for 1 microsecond between iterations, to allow other threads to run. Fixes the 100% CPU problem (thanks to UdoG for support). Index: backend/render_handler.h =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -b -r1.40 -r1.41 --- backend/render_handler.h 28 May 2007 15:40:57 -0000 1.40 +++ backend/render_handler.h 4 Jun 2007 16:59:03 -0000 1.41 @@ -18,7 +18,7 @@ // // -/* $Id: render_handler.h,v 1.40 2007/05/28 15:40:57 ann Exp $ */ +/* $Id: render_handler.h,v 1.41 2007/06/04 16:59:03 strk Exp $ */ #ifndef RENDER_HANDLER_H #define RENDER_HANDLER_H @@ -582,6 +582,19 @@ return false; } + /// Return color depth (bits per pixel) or 0 if unknown/unimplemented. + // + /// Default implementation returns 0 (unknown). + /// + /// TODO: this should be a pure abstract function, just don't want + /// to scan ogl and cairo backend for an implementation *now* + /// but would be needed for automated testing... Quinn, can you help ? + /// + virtual unsigned int getBitsPerPixel() const + { + return 0; + } + /// Sets the x/y scale for the movie virtual void set_scale(float /*xscale*/, float /*yscale*/) { // nop Index: backend/render_handler_agg.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.83 retrieving revision 1.84 diff -u -b -r1.83 -r1.84 --- backend/render_handler_agg.cpp 29 May 2007 08:49:14 -0000 1.83 +++ backend/render_handler_agg.cpp 4 Jun 2007 16:59:03 -0000 1.84 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.83 2007/05/29 08:49:14 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.84 2007/06/04 16:59:03 strk Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -1999,7 +1999,7 @@ scale.m_y = PIXELS_TO_TWIPS(yscale); } - virtual unsigned int getBytesPerPixel() { + virtual unsigned int getBytesPerPixel() const { return bpp/8; } Index: backend/render_handler_agg.h =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_agg.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- backend/render_handler_agg.h 28 May 2007 15:40:57 -0000 1.16 +++ backend/render_handler_agg.h 4 Jun 2007 16:59:03 -0000 1.17 @@ -42,7 +42,9 @@ // these methods need to be accessed from outside: virtual void init_buffer(unsigned char *mem, int size, int x, int y)=0; - virtual unsigned int getBytesPerPixel()=0; + virtual unsigned int getBytesPerPixel() const=0; + + unsigned int getBitsPerPixel() const { return getBytesPerPixel()*8; } virtual bool initTestBuffer(unsigned width, unsigned height) { int size = width * height * getBytesPerPixel(); Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -b -r1.37 -r1.38 --- testsuite/MovieTester.cpp 29 May 2007 17:15:14 -0000 1.37 +++ testsuite/MovieTester.cpp 4 Jun 2007 16:59:03 -0000 1.38 @@ -40,6 +40,7 @@ #include #include #include // for auto_ptr +#include // for ceil and exp2 #define SHOW_INVALIDATED_BOUNDS_ON_ADVANCE 1 @@ -238,22 +239,36 @@ rgba obt_col; - if ( ! rend.getRenderer().getAveragePixel(obt_col, x, y, radius) ) - //if ( ! rend.getRenderer().getPixel(obt_col, x, y) ) + render_handler& handler = rend.getRenderer(); + + if ( ! handler.getAveragePixel(obt_col, x, y, radius) ) { ss << " is out of rendering buffer"; log_msg("%sFAILED: %s (%s)", X, ss.str().c_str(), label.c_str() ); + continue; + } + + // Find minimum tolerance as a function of BPP + + unsigned short minRendererTolerance = tolerance; + unsigned int bpp = handler.getBitsPerPixel(); + if ( bpp ) + { + // UdoG: check_pixel should *always* tolerate at least 2 ^ (8 - bpp/3) + minRendererTolerance = int(ceil(exp2(8 - bpp/3))); } + unsigned short tol = std::max(tolerance, minRendererTolerance); + ss << "exp:" << color.toShortString() << " "; ss << "obt:" << obt_col.toShortString() << " "; - ss << "tol:" << tolerance; + ss << "tol:" << tol; - FuzzyPixel obt(obt_col, tolerance); - if (exp == obt) + FuzzyPixel obt(obt_col, tol); + if (exp == obt) // equality operator would use tolerance of most tolerating FuzzyPixel { log_msg("%sPASSED: %s %s", X, ss.str().c_str(), From MAILER-DAEMON Mon Jun 04 13:02:48 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvFx9-0004jW-UA for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 13:02:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvFx8-0004jB-UH for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:02:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvFx7-0004hF-5A for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:02:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFx6-0004ge-S6 for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:02:44 -0400 Received: from moongulch.net ([69.15.127.230] helo=darkstar.welcomehome.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvFx6-0003Nb-7d for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:02:44 -0400 Received: from bertha.welcomehome.org (bertha.welcomehome.org [192.168.2.11]) by darkstar.welcomehome.org (8.13.8/8.13.8) with ESMTP id l54H2gjh005040; Mon, 4 Jun 2007 11:02:42 -0600 Message-ID: <46644553.8030806@welcomehome.org> Date: Mon, 04 Jun 2007 11:01:07 -0600 From: Rob Savoye User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> In-Reply-To: <488797587.20070604184539@nova-sys.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 3) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 17:02:47 -0000 Udo Giacomozzi wrote: > Hello Rob, > There is not only YouTube, Flash is used for a lot of other movies ;) According to *end users*, not developers, and this includes developers as end users, OpenGL is preferred for it's much higher performance. Most people do run hardware accelerated graphics enabled systems. We are a minority view on rendering, and we have to accept that. In the README (I'll check in the new version shortly) I mention that OpenGL is faster, but that AGG is the preferred backend due to quality of the rendering. We're only talking about people building Gnash that don't read READMEs. > Just like your commit that slowed Gnash down by 75% (!) and nobody > seems to care about. It's okay for me since we (as a team, I > personally have other priorities) decided to not focus on performance > but then we should decide what we want. I am not convinced this correctly identified the problem. You backed out everything I changed and it made no changes, so I fail to see the point. I am sorry you are obviously upset that AGG is not currently the default for people that build Gnash from source. This is *not a big deal*, let's not blow this out of proportion. On the OLPC and most every device I run Gnash on *does* default to the AGG backend. > BTW, is AGG really so much slower when playing YouTube so that one > notices the difference? Yes. > So all this discussion is unnecessary? No. Can we *please* just let this drop ? I'm sure we'll revisit this issue whenever we do the following release... The package builders will configure things however they choose, so it's out of our hands, truly. > Agree. I personally don't care about the release details, but I'd like > that we all agree on priorities. It's pointless to fiddle with tiny > details (TimelineInfo) when the render fails on simple rendering > tasks. The TimelineInfo changes caused almost more trouble for this release than it was worth. We should continue to improve both the quality and performance of all the renderers Gnash uses. I totally appreciate the energy and time you have put into the AGG renderer. My wanting to use GL as the default for source builds is not meant to slight AGG at all. I'm just trying to reduce the incoming stupid bug reports. Some of us *are* focused on the release, so it's normal we have differing priorities. - rob - From MAILER-DAEMON Mon Jun 04 13:08:02 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvG2E-00087O-IO for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 13:08:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvG2C-00086w-Du for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:08:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvG2B-00086k-BQ for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:08:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvG2B-00086h-5l for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:07:59 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvG2A-0003tp-A0 for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:07:58 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l54H7js25539; Mon, 4 Jun 2007 19:07:45 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Mon, 4 Jun 2007 19:07:45 +0200 To: Rob Savoye Subject: Re: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml Message-ID: <20070604170745.GB20664@keybit.net> Mail-Followup-To: Rob Savoye , Udo Giacomozzi , gnash-commit@gnu.org References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> <46644553.8030806@welcomehome.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46644553.8030806@welcomehome.org> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 17:08:00 -0000 On Mon, Jun 04, 2007 at 11:01:07AM -0600, Rob Savoye wrote: > Udo Giacomozzi wrote: > > Agree. I personally don't care about the release details, but I'd like > > that we all agree on priorities. It's pointless to fiddle with tiny > > details (TimelineInfo) when the render fails on simple rendering > > tasks. > > The TimelineInfo changes caused almost more trouble for this release > than it was worth. We should continue to improve both the quality and > performance of all the renderers Gnash uses. I totally appreciate the > energy and time you have put into the AGG renderer. My wanting to use GL > as the default for source builds is not meant to slight AGG at all. I'm > just trying to reduce the incoming stupid bug reports. Don't bring TimelineInfo in or the discussion will never end :) I belive what Udo meant by "fails on simple rendering tasks" is what happens with opengl. OpenGL backend does not even expose the required interfaces to make automated testing work, this is the only reason for 'make check' to succeed when building with OGL renderer. It's not just "quality", it's "correctness". --strk; From MAILER-DAEMON Mon Jun 04 13:16:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvGAT-0003E8-OO for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 13:16:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvGAQ-0003DN-8g for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:16:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvGAO-0003DB-Mi for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:16:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvGAO-0003D8-HI for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:16:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvGAO-0004q0-7e for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:16:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvGAN-0000p6-0B for gnash-commit@gnu.org; Mon, 04 Jun 2007 17:16:27 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvGAM-0000p3-Pp for gnash-commit@gnu.org; Mon, 04 Jun 2007 17:16:26 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 17:16:26 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/testsuite MovieTester.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 17:16:30 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 17:16:26 Modified files: testsuite : MovieTester.h Log message: (checkPixel): document the possible increas of tolerance during comparisons CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.22&r2=1.23 Patches: Index: MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- MovieTester.h 29 May 2007 17:15:14 -0000 1.22 +++ MovieTester.h 4 Jun 2007 17:16:26 -0000 1.23 @@ -168,7 +168,12 @@ /// The color we expect to find under the pointer. /// /// @param tolerance - /// The tolerated difference of any r,g,b,a values + /// The tolerated difference of any r,g,b,a values. + /// Note that the actual tolerance used for comparison might + /// be bigger then the given one depending on the minimum tolerance + /// supported by the renderers being tested, being a function of color + /// depth. For example, comparisions against 16bpp renderers will use + /// at tolerance of at least 8. /// /// @param label /// A label to use in test results. From MAILER-DAEMON Mon Jun 04 13:31:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvGOl-0000AG-QN for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 13:31:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvGOk-00009y-L4 for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:31:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvGOi-000067-A4 for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:31:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvGOi-00005n-4Z for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:31:16 -0400 Received: from moongulch.net ([69.15.127.230] helo=darkstar.welcomehome.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvGOh-0006EZ-Mj for gnash-commit@gnu.org; Mon, 04 Jun 2007 13:31:15 -0400 Received: from bertha.welcomehome.org (bertha.welcomehome.org [192.168.2.11]) by darkstar.welcomehome.org (8.13.8/8.13.8) with ESMTP id l54HVDAX005357 for ; Mon, 4 Jun 2007 11:31:14 -0600 Message-ID: <46644C03.9080309@welcomehome.org> Date: Mon, 04 Jun 2007 11:29:39 -0600 From: Rob Savoye User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> <46644553.8030806@welcomehome.org> <20070604170745.GB20664@keybit.net> In-Reply-To: <20070604170745.GB20664@keybit.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 17:31:18 -0000 strk wrote: > Don't bring TimelineInfo in or the discussion will never end :) Notice I said "almost"... :-) We had a general problem with this release in that is seemed nobody could stop hacking long enough for us to push something stable out the door... Next time I will go back to making a release branch, so development can continue. > It's not just "quality", it's "correctness". Nobody else cares... please give it up. We must think of how everyone else will use Gnash, not just a handful of us developers. Most people will be using Gnash from a binary package, and will use it however the person that builds the package configured it. I have already been told by multiple package maintainers they prefer OpenGL. Maybe for the following release this will be changed, but we're only talking about the release we're trying to make *today*. - rob - From MAILER-DAEMON Mon Jun 04 14:00:16 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvGqm-0002ep-FX for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:00:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvGqj-0002bn-Ok for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:00:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvGqh-0002Za-LO for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:00:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvGqh-0002ZU-Cl for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:00:11 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvGqg-0001D5-UA for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:00:11 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvGqg-0006lo-DO for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:00:10 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvGqg-0006ll-73 for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:00:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Mon, 04 Jun 2007 18:00:10 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash NEWS README ChangeLog macros/kde.m4 serve... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:00:14 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Rob Savoye 07/06/04 18:00:10 Modified files: . : NEWS README ChangeLog macros : kde.m4 server/asobj : Makefile.am server/parser : Makefile.am Log message: * NEWS, README: Update for upcoming release. * macros/kde.m4: Use newlist so we don't stomp on libslist. * server/asobj/Makefile.am: Don't link ffmpeg to convienince lib. * server/parser/Makefile.am: We don't need ffmpeg or gstreamer headers for this directory. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/NEWS?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/README?cvsroot=gnash&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3448&r2=1.3449 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/kde.m4?cvsroot=gnash&r1=1.31&r2=1.32 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Makefile.am?cvsroot=gnash&r1=1.38&r2=1.39 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/Makefile.am?cvsroot=gnash&r1=1.33&r2=1.34 Patches: Index: NEWS =================================================================== RCS file: /sources/gnash/gnash/NEWS,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- NEWS 21 Jan 2007 22:41:02 -0000 1.3 +++ NEWS 4 Jun 2007 18:00:08 -0000 1.4 @@ -1,3 +1,25 @@ +2007-06-XX Rob Savoye + +The third alpha release of Gnash. Improvements since the 0.7.2 release +are: + +* Streaming video works with YouTube and Lulu.tv! This has been the +focus for the majority of the time since the last release. +* Many core improvments in the VM as our understanding of Flash +improves. These all improve both the correctness of a movie that is +being played, but enebles more movies to play that used to not work. +* New FLTK2 gui. +* Simple Flash debugger added. +* Improved Darwin support that can use the system OpenGL. +* Flash extensions, direct support for file handling, MySQL access, +etc.. through plugins to the Gnash VM. Wrappers for any C/C++ API +libraries can be exported into ActionScript, and used as native +commands in a Flash movie. +* Updated manuals. +* Many new testcases! Support for testing with ming, swfmill, amd +mtasc compilers. +* New drawing API for MovieClips.. + 2006-09-10 Rob Savoye The second alpha release of Gnash is coming soon. Improvements since Index: README =================================================================== RCS file: /sources/gnash/gnash/README,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- README 26 Apr 2007 02:45:51 -0000 1.27 +++ README 4 Jun 2007 18:00:08 -0000 1.28 @@ -1,4 +1,4 @@ -$Id: README,v 1.27 2007/04/26 02:45:51 jgilmore Exp $ +$Id: README,v 1.28 2007/06/04 18:00:08 rsavoye Exp $ Gnash: the GNU Flash Player @@ -39,21 +39,23 @@ gprocessor -v is a quick way to see why a movie isn't playing correctly. Currently implemented ActionScript classes are: Array, Boolean, Date, -Key, Math, Mouse, Number, Object, Sound, String, XML, -XMLNode, and XMLSocket. +Key, Math, Mouse, Number, Object, Sound, String, XML, XMLNode, +XMLSocket, NetStream, NetConnection, -Partially implemented classes are: MovieClipLoader, NetConnection, -LocalConnection, MovieClip, TextField, and TextFormat. +Partially implemented classes are: MovieClipLoader, LocalConnection, +MovieClip, TextField, TextFormat, System, Function, LoadVars, -Unimplemented classes are: Accessibility, Error, Function, LoadVars, -Microphone, NetStream, Selection, SharedObject, Stage, System, Button, -Camera, Color, ContextMenu, CustomActions, Video. +Unimplemented classes are: Accessibility, Error, Microphone, +Selection, SharedObject, Stage, Button, Camera, Color, ContextMenu, +CustomActions, Video. Unimplemented Opcodes are: Throw, Implements, Extends, EnumObject, Try, NewMethod, MDLength, MDSubstring, MDChr, Delete, GetTarget. -There is currently some FLV video support, only minimal AMF data support, -and no loading of external jpegs. +Currently streaming video for some video sharing sites like Lulu.tv, +or YouTube.com, does work. Your mileage with other sites may vary, but +work continues on improving Gnash. + Plugin: ------- @@ -62,7 +64,7 @@ It can play some Flash files in cooperation with the browser. It should work with any browser that supports the of Mozilla's NSPR API and plugin SDK. It has been tested with Mozilla 1.7.13 with gtk2 (won't work with -gtk1 due to the NSAPI used), Firefox 1.0.x and Firefox 1.5.x. +gtk1 due to the NSAPI used), Firefox 1.0.x, Firefox 1.5.x, and Firefox 2.x. Some web pages have Internet Explorer-specific Javascript that fail in Firefox, which prevents the plugin from being loaded. In these cases @@ -71,7 +73,8 @@ By default, the configure script looks for the GtkGl extension, and if that can't be found, it defaults to using SDL. The plugin works by forking and running the standalone player, so whichever graphics library -Gnash uses will also be used by the plugin. +Gnash uses will also be used by the plugin. As an alternate to SDL, +Gnash also now has FLTK2 support. The GTK version has full event handling, and supports a right-click mouse menu to control the movie. The SDL version has no event @@ -84,6 +87,32 @@ install" will install the plugin in. By default it will be installed in the user's .mozilla/plugins or .firefox/plugins directory. +Platforms Supported: +-------------------- + +Gnash has been ported to a wide variety of hardware and operating +systems. Primary platforms that get the most support are most of +the GNU/Linux distributions, but Ubuntu, Fedora, and Debian primarily. +OpenBSD is also adequately maintained, but Gnash is known to run on +FreeBSD and NetBSD systems as well. There are also ports to Beos, +Haiku, OS/2, Irix, Solaris, and OpenEmbedded. + +There are ports of the standalone player to Darwin and Win32. Both +require adding the dependent libraries Gnash needs. Work has started +on a native Darwin (Aqua/Carbon/OpenGL) GUI so most of these packages +won't be required. The win32 player can be built with VC++, or +Mingw32. + +Gnash has also been ported to a variety of embedded devices, most +running variations of OpenEmbedded. These include several custom +hardware platforms aimed at educational software for children. Better +known devices are the Sharp Zaurus family of PDAs (reflashed to run Open +Zaurus), the Nokia 770/800, the OLPC and the Pepper Pad 3, that both +run a trimmed down Fedora. + +64bit systems Gnash has been known to run on are the Itanium, +UltraSparc, PowerPC, AMD64, MIPS. Embedded systems include several ARM +variants, MIPS, and the Geode GX. Building Gnash: --------------- @@ -105,7 +134,7 @@ --enable-media=GST Gstreamer --enable-media=ffmpeg Ffmpeg - --enable-media=mad libmad (MP3 audio decoding only) +or --enable-media=mad libmad (MP3 audio decoding only) The "media" setting is independent of the "renderer" setting. @@ -117,18 +146,21 @@ dependent packages: OpenGL(libMesa), SDL. The GTK support is more developed and featureful, while the SDL -support has fewer dependancies on other packages. +support has fewer dependancies on other packages. The AGG backend +gives better quality results, and works on devices with only a +framebuffer, but the performance isn't as good as the OpenGL backend +if you have a binary blob acelerated graphics driver installed. Other required packages are libxml2, libpng, and libjpeg. If gettext support is installed, or is present in the standard C library, -gnash will support translation of its messages into other languages. - -At this time the sound support is experimental until the new sound -support is completed. This will support both Gstreamer and -ffmpeg. +gnash will support translation of its messages into other +languages. Boost is also required, as Gnash uses it for portable +mutexes and threading. Gstreamer version 0.10 is required because earlier versions wouldn't -let you insert clips into an existing sound stream, as Gnash needs to do. +let you insert clips into an existing sound stream, as Gnash needs to +do. If you use Gstreamer, you still need the ffmeg decoders, and the +ffmpeg plugin for Gstreamer. You no longer need the Mozilla or Firefox development packages to build Gnash. All the required files are now included in Gnash, so the @@ -138,6 +170,10 @@ development packages installed. This now installs a KDE executable called "klash" that is used by this plugin. +As of ffmpeg version 51.40.4, the swscale implementation will be used +instead of img_convert. Note that using when using ffmpeg version +51.40.4, Gnash won't link. + The Gnash Community: -------------------- Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3448 retrieving revision 1.3449 diff -u -b -r1.3448 -r1.3449 --- ChangeLog 4 Jun 2007 16:59:02 -0000 1.3448 +++ ChangeLog 4 Jun 2007 18:00:08 -0000 1.3449 @@ -1,3 +1,11 @@ +2007-06-04 Rob Savoye + + * NEWS, README: Update for upcoming release. + * macros/kde.m4: Use newlist so we don't stomp on libslist. + * server/asobj/Makefile.am: Don't link ffmpeg to convienince lib. + * server/parser/Makefile.am: We don't need ffmpeg or gstreamer + headers for this directory. + 2007-06-04 Sandro Santilli * backend/render_handler.h: expose a new getBitsPerPixel interface. Index: macros/kde.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/kde.m4,v retrieving revision 1.31 retrieving revision 1.32 diff -u -b -r1.31 -r1.32 --- macros/kde.m4 27 May 2007 18:30:42 -0000 1.31 +++ macros/kde.m4 4 Jun 2007 18:00:09 -0000 1.32 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: kde.m4,v 1.31 2007/05/27 18:30:42 bjacques Exp $ +dnl $Id: kde.m4,v 1.32 2007/06/04 18:00:09 rsavoye Exp $ AC_DEFUN([GNASH_PATH_KDE], [ @@ -95,8 +95,8 @@ if test x"${ac_cv_path_kde_lib}" = x; then AC_MSG_CHECKING([for kdeui library]) topdir="" - libslist="${kde_prefix}/lib ${libslist}" - for i in $libslist ; do + newlist="${kde_prefix}/lib ${libslist}" + for i in $newlist ; do if test -f $i/libkdeui.a -o -f $i/libkdeui.${shlibext} ; then topdir=$i AC_MSG_RESULT(${topdir}/libkdeui) Index: server/asobj/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Makefile.am,v retrieving revision 1.38 retrieving revision 1.39 diff -u -b -r1.38 -r1.39 --- server/asobj/Makefile.am 4 May 2007 09:40:25 -0000 1.38 +++ server/asobj/Makefile.am 4 Jun 2007 18:00:09 -0000 1.39 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.38 2007/05/04 09:40:25 strk Exp $ +# $Id: Makefile.am,v 1.39 2007/06/04 18:00:09 rsavoye Exp $ AUTOMAKE_OPTIONS = @@ -124,7 +124,7 @@ if USE_FFMPEG_ENGINE libgnashasobjs_la_SOURCES += NetStreamFfmpeg.cpp SoundFfmpeg.cpp AM_CPPFLAGS += $(FFMPEG_CFLAGS) -libgnashasobjs_la_LIBADD += $(FFMPEG_LIBS) +# libgnashasobjs_la_LIBADD += $(FFMPEG_LIBS) endif if USE_SOUND_GST Index: server/parser/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/parser/Makefile.am,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- server/parser/Makefile.am 21 May 2007 11:11:39 -0000 1.33 +++ server/parser/Makefile.am 4 Jun 2007 18:00:09 -0000 1.34 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.33 2007/05/21 11:11:39 strk Exp $ +# $Id: Makefile.am,v 1.34 2007/06/04 18:00:09 rsavoye Exp $ AUTOMAKE_OPTIONS = @@ -38,8 +38,6 @@ -I$(top_srcdir) \ $(LIBXML_CFLAGS) \ $(GLIB_CFLAGS) \ - $(FFMPEG_CFLAGS) \ - $(GSTREAMER_CFLAGS) \ $(PTHREAD_CFLAGS) \ $(DMALLOC_CFLAGS) \ $(BOOST_CFLAGS) From MAILER-DAEMON Mon Jun 04 14:07:00 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvGxI-0003um-Ao for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:07:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvGxG-0003uH-Si for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:06:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvGxG-0003u5-Ch for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:06:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvGxG-0003u2-9G for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:06:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvGxF-0001vz-Ry for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:06:58 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvGxE-0007Bm-So for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:06:56 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvGxE-0007Bi-O4 for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:06:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 18:06:56 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:06:59 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 18:06:56 Modified files: . : ChangeLog testsuite/misc-ming.all: NetStream-SquareTest.c Log message: * testsuite/misc-ming.all/NetStream-SquareTest.c: set SWF rate back to an high value to allow for testing pixel color and also testing with eyes what's hard to test when nothing is shown due to Gnash not supporting sub-SWF rate videos; Scale video by 200% to verify video scaling bugs (not automated yet); documented expected behaviour. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3449&r2=1.3450 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3449 retrieving revision 1.3450 diff -u -b -r1.3449 -r1.3450 --- ChangeLog 4 Jun 2007 18:00:08 -0000 1.3449 +++ ChangeLog 4 Jun 2007 18:06:55 -0000 1.3450 @@ -1,3 +1,11 @@ +2007-06-04 Sandro Santilli + + * testsuite/misc-ming.all/NetStream-SquareTest.c: set SWF rate back to + an high value to allow for testing pixel color and also testing with + eyes what's hard to test when nothing is shown due to Gnash not + supporting sub-SWF rate videos; Scale video by 200% to verify video + scaling bugs (not automated yet); documented expected behaviour. + 2007-06-04 Rob Savoye * NEWS, README: Update for upcoming release. Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- testsuite/misc-ming.all/NetStream-SquareTest.c 22 May 2007 09:49:07 -0000 1.8 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:06:56 -0000 1.9 @@ -19,6 +19,11 @@ /* * Plays an external FLV video * Should be used with the MovieTester to test if the video decoder works. + * + * Expected behaviour: + * + * Shows a 90x90 pixels red square moving from left to right over + * a 255x200 yellow background. */ #include @@ -74,6 +79,8 @@ "nc.connect(null);" "stream = new NetStream(nc);" "video.attachVideo(stream); " + "video._xscale = 200;" + "video._yscale = 200;" "stream.setBufferTime(2); " "stream.play('%s');" "stop();", @@ -86,11 +93,15 @@ mo = newSWFMovie(); SWFMovie_setDimension(mo, 800, 600); - SWFMovie_setRate(mo, 1); + // We also want to test that 1FPS of SWF rate doesn't influence + // rate of video playback, but for now it's more useful to actually + // have something rendered, so check_pixel can eventually do something, + // so we run fast... + SWFMovie_setRate(mo, 32); dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(mediadir), 10, 0, 0, 800, 600); item = SWFMovie_add(mo, (SWFBlock)dejagnuclip); - SWFDisplayItem_moveTo(item, 0, 100); + SWFDisplayItem_moveTo(item, 0, 200); SWFMovie_nextFrame(mo); stream = newSWFVideoStream(); From MAILER-DAEMON Mon Jun 04 14:11:20 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvH1U-0004h8-3S for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:11:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvH1S-0004gf-Bw for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:11:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvH1R-0004gT-Ns for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:11:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvH1R-0004gQ-Lj for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:11:17 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvH1Q-0002NR-W7 for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:11:17 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l54IB9W26763; Mon, 4 Jun 2007 20:11:09 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Mon, 4 Jun 2007 20:11:09 +0200 To: Rob Savoye Subject: Re: [Gnash-commit] gnash NEWS README ChangeLog macros/kde.m4 serve... Message-ID: <20070604181109.GE25821@keybit.net> Mail-Followup-To: Rob Savoye , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:11:18 -0000 On Mon, Jun 04, 2007 at 06:00:10PM +0000, Rob Savoye wrote: > * server/asobj/Makefile.am: Don't link ffmpeg to convienince lib. Can this have been resulted in double inclusion of the static ffmpeg lib ? (just wondering) --strk; From MAILER-DAEMON Mon Jun 04 14:13:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvH3e-0006oN-Qn for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:13:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvH3c-0006oI-Ja for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:13:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvH3a-0006o6-SN for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:13:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvH3a-0006o3-Ni for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:13:30 -0400 Received: from moongulch.net ([69.15.127.230] helo=darkstar.welcomehome.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvH3a-0002Yk-Dk for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:13:30 -0400 Received: from bertha.welcomehome.org (bertha.welcomehome.org [192.168.2.11]) by darkstar.welcomehome.org (8.13.8/8.13.8) with ESMTP id l54IDS3F005905 for ; Mon, 4 Jun 2007 12:13:28 -0600 Message-ID: <466455EA.2020005@welcomehome.org> Date: Mon, 04 Jun 2007 12:11:54 -0600 From: Rob Savoye User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash NEWS README ChangeLog macros/kde.m4 serve... References: <20070604181109.GE25821@keybit.net> In-Reply-To: <20070604181109.GE25821@keybit.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:13:33 -0000 strk wrote: > Can this have been resulted in double inclusion of the static ffmpeg lib ? > (just wondering) Yes. - rob - From MAILER-DAEMON Mon Jun 04 14:17:02 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvH6z-0001xi-U9 for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:17:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvH6y-0001ug-2E for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:17:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvH6x-0001uU-Fa for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:16:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvH6x-0001uR-A9 for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:16:59 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvH6x-0002zA-0L for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:16:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvH6v-0008Et-SF for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:16:57 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvH6v-0008Eq-OR for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:16:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 18:16:57 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:17:00 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 18:16:57 Modified files: . : ChangeLog testsuite/misc-ming.all: NetStream-SquareTest.c Log message: Rotate video by 45 degrees. Both AGG and Opengl fail ! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3450&r2=1.3451 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.9&r2=1.10 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3450 retrieving revision 1.3451 diff -u -b -r1.3450 -r1.3451 --- ChangeLog 4 Jun 2007 18:06:55 -0000 1.3450 +++ ChangeLog 4 Jun 2007 18:16:57 -0000 1.3451 @@ -3,8 +3,9 @@ * testsuite/misc-ming.all/NetStream-SquareTest.c: set SWF rate back to an high value to allow for testing pixel color and also testing with eyes what's hard to test when nothing is shown due to Gnash not - supporting sub-SWF rate videos; Scale video by 200% to verify video - scaling bugs (not automated yet); documented expected behaviour. + supporting sub-SWF rate videos; Scale video by 120% and rotate 45 + degrees clockwise to verify video transform + bugs (not automated yet); documented expected behaviour. 2007-06-04 Rob Savoye Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:06:56 -0000 1.9 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:16:57 -0000 1.10 @@ -22,8 +22,8 @@ * * Expected behaviour: * - * Shows a 90x90 pixels red square moving from left to right over - * a 255x200 yellow background. + * Shows a 54x54 pixels red square moving from left to right over + * a 152x120 yellow background. The whole thing rotated by 45 degrees clockwise. */ #include @@ -79,8 +79,11 @@ "nc.connect(null);" "stream = new NetStream(nc);" "video.attachVideo(stream); " - "video._xscale = 200;" - "video._yscale = 200;" + "video._x = 100;" + "video._1 = 100;" + "video._xscale = 120;" + "video._yscale = 120;" + "video._rotation = 45;" "stream.setBufferTime(2); " "stream.play('%s');" "stop();", @@ -101,7 +104,7 @@ dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(mediadir), 10, 0, 0, 800, 600); item = SWFMovie_add(mo, (SWFBlock)dejagnuclip); - SWFDisplayItem_moveTo(item, 0, 200); + SWFDisplayItem_moveTo(item, 0, 250); SWFMovie_nextFrame(mo); stream = newSWFVideoStream(); From MAILER-DAEMON Mon Jun 04 14:33:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvHMq-00057D-JB for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 14:33:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvHMp-000578-5q for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:33:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvHMn-00056w-Ht for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:33:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvHMn-00056t-DA for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:33:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvHMn-0004Zw-3V for gnash-commit@gnu.org; Mon, 04 Jun 2007 14:33:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvHMm-0001TE-24 for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:33:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvHMl-0001T7-U3 for gnash-commit@gnu.org; Mon, 04 Jun 2007 18:33:19 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 18:33:19 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 18:33:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 18:33:19 Modified files: . : ChangeLog testsuite/misc-ming.all: NetStream-SquareTest.c Log message: Add tests for matrix tranform properties CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3451&r2=1.3452 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.10&r2=1.11 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451 retrieving revision 1.3452 diff -u -b -r1.3451 -r1.3452 --- ChangeLog 4 Jun 2007 18:16:57 -0000 1.3451 +++ ChangeLog 4 Jun 2007 18:33:19 -0000 1.3452 @@ -5,7 +5,8 @@ eyes what's hard to test when nothing is shown due to Gnash not supporting sub-SWF rate videos; Scale video by 120% and rotate 45 degrees clockwise to verify video transform - bugs (not automated yet); documented expected behaviour. + bugs (not automated yet); documented expected behaviour; add + tests for matrix transforming properties. 2007-06-04 Rob Savoye Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:16:57 -0000 1.10 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:33:19 -0000 1.11 @@ -79,11 +79,6 @@ "nc.connect(null);" "stream = new NetStream(nc);" "video.attachVideo(stream); " - "video._x = 100;" - "video._1 = 100;" - "video._xscale = 120;" - "video._yscale = 120;" - "video._rotation = 45;" "stream.setBufferTime(2); " "stream.play('%s');" "stop();", @@ -116,6 +111,28 @@ a = newSWFAction(buffer); if(a == NULL) return -1; SWFMovie_add(mo, (SWFBlock)a); + + xcheck_equals(mo, "video._xscale", "100"); + xcheck_equals(mo, "video._yscale", "100"); + xcheck_equals(mo, "video._rotation", "0"); + xcheck_equals(mo, "video._target", "'/video'"); + + add_actions(mo, + "video._x = 100;" + "video._xscale = 120;" + "video._yscale = 120;" + "video._rotation = 45;"); + + check_equals(mo, "video._x", "100") ; + check_equals(mo, "video._xscale", "120"); + check_equals(mo, "video._yscale", "120"); + check_equals(mo, "video._rotation", "45"); + + + // How can I test props here ? + check_equals(mo, "typeof(video.hitTest)", "'undefined'"); + check_equals(mo, "typeof(video.getBounds)", "'undefined'"); + SWFMovie_add(mo, (SWFBlock)newSWFAction( "stream.onStatus = function(info) {" From MAILER-DAEMON Mon Jun 04 15:21:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvI7R-00083V-5D for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 15:21:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvI7O-000837-UW for gnash-commit@gnu.org; Mon, 04 Jun 2007 15:21:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvI7N-00080F-Er for gnash-commit@gnu.org; Mon, 04 Jun 2007 15:21:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvI7N-0007zd-5s for gnash-commit@gnu.org; Mon, 04 Jun 2007 15:21:29 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvI7M-0001a4-Pr for gnash-commit@gnu.org; Mon, 04 Jun 2007 15:21:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvI7F-00075d-Md for gnash-commit@gnu.org; Mon, 04 Jun 2007 19:21:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvI7F-00075a-Hi for gnash-commit@gnu.org; Mon, 04 Jun 2007 19:21:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 19:21:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/video_stream_instance.cp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 19:21:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 19:21:21 Modified files: . : ChangeLog server : video_stream_instance.cpp video_stream_instance.h server/asobj : Global.cpp Makefile.am testsuite/misc-ming.all: NetStream-SquareTest.c Removed files: server/asobj : Video.cpp Video.h Log message: * server/video_stream_instance.{cpp,h}: register Video AS class interface and provide class initialization. * server/asobj/: Global.cpp, Makefile.am, Video.{cpp,h}: Drop Video file, video class is now implemented in video_stream_instance.cpp * testsuite/misc-ming.all/NetStream-SquareTest.c: don't expect failures due to video stream character NOT being a real Video object. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3452&r2=1.3453 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.cpp?cvsroot=gnash&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.h?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.61&r2=1.62 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Makefile.am?cvsroot=gnash&r1=1.39&r2=1.40 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Video.cpp?cvsroot=gnash&r1=1.10&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Video.h?cvsroot=gnash&r1=1.6&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.11&r2=1.12 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3452 retrieving revision 1.3453 diff -u -b -r1.3452 -r1.3453 --- ChangeLog 4 Jun 2007 18:33:19 -0000 1.3452 +++ ChangeLog 4 Jun 2007 19:21:20 -0000 1.3453 @@ -1,5 +1,15 @@ 2007-06-04 Sandro Santilli + * server/video_stream_instance.{cpp,h}: register Video AS class + interface and provide class initialization. + * server/asobj/: Global.cpp, Makefile.am, Video.{cpp,h}: Drop Video file, video + class is now implemented in video_stream_instance.cpp + * testsuite/misc-ming.all/NetStream-SquareTest.c: don't expect + failures due to video stream character NOT being a real Video + object. + +2007-06-04 Sandro Santilli + * testsuite/misc-ming.all/NetStream-SquareTest.c: set SWF rate back to an high value to allow for testing pixel color and also testing with eyes what's hard to test when nothing is shown due to Gnash not Index: server/video_stream_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -b -r1.26 -r1.27 --- server/video_stream_instance.cpp 30 May 2007 15:12:28 -0000 1.26 +++ server/video_stream_instance.cpp 4 Jun 2007 19:21:20 -0000 1.27 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.cpp,v 1.26 2007/05/30 15:12:28 strk Exp $ +// $Id: video_stream_instance.cpp,v 1.27 2007/06/04 19:21:20 strk Exp $ #include "sprite_instance.h" #include "video_stream_instance.h" @@ -32,9 +32,80 @@ namespace gnash { - static as_value - attach_video(const fn_call& fn) +static as_object* getVideoInterface(); +static void attachVideoInterface(as_object& o); +static void attachVideoProperties(as_object& o); +static as_value video_ctor(const fn_call& fn); +static as_value video_attach(const fn_call& fn); +static as_value video_clear(const fn_call& fn); + +static as_object* getVideoInterface() +{ + static boost::intrusive_ptr proto; + if ( proto == NULL ) { + proto = new as_object(); + attachVideoInterface(*proto); + proto->init_member("constructor", new builtin_function(video_ctor)); + } + return proto.get(); +} + +static void attachVideoInterface(as_object& o) +{ + o.init_member("attachVideo", new builtin_function(video_attach)); + o.init_member("clear", new builtin_function(video_clear)); +} + +static void attachVideoProperties(as_object& o) +{ + //int target_version = o.getVM().getSWFVersion(); + + boost::intrusive_ptr gettersetter; + + gettersetter = new builtin_function(&character::x_getset, NULL); + o.init_property("_x", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::y_getset, NULL); + o.init_property("_y", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::xscale_getset, NULL); + o.init_property("_xscale", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::yscale_getset, NULL); + o.init_property("_yscale", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::xmouse_get, NULL); + o.init_readonly_property("_xmouse", *gettersetter); + + gettersetter = new builtin_function(&character::ymouse_get, NULL); + o.init_readonly_property("_ymouse", *gettersetter); + + gettersetter = new builtin_function(&character::alpha_getset, NULL); + o.init_property("_alpha", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::visible_getset, NULL); + o.init_property("_visible", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::width_getset, NULL); + o.init_property("_width", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::height_getset, NULL); + o.init_property("_height", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::rotation_getset, NULL); + o.init_property("_rotation", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::parent_getset, NULL); + o.init_property("_parent", *gettersetter, *gettersetter); + + gettersetter = new builtin_function(&character::target_getset, NULL); + o.init_property("_target", *gettersetter, *gettersetter); +} + +static as_value +video_attach(const fn_call& fn) +{ boost::intrusive_ptr video = ensureType(fn.this_ptr); if (fn.nargs < 1) @@ -58,7 +129,25 @@ ); } return as_value(); - } +} + +static as_value +video_clear(const fn_call& /*fn*/) +{ + log_unimpl (__FUNCTION__); + return as_value(); +} + +static as_value +video_ctor(const fn_call& /* fn */) +{ + log_debug("new Video() TESTING !"); + + // I'm not sure We can rely on the def and parent values being accepted as NULL + // Not till we add some testing... + boost::intrusive_ptr obj = new video_stream_instance(NULL, NULL, -1); + return as_value(obj.get()); // will keep alive +} video_stream_instance::video_stream_instance(video_stream_definition* def, character* parent, int id) @@ -67,10 +156,16 @@ m_def(def), //m_video_source(NULL), _ns(NULL), - m_decoder(m_def->get_decoder()) // should abort if m_def is null + m_decoder(NULL) // don't abort if m_def is null { - // FIXME: use new layout - init_member("attachVideo", new builtin_function(attach_video)); + if ( m_def ) + { + m_decoder = m_def->get_decoder(); + } + + set_prototype(getVideoInterface()); + + attachVideoProperties(*this); } video_stream_instance::~video_stream_instance() @@ -80,6 +175,10 @@ void video_stream_instance::display() { + // if m_def is NULL we've been constructed by 'new Video', in this + // case I think display() would never be invoked on us... + assert(m_def); + matrix m = get_world_matrix(); rect bounds(0.0f, 0.0f, PIXELS_TO_TWIPS(m_def->m_width), PIXELS_TO_TWIPS(m_def->m_height)); @@ -98,7 +197,13 @@ } else if (m_decoder.get()) { uint8_t* data = 0; int size = 0; - int current_frame = get_parent()->to_movie()->get_current_frame(); + character* parent = get_parent(); + assert(parent); + sprite_instance* sprite = parent->to_movie(); + assert(sprite); + + int current_frame = sprite->get_current_frame(); + assert(m_def); m_def->get_frame_data(current_frame, &data, &size); image::image_base* i = m_decoder->decodeFrame(data, size); @@ -134,6 +239,10 @@ // NOTE: do not use m_def->get_bounds() + // if m_def is NULL we've been constructed by 'new Video', in this + // case I think add_invalidated_bouns would never be invoked on us... + assert ( m_def ); + rect def_bounds(0.0f, 0.0f, PIXELS_TO_TWIPS(m_def->m_width), PIXELS_TO_TWIPS(m_def->m_height)); @@ -150,4 +259,22 @@ _ns = ns; } +// extern (used by Global.cpp) +void video_class_init(as_object& global) +{ + // This is going to be the global Video "class"/"function" + static boost::intrusive_ptr cl; + + if ( cl == NULL ) + { + cl=new builtin_function(&video_ctor, getVideoInterface()); + // replicate all interface to class, to be able to access + // all methods as static functions + //attachVideoInterface(*cl); + } + + // Register _global.Video + global.init_member("Video", cl.get()); +} + } // end of namespace gnash Index: server/video_stream_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/video_stream_instance.h 28 May 2007 15:41:07 -0000 1.14 +++ server/video_stream_instance.h 4 Jun 2007 19:21:20 -0000 1.15 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.h,v 1.14 2007/05/28 15:41:07 ann Exp $ +// $Id: video_stream_instance.h,v 1.15 2007/06/04 19:21:20 strk Exp $ #ifndef GNASH_VIDEO_STREAM_INSTANCE_H #define GNASH_VIDEO_STREAM_INSTANCE_H @@ -84,6 +84,8 @@ std::auto_ptr m_decoder; }; +void video_class_init(as_object& global); + } // end namespace gnash Index: server/asobj/Global.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -u -b -r1.61 -r1.62 --- server/asobj/Global.cpp 25 May 2007 16:04:11 -0000 1.61 +++ server/asobj/Global.cpp 4 Jun 2007 19:21:20 -0000 1.62 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: Global.cpp,v 1.61 2007/05/25 16:04:11 strk Exp $ */ +/* $Id: Global.cpp,v 1.62 2007/06/04 19:21:20 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -56,7 +56,7 @@ #include "System.h" #include "textformat.h" #include "TextSnapshot.h" -#include "Video.h" +#include "video_stream_instance.h" #include "extension.h" #include "VM.h" #include "timers.h" Index: server/asobj/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Makefile.am,v retrieving revision 1.39 retrieving revision 1.40 diff -u -b -r1.39 -r1.40 --- server/asobj/Makefile.am 4 Jun 2007 18:00:09 -0000 1.39 +++ server/asobj/Makefile.am 4 Jun 2007 19:21:20 -0000 1.40 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.39 2007/06/04 18:00:09 rsavoye Exp $ +# $Id: Makefile.am,v 1.40 2007/06/04 19:21:20 strk Exp $ AUTOMAKE_OPTIONS = @@ -67,7 +67,6 @@ Stage.cpp \ System.cpp \ TextSnapshot.cpp\ - Video.cpp \ MovieClipLoader.cpp\ string.cpp \ xml.cpp \ @@ -107,7 +106,6 @@ Stage.h \ System.h \ TextSnapshot.h \ - Video.h \ gstring.h \ xml.h \ xmlsocket.h \ Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:33:19 -0000 1.11 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 19:21:21 -0000 1.12 @@ -112,10 +112,10 @@ if(a == NULL) return -1; SWFMovie_add(mo, (SWFBlock)a); - xcheck_equals(mo, "video._xscale", "100"); - xcheck_equals(mo, "video._yscale", "100"); - xcheck_equals(mo, "video._rotation", "0"); - xcheck_equals(mo, "video._target", "'/video'"); + check_equals(mo, "video._xscale", "100"); + check_equals(mo, "video._yscale", "100"); + check_equals(mo, "video._rotation", "0"); + check_equals(mo, "video._target", "'/video'"); add_actions(mo, "video._x = 100;" @@ -124,9 +124,9 @@ "video._rotation = 45;"); check_equals(mo, "video._x", "100") ; - check_equals(mo, "video._xscale", "120"); - check_equals(mo, "video._yscale", "120"); - check_equals(mo, "video._rotation", "45"); + check_equals(mo, "Math.round(video._xscale*100)/100", "120"); + check_equals(mo, "Math.round(video._yscale*100)/100", "120"); + check_equals(mo, "Math.round(video._rotation*100)/100", "45"); // How can I test props here ? Index: server/asobj/Video.cpp =================================================================== RCS file: server/asobj/Video.cpp diff -N server/asobj/Video.cpp --- server/asobj/Video.cpp 26 Apr 2007 07:00:29 -0000 1.10 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,108 +0,0 @@ -// Video.cpp: ActionScript "Video" class, for Gnash. -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "Video.h" -#include "as_object.h" // for inheritance -#include "log.h" -#include "fn_call.h" -#include "smart_ptr.h" // for boost intrusive_ptr -#include "builtin_function.h" // need builtin_function - -namespace gnash { - -as_value video_attachvideo(const fn_call& fn); -as_value video_clear(const fn_call& fn); -as_value video_ctor(const fn_call& fn); - -static void -attachVideoInterface(as_object& o) -{ - o.init_member("attachVideo", new builtin_function(video_attachvideo)); - o.init_member("clear", new builtin_function(video_clear)); -} - -static as_object* -getVideoInterface() -{ - static boost::intrusive_ptr o; - if ( ! o ) - { - o = new as_object(); - attachVideoInterface(*o); - } - return o.get(); -} - -class video_as_object: public as_object -{ - -public: - - video_as_object() - : - as_object(getVideoInterface()) - {} - - // override from as_object ? - //std::string get_text_value() const { return "Video"; } - - // override from as_object ? - //double get_numeric_value() const { return 0; } -}; - -as_value video_attachvideo(const fn_call& /*fn*/) { - log_unimpl (__FUNCTION__); - return as_value(); -} -as_value video_clear(const fn_call& /*fn*/) { - log_unimpl (__FUNCTION__); - return as_value(); -} - -as_value -video_ctor(const fn_call& /* fn */) -{ - boost::intrusive_ptr obj = new video_as_object; - - return as_value(obj.get()); // will keep alive -} - -// extern (used by Global.cpp) -void video_class_init(as_object& global) -{ - // This is going to be the global Video "class"/"function" - static boost::intrusive_ptr cl; - - if ( cl == NULL ) - { - cl=new builtin_function(&video_ctor, getVideoInterface()); - // replicate all interface to class, to be able to access - // all methods as static functions - attachVideoInterface(*cl); - } - - // Register _global.Video - global.init_member("Video", cl.get()); -} - -} // end of gnash namespace Index: server/asobj/Video.h =================================================================== RCS file: server/asobj/Video.h diff -N server/asobj/Video.h --- server/asobj/Video.h 28 May 2007 14:59:36 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,42 +0,0 @@ -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// - -#ifndef __GNASH_ASOBJ_VIDEO_H__ -#define __GNASH_ASOBJ_VIDEO_H__ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include // for auto_ptr - -namespace gnash { - -class as_object; - -/// Initialize the global Video class -void video_class_init(as_object& global); - -/// Return a Video instance (in case the core lib needs it) -//std::auto_ptr init_video_instance(); - -} // end of gnash namespace - -// __GNASH_ASOBJ_VIDEO_H__ -#endif - From MAILER-DAEMON Mon Jun 04 16:26:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvJ8U-0007MZ-Ri for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 16:26:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvJ8S-0007IT-Rj for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:26:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvJ8S-0007I8-2w for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:26:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvJ8R-0007I1-R5 for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:26:39 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvJ8Q-0000MB-Uv for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:26:39 -0400 Received: from UDO-LAPTOP (host113-29.pool8290.interbusiness.it [82.90.29.113]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l54KQVU4031013; Mon, 4 Jun 2007 22:26:36 +0200 Date: Mon, 4 Jun 2007 22:26:32 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1725728889.20070604222632@nova-sys.net> To: Rob Savoye Subject: Re[2]: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml In-Reply-To: <46644553.8030806@welcomehome.org> References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> <46644553.8030806@welcomehome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 20:26:41 -0000 Hello Rob, Monday, June 4, 2007, 7:01:07 PM, you wrote: RS> I am not convinced this correctly identified the problem. You backed RS> out everything I changed and it made no changes, so I fail to see the RS> point. Not everything. I could not test your Makefile/configure patches and that's why I was asking for your help. I did various builds before and after that commit and *all* showed that performance decreased dramatically after the commit. It would be great if at least somebody could confirm the symptoms by simply building both versions and running profiler.swf. http://www.gnashdev.org/wiki/index.php/Profiling exists for that purpose. I'm currently loosing lots of time with this problem - time I'd prefer to invest in other Gnash development tasks. I still /use/ a Gnash checkout from May 09th because current Gnash CVS version is not usable for me. RS> I am sorry you are obviously upset that AGG is not currently the RS> default for people that build Gnash from source. Yes, I expected you would say that. No, it's not the point that I did write the AGG backend. It's a fundamental thing. It would make no difference for me if the topic hypothetically was "The FFMPEG backend plays all sounds correctly, but we default to GStreamer - even if it can't play some sounds - because it uses less CPU.". So, again, I'm *not* upset. Instead, I fear we will get bug reports related to OpenGL rendering quality. Sure, people will complain about lacking performance with other renderers, but won't file a bug report for that. RS> This is *not a big deal*, let's not blow this out of proportion. Okay. >> BTW, is AGG really so much slower when playing YouTube so that one >> notices the difference? RS> Yes. Interesting! Then please tell me about it. YouTube videos play very smooth on my laptop with about 20% CPU usage last time I checked. Please tell me more about your experiences. RS> I totally appreciate the RS> energy and time you have put into the AGG renderer. My wanting to use GL RS> as the default for source builds is not meant to slight AGG at all. Again, I have no problem with non-AGG renderers! I'm really objective in this regard... RS> I'm just trying to reduce the incoming stupid bug reports. We want the same thing, but have different predictions. RS> Some of us *are* focused on the release, so it's normal we have RS> differing priorities. So I conclude that performance is a priority, so *please* let's have a look at that commit. I expect that it's a stupid little thing we will find *together* in maybe an hour so we can remove that brake block without much effort and boost Gnash rendering performance with *all* rendering backends. Does that sound good? Udo From MAILER-DAEMON Mon Jun 04 16:32:23 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvJDz-00032l-1I for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 16:32:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvJDw-00031z-Qy for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:32:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvJDv-000318-Gs for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:32:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvJDv-000315-BE for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:32:19 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvJDu-0000rd-Hy for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:32:18 -0400 Received: from UDO-LAPTOP (host113-29.pool8290.interbusiness.it [82.90.29.113]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l54KW9U4031694; Mon, 4 Jun 2007 22:32:14 +0200 Date: Mon, 4 Jun 2007 22:32:10 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1514782293.20070604223210@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml In-Reply-To: <20070604170745.GB20664@keybit.net> References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> <46644553.8030806@welcomehome.org> <20070604170745.GB20664@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 20:32:21 -0000 Hello strk, Monday, June 4, 2007, 7:07:45 PM, you wrote: s> I belive what Udo meant by "fails on simple rendering tasks" is what s> happens with opengl. Yes, it's not about anti-aliasing or similar stuff. It's that the GL backend doesn't support nested masks, draws some fills incorrectly, doesn't scale video and has some more low level problems. My desire is not that AGG becomes the default renderer; my desire is that these things get fixed. Udo From MAILER-DAEMON Mon Jun 04 16:46:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvJRI-0006Ej-Qx for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 16:46:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvJRH-0006BJ-AX for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:46:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvJRG-00068v-8x for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:46:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvJRG-00068q-6T for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:46:06 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvJRF-0002AR-Ju for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:46:05 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvJRE-0001vV-9c for gnash-commit@gnu.org; Mon, 04 Jun 2007 20:46:04 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvJRD-0001vQ-Sc for gnash-commit@gnu.org; Mon, 04 Jun 2007 20:46:04 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 20:46:03 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog README X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 20:46:07 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 20:46:03 Modified files: . : ChangeLog README Log message: * README: some opcode and classes are actually implemented now. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3453&r2=1.3454 http://cvs.savannah.gnu.org/viewcvs/gnash/README?cvsroot=gnash&r1=1.28&r2=1.29 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3453 retrieving revision 1.3454 diff -u -b -r1.3453 -r1.3454 --- ChangeLog 4 Jun 2007 19:21:20 -0000 1.3453 +++ ChangeLog 4 Jun 2007 20:46:01 -0000 1.3454 @@ -1,5 +1,9 @@ 2007-06-04 Sandro Santilli + * README: some opcode and classes are actually implemented now. + +2007-06-04 Sandro Santilli + * server/video_stream_instance.{cpp,h}: register Video AS class interface and provide class initialization. * server/asobj/: Global.cpp, Makefile.am, Video.{cpp,h}: Drop Video file, video Index: README =================================================================== RCS file: /sources/gnash/gnash/README,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- README 4 Jun 2007 18:00:08 -0000 1.28 +++ README 4 Jun 2007 20:46:03 -0000 1.29 @@ -1,4 +1,4 @@ -$Id: README,v 1.28 2007/06/04 18:00:08 rsavoye Exp $ +$Id: README,v 1.29 2007/06/04 20:46:03 strk Exp $ Gnash: the GNU Flash Player @@ -40,17 +40,17 @@ Currently implemented ActionScript classes are: Array, Boolean, Date, Key, Math, Mouse, Number, Object, Sound, String, XML, XMLNode, -XMLSocket, NetStream, NetConnection, +XMLSocket, NetStream, NetConnection, Stage, Button. Partially implemented classes are: MovieClipLoader, LocalConnection, -MovieClip, TextField, TextFormat, System, Function, LoadVars, +MovieClip, TextField, TextFormat, System, Function, LoadVars, Video. Unimplemented classes are: Accessibility, Error, Microphone, -Selection, SharedObject, Stage, Button, Camera, Color, ContextMenu, -CustomActions, Video. +Selection, SharedObject, Camera, Color, ContextMenu, +CustomActions. -Unimplemented Opcodes are: Throw, Implements, Extends, EnumObject, Try, -NewMethod, MDLength, MDSubstring, MDChr, Delete, GetTarget. +Unimplemented Opcodes are: Throw, Implements, Try, +MDLength, MDSubstring, MDChr. Currently streaming video for some video sharing sites like Lulu.tv, or YouTube.com, does work. Your mileage with other sites may vary, but From MAILER-DAEMON Mon Jun 04 16:55:20 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvJaB-00010A-Vy for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 16:55:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvJaA-0000zj-Kr for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:55:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvJa8-0000yl-Na for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:55:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvJa8-0000yf-6E for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:55:16 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvJa7-0003Br-Cd for gnash-commit@gnu.org; Mon, 04 Jun 2007 16:55:15 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvJa6-0002pG-NB for gnash-commit@gnu.org; Mon, 04 Jun 2007 20:55:14 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvJa6-0002pB-FW for gnash-commit@gnu.org; Mon, 04 Jun 2007 20:55:14 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 04 Jun 2007 20:55:14 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server/asobj NetStreamGst.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 20:55:18 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/04 20:55:14 Modified files: server/asobj : NetStreamGst.cpp Log message: comment out debugging line CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamGst.cpp?cvsroot=gnash&r1=1.53&r2=1.54 Patches: Index: NetStreamGst.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamGst.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -u -b -r1.53 -r1.54 --- NetStreamGst.cpp 1 Jun 2007 15:23:35 -0000 1.53 +++ NetStreamGst.cpp 4 Jun 2007 20:55:14 -0000 1.54 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamGst.cpp,v 1.53 2007/06/01 15:23:35 strk Exp $ */ +/* $Id: NetStreamGst.cpp,v 1.54 2007/06/04 20:55:14 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1044,7 +1044,7 @@ } else { - log_msg("Pausing pipeline on ::advance() [ loadCompleted returned false ]"); + //log_debug("Pausing pipeline on ::advance() [ loadCompleted returned false ]"); if ( !pausePipeline(true) ) { log_error("Could not pause pipeline"); From MAILER-DAEMON Mon Jun 04 21:36:16 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvNy3-0007S7-Tj for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 21:36:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvNy1-0007Rk-RX for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:36:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvNy0-0007RQ-Bm for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:36:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvNy0-0007RN-8X for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:36:12 -0400 Received: from nz-out-0506.google.com ([64.233.162.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HvNxz-0002nk-Te for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:36:12 -0400 Received: by nz-out-0506.google.com with SMTP id z3so1087003nzf for ; Mon, 04 Jun 2007 18:36:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f3BC8PH5R3u/Krx/Xe5hCxqEXiyeMii2I/9nlv/fy9nHuesOUqJvGEnZ4/nCq7V0Ij0hLgBN+OBKWL69O61cucnWqEAi/9/+kJ76Z1p9gsfdY/kAZQjtrnuOxhrTQWUc0EFs4RDecaVSuW8P8jJlLW/Bj03giSAAl1Jr795ReUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kg7Czp2t+J7bhZgcp5K3o+J7J8H6a1npZXpQlnHdLqmpCpVW+Ks45OTzxX3oRqRPAR1NTUsqfW2UFCAignVYMeV3UeZPs29myMOA6NccbEKiphLL/PpH2H7ovuXnALPindAMfj+iCwVY70EUopw6x6Ig7fdEkwSgLwANbzPbX+Y= Received: by 10.114.75.1 with SMTP id x1mr5402920waa.1181007370694; Mon, 04 Jun 2007 18:36:10 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Mon, 4 Jun 2007 18:36:10 -0700 (PDT) Message-ID: Date: Tue, 5 Jun 2007 09:36:10 +0800 From: "zou lunkai" To: "Udo Giacomozzi" Subject: Re: Re[2]: [Gnash-commit] gnash configure.ac ChangeLog doc/C/sources.xml In-Reply-To: <1514782293.20070604223210@nova-sys.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <465ED457.9070208@welcomehome.org> <56d259a00705310949v66047fd7kf1e1749057108a03@mail.gmail.com> <465EFEF6.5080308@welcomehome.org> <1322206542.20070604153636@nova-sys.net> <4664373C.2070605@welcomehome.org> <488797587.20070604184539@nova-sys.net> <46644553.8030806@welcomehome.org> <20070604170745.GB20664@keybit.net> <1514782293.20070604223210@nova-sys.net> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: gnash-commit@gnu.org, strk X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 01:36:14 -0000 GL library is installed in many systems by default, AGG is surely not, is this a reason that GL was chosed? > > Yes, it's not about anti-aliasing or similar stuff. It's that the GL > backend doesn't support nested masks, draws some fills incorrectly, > .... confirmed, I'm pretty sure about this problem with GL. GL maybe plays FLV files better, but not that good for traditional vector SWF files. From MAILER-DAEMON Mon Jun 04 21:50:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvOC2-0005R1-4g for mharc-gnash-commit@gnu.org; Mon, 04 Jun 2007 21:50:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvOC0-0005PR-4p for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:50:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvOBz-0005PE-Cs for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:50:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvOBz-0005PB-8X for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:50:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvOBy-0004H4-RD for gnash-commit@gnu.org; Mon, 04 Jun 2007 21:50:38 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvOBy-000718-07 for gnash-commit@gnu.org; Tue, 05 Jun 2007 01:50:38 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvOBx-000714-MN for gnash-commit@gnu.org; Tue, 05 Jun 2007 01:50:37 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Tue, 05 Jun 2007 01:50:37 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash gui/Makefile.am gui/Player.cpp ChangeLog [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 01:50:40 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/05 01:50:37 Modified files: gui : Makefile.am Player.cpp . : ChangeLog Log message: * gui/Makefile.am: Build Klash as well as Gnash if KDE exists, and it hasn't been disabled. * plugin/klash/klash_part.cpp: Launch klash, not gnash. * gui/Player.cpp: If specified, force a KDE build for Klash regardless of the default gui. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.75&r2=1.75.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.54&r2=1.54.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451&r2=1.3451.2.1 Patches: Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.75 retrieving revision 1.75.4.1 diff -u -b -r1.75 -r1.75.4.1 --- gui/Makefile.am 24 May 2007 21:35:02 -0000 1.75 +++ gui/Makefile.am 5 Jun 2007 01:50:35 -0000 1.75.4.1 @@ -15,9 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# - -# $Id: Makefile.am,v 1.75 2007/05/24 21:35:02 bjacques Exp $ +# $Id: Makefile.am,v 1.75.4.1 2007/06/05 01:50:35 rsavoye Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -55,10 +53,6 @@ $(ATK_LIBS) \ $(GLIB_LIBS) \ $(EXPAT_LIBS) -# $(PNG_CFLAGS) \ -# $(JPEG_CFLAGS) \ -# $(MP3_CFLAGS) \ -# $(OGG_CFLAGS) ## WARNING: make sure GLIB_LIBS appears first ## See: http://lists.gnu.org/archive/html/gnash-dev/2006-07/msg00076.html @@ -72,7 +66,6 @@ $(PTHREAD_LIBS) \ $(NULL) - if USE_RENDERER_OPENGL AM_CPPFLAGS += $(OPENGL_CFLAGS) if USE_GUI_GTK @@ -87,7 +80,8 @@ if USE_GUI_SDL SDL_OPENGL_SRCS = sdl_ogl_glue.cpp sdl_ogl_glue.h endif # USE_GUI_SDL -if USE_GUI_KDE +#if USE_GUI_KDE +if KLASH KDE_OPENGL_SRCS = kde_glue_opengl.cpp kde_glue_opengl.h AM_CPPFLAGS += $(KDE_CFLAGS) $(QT_CFLAGS) AM_LDFLAGS += $(KDE_LIBS) $(QT_LIBS) @@ -133,6 +127,7 @@ GTK_SRCS = gtk.cpp gtksup.h gtk_glue.h $(GTK_CAIRO_SRCS) $(GTK_OPENGL_SRCS) $(GTK_AGG_SRCS) AM_LDFLAGS += $(GTK_LIBS) $(X11_LIBS) AM_CPPFLAGS += $(GTK_CFLAGS) + GUI_CPPFLAGS = -DUSE_GTK else GTK_SRCS = endif @@ -140,23 +135,27 @@ if USE_GUI_RISCOS RISCOS_SRCS = riscos.cpp riscossup.h riscos_glue.h $(RISCOS_AGG_SRCS) AM_LDFLAGS += -lOSLib32 + GUI_CPPFLAGS = -DUSE_RISCOS else RISCS_SRCS = endif if USE_GUI_AQUA AQUA_SRCS = aqua.cpp aquasup.h aqua_glue.h $(AQUA_OPENGL_SRCS) + GUI_CPPFLAGS = -DUSE_AQUA else AQUA_SRCS = endif if USE_GUI_SDL SDL_SRCS = sdl.cpp sdlsup.h sdl_glue.h $(SDL_CAIRO_SRCS) $(SDL_OPENGL_SRCS) $(SDL_AGG_SRCS) + GUI_CPPFLAGS = -DUSE_SDL else SDL_SRCS = endif -if USE_GUI_KDE +#if USE_GUI_KDE +if KLASH KDE_SRCS = kde.cpp kdesup.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) AM_CPPFLAGS += -I$(kde_includes)/kio $(all_includes) else @@ -201,12 +200,17 @@ #dist_images_DATA = images/gnash_G_v3.ico imagesdir = $(pkgdatadir) +if KLASH +lib_LTLIBRARIES = libgnashgui.la libgnashplayer.la libklashplayer.la +else lib_LTLIBRARIES = libgnashgui.la libgnashplayer.la +endif + libgnashgui_la_SOURCES = \ $(SDL_SRCS) \ $(FLTK_SRCS) \ $(GTK_SRCS) \ - $(GTK2_SRCS) \ + $(GTK3_SRCS) \ $(KDE_SRCS) \ $(FB_SRCS) \ $(AQUA_SRCS) \ @@ -215,10 +219,10 @@ NullGui.cpp \ NullGui.h -libgnashgui_la_LIBADD = \ - $(top_builddir)/server/libgnashserver.la \ - $(top_builddir)/backend/libgnashbackend.la \ - $(top_builddir)/libamf/libgnashamf.la +#libgnashgui_la_LIBADD = \ +# $(top_builddir)/server/libgnashserver.la \ +# $(top_builddir)/backend/libgnashbackend.la \ +# $(top_builddir)/libamf/libgnashamf.la # is LDFLAGS still needed when AM_LDFLAGS is defined already ? libgnashgui_la_LDFLAGS = \ @@ -227,22 +231,37 @@ -export-dynamic \ $(AM_LDFLAGS) -if USE_GUI_KDE -bin_PROGRAMS = gnash # klash +if KLASH +bin_PROGRAMS = gnash klash else bin_PROGRAMS = gnash endif GNASH_LIBS = \ - libgnashgui.la \ $(top_builddir)/libamf/libgnashamf.la \ $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/server/libgnashserver.la \ $(top_builddir)/libgeometry/libgnashgeo.la \ $(top_builddir)/libbase/libgnashbase.la \ - libgnashplayer.la \ libgnashgui.la +if KLASH +libklashplayer_la_SOURCES = \ + Player.cpp Player.h + +libklashplayer_la_LIBADD = \ + $(top_builddir)/server/libgnashserver.la \ + $(top_builddir)/backend/libgnashbackend.la \ + libgnashgui.la + +libklashplayer_la_CPPFLAGS = $(AM_CPPFLAGS) -DBUILD_KLASH +libklashplayer_la_LDFLAGS = \ + -release $(VERSION) \ + -no-undefined \ + -export-dynamic \ + $(AM_LDFLAGS) + +endif libgnashplayer_la_SOURCES = \ Player.cpp Player.h @@ -251,6 +270,7 @@ $(top_builddir)/backend/libgnashbackend.la \ libgnashgui.la +libgnashplayer_la_CPPFLAGS = $(AM_CPPFLAGS) $(GUI_CPPFLAGS) libgnashplayer_la_LDFLAGS = \ -release $(VERSION) \ -no-undefined \ @@ -260,27 +280,32 @@ gnash_SOURCES = gnash.cpp # export our symbols so they can be used by Gnash plugins gnash_LDFLAGS = $(LIBLTDL) -export-dynamic -gnash_DEPENDENCIES = $(GNASH_LIBS) +gnash_DEPENDENCIES = libgnashgui.la $(GNASH_LIBS) gnash_LDADD = \ $(MYSQL_LIBS) \ + libgnashgui.la \ + libgnashplayer.la \ $(GNASH_LIBS) # $(LIBLTDL) "-dlopen" self "-dlopen" -#klash_SOURCES = gnash.cpp -#klash_CPPFLAGS = \ -# $(KDE_INCLS) \ -# -DUSE_KDE \ -# $(AM_CPPFLAGS) +if KLASH +klash_SOURCES = gnash.cpp +klash_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(KDE_INCLS) \ + $(AM_CPPFLAGS) + -DUSE_KDE + # export our symbols so they can be used by Gnash plugins -#klash_LDFLAGS = -export-dynamic -#klash_LDADD = \ -# $(LIB_KDECORE) \ -# $(LIB_KDEUI) \ -# $(GNASH_LIBS) +klash_LDFLAGS = $(LIBLTDL) -export-dynamic +klash_LDADD = \ + $(LIB_KDECORE) \ + $(LIB_KDEUI) \ + libklashplayer.la \ + $(GNASH_LIBS) -#klash_DEPENDENCIES = \ -# $(GNASH_LIBS) -# $(LIBLTDL) "-dlopen" self "-dlopen" +klash_DEPENDENCIES = libklashgui.la $(GNASH_LIBS) +endif CLEANFILES = klash.moc klash.moc: $(srcdir)/kdesup.h Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.54 retrieving revision 1.54.4.1 diff -u -b -r1.54 -r1.54.4.1 --- gui/Player.cpp 1 Jun 2007 15:01:55 -0000 1.54 +++ gui/Player.cpp 5 Jun 2007 01:50:36 -0000 1.54.4.1 @@ -21,6 +21,12 @@ #include "config.h" #endif +#ifdef BUILD_KLASH +#undef GUI_GTK +#undef GUI_KDE +#define GUI_KDE 1 +#endif + #ifndef GUI_KDE # ifdef GUI_GTK # include "gtksup.h" Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451 retrieving revision 1.3451.2.1 diff -u -b -r1.3451 -r1.3451.2.1 --- ChangeLog 4 Jun 2007 18:16:57 -0000 1.3451 +++ ChangeLog 5 Jun 2007 01:50:36 -0000 1.3451.2.1 @@ -1,3 +1,11 @@ +2007-06-04 Rob Savoye + + * gui/Makefile.am: Build Klash as well as Gnash if KDE exists, and + it hasn't been disabled. + * plugin/klash/klash_part.cpp: Launch klash, not gnash. + * gui/Player.cpp: If specified, force a KDE build for Klash regardless + of the default gui. + 2007-06-04 Sandro Santilli * testsuite/misc-ming.all/NetStream-SquareTest.c: set SWF rate back to From MAILER-DAEMON Tue Jun 05 02:07:40 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvSCh-0006ZK-Uv for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 02:07:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvSCh-0006ZF-2J for gnash-commit@gnu.org; Tue, 05 Jun 2007 02:07:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvSCg-0006Z3-AA for gnash-commit@gnu.org; Tue, 05 Jun 2007 02:07:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvSCg-0006Z0-6W for gnash-commit@gnu.org; Tue, 05 Jun 2007 02:07:38 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvSCf-0006vK-41 for gnash-commit@gnu.org; Tue, 05 Jun 2007 02:07:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvSCX-0003zv-Vt for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:07:30 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvSCX-0003zs-R5 for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:07:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Tue, 05 Jun 2007 06:07:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/as_object.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 06:07:39 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/05 06:07:29 Modified files: . : ChangeLog server : as_object.h Log message: change operator == to =, should fix a typo CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3454&r2=1.3455 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.h?cvsroot=gnash&r1=1.56&r2=1.57 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3454 retrieving revision 1.3455 diff -u -b -r1.3454 -r1.3455 --- ChangeLog 4 Jun 2007 20:46:01 -0000 1.3454 +++ ChangeLog 5 Jun 2007 06:07:28 -0000 1.3455 @@ -1,3 +1,7 @@ +2007-06-05 Zou Lunkai + + * server/as_object.h: change operator "==" to "=", should fix a typo. + 2007-06-04 Sandro Santilli * README: some opcode and classes are actually implemented now. Index: server/as_object.h =================================================================== RCS file: /sources/gnash/gnash/server/as_object.h,v retrieving revision 1.56 retrieving revision 1.57 diff -u -b -r1.56 -r1.57 --- server/as_object.h 28 May 2007 15:41:05 -0000 1.56 +++ server/as_object.h 5 Jun 2007 06:07:29 -0000 1.57 @@ -63,7 +63,7 @@ PropertyList _members; /// Don't allow implicit copy, must think about behaviour - as_object& operator==(const as_object&) + as_object& operator=(const as_object&) { assert(0); return *this; From MAILER-DAEMON Tue Jun 05 04:28:06 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvUOc-0001Rj-50 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvUOZ-0001RF-Vt for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvUOY-0001Qo-2X for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvUOX-0001Ql-SU for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:01 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvUOW-0005YI-1f for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:00 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvUOR-00062f-PU for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:27:55 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvUOR-00062c-IL for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:27:55 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 05 Jun 2007 08:27:55 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 08:28:04 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/05 08:27:55 Modified files: . : ChangeLog backend : render_handler_agg.cpp Log message: fix rotated video with AGG backend CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3455&r2=1.3456 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.84&r2=1.85 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3455 retrieving revision 1.3456 diff -u -b -r1.3455 -r1.3456 --- ChangeLog 5 Jun 2007 06:07:28 -0000 1.3455 +++ ChangeLog 5 Jun 2007 08:27:54 -0000 1.3456 @@ -1,3 +1,9 @@ +2007-06-04 Udo Giacomozzi + + * backend/render_handler_agg.cpp: correct matrix transformation + for rotated video; switch to /cloning/ image accessor to + make edges smooth for rotated video + 2007-06-05 Zou Lunkai * server/as_object.h: change operator "==" to "=", should fix a typo. Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.84 retrieving revision 1.85 diff -u -b -r1.84 -r1.85 --- backend/render_handler_agg.cpp 4 Jun 2007 16:59:03 -0000 1.84 +++ backend/render_handler_agg.cpp 5 Jun 2007 08:27:55 -0000 1.85 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.84 2007/06/04 16:59:03 strk Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.85 2007/06/05 08:27:55 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -334,6 +334,8 @@ double xscale, yscale; + + public: //int m_view_width; // TODO: remove these?? //int m_view_height; @@ -434,9 +436,6 @@ // whatever), but we'd need some way to tell the renderer the desired // quality. - // TODO: Test this with a rotated video. Maybe the image accessor - // will insert some ugly pixels (even if I don't think so) - Udo - // TODO: keep heavy instances alive accross frames for performance! // TODO: Maybe implement specialization for 1:1 scaled videos @@ -453,8 +452,8 @@ // convert Gnash matrix to AGG matrix and scale down to pixel coordinates // while we're at it agg::trans_affine img_mtx( - mat->m_[0][0]*20.0*vscaleX, mat->m_[1][0], - mat->m_[0][1], mat->m_[1][1]*20.0*vscaleY, + mat->m_[0][0], mat->m_[1][0], + mat->m_[0][1], mat->m_[1][1], mat->m_[0][2], mat->m_[1][2] ); @@ -464,14 +463,18 @@ // invert matrix since this is used for the image source img_mtx.invert(); + // convert TWIPS to pixels and apply video scale + img_mtx *= agg::trans_affine_scaling(1.0/(20.0*vscaleX), 1.0/(20.0*vscaleY)); + // span allocator is used to apply the matrix agg::span_allocator sa; typedef agg::span_interpolator_linear<> interpolator_type; interpolator_type interpolator(img_mtx); - // clipping image accessor is used to avoid repeating of the image - typedef agg::image_accessor_clip img_source_type; + // cloning image accessor is used to avoid disturbing pixels at the edges + // for rotated video. + typedef agg::image_accessor_clone img_source_type; // rendering buffer is used to access the frame pixels here agg::rendering_buffer img_buf(frame->m_data, frame->m_width, frame->m_height, @@ -479,10 +482,7 @@ baseformat img_pixf(img_buf); - // The second parameter passed to the constructor is the color (R,G,B,A) - // used for pixels outside the source image (ie. when the movie aspect - // ratio does not match the video instance). - img_source_type img_src(img_pixf, agg::rgba_pre(255,0,0,0)); + img_source_type img_src(img_pixf); // renderer base for the stage buffer (not the frame image!) renderer_base rbase(*m_pixf); From MAILER-DAEMON Tue Jun 05 04:28:14 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvUOk-0001UT-Cg for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvUOi-0001U5-KC for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvUOg-0001TX-NK for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvUOg-0001TM-Dg for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:10 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvUOf-0005ZA-GC for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvUOZ-00063e-BL for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:28:03 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvUOZ-00063X-4v for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:28:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 08:28:03 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server matrix.h [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 08:28:12 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 08:28:03 Modified files: server : matrix.h Log message: Add doc about angle parameter in set_rotation (radians) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/matrix.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.9&r2=1.9.4.1 Patches: Index: matrix.h =================================================================== RCS file: /sources/gnash/gnash/server/matrix.h,v retrieving revision 1.9 retrieving revision 1.9.4.1 diff -u -b -r1.9 -r1.9.4.1 --- matrix.h 28 May 2007 15:41:06 -0000 1.9 +++ matrix.h 5 Jun 2007 08:28:02 -0000 1.9.4.1 @@ -19,7 +19,7 @@ // // Original author: Thatcher Ulrich 2003 // -// $Id: matrix.h,v 1.9 2007/05/28 15:41:06 ann Exp $ +// $Id: matrix.h,v 1.9.4.1 2007/06/05 08:28:02 strk Exp $ // #ifndef GNASH_MATRIX_H @@ -122,7 +122,7 @@ /// Set the Y scale part of the matrix, will keep current rotation and X scale void set_y_scale(float scale); - /// Set the rotation part of the matrix, will keep current scale + /// Set the rotation part of the matrix, will keep current scale. Angle in radians. void set_rotation(float rotation); /// Set x translation From MAILER-DAEMON Tue Jun 05 04:28:37 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvUP7-0001Ws-If for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvUP4-0001We-TX for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvUP4-0001WS-Ei for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvUP4-0001WP-9K for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvUP2-0005bk-UD for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:28:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvUOy-00065X-7P for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:28:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvUOy-00065S-0q for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:28:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 08:28:28 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server matrix.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 08:28:35 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/05 08:28:28 Modified files: server : matrix.h Log message: Add doc about angle parameter in set_rotation (radians) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/matrix.h?cvsroot=gnash&r1=1.9&r2=1.10 Patches: Index: matrix.h =================================================================== RCS file: /sources/gnash/gnash/server/matrix.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- matrix.h 28 May 2007 15:41:06 -0000 1.9 +++ matrix.h 5 Jun 2007 08:28:27 -0000 1.10 @@ -19,7 +19,7 @@ // // Original author: Thatcher Ulrich 2003 // -// $Id: matrix.h,v 1.9 2007/05/28 15:41:06 ann Exp $ +// $Id: matrix.h,v 1.10 2007/06/05 08:28:27 strk Exp $ // #ifndef GNASH_MATRIX_H @@ -122,7 +122,7 @@ /// Set the Y scale part of the matrix, will keep current rotation and X scale void set_y_scale(float scale); - /// Set the rotation part of the matrix, will keep current scale + /// Set the rotation part of the matrix, will keep current scale. Angle in radians. void set_rotation(float rotation); /// Set x translation From MAILER-DAEMON Tue Jun 05 04:57:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvUqm-0004GR-Vi for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 04:57:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvUqk-0004GK-Dz for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:57:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvUqi-0004G8-4e for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:57:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvUqh-0004G5-Tr for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:57:07 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvUqg-0000Ry-7p for gnash-commit@gnu.org; Tue, 05 Jun 2007 04:57:06 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvUqa-0000jD-EZ for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:57:00 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvUqa-0000jA-AN for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:57:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 05 Jun 2007 08:57:00 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 08:57:11 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Branch: release-0-8-0 Changes by: Udo Giacomozzi 07/06/05 08:57:00 Modified files: . : ChangeLog backend : render_handler_agg.cpp Log message: fix rotated video with AGG backend CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.1&r2=1.3451.2.2 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.84&r2=1.84.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.1 retrieving revision 1.3451.2.2 diff -u -b -r1.3451.2.1 -r1.3451.2.2 --- ChangeLog 5 Jun 2007 01:50:36 -0000 1.3451.2.1 +++ ChangeLog 5 Jun 2007 08:56:58 -0000 1.3451.2.2 @@ -1,3 +1,9 @@ +2007-06-05 Udo Giacomozzi + + * backend/render_handler_agg.cpp: correct matrix transformation + for rotated video; switch to /cloning/ image accessor to + make edges smooth for rotated video + 2007-06-04 Rob Savoye * gui/Makefile.am: Build Klash as well as Gnash if KDE exists, and Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.84 retrieving revision 1.84.4.1 diff -u -b -r1.84 -r1.84.4.1 --- backend/render_handler_agg.cpp 4 Jun 2007 16:59:03 -0000 1.84 +++ backend/render_handler_agg.cpp 5 Jun 2007 08:56:59 -0000 1.84.4.1 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.84 2007/06/04 16:59:03 strk Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.84.4.1 2007/06/05 08:56:59 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -334,6 +334,8 @@ double xscale, yscale; + + public: //int m_view_width; // TODO: remove these?? //int m_view_height; @@ -434,9 +436,6 @@ // whatever), but we'd need some way to tell the renderer the desired // quality. - // TODO: Test this with a rotated video. Maybe the image accessor - // will insert some ugly pixels (even if I don't think so) - Udo - // TODO: keep heavy instances alive accross frames for performance! // TODO: Maybe implement specialization for 1:1 scaled videos @@ -453,8 +452,8 @@ // convert Gnash matrix to AGG matrix and scale down to pixel coordinates // while we're at it agg::trans_affine img_mtx( - mat->m_[0][0]*20.0*vscaleX, mat->m_[1][0], - mat->m_[0][1], mat->m_[1][1]*20.0*vscaleY, + mat->m_[0][0], mat->m_[1][0], + mat->m_[0][1], mat->m_[1][1], mat->m_[0][2], mat->m_[1][2] ); @@ -464,14 +463,18 @@ // invert matrix since this is used for the image source img_mtx.invert(); + // convert TWIPS to pixels and apply video scale + img_mtx *= agg::trans_affine_scaling(1.0/(20.0*vscaleX), 1.0/(20.0*vscaleY)); + // span allocator is used to apply the matrix agg::span_allocator sa; typedef agg::span_interpolator_linear<> interpolator_type; interpolator_type interpolator(img_mtx); - // clipping image accessor is used to avoid repeating of the image - typedef agg::image_accessor_clip img_source_type; + // cloning image accessor is used to avoid disturbing pixels at the edges + // for rotated video. + typedef agg::image_accessor_clone img_source_type; // rendering buffer is used to access the frame pixels here agg::rendering_buffer img_buf(frame->m_data, frame->m_width, frame->m_height, @@ -479,10 +482,7 @@ baseformat img_pixf(img_buf); - // The second parameter passed to the constructor is the color (R,G,B,A) - // used for pixels outside the source image (ie. when the movie aspect - // ratio does not match the video instance). - img_source_type img_src(img_pixf, agg::rgba_pre(255,0,0,0)); + img_source_type img_src(img_pixf); // renderer base for the stage buffer (not the frame image!) renderer_base rbase(*m_pixf); From MAILER-DAEMON Tue Jun 05 06:09:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvVyr-0001us-Tf for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 06:09:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvVyq-0001uk-Cu for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:09:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvVyp-0001uY-5q for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:09:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvVyp-0001uV-2S for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:09:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvVyo-0000Si-M0 for gnash-commit@gnu.org; Tue, 05 Jun 2007 06:09:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvVyo-0004oK-3X for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:09:34 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvVyn-0004oG-OS for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:09:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 10:09:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog gui/Makefile.am [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 10:09:36 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 10:09:33 Modified files: . : ChangeLog gui : Makefile.am Log message: * gui/Makefile.am: there's no such libklashgui.la lib to depend on (and klash still works). Fixes bug #20078. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.2&r2=1.3451.2.3 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.75.4.1&r2=1.75.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.2 retrieving revision 1.3451.2.3 diff -u -b -r1.3451.2.2 -r1.3451.2.3 --- ChangeLog 5 Jun 2007 08:56:58 -0000 1.3451.2.2 +++ ChangeLog 5 Jun 2007 10:09:32 -0000 1.3451.2.3 @@ -1,3 +1,8 @@ +2007-06-04 Sandro Santilli + + * gui/Makefile.am: there's no such libklashgui.la lib to + depend on (and klash still works). Fixes bug #20078. + 2007-06-05 Udo Giacomozzi * backend/render_handler_agg.cpp: correct matrix transformation Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.75.4.1 retrieving revision 1.75.4.2 diff -u -b -r1.75.4.1 -r1.75.4.2 --- gui/Makefile.am 5 Jun 2007 01:50:35 -0000 1.75.4.1 +++ gui/Makefile.am 5 Jun 2007 10:09:33 -0000 1.75.4.2 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.75.4.1 2007/06/05 01:50:35 rsavoye Exp $ +# $Id: Makefile.am,v 1.75.4.2 2007/06/05 10:09:33 strk Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -304,7 +304,7 @@ libklashplayer.la \ $(GNASH_LIBS) -klash_DEPENDENCIES = libklashgui.la $(GNASH_LIBS) +klash_DEPENDENCIES = $(GNASH_LIBS) endif CLEANFILES = klash.moc From MAILER-DAEMON Tue Jun 05 07:21:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvX6Z-0003tq-0S for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 07:21:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvX6X-0003tY-Fk for gnash-commit@gnu.org; Tue, 05 Jun 2007 07:21:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvX6W-0003tF-V2 for gnash-commit@gnu.org; Tue, 05 Jun 2007 07:21:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvX6W-0003tC-QQ for gnash-commit@gnu.org; Tue, 05 Jun 2007 07:21:36 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvX6W-0000O1-FI for gnash-commit@gnu.org; Tue, 05 Jun 2007 07:21:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvX6V-0002lJ-NJ for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:21:35 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvX6V-0002lG-IQ for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:21:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 05 Jun 2007 11:21:35 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 11:21:37 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/05 11:21:35 Modified files: . : ChangeLog Log message: typo CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3456&r2=1.3457 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3456 retrieving revision 1.3457 diff -u -b -r1.3456 -r1.3457 --- ChangeLog 5 Jun 2007 08:27:54 -0000 1.3456 +++ ChangeLog 5 Jun 2007 11:21:34 -0000 1.3457 @@ -1,4 +1,4 @@ -2007-06-04 Udo Giacomozzi +2007-06-05 Udo Giacomozzi * backend/render_handler_agg.cpp: correct matrix transformation for rotated video; switch to /cloning/ image accessor to From MAILER-DAEMON Tue Jun 05 08:05:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvXnA-0006aD-TU for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 08:05:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvXn8-0006Zw-Ju for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:05:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvXn6-0006ZQ-Uc for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:05:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvXn6-0006ZG-ME for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:05:36 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvXn6-00068K-6M for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:05:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvXmz-0006h3-3C for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:05:29 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvXmy-0006gz-UF for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:05:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 12:05:28 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/usage/gnashrc.xml X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 12:05:39 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/05 12:05:28 Modified files: . : ChangeLog doc/C/usermanual/usage: gnashrc.xml Log message: There are currently still two copies of gnashrc.xml; this puts them in sync. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3457&r2=1.3458 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/usage/gnashrc.xml?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3457 retrieving revision 1.3458 diff -u -b -r1.3457 -r1.3458 --- ChangeLog 5 Jun 2007 11:21:34 -0000 1.3457 +++ ChangeLog 5 Jun 2007 12:05:28 -0000 1.3458 @@ -1,3 +1,8 @@ +2007-06-05 Ann Barcomb + + * doc/C/usermanual/usage/gnashrc.xml: Copy Sandro's commit + 1.3435 of doc/C/gnashrc.xml to the new gnashrc.xml + 2007-06-05 Udo Giacomozzi * backend/render_handler_agg.cpp: correct matrix transformation Index: doc/C/usermanual/usage/gnashrc.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/usage/gnashrc.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- doc/C/usermanual/usage/gnashrc.xml 26 May 2007 17:04:47 -0000 1.3 +++ doc/C/usermanual/usage/gnashrc.xml 5 Jun 2007 12:05:28 -0000 1.4 @@ -170,6 +170,16 @@ + + StartStopped + + + Set to ``on'' to have the GUI start in "stop" mode. This is useful in particular + for the plugin, so you have to explicitly start any movie on a webpage. Off by default. + + + + From MAILER-DAEMON Tue Jun 05 08:09:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvXqx-0004f3-GD for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 08:09:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvXqv-0004em-Sg for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:09:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvXqu-0004eR-Tc for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:09:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvXqu-0004eO-Jv for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:09:32 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvXqt-0006bl-T7 for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:09:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvXqt-0006u8-FD for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:09:31 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvXqt-0006u4-9Y for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:09:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 12:09:31 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash doc/C/usermanual/doc_authors.xml doc/C/us... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 12:09:34 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/05 12:09:31 Modified files: doc/C/usermanual: doc_authors.xml revisions.xml devtools/testsuite: tabs.t uncuddled_else.t copyright_notices.t c_casts.t devtools/lib/Gnash: Utils.pm Distribution.pm . : ChangeLog Log message: Changed my email address. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/doc_authors.xml?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/revisions.xml?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/tabs.t?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/uncuddled_else.t?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/copyright_notices.t?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/c_casts.t?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/lib/Gnash/Utils.pm?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/lib/Gnash/Distribution.pm?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3458&r2=1.3459 Patches: Index: doc/C/usermanual/doc_authors.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/doc_authors.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/doc_authors.xml 22 May 2007 13:48:08 -0000 1.1 +++ doc/C/usermanual/doc_authors.xml 5 Jun 2007 12:09:29 -0000 1.2 @@ -14,7 +14,7 @@ Barcomb
- ann@lulu.com + kudra@domaintje.com
Document maintainer Index: doc/C/usermanual/revisions.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/revisions.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/revisions.xml 22 May 2007 13:48:09 -0000 1.1 +++ doc/C/usermanual/revisions.xml 5 Jun 2007 12:09:30 -0000 1.2 @@ -5,7 +5,7 @@ May 2007 Ann Barcomb - ann@lulu.com + kudra@domaintje.com Rewritten for software version 0.8.0. Index: devtools/testsuite/tabs.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/tabs.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- devtools/testsuite/tabs.t 29 Mar 2007 11:42:46 -0000 1.1 +++ devtools/testsuite/tabs.t 5 Jun 2007 12:09:30 -0000 1.2 @@ -64,7 +64,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/uncuddled_else.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/uncuddled_else.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- devtools/testsuite/uncuddled_else.t 31 Jan 2007 02:54:59 -0000 1.1 +++ devtools/testsuite/uncuddled_else.t 5 Jun 2007 12:09:30 -0000 1.2 @@ -79,7 +79,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/copyright_notices.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/copyright_notices.t,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- devtools/testsuite/copyright_notices.t 28 May 2007 15:07:25 -0000 1.3 +++ devtools/testsuite/copyright_notices.t 5 Jun 2007 12:09:30 -0000 1.4 @@ -104,7 +104,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/c_casts.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/c_casts.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- devtools/testsuite/c_casts.t 8 Apr 2007 13:51:10 -0000 1.1 +++ devtools/testsuite/c_casts.t 5 Jun 2007 12:09:30 -0000 1.2 @@ -89,7 +89,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/lib/Gnash/Utils.pm =================================================================== RCS file: /sources/gnash/gnash/devtools/lib/Gnash/Utils.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- devtools/lib/Gnash/Utils.pm 8 Apr 2007 14:32:10 -0000 1.2 +++ devtools/lib/Gnash/Utils.pm 5 Jun 2007 12:09:30 -0000 1.3 @@ -125,7 +125,7 @@ =head1 AUTHORS -Ann Barcomb +Ann Barcomb =head1 COPYRIGHT Index: devtools/lib/Gnash/Distribution.pm =================================================================== RCS file: /sources/gnash/gnash/devtools/lib/Gnash/Distribution.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- devtools/lib/Gnash/Distribution.pm 11 Apr 2007 17:44:35 -0000 1.2 +++ devtools/lib/Gnash/Distribution.pm 5 Jun 2007 12:09:30 -0000 1.3 @@ -284,7 +284,7 @@ =head1 AUTHORS -Ann Barcomb and Jerry Gay, based upon ideas from the Parrot +Ann Barcomb and Jerry Gay, based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3458 retrieving revision 1.3459 diff -u -b -r1.3458 -r1.3459 --- ChangeLog 5 Jun 2007 12:05:28 -0000 1.3458 +++ ChangeLog 5 Jun 2007 12:09:30 -0000 1.3459 @@ -1,7 +1,8 @@ -2007-06-05 Ann Barcomb +2007-06-05 Ann Barcomb * doc/C/usermanual/usage/gnashrc.xml: Copy Sandro's commit 1.3435 of doc/C/gnashrc.xml to the new gnashrc.xml + * many files: Changed my email address 2007-06-05 Udo Giacomozzi @@ -416,7 +417,7 @@ * server/video_stream_instance.cpp (display): stop calling NetStream::playing(). -2007-05-28 Ann Barcomb +2007-05-28 Ann Barcomb * many files: Add a paragraph break before the line 'You should have received...' in the copyright notice. @@ -444,7 +445,7 @@ * testsuite/misc-ming.all/matrix_test.c: round numbers to 1/100 to reduce floating number based errors. -2007-05-27 Ann Barcomb +2007-05-27 Ann Barcomb * devtools/testsuite/copyright_notices.t: Added a script to look for incorrect copyright notices. @@ -471,7 +472,7 @@ the base QT directory, no strings attached (and no version numbers required). -2007-05-27 Ann Barcomb +2007-05-27 Ann Barcomb * doc/C/usermanual/installation/documentation_dependencies.xml: Corrected information about FOP requirement. @@ -486,7 +487,7 @@ might not be correct behavoir... Fix some issues when closing NetStream before playback has been set up. -2007-05-26 Ann Barcomb +2007-05-26 Ann Barcomb * doc/C/gnashrc.xml: Corrected spelling * doc/C/usermanual/usage/gnashrc.xml: Propogated changes from @@ -518,7 +519,7 @@ * macros/kde.m4: Check if we actually need the kde subdirectory of the KDE prefix we got from kde-config. -2007-05-26 Ann Barcomb +2007-05-26 Ann Barcomb * doc/C/usermanual/installation/cross_compiling.xml, doc/C/usermanual/installation.xml: Added section on cross compiling @@ -771,7 +772,7 @@ execute_tag, and make RemoveObject and PlaceObject subclasses of it. -2007-05-23 Ann Barcomb +2007-05-23 Ann Barcomb * doc/C/usermanual/installation/feature_configuration.xml, doc/C/usermanual/installation/configuration.xml: Incorporated @@ -880,7 +881,7 @@ Needs a Ming version that supports it, checked by MING_SUPPORTS_REPLACE as set by ./configure. -2007-05-22 Ann Barcomb +2007-05-22 Ann Barcomb * doc/C/usermanual/installation/configuration.xml: List interesting options before custom path options @@ -897,7 +898,7 @@ * server/sprite_instance.cpp: avoid call to set_invalidated() (of parent) when replacing a char -2007-05-22 Ann Barcomb +2007-05-22 Ann Barcomb * doc/C/usermanual/*: Added files for the new user manual. * doc/C/app_authors.xml: Added a file which is used in the user manual @@ -3442,7 +3443,7 @@ testsuite/misc-ming.all/displaylist_depths_test.c: few more successes. -2007-04-11 Ann Barcomb +2007-04-11 Ann Barcomb * devtools/lib/Gnash/Distribution.pm: made it more difficult to mistakenly use the wrong root distribution @@ -3490,7 +3491,7 @@ * testsuite/misc-ming.all/displaylist_depths_test.c: test that event handlers need to be duplicated too. -2007-04-11 Ann Barcomb +2007-04-11 Ann Barcomb * testsuite/actionscript.all/gen-index-wiki.sh doc/C/sources.xml: Changed all references of 'gnash.lulu.com' to 'www.gnashdev.org'. @@ -3694,7 +3695,7 @@ thread (rather than two extra threads) for decoding. Plug a memory leak (ByteIOCxt.buffer). Modularise some more code. -2007-04-08 Ann Barcomb +2007-04-08 Ann Barcomb * devtools/testsuite/c_casts.t: added this test at Bastiaan's request. @@ -4309,7 +4310,7 @@ test runner, with new interfaces to it for resize request) * utilities/Makefile.am: add libgnashasobjs, now needed. -2007-03-29 Ann Barcomb +2007-03-29 Ann Barcomb * devtools/testsuite/tabs.t: added check for hard tabs in C++ source. @@ -4687,7 +4688,7 @@ * configure.ac macros/kde.m4: Fix broken QT detection on Debian. -2007-03-20 Ann Barcomb +2007-03-20 Ann Barcomb * server/asobj/gen-asclass.pl: Produces exactly the same output as gen-asclass.sh with some extra features. @@ -4724,7 +4725,7 @@ embedding a Gnash into Konqueror, skip window creation. This also fixes a problem with scaling. -2007-03-20 Ann Barcomb +2007-03-20 Ann Barcomb * doc/C/actionscript/new_as_class.xml: Change documentation to intrusive_ptr (see Sandro's previous commits). @@ -4775,18 +4776,18 @@ rely on Gnash extensions. Actually check that the extensions are *not* there, as we want to be compatible !! -2007-03-20 Ann Barcomb +2007-03-20 Ann Barcomb * server/asobj/Key.cpp, MovieClipLoader.cpp, xml.cpp, xmlnode.cpp, xmlsocket.cpp: Change casts and asserts to ensureType. -2007-03-20 Ann Barcomb +2007-03-20 Ann Barcomb * server/asobj/ContextMenu.cpp, Date.cpp, LoadVars.cpp, string.cpp, NetConnection.cpp, NetStream.cpp, Sound.cpp, gen-asclass.sh: Changed instances of ensureClass to use inherited ensureType. -2007-03-20 Ann Barcomb +2007-03-20 Ann Barcomb * doc/C/actionscript/new_as_class.xml: syntax of 'ensure' changed to correspond with Bastiaan's last commit. @@ -4816,7 +4817,7 @@ * testsuite/actionscript.all/Function.as: expect a couple of successes I missed on last commit. -2007-03-19 Ann Barcomb +2007-03-19 Ann Barcomb * server/as_object.h: corrected Doxygen comments about get_member() versus gettersetter methods. @@ -4827,7 +4828,7 @@ for 'constructor', '__constructor__' and super. A lot of them fail and the test is still not complete. -2007-03-19 Ann Barcomb +2007-03-19 Ann Barcomb * doc/C/actionscript/new_as_class.xml: document the changed syntax for returning a value (see Bastiaan's commit). @@ -4843,7 +4844,7 @@ * server/as_value.h: Add additional constructors taking longs as arguments to account for platforms that define size types as longs. -2007-03-19 Ann Barcomb +2007-03-19 Ann Barcomb * doc/C/actionscript.xml, doc/C/actionscript/*, doc/C/Makefile.am: Split main.xml into multiple files. @@ -4854,7 +4855,7 @@ Accept call in the form setInterval(obj, methodname, timer); warn about unsupported args (right-most arguments). -2007-03-19 Ann Barcomb +2007-03-19 Ann Barcomb * doc/C/actionscript.xml, doc/C/gnash.xml, doc/C/actionscript/main.xml, doc/C/Makefile.am: ActionScript has been removed from the Gnash @@ -5382,7 +5383,7 @@ * testsuite/misc-mtasc.all/function.as: add (failing) test for 'this' pointer being correctly set on ActionCallMethod. -2007-03-06 Ann Barcomb +2007-03-06 Ann Barcomb * server/asobj/xmlsocket.cpp: convert init_member to new syntax. @@ -5424,7 +5425,7 @@ being the cause for the occasional segfaults raising on 'make check' (to be confirmed, hopefully). -2007-03-05 Ann Barcomb +2007-03-05 Ann Barcomb * server/asobj/xmlnode.cpp: convert init_member to new interface. @@ -5439,7 +5440,7 @@ * testsuite/misc-ming.all/action_execution_order_extend_test.c: Do not expect failures of unload event execution. -2007-03-05 Ann Barcomb +2007-03-05 Ann Barcomb * doc/C/internals.xml: section 'ActionScript Support' was updated in an attempt to describe the current interface. @@ -7294,7 +7295,7 @@ * testsuite/misc-ming.all/goto_frame_test.c: add test for consecutive goto -2007-01-30 Ann Barcomb +2007-01-30 Ann Barcomb * Added: devtools/lib/Gnash/Distribution.pm and devtools/lib/Gnash/Utils.pm @@ -7387,7 +7388,7 @@ user if next tag is not an END. This happens when Ming users forget to call SWFMovie_nextFrame() as last thing before output. -2007-01-29 Ann Barcomb +2007-01-29 Ann Barcomb * Removed reference to '--disable-xml' option in doc/C/sources.xml. It is required now. @@ -7497,7 +7498,7 @@ Seems to work internally, but reveals a bug in invalidated bounds computation !! -2007-01-24 Ann Barcomb +2007-01-24 Ann Barcomb * Replaced outdated references to -a in the manual (doc/C) with current usage. @@ -7641,7 +7642,7 @@ * testsuite/misc-ming.all/: Makefile.am, goto_frame_test.c: Failing test for gotoFrame action. -2007-01-22 Ann Barcomb +2007-01-22 Ann Barcomb * Partially merged branch 'testing-documentation-refactor' for files doc/C/sources.xml and doc/C/internals.xml. The change @@ -8288,7 +8289,7 @@ * testsuite/actionscript.all/check.as: Ming can compile 'asm' blocks since 0.4.0.beta3, not beta2 (as of Ming's NEWS file). -2007-01-03 Ann Barcomb +2007-01-03 Ann Barcomb * Removed 'Level of Conformance' from doc/C/internals.xml. This information will go in the wiki. Temporarily created @@ -8305,7 +8306,7 @@ day.) To do this, all we have to do is to make sure GL/glx.h is included. -2007-01-03 Ann Barcomb +2007-01-03 Ann Barcomb * Corrected Firefox version and canvas information in doc/C/internals.xml @@ -8322,13 +8323,13 @@ AV_NOPTS_VALUE. Dynamic allocation of the buffer, since it's wasn't valid ISO C++ before. -2007-01-02 Ann Barcomb +2007-01-02 Ann Barcomb * Created directory devtools, which will contain things like editor styles, tests for style conformity, server-side CVS hooks, etc. -2007-01-02 Ann Barcomb +2007-01-02 Ann Barcomb * Removed zoomhenge.mbox; information abstracted to README. @@ -8679,7 +8680,7 @@ * testsuite/misc-ming.all/timeline_var_test.c: added additional check for timeline variables. -2006-12-19 Ann Barcomb +2006-12-19 Ann Barcomb * removed testsuite/movies.all/elvis.swf due to license uncertainty. @@ -8995,7 +8996,7 @@ * server/asobj/string.cpp: added get_text_value override. -2006-12-12 Ann Barcomb +2006-12-12 Ann Barcomb * The Dejagnu format--as described in the test section of the Docbook documentation--is now fully explained. @@ -9004,7 +9005,7 @@ * testsuite/movies.all/: ORIGIN merged into README. -2006-12-11 Ann Barcomb +2006-12-11 Ann Barcomb * Added test movie 'testsuite/movies.all/yapc2006.swf', a large movie which does not currently play very well. @@ -9015,7 +9016,7 @@ loop_test.swf: Added contributed SWF test and associated test runner. See patch #5620. -2006-12-11 Ann Barcomb +2006-12-11 Ann Barcomb * Modified plugin list in documentation, based upon comments from Bastiaan. @@ -9237,7 +9238,7 @@ * libbase/extension.cpp: Remove the plugin suffix. * libbase/sharedlib.cpp: Don't exit libltdl in the destructor. -2006-12-07 Ann Barcomb +2006-12-07 Ann Barcomb * doc/C/internals.xml, gnashrc.xml: Explicitly documented that there are two sound support From MAILER-DAEMON Tue Jun 05 08:15:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvXwt-0002yK-L1 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 08:15:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvXws-0002y6-Kp for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:15:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvXwr-0002xt-S6 for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:15:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvXwr-0002xq-Mg for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:15:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvXwr-0007SR-Di for gnash-commit@gnu.org; Tue, 05 Jun 2007 08:15:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvXwr-0007G4-0p for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:15:41 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvXwq-0007G0-Q4 for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:15:40 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 12:15:40 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/doc_authors.xm... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 12:15:42 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 12:15:40 Modified files: . : ChangeLog doc/C/usermanual: doc_authors.xml revisions.xml doc/C/usermanual/usage: gnashrc.xml devtools/lib/Gnash: Distribution.pm Utils.pm devtools/testsuite: c_casts.t copyright_notices.t tabs.t uncuddled_else.t Log message: Add recent changes to the release branch as well. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.3&r2=1.3451.2.4 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/doc_authors.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/revisions.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/usage/gnashrc.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3&r2=1.3.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/lib/Gnash/Distribution.pm?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/lib/Gnash/Utils.pm?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/c_casts.t?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/copyright_notices.t?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3&r2=1.3.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/tabs.t?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/devtools/testsuite/uncuddled_else.t?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.3 retrieving revision 1.3451.2.4 diff -u -b -r1.3451.2.3 -r1.3451.2.4 --- ChangeLog 5 Jun 2007 10:09:32 -0000 1.3451.2.3 +++ ChangeLog 5 Jun 2007 12:15:37 -0000 1.3451.2.4 @@ -1,3 +1,9 @@ +2007-06-05 Ann Barcomb + + * doc/C/usermanual/usage/gnashrc.xml: Copy Sandro's commit + 1.3435 of doc/C/gnashrc.xml to the new gnashrc.xml + * many files: Changed my email address + 2007-06-04 Sandro Santilli * gui/Makefile.am: there's no such libklashgui.la lib to Index: doc/C/usermanual/doc_authors.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/doc_authors.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/doc_authors.xml 22 May 2007 13:48:08 -0000 1.1 +++ doc/C/usermanual/doc_authors.xml 5 Jun 2007 12:15:38 -0000 1.1.4.1 @@ -14,7 +14,7 @@ Barcomb
- ann@lulu.com + kudra@domaintje.com
Document maintainer Index: doc/C/usermanual/revisions.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/revisions.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/revisions.xml 22 May 2007 13:48:09 -0000 1.1 +++ doc/C/usermanual/revisions.xml 5 Jun 2007 12:15:38 -0000 1.1.4.1 @@ -5,7 +5,7 @@ May 2007 Ann Barcomb - ann@lulu.com + kudra@domaintje.com Rewritten for software version 0.8.0. Index: doc/C/usermanual/usage/gnashrc.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/usage/gnashrc.xml,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -u -b -r1.3 -r1.3.4.1 --- doc/C/usermanual/usage/gnashrc.xml 26 May 2007 17:04:47 -0000 1.3 +++ doc/C/usermanual/usage/gnashrc.xml 5 Jun 2007 12:15:39 -0000 1.3.4.1 @@ -170,6 +170,16 @@ + + StartStopped + + + Set to ``on'' to have the GUI start in "stop" mode. This is useful in particular + for the plugin, so you have to explicitly start any movie on a webpage. Off by default. + + + + Index: devtools/lib/Gnash/Distribution.pm =================================================================== RCS file: /sources/gnash/gnash/devtools/lib/Gnash/Distribution.pm,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- devtools/lib/Gnash/Distribution.pm 11 Apr 2007 17:44:35 -0000 1.2 +++ devtools/lib/Gnash/Distribution.pm 5 Jun 2007 12:15:39 -0000 1.2.4.1 @@ -284,7 +284,7 @@ =head1 AUTHORS -Ann Barcomb and Jerry Gay, based upon ideas from the Parrot +Ann Barcomb and Jerry Gay, based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/lib/Gnash/Utils.pm =================================================================== RCS file: /sources/gnash/gnash/devtools/lib/Gnash/Utils.pm,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- devtools/lib/Gnash/Utils.pm 8 Apr 2007 14:32:10 -0000 1.2 +++ devtools/lib/Gnash/Utils.pm 5 Jun 2007 12:15:39 -0000 1.2.4.1 @@ -125,7 +125,7 @@ =head1 AUTHORS -Ann Barcomb +Ann Barcomb =head1 COPYRIGHT Index: devtools/testsuite/c_casts.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/c_casts.t,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- devtools/testsuite/c_casts.t 8 Apr 2007 13:51:10 -0000 1.1 +++ devtools/testsuite/c_casts.t 5 Jun 2007 12:15:39 -0000 1.1.4.1 @@ -89,7 +89,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/copyright_notices.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/copyright_notices.t,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -u -b -r1.3 -r1.3.4.1 --- devtools/testsuite/copyright_notices.t 28 May 2007 15:07:25 -0000 1.3 +++ devtools/testsuite/copyright_notices.t 5 Jun 2007 12:15:39 -0000 1.3.4.1 @@ -104,7 +104,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/tabs.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/tabs.t,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- devtools/testsuite/tabs.t 29 Mar 2007 11:42:46 -0000 1.1 +++ devtools/testsuite/tabs.t 5 Jun 2007 12:15:39 -0000 1.1.4.1 @@ -64,7 +64,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT Index: devtools/testsuite/uncuddled_else.t =================================================================== RCS file: /sources/gnash/gnash/devtools/testsuite/uncuddled_else.t,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- devtools/testsuite/uncuddled_else.t 31 Jan 2007 02:54:59 -0000 1.1 +++ devtools/testsuite/uncuddled_else.t 5 Jun 2007 12:15:39 -0000 1.1.4.1 @@ -79,7 +79,7 @@ =head1 AUTHORS -Ann Barcomb , based upon ideas from the Parrot +Ann Barcomb , based upon ideas from the Parrot L test suite. =head1 COPYRIGHT From MAILER-DAEMON Tue Jun 05 09:07:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvYkd-00081m-8q for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvYkb-0007vj-1Q for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvYkZ-0007t9-Rv for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvYkZ-0007t1-IS for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvYkZ-00052i-66 for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvYkY-0002d9-Rj for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:07:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvYkY-0002d4-LV for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:07:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 13:07:02 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:07:05 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/05 13:07:02 Modified files: . : ChangeLog testsuite : MovieTester.cpp Log message: * testsuite/MovieTester.cpp (addTestingRenderer): register the first and only tested renderer immediately, to be more tolerant about limitations in the core lib preveing hot-swap of renderers. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3459&r2=1.3460 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.38&r2=1.39 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3459 retrieving revision 1.3460 diff -u -b -r1.3459 -r1.3460 --- ChangeLog 5 Jun 2007 12:09:30 -0000 1.3459 +++ ChangeLog 5 Jun 2007 13:07:01 -0000 1.3460 @@ -1,3 +1,9 @@ +2007-06-04 Sandro Santilli + + * testsuite/MovieTester.cpp (addTestingRenderer): register the first + and only tested renderer immediately, to be more tolerant about + limitations in the core lib preveing hot-swap of renderers. + 2007-06-05 Ann Barcomb * doc/C/usermanual/usage/gnashrc.xml: Copy Sandro's commit Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -u -b -r1.38 -r1.39 --- testsuite/MovieTester.cpp 4 Jun 2007 16:59:03 -0000 1.38 +++ testsuite/MovieTester.cpp 5 Jun 2007 13:07:01 -0000 1.39 @@ -433,6 +433,10 @@ } _testingRenderers.push_back(TestingRendererPtr(new TestingRenderer(h, name))); + + // this will be needed till we allow run-time swapping of renderers, + // see above UNTESTED message... + set_render_handler(&(_testingRenderers.back()->getRenderer())); } void From MAILER-DAEMON Tue Jun 05 09:07:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvYlB-0000fE-K9 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvYl9-0000cf-LO for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvYl7-0000bG-RW for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvYl7-0000ay-KW for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvYl7-00055z-7B for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:07:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvYl6-0002eq-T3 for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:07:36 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvYl6-0002el-OJ for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:07:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 13:07:36 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/installation/b... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:07:40 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 13:07:36 Modified files: . : ChangeLog doc/C/usermanual/installation: building.xml Log message: This commit completes the file building.xml by adding missing information about building documentation, and by adding details on testing. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.4&r2=1.3451.2.5 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/building.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.4 retrieving revision 1.3451.2.5 diff -u -b -r1.3451.2.4 -r1.3451.2.5 --- ChangeLog 5 Jun 2007 12:15:37 -0000 1.3451.2.4 +++ ChangeLog 5 Jun 2007 13:07:35 -0000 1.3451.2.5 @@ -1,5 +1,8 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/installation/building.xml: Completed instructions + for building documentation; added instructions for testing from + old manual. * doc/C/usermanual/usage/gnashrc.xml: Copy Sandro's commit 1.3435 of doc/C/gnashrc.xml to the new gnashrc.xml * many files: Changed my email address Index: doc/C/usermanual/installation/building.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/building.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/installation/building.xml 27 May 2007 09:00:29 -0000 1.1 +++ doc/C/usermanual/installation/building.xml 5 Jun 2007 13:07:36 -0000 1.1.4.1 @@ -64,7 +64,136 @@ - TODO + + &app; also uses Doxygen to produce HTML + documentation of &app; internals. You must have Doxygen installed + to produce this documentation, which is built from the + doc directory with the command (documents + will be placed in the subdirectory apidoc/html): + + make apidoc + + + + Running the Tests + + + If a test fails, please report it by following the + instructions for reporting a bug. + + + + Using DejaGnu + + + + The easiest way to run &app;'s test suite is to install + DejaGnu. + After installing DejaGnu, run: + + make check + + + + + Increasing Verbosity + + If you encounter a problem with a test, increasing the + verbosity may make the issue easier to spot. + Additional details are visible when + RUNTESTFLAGS are used to add the + verbose and all options. + Verbose prints more information about the testing process, while + all includes details on passing tests. + + make check RUNTESTFLAGS="-v -a" + + + + + + Running Some Tests + + It is possible to run just a particular test, or + subdirectory of tests, by specifying the directory or + compiled test file. + + + Some tests rely on testsuite/Dejagnu.swf, + which in turn relies on Ming. + This file is created when you run 'make check' for the entire + testsuite, and can also be created on demand: + + make -C testsuite Dejagnu.swf + + + + In this example, the 'clip_as_button2' test is compiled and + run: + + make -C testsuite/samples clip_as_button2-TestRunner + cd testsuite/samples && ./clip_as_button2-TestRunner + + This would create and run all the tests in the directory + movies.all: + + make -C testsuite/movies.all check + + + + + + + Running The Tests Manually + + + You may also run test cases by hand, which can be useful if you + want to see all the debugging output from the test case. Often + the messages which come from deep within &app; are most useful for + development. + + + + The first step is to compile the test case, which can be done + with make XML-v#.swf where the '#' is replaced with the + target SWF version or versions. + For example: + + make XML-v{5,6,7,8}.swf + + + + + Movie tests + + This creates a Flash movie version of the test case, which + can be run with a standalone Flash player. For instance, + the target for SWF version 6 could be run with &app;: + + gnash -v XML-v6.swf + + + + + + ActionScript Unit Tests + + Unit tests for ActionScript classes in 'testsuite/actionscript.all' + are run without a graphical display: + + gprocessor -v XML-v6.swf + + + + + + + + From MAILER-DAEMON Tue Jun 05 09:09:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvYn8-0002Tg-1j for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:09:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvYn4-0002Se-6B for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:09:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvYn1-0002SK-AI for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:09:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvYn1-0002SB-4m for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:09:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvYn0-0005Lm-RS for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:09:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvYmz-0002l6-SY for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:09:33 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvYmz-0002l3-ON for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:09:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 13:09:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:09:39 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 13:09:33 Modified files: . : ChangeLog testsuite : MovieTester.cpp Log message: * testsuite/MovieTester.cpp (addTestingRenderer): register the first and only tested renderer immediately, to be more tolerant about limitations in the core lib preveing hot-swap of renderers. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.5&r2=1.3451.2.6 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.38&r2=1.38.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.5 retrieving revision 1.3451.2.6 diff -u -b -r1.3451.2.5 -r1.3451.2.6 --- ChangeLog 5 Jun 2007 13:07:35 -0000 1.3451.2.5 +++ ChangeLog 5 Jun 2007 13:09:32 -0000 1.3451.2.6 @@ -1,3 +1,9 @@ +2007-06-04 Sandro Santilli + + * testsuite/MovieTester.cpp (addTestingRenderer): register the first + and only tested renderer immediately, to be more tolerant about + limitations in the core lib preveing hot-swap of renderers. + 2007-06-05 Ann Barcomb * doc/C/usermanual/installation/building.xml: Completed instructions Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.38 retrieving revision 1.38.4.1 diff -u -b -r1.38 -r1.38.4.1 --- testsuite/MovieTester.cpp 4 Jun 2007 16:59:03 -0000 1.38 +++ testsuite/MovieTester.cpp 5 Jun 2007 13:09:33 -0000 1.38.4.1 @@ -433,6 +433,10 @@ } _testingRenderers.push_back(TestingRendererPtr(new TestingRenderer(h, name))); + + // this will be needed till we allow run-time swapping of renderers, + // see above UNTESTED message... + set_render_handler(&(_testingRenderers.back()->getRenderer())); } void From MAILER-DAEMON Tue Jun 05 09:14:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvYrf-0003oN-T0 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:14:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvYre-0003ni-0b for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:14:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvYrd-0003nV-Hx for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:14:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvYrd-0003nR-CY for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:14:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvYrd-0005v9-5g for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:14:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvYrc-0002vp-Ra for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:14:20 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvYrc-0002vm-Mm for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:14:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 13:14:20 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C/usermanual/installation building.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:14:22 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 13:14:20 Modified files: doc/C/usermanual/installation: building.xml Log message: Formatting: some programlistings were excessively intended (whitespace is meaningful inside ). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/building.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.4.1&r2=1.1.4.2 Patches: Index: building.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/building.xml,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -u -b -r1.1.4.1 -r1.1.4.2 --- building.xml 5 Jun 2007 13:07:36 -0000 1.1.4.1 +++ building.xml 5 Jun 2007 13:14:20 -0000 1.1.4.2 @@ -162,8 +162,8 @@ The first step is to compile the test case, which can be done - with make XML-v#.swf where the '#' is replaced with the - target SWF version or versions. + with make XML-v#.swf where the '#' is replaced + with the target SWF version or versions. For example: make XML-v{5,6,7,8}.swf From MAILER-DAEMON Tue Jun 05 09:22:02 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvYz4-0002Mx-Qc for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:22:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvYz2-0002Mh-R4 for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:22:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvYz1-0002MQ-TQ for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:22:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvYz1-0002M7-Nv for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:21:59 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvYz1-0006xO-Gz for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:21:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvYyx-0003Ix-Qz for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:21:55 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvYyx-0003Iu-Mv for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:21:55 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 13:21:55 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/samples/Makefile.am t... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:22:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/05 13:21:55 Modified files: . : ChangeLog testsuite/samples: Makefile.am Added files: testsuite/samples: subshapes-TestRunner.cpp Log message: * testsuite/samples/: Makefile.am, subshapes-TestRunner.cpp: Test runner for subshapes.swf (see bug #20084). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3460&r2=1.3461 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/samples/Makefile.am?cvsroot=gnash&r1=1.16&r2=1.17 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/samples/subshapes-TestRunner.cpp?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3460 retrieving revision 1.3461 diff -u -b -r1.3460 -r1.3461 --- ChangeLog 5 Jun 2007 13:07:01 -0000 1.3460 +++ ChangeLog 5 Jun 2007 13:21:54 -0000 1.3461 @@ -1,5 +1,7 @@ 2007-06-04 Sandro Santilli + * testsuite/samples/: Makefile.am, subshapes-TestRunner.cpp: + Test runner for subshapes.swf (see bug #20084). * testsuite/MovieTester.cpp (addTestingRenderer): register the first and only tested renderer immediately, to be more tolerant about limitations in the core lib preveing hot-swap of renderers. Index: testsuite/samples/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/samples/Makefile.am,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- testsuite/samples/Makefile.am 30 Apr 2007 17:02:58 -0000 1.16 +++ testsuite/samples/Makefile.am 5 Jun 2007 13:21:55 -0000 1.17 @@ -37,6 +37,7 @@ check_PROGRAMS = \ clip_as_button2-TestRunner \ + subshapes-TestRunner \ gotoFrameOnKeyEvent-TestRunner \ $(NULL) @@ -58,6 +59,20 @@ $(top_builddir)/testsuite/libtestsuite.la \ $(NULL) +subshapes_TestRunner_SOURCES = \ + subshapes-TestRunner.cpp \ + $(NULL) +subshapes_TestRunner_LDADD = \ + $(top_builddir)/testsuite/libtestsuite.la \ + $(NULL) +subshapes_TestRunner_CXXFLAGS = \ + -DSRCDIR='"$(srcdir)"' \ + $(NULL) +subshapes_TestRunner_DEPENDENCIES = \ + subshapes.swf \ + $(top_builddir)/testsuite/libtestsuite.la \ + $(NULL) + gotoFrameOnKeyEvent_TestRunner_SOURCES = \ gotoFrameOnKeyEvent-TestRunner.cpp \ $(NULL) Index: testsuite/samples/subshapes-TestRunner.cpp =================================================================== RCS file: testsuite/samples/subshapes-TestRunner.cpp diff -N testsuite/samples/subshapes-TestRunner.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/samples/subshapes-TestRunner.cpp 5 Jun 2007 13:21:55 -0000 1.1 @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * + */ + +#define INPUT_FILENAME "subshapes.swf" + +#include "MovieTester.h" +#include "GnashException.h" +#include "sprite_instance.h" +#include "character.h" +#include "dlist.h" +#include "container.h" +#include "log.h" + +#include "check.h" +#include +#include + +using namespace gnash; +using namespace std; + +int +main(int /*argc*/, char** /*argv*/) +{ + string filename = string(SRCDIR) + string("/") + string(INPUT_FILENAME); + auto_ptr t; + + gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); + dbglogfile.setVerbosity(1); + + try + { + t.reset(new MovieTester(filename)); + } + catch (const GnashException& e) + { + std::cerr << "Error initializing MovieTester: " << e.what() << std::endl; + exit(EXIT_FAILURE); + } + + MovieTester& tester = *t; + + // Colors used for pixel checking + rgba blue(0, 0, 255, 255); + rgba gray(204, 204, 204, 255); + rgba white(255, 255, 255, 255); + rgba red(255,0,0,255); + + // Coordinates used for pixel checking + struct PT { + int x; + int y; + PT(int nx, int ny): x(nx), y(ny) {} + }; + PT redBarLL(61,367); // lower-left center of red bar rounded cap + PT redBarUR(474,38); // upper-right center of red bar rounded cap + PT redBarOvBb(309,171); // a point on the red bar intersecting the blue box + PT redBarOvSh(194,262); // a point on the red bar intersecting the gray shade + PT bbIntUL(118,122); // upper-left corner of blue box interior + PT bbIntUR(407,122); // upper-right corner of blue box interior + PT bbIntLR(404,236); // lower-right corner of blue box interior + PT bbIntLL(116,236); // lower-left corner of blue box interior + PT bbExtBsh(251,262); // a point centered below the blue box (Bottom, on the shade) + PT bbExtT(251,95); // a point centered above the blue box (Top) + PT bbExtL(90,185); // a point centered on the left of the blue box (outside Left) + PT bbExtRsh(430, 185); // a point centered on the right of the blue box (outside Right, on the shade) + + + // TODO: check why we need this !! + // I wouldn't want the first advance to be needed + //tester.advance(); + + sprite_instance* root = tester.getRootMovie(); + assert(root); + + check_equals(root->get_frame_count(), 1); + + // Check lower-left center of red bar rounded cap + check_pixel(redBarLL.x, redBarLL.y, 2, red, 1); + + // Check upper-right center of red bar rounded cap + check_pixel(redBarUR.x, redBarUR.y, 2, red, 1); + + // Check that the bar is *below* the blue box + check_pixel(redBarOvBb.x, redBarOvBb.y, 2, blue, 1); + + // Check that the bar is *above* the gray shade + check_pixel(redBarOvSh.x, redBarOvSh.y, 2, red, 1); + + // Check the blu box corners + check_pixel(bbIntUL.x, bbIntUL.y, 2, blue, 1); + check_pixel(bbIntUR.x, bbIntUR.y, 2, blue, 1); + check_pixel(bbIntLR.x, bbIntLR.y, 2, blue, 1); + check_pixel(bbIntLL.x, bbIntLL.y, 2, blue, 1); + + // Check the points outside the blu box + check_pixel(bbExtBsh.x, bbExtBsh.y, 2, gray, 1); + check_pixel(bbExtRsh.x, bbExtRsh.y, 2, gray, 1); + check_pixel(bbExtT.x, bbExtT.y, 2, white, 1); + check_pixel(bbExtL.x, bbExtL.y, 2, white, 1); + +} + From MAILER-DAEMON Tue Jun 05 09:56:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvZWT-0006nX-9V for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 09:56:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvZWR-0006mn-CP for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:56:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvZWQ-0006mZ-EZ for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:56:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvZWQ-0006mW-7l for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:56:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvZWP-0002gP-To for gnash-commit@gnu.org; Tue, 05 Jun 2007 09:56:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvZWO-0006CD-IM for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:56:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvZWO-0006Bx-D4 for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:56:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 13:56:28 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 13:56:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/05 13:56:27 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: support --without-extensions. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3461&r2=1.3462 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.331&r2=1.332 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3461 retrieving revision 1.3462 diff -u -b -r1.3461 -r1.3462 --- ChangeLog 5 Jun 2007 13:21:54 -0000 1.3461 +++ ChangeLog 5 Jun 2007 13:56:26 -0000 1.3462 @@ -1,5 +1,6 @@ 2007-06-04 Sandro Santilli + * configure.ac: support --without-extensions. * testsuite/samples/: Makefile.am, subshapes-TestRunner.cpp: Test runner for subshapes.swf (see bug #20084). * testsuite/MovieTester.cpp (addTestingRenderer): register the first Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331 retrieving revision 1.332 diff -u -b -r1.331 -r1.332 --- configure.ac 1 Jun 2007 17:54:52 -0000 1.331 +++ configure.ac 5 Jun 2007 13:56:27 -0000 1.332 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331 2007/06/01 17:54:52 bjacques Exp $ +dnl $Id: configure.ac,v 1.332 2007/06/05 13:56:27 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -338,8 +338,13 @@ AC_ARG_WITH(extensions, AC_HELP_STRING([--with-extensions=], [Specify which extensions to build]), if test -n ${withval}; then + if test "x${withval}" != "xno"; then extlist="${withval}" withval=`echo ${withval} | tr '\054' ' ' ` + else + extlist="" + withval="" + fi fi nextensions=0 while test -n "${withval}" ; do From MAILER-DAEMON Tue Jun 05 10:35:18 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hva7y-0002EO-Cy for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 10:35:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hva7x-0002Dw-BO for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:35:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hva7v-0002DF-Ne for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:35:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hva7v-0002D8-Gt for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:35:15 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hva7v-00080h-7T for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:35:15 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hva7u-0000q2-Om for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:35:14 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hva7u-0000pt-HF for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:35:14 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 14:35:14 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/installation/b... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 14:35:17 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 14:35:14 Modified files: . : ChangeLog doc/C/usermanual/installation: building.xml Log message: GNOME help appears to be another possible output format for documentation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.6&r2=1.3451.2.7 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/building.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.4.2&r2=1.1.4.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.6 retrieving revision 1.3451.2.7 diff -u -b -r1.3451.2.6 -r1.3451.2.7 --- ChangeLog 5 Jun 2007 13:09:32 -0000 1.3451.2.6 +++ ChangeLog 5 Jun 2007 14:35:13 -0000 1.3451.2.7 @@ -1,3 +1,8 @@ +2007-06-05 Ann Barcomb + + * doc/C/usermanual/installation/building.xml: mention that + GNOME help is a possible documentation make target. + 2007-06-04 Sandro Santilli * testsuite/MovieTester.cpp (addTestingRenderer): register the first Index: doc/C/usermanual/installation/building.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/building.xml,v retrieving revision 1.1.4.2 retrieving revision 1.1.4.3 diff -u -b -r1.1.4.2 -r1.1.4.3 --- doc/C/usermanual/installation/building.xml 5 Jun 2007 13:14:20 -0000 1.1.4.2 +++ doc/C/usermanual/installation/building.xml 5 Jun 2007 14:35:14 -0000 1.1.4.3 @@ -57,8 +57,12 @@ documentation. The available output formats are: html, pdf, info, man, and alldocs. - alldocs will build all of the other four output - formats. For example, to create HTML output, type: + It is also possible to output GNOME help if + the configure option + --enable-ghelp was used. + The alldocs target will build all output formats + except GNOME help. + For example, to create HTML output, type: make html From MAILER-DAEMON Tue Jun 05 10:40:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvaCa-0003fV-Qo for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 10:40:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvaCZ-0003fN-9c for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:40:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvaCY-0003fB-Mf for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:40:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaCY-0003f8-K4 for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:40:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvaCY-000052-AC for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:40:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvaCX-0001N6-EZ for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:40:01 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvaCX-0001N2-7k for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:40:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Tue, 05 Jun 2007 14:40:01 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/media/square.flv test... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 14:40:03 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/05 14:40:01 Modified files: . : ChangeLog testsuite/media: square.flv testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: * testsuite/media/square.flv: Changed the movements in the movie to be more fluent so that testing is easier. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Check if the video really does play. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3462&r2=1.3463 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/media/square.flv?cvsroot=gnash&rev=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3462 retrieving revision 1.3463 diff -u -b -r1.3462 -r1.3463 --- ChangeLog 5 Jun 2007 13:56:26 -0000 1.3462 +++ ChangeLog 5 Jun 2007 14:40:00 -0000 1.3463 @@ -1,3 +1,10 @@ +2007-06-05 Tomas Groth Christensen + + * testsuite/media/square.flv: Changed the movements in the movie to + be more fluent so that testing is easier. + * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Check if + the video really does play. + 2007-06-04 Sandro Santilli * configure.ac: support --without-extensions. Index: testsuite/media/square.flv =================================================================== RCS file: /sources/gnash/gnash/testsuite/media/square.flv,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 Binary files /tmp/cvspkDHaq and /tmp/cvs98z70r differ Index: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 28 May 2007 15:41:12 -0000 1.2 +++ testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 5 Jun 2007 14:40:00 -0000 1.3 @@ -46,15 +46,52 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + rgba red(255,0,0,255); + rgba yellow(255,255,0,255); + + // TODO: change the scaling of the window/canvas + int scale_x = 1; + int scale_y = 1; + // Just loop twice, so to catch crashes... - // TODO: lots of more tests :) + for (int j = 0; j < 2; ++j) { + // Frame 1 + + // Check the color in (1,1) - should be red + check_pixel(1, 1, 1, red, 5); + + // Check the color in (30,1) - should be yellow + check_pixel(35*scale_x, 1, 1, yellow, 5); + + // Check the color in (1,30) - should be yellow + check_pixel(1, 35*scale_y, 1, yellow, 5); + size_t framecount = root->get_frame_count(); - for (size_t i=0; iget_current_frame(), i%framecount); + int frame = 1; + int i = 0; + while (frame++ < framecount) { + // Frame X tester.advance(); + + // Check the color in (9+i,1) - should be yellow + check_pixel((5 + i)*scale_x, 1, 1, yellow, 5); + + // Check the color in (25+i,1) - should be red + check_pixel((25 + i)*scale_x, 1, 1, red, 5); + + // Check the color in (25+i,30) - should be yellow + check_pixel((25 + i)*scale_x, 35*scale_y, 1, yellow, 5); + + // The video is 128x96 so we don't want to check beyond that + if (45+i <= 128) { + // Check the color in (40+i,1) - should be yellow + check_pixel((45 + i)*scale_x, 1, 1, yellow, 5); } + i += 10; + } + tester.advance(); + } } From MAILER-DAEMON Tue Jun 05 10:45:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvaI9-0001Cd-Qu for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 10:45:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvaI7-00019L-Mn for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:45:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvaI6-00015F-5O for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:45:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaI5-00014h-Se for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:45:45 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvaI5-0000wG-Hh for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:45:45 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvaI4-0001jK-WD for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:45:45 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvaI4-0001jH-LX for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:45:44 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Tue, 05 Jun 2007 14:45:44 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/media/square.flv test... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 14:45:47 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/05 14:45:44 Modified files: . : ChangeLog testsuite/media: square.flv testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: * testsuite/media/square.flv: Changed the movements in the movie to be more fluent so that testing is easier. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Check if the video really does play. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.7&r2=1.3451.2.8 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/media/square.flv?cvsroot=gnash&only_with_tag=release-0-8-0&rev=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.7 retrieving revision 1.3451.2.8 diff -u -b -r1.3451.2.7 -r1.3451.2.8 --- ChangeLog 5 Jun 2007 14:35:13 -0000 1.3451.2.7 +++ ChangeLog 5 Jun 2007 14:45:42 -0000 1.3451.2.8 @@ -1,3 +1,10 @@ +2007-06-05 Tomas Groth Christensen + + * testsuite/media/square.flv: Changed the movements in the movie to + be more fluent so that testing is easier. + * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Check if + the video really does play. + 2007-06-05 Ann Barcomb * doc/C/usermanual/installation/building.xml: mention that Index: testsuite/media/square.flv =================================================================== RCS file: /sources/gnash/gnash/testsuite/media/square.flv,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 Binary files /tmp/cvsN35A8L and /tmp/cvskUPdBD differ Index: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 28 May 2007 15:41:12 -0000 1.2 +++ testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 5 Jun 2007 14:45:43 -0000 1.2.4.1 @@ -46,15 +46,52 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + rgba red(255,0,0,255); + rgba yellow(255,255,0,255); + + // TODO: change the scaling of the window/canvas + int scale_x = 1; + int scale_y = 1; + // Just loop twice, so to catch crashes... - // TODO: lots of more tests :) + for (int j = 0; j < 2; ++j) { + // Frame 1 + + // Check the color in (1,1) - should be red + check_pixel(1, 1, 1, red, 5); + + // Check the color in (30,1) - should be yellow + check_pixel(35*scale_x, 1, 1, yellow, 5); + + // Check the color in (1,30) - should be yellow + check_pixel(1, 35*scale_y, 1, yellow, 5); + size_t framecount = root->get_frame_count(); - for (size_t i=0; iget_current_frame(), i%framecount); + int frame = 1; + int i = 0; + while (frame++ < framecount) { + // Frame X tester.advance(); + + // Check the color in (9+i,1) - should be yellow + check_pixel((5 + i)*scale_x, 1, 1, yellow, 5); + + // Check the color in (25+i,1) - should be red + check_pixel((25 + i)*scale_x, 1, 1, red, 5); + + // Check the color in (25+i,30) - should be yellow + check_pixel((25 + i)*scale_x, 35*scale_y, 1, yellow, 5); + + // The video is 128x96 so we don't want to check beyond that + if (45+i <= 128) { + // Check the color in (40+i,1) - should be yellow + check_pixel((45 + i)*scale_x, 1, 1, yellow, 5); } + i += 10; + } + tester.advance(); + } } From MAILER-DAEMON Tue Jun 05 10:57:16 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvaTD-0000RJ-Sv for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 10:57:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvaTB-0000OF-Cz for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:57:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvaT9-0000Lb-9K for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:57:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaT8-0000LC-FN for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:57:10 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvaT7-0002AQ-T0 for gnash-commit@gnu.org; Tue, 05 Jun 2007 10:57:10 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvaT7-0002Qu-AS for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:57:09 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvaT6-0002Qq-Ti for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:57:09 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 14:57:08 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/installation/i... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 14:57:14 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 14:57:08 Modified files: . : ChangeLog doc/C/usermanual/installation: install.xml Log message: This adds the section of the documentation which explains where Gnash installs. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.8&r2=1.3451.2.9 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/install.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.8 retrieving revision 1.3451.2.9 diff -u -b -r1.3451.2.8 -r1.3451.2.9 --- ChangeLog 5 Jun 2007 14:45:42 -0000 1.3451.2.8 +++ ChangeLog 5 Jun 2007 14:57:07 -0000 1.3451.2.9 @@ -1,3 +1,7 @@ +2007-06-05 Ann Barcomb + * doc/C/usermanual/installation/install.xml: Added information on + where Gnash installs. + 2007-06-05 Tomas Groth Christensen * testsuite/media/square.flv: Changed the movements in the movie to Index: doc/C/usermanual/installation/install.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/install.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/installation/install.xml 27 May 2007 09:01:58 -0000 1.1 +++ doc/C/usermanual/installation/install.xml 5 Jun 2007 14:57:08 -0000 1.1.4.1 @@ -1 +1,110 @@ Installation + + + Installation is done with the command: + + make install + + + + + &app; installs a number of libraries, + namely: libbase, + libgeometry, libbackend, + libserver, and libmozsdk. + Executables + consist of the (optional) plugin, gprocessor, + cygnal, and gnash. + Documentation may also be installed. + The installation location is controlled with the + --prefix configure + option. + + + + Note that if you are using a single file-system NFS + mounted to multiple platforms, the + configuration option + --exec-prefix may be used to specify where + platform-dependent executables and libraries are installed. + + + + Libraries + + + Installed libraries are located in + /usr/local/lib by default. + If the --prefix option was used in + configuration, the libraries will + be installed in the directory lib inside the + path you specified. If the libraries are stored in a non-standard + location, you need to identify the path in one of two ways. + + + + The traditional way to do this on UNIX + platforms is to set the LD_LIBRARY_PATH variable + to the path plus /lib. For example, if you + installed in /home/gnash, the + LD_LIBRARY_PATH path would be + /home/gnash/lib. Multiple paths are delimited + with a colon (':'). + + + + GNU/Linux allows the custom path to be added to + /etc/ld.so.conf. After adding the path, + run ldconfig as root to update the runtime + cache. + + + + + Executables + + + The Mozilla plugin is installed into the plugins + directory of the system + installed Firefox or Mozilla, + if development packages are installed for either of them. + Otherwise, the default is /usr/lib/mozilla/plugins. + You may also specify the plugin installation directory by using the + --with-plugindir option + to configure. + + + + The remaining executables will be installed in the bin + subdirectory of the directory specified by during configuration. + If no path was specified, the default is + /usr/local/bin. + + + + + Documentation + + + Documentation is not built by default; please refer to the + section on documentation for + more information on building documentation. + + + + man and info + will be installed in /usr/local/share/man + and /usr/local/share/info respectively, unless + the --mandif or --infodir + configuration options are used. + + + + GNOME help documentation uses the directory + /usr/local/share/gnash/doc/gnash/C/ by default. + A configuration file in the &app; source tree, + doc/C/gnash.omf is used to specify under + which menu item &app; appears in the GNOME help + system. + + From MAILER-DAEMON Tue Jun 05 11:03:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvaYp-00052Z-HY for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:03:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvaYn-0004zD-Bx for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:03:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvaYm-0004yR-Ow for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:03:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaYm-0004yI-M5 for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:03:00 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvaYm-0002tY-5M for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:03:00 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvaYl-0002rE-Pw for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:02:59 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvaYl-0002r8-Jc for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:02:59 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:02:59 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/usage.xml doc/... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:03:01 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:02:59 Modified files: . : ChangeLog doc/C/usermanual: usage.xml doc/C/usermanual/installation: code_dependencies.xml custompath_configuration.xml feature_configuration.xml Log message: Comment out TODO/FIXME so that they are not visible. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.9&r2=1.3451.2.10 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/usage.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/code_dependencies.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/custompath_configuration.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/feature_configuration.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4&r2=1.4.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.9 retrieving revision 1.3451.2.10 diff -u -b -r1.3451.2.9 -r1.3451.2.10 --- ChangeLog 5 Jun 2007 14:57:07 -0000 1.3451.2.9 +++ ChangeLog 5 Jun 2007 15:02:57 -0000 1.3451.2.10 @@ -1,4 +1,9 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/usage.xml, + doc/C/usermanual/installation/custompath_configuration.xml, + doc/C/usermanual/installation/feature_configuration.xml: + Comment out TODO/FIXME sections, so that they are not visible + to users, but can still be searched. * doc/C/usermanual/installation/install.xml: Added information on where Gnash installs. Index: doc/C/usermanual/usage.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/usage.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/usage.xml 22 May 2007 13:48:09 -0000 1.1 +++ doc/C/usermanual/usage.xml 5 Jun 2007 15:02:58 -0000 1.1.4.1 @@ -245,8 +245,10 @@ Bit depth of output window (for example, 16 or 32). Appropriate bit depths depend on the renderer and GUI library used. - FIXME: add information about which depths are suitable for each + Index: doc/C/usermanual/installation/code_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/code_dependencies.xml,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- doc/C/usermanual/installation/code_dependencies.xml 26 May 2007 10:45:16 -0000 1.2 +++ doc/C/usermanual/installation/code_dependencies.xml 5 Jun 2007 15:02:58 -0000 1.2.4.1 @@ -321,6 +321,7 @@ TODO TODO + Index: doc/C/usermanual/installation/custompath_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/custompath_configuration.xml,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- doc/C/usermanual/installation/custompath_configuration.xml 26 May 2007 10:42:50 -0000 1.2 +++ doc/C/usermanual/installation/custompath_configuration.xml 5 Jun 2007 15:02:58 -0000 1.2.4.1 @@ -9,7 +9,7 @@ The following custom path options are available: -TODO - review this section + Index: doc/C/usermanual/installation/feature_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/feature_configuration.xml,v retrieving revision 1.4 retrieving revision 1.4.4.1 diff -u -b -r1.4 -r1.4.4.1 --- doc/C/usermanual/installation/feature_configuration.xml 26 May 2007 10:42:51 -0000 1.4 +++ doc/C/usermanual/installation/feature_configuration.xml 5 Jun 2007 15:02:58 -0000 1.4.4.1 @@ -27,7 +27,7 @@ A complete list of available features follows.
-TODO - review this section + From MAILER-DAEMON Tue Jun 05 11:17:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvamo-0007C2-Nh for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:17:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvamm-0007BP-9N for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:17:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvaml-0007B8-2O for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:17:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvamk-0007B5-Uv for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:17:26 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvamk-0004ne-Mm for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:17:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hvamj-00040s-L0 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:17:25 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hvami-00040k-Sa for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:17:25 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:17:24 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/bugreport.xml ... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:17:29 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:17:24 Modified files: . : ChangeLog Added files: doc/C/usermanual: bugreport.xml glossary.xml Log message: Two new sections of the manual were added as placeholders. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.10&r2=1.3451.2.11 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/bugreport.xml?cvsroot=gnash&only_with_tag=release-0-8-0&rev=1.1.2.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/glossary.xml?cvsroot=gnash&only_with_tag=release-0-8-0&rev=1.1.2.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.10 retrieving revision 1.3451.2.11 diff -u -b -r1.3451.2.10 -r1.3451.2.11 --- ChangeLog 5 Jun 2007 15:02:57 -0000 1.3451.2.10 +++ ChangeLog 5 Jun 2007 15:17:22 -0000 1.3451.2.11 @@ -1,4 +1,6 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/glossary.xml, bugreport.xml: Added these + files as placeholders. * doc/C/usermanual/usage.xml, doc/C/usermanual/installation/custompath_configuration.xml, doc/C/usermanual/installation/feature_configuration.xml: Index: doc/C/usermanual/bugreport.xml =================================================================== RCS file: doc/C/usermanual/bugreport.xml diff -N doc/C/usermanual/bugreport.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ doc/C/usermanual/bugreport.xml 5 Jun 2007 15:17:23 -0000 1.1.2.1 @@ -0,0 +1,4 @@ + + Reporting Bugs + + Index: doc/C/usermanual/glossary.xml =================================================================== RCS file: doc/C/usermanual/glossary.xml diff -N doc/C/usermanual/glossary.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ doc/C/usermanual/glossary.xml 5 Jun 2007 15:17:23 -0000 1.1.2.1 @@ -0,0 +1,4 @@ + + Glossary + + From MAILER-DAEMON Tue Jun 05 11:19:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvaob-0007UY-Ji for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:19:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvaoa-0007US-0w for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:19:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvaoZ-0007UG-Kq for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:19:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvaoZ-0007UD-Gb for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:19:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvaoZ-00052f-9M for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:19:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvaoY-0004D6-Sj for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:18 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvaoY-0004D2-Ox for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:19:18 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/installation.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:19:20 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:19:18 Modified files: . : ChangeLog doc/C/usermanual: installation.xml Log message: Changed the title of this section. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.11&r2=1.3451.2.12 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.11 retrieving revision 1.3451.2.12 diff -u -b -r1.3451.2.11 -r1.3451.2.12 --- ChangeLog 5 Jun 2007 15:17:22 -0000 1.3451.2.11 +++ ChangeLog 5 Jun 2007 15:19:17 -0000 1.3451.2.12 @@ -1,4 +1,6 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/installation.xml: Changed the title of this + section. * doc/C/usermanual/glossary.xml, bugreport.xml: Added these files as placeholders. * doc/C/usermanual/usage.xml, Index: doc/C/usermanual/installation.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation.xml,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- doc/C/usermanual/installation.xml 27 May 2007 09:00:29 -0000 1.2 +++ doc/C/usermanual/installation.xml 5 Jun 2007 15:19:18 -0000 1.2.4.1 @@ -1,5 +1,5 @@ - Installing &app; + Installing and Configuring &app; There are two ways of installing &app;: From MAILER-DAEMON Tue Jun 05 11:47:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvbFu-0000HW-Hc for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:47:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvbFt-0000HK-3h for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:47:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvbFq-0000H7-MP for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:47:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvbFq-0000H4-Hg for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:47:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvbFq-00010o-7X for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:47:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvbFp-0007Ud-Io for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:47:29 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvbFp-0007UZ-CT for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:47:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:47:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:47:33 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:47:29 Modified files: . : ChangeLog Log message: The default renderer is AGG. FLTK works. Spelling fixes. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.12&r2=1.3451.2.13 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.12 retrieving revision 1.3451.2.13 diff -u -b -r1.3451.2.12 -r1.3451.2.13 --- ChangeLog 5 Jun 2007 15:19:17 -0000 1.3451.2.12 +++ ChangeLog 5 Jun 2007 15:47:28 -0000 1.3451.2.13 @@ -1,4 +1,6 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/installation/feature_configuration.xml: The + default renderer is AGG. FLTK works. Spelling fixes. * doc/C/usermanual/installation.xml: Changed the title of this section. * doc/C/usermanual/glossary.xml, bugreport.xml: Added these From MAILER-DAEMON Tue Jun 05 11:49:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvbHe-0000cW-G1 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:49:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvbHd-0000by-3V for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:49:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvbHb-0000bd-Uy for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:49:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvbHb-0000bY-Ku for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:49:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvbHb-0001F4-7A for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:49:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvbHa-0007cX-H4 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:49:18 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvbHa-0007cT-Bx for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:49:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:49:18 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C/usermanual/installation feature_con... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:49:21 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:49:18 Modified files: doc/C/usermanual/installation: feature_configuration.xml Log message: Another spelling change/word change CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/feature_configuration.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4.4.1&r2=1.4.4.2 Patches: Index: feature_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/feature_configuration.xml,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -u -b -r1.4.4.1 -r1.4.4.2 --- feature_configuration.xml 5 Jun 2007 15:02:58 -0000 1.4.4.1 +++ feature_configuration.xml 5 Jun 2007 15:49:18 -0000 1.4.4.2 @@ -243,7 +243,7 @@ used when you don't have hardware accelerated graphics. Typically most desktop machines have OpenGL support, and most embedded systems don't. OpenGl is the - default when building Gnash, though the quality of AGG's + default when building Gnash, although the quality of AGG's rendering is currently superior to OpenGL. From MAILER-DAEMON Tue Jun 05 11:50:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvbJ6-0002gC-07 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:50:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvbJ4-0002d2-PZ for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:50:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvbJ3-0002bn-BU for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:50:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvbJ3-0002bk-8G for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:50:49 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvbJ2-0001S4-NK for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:50:49 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l55FohU4028288; Tue, 5 Jun 2007 17:50:46 +0200 Date: Tue, 5 Jun 2007 17:50:43 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <59180777.20070605175043@nova-sys.net> To: Ann Barcomb Subject: Re: [Gnash-commit] gnash ChangeLog [release-0-8-0] In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:50:50 -0000 Hello Ann, Tuesday, June 5, 2007, 5:47:29 PM, you wrote: AB> The default renderer is AGG. FLTK works. Spelling fixes. no, it's OpenGL :) From MAILER-DAEMON Tue Jun 05 11:59:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvbRM-0001x9-HG for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 11:59:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvbRL-0001wa-8L for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:59:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvbRK-0001wG-SG for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:59:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvbRK-0001wA-Jd for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:59:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvbRK-0002kf-4F for gnash-commit@gnu.org; Tue, 05 Jun 2007 11:59:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvbRJ-0008Mi-FI for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:59:21 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvbRJ-0008Me-77 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:59:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 15:59:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C/usermanual/installation feature_con... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 15:59:23 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 15:59:21 Modified files: doc/C/usermanual/installation: feature_configuration.xml Log message: Missed on place where the default renderer was listed as AGG; this is now OpenGL CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/feature_configuration.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4.4.2&r2=1.4.4.3 Patches: Index: feature_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/feature_configuration.xml,v retrieving revision 1.4.4.2 retrieving revision 1.4.4.3 diff -u -b -r1.4.4.2 -r1.4.4.3 --- feature_configuration.xml 5 Jun 2007 15:49:18 -0000 1.4.4.2 +++ feature_configuration.xml 5 Jun 2007 15:59:20 -0000 1.4.4.3 @@ -14,7 +14,7 @@ --enable-renderer allows a renderer to be -chosen. The default renderer is AGG. +chosen. The default renderer is OpenGL. From MAILER-DAEMON Tue Jun 05 12:02:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvbUP-00049A-Pj for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 12:02:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvbUO-00048b-6q for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:02:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvbUN-00048C-LJ for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:02:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvbUN-000483-FP for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:02:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvbUM-0003FR-Vx for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:02:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvbUM-0000Bx-CA for gnash-commit@gnu.org; Tue, 05 Jun 2007 16:02:30 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvbUM-0000Br-7F for gnash-commit@gnu.org; Tue, 05 Jun 2007 16:02:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 16:02:30 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 16:02:32 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 16:02:29 Modified files: . : ChangeLog Log message: I corrected the documentation and then repeated the mistake in the ChangeLog. Thanks, Udo! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.13&r2=1.3451.2.14 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.13 retrieving revision 1.3451.2.14 diff -u -b -r1.3451.2.13 -r1.3451.2.14 --- ChangeLog 5 Jun 2007 15:47:28 -0000 1.3451.2.13 +++ ChangeLog 5 Jun 2007 16:02:28 -0000 1.3451.2.14 @@ -1,6 +1,6 @@ 2007-06-05 Ann Barcomb * doc/C/usermanual/installation/feature_configuration.xml: The - default renderer is AGG. FLTK works. Spelling fixes. + default renderer isn't AGG. FLTK works. Spelling fixes. * doc/C/usermanual/installation.xml: Changed the title of this section. * doc/C/usermanual/glossary.xml, bugreport.xml: Added these From MAILER-DAEMON Tue Jun 05 12:39:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvc4D-0006NH-H7 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 12:39:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvc4B-0006N1-Jz for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:39:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvc49-0006Mp-5D for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:39:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvc49-0006Mm-2T for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:39:29 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvc48-0008OB-C3 for gnash-commit@gnu.org; Tue, 05 Jun 2007 12:39:28 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l55GdJR48294; Tue, 5 Jun 2007 18:39:19 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Tue, 5 Jun 2007 18:39:19 +0200 To: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/media/square.flv test... [release-0-8-0] Message-ID: <20070605163919.GA47747@keybit.net> Mail-Followup-To: Tomas Groth , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 16:39:31 -0000 On Tue, Jun 05, 2007 at 02:45:44PM +0000, Tomas Groth wrote: > CVSROOT: /sources/gnash > Module name: gnash > Branch: release-0-8-0 > Changes by: Tomas Groth 07/06/05 14:45:44 > > Modified files: > . : ChangeLog > testsuite/media: square.flv > testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp > > Log message: > * testsuite/media/square.flv: Changed the movements in the movie to > be more fluent so that testing is easier. > * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Check if > the video really does play. I get 51 failures with both gst and ffmpeg (gtk/agg). How did you try ? --strk; From MAILER-DAEMON Tue Jun 05 13:01:28 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvcPP-00027R-Rj for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 13:01:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvcPO-00022Z-6x for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:01:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvcPN-00021Q-N9 for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:01:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvcPN-000216-JG for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:01:25 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvcPN-0003IS-5F for gnash-commit@gnu.org; Tue, 05 Jun 2007 13:01:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvcPM-0005D4-L2 for gnash-commit@gnu.org; Tue, 05 Jun 2007 17:01:24 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvcPM-0005D1-GG for gnash-commit@gnu.org; Tue, 05 Jun 2007 17:01:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 17:01:24 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C/usermanual/installation code_depend... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 17:01:26 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 17:01:24 Modified files: doc/C/usermanual/installation: code_dependencies.xml Log message: Added a missing period. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/code_dependencies.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2.4.1&r2=1.2.4.2 Patches: Index: code_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/code_dependencies.xml,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -u -b -r1.2.4.1 -r1.2.4.2 --- code_dependencies.xml 5 Jun 2007 15:02:58 -0000 1.2.4.1 +++ code_dependencies.xml 5 Jun 2007 17:01:24 -0000 1.2.4.2 @@ -75,7 +75,7 @@ &app; requires the installation of at least one renderer. AGG is considered the best - supported renderer for &app; + supported renderer for &app;. libagg-dev agg-devel From MAILER-DAEMON Tue Jun 05 14:20:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvddR-0002cC-A3 for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 14:20:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvddQ-0002be-0s for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:20:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvddP-0002bC-0s for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:19:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvddO-0002b7-R1 for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:19:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvddO-0007zk-HZ for gnash-commit@gnu.org; Tue, 05 Jun 2007 14:19:58 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvddN-0006Od-Ri for gnash-commit@gnu.org; Tue, 05 Jun 2007 18:19:57 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvddN-0006Oa-M1 for gnash-commit@gnu.org; Tue, 05 Jun 2007 18:19:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Tue, 05 Jun 2007 18:19:57 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/usage.xml doc/... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 18:20:00 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/05 18:19:57 Modified files: . : ChangeLog doc/C/usermanual: usage.xml doc/C/usermanual/installation: code_dependencies.xml documentation_dependencies.xml testing_dependencies.xml Log message: This commit adds some missing package names which were marked as 'TODO' in the dependency tables. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.14&r2=1.3451.2.15 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/usage.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.4.1&r2=1.1.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/code_dependencies.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2.4.2&r2=1.2.4.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/documentation_dependencies.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/testing_dependencies.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1&r2=1.1.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.14 retrieving revision 1.3451.2.15 diff -u -b -r1.3451.2.14 -r1.3451.2.15 --- ChangeLog 5 Jun 2007 16:02:28 -0000 1.3451.2.14 +++ ChangeLog 5 Jun 2007 18:19:54 -0000 1.3451.2.15 @@ -1,4 +1,8 @@ 2007-06-05 Ann Barcomb + * doc/C/usermanual/installation/testing_dependencies.xml, + doc/C/usermanual/installation/documentation_dependencies.xml, + doc/C/usermanual/installation/code_dependencies.xml: Resolved + TODO items in the dependency tables (package names). * doc/C/usermanual/installation/feature_configuration.xml: The default renderer isn't AGG. FLTK works. Spelling fixes. * doc/C/usermanual/installation.xml: Changed the title of this Index: doc/C/usermanual/usage.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/usage.xml,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -u -b -r1.1.4.1 -r1.1.4.2 --- doc/C/usermanual/usage.xml 5 Jun 2007 15:02:58 -0000 1.1.4.1 +++ doc/C/usermanual/usage.xml 5 Jun 2007 18:19:56 -0000 1.1.4.2 @@ -1,5 +1,5 @@ - &app; Usage + Using &app; &app; can be used as a standalone player or as a plugin. Using it Index: doc/C/usermanual/installation/code_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/code_dependencies.xml,v retrieving revision 1.2.4.2 retrieving revision 1.2.4.3 diff -u -b -r1.2.4.2 -r1.2.4.3 --- doc/C/usermanual/installation/code_dependencies.xml 5 Jun 2007 17:01:24 -0000 1.2.4.2 +++ doc/C/usermanual/installation/code_dependencies.xml 5 Jun 2007 18:19:56 -0000 1.2.4.3 @@ -194,8 +194,8 @@ GUI library. FLTK may be used in conjunction with the Cairo and AGG renderers. - No distribution packages are available - No distribution packages are available + No distribution packages are available. + No distribution packages are available. @@ -319,8 +319,8 @@ This library is used for URL downloading. - TODO - TODO + libcurl4-gnutls + libcurl Index: doc/C/usermanual/installation/documentation_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/documentation_dependencies.xml,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- doc/C/usermanual/installation/documentation_dependencies.xml 27 May 2007 09:03:45 -0000 1.2 +++ doc/C/usermanual/installation/documentation_dependencies.xml 5 Jun 2007 18:19:56 -0000 1.2.4.1 @@ -43,8 +43,10 @@ &app; documentation is written in Docbook. - TODO - TODO + docbook-utils and + docbook-dsssl + docbook-dtd41-sgml and + docbook-style-dsssl @@ -99,8 +101,8 @@ FOP is required for PDF output. - TODO - TODO + fop + fop Index: doc/C/usermanual/installation/testing_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/testing_dependencies.xml,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -u -b -r1.1 -r1.1.4.1 --- doc/C/usermanual/installation/testing_dependencies.xml 22 May 2007 13:48:10 -0000 1.1 +++ doc/C/usermanual/installation/testing_dependencies.xml 5 Jun 2007 18:19:57 -0000 1.1.4.1 @@ -39,8 +39,8 @@ Ming is the primary compiler for ActionScript testcases. - TODO - TODO + No distribution packages are available. + No distribution packages are available. @@ -53,8 +53,8 @@ Mtasc is used in some tests. - TODO - TODO + mtasc + No distribution packages are available. @@ -67,8 +67,8 @@ Swfdec is used in some testcases. - TODO - TODO + No distribution packages are available. + Unofficial package swfdec @@ -82,8 +82,8 @@ DejaGnu is used to run multiple tests in an automated fashion. - TODO - TODO + dejagnu + dejagnu From MAILER-DAEMON Tue Jun 05 15:19:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HveZ6-0008UA-KP for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HveZ5-0008S1-8N for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HveZ4-0008QD-2c for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HveZ3-0008PR-T6 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HveZ3-0000CP-DS for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:19:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HveZ2-0005DL-0H for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:19:32 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HveZ1-0005DH-PN for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:19:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 19:19:31 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog plugin/klash/klash_part.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 19:19:35 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 19:19:31 Modified files: . : ChangeLog plugin/klash : klash_part.cpp Log message: * plugin/klash/klash_part.cpp: call 'klash', not 'gnash'. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.15&r2=1.3451.2.16 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/klash_part.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13&r2=1.13.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.15 retrieving revision 1.3451.2.16 diff -u -b -r1.3451.2.15 -r1.3451.2.16 --- ChangeLog 5 Jun 2007 18:19:54 -0000 1.3451.2.15 +++ ChangeLog 5 Jun 2007 19:19:29 -0000 1.3451.2.16 @@ -1,4 +1,9 @@ +2007-06-05 Sandro Santilli + + * plugin/klash/klash_part.cpp: call 'klash', not 'gnash'. + 2007-06-05 Ann Barcomb + * doc/C/usermanual/installation/testing_dependencies.xml, doc/C/usermanual/installation/documentation_dependencies.xml, doc/C/usermanual/installation/code_dependencies.xml: Resolved Index: plugin/klash/klash_part.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/klash/klash_part.cpp,v retrieving revision 1.13 retrieving revision 1.13.4.1 diff -u -b -r1.13 -r1.13.4.1 --- plugin/klash/klash_part.cpp 28 May 2007 15:41:03 -0000 1.13 +++ plugin/klash/klash_part.cpp 5 Jun 2007 19:19:31 -0000 1.13.4.1 @@ -167,7 +167,8 @@ if (m_width > 0 && m_height > 0) dim = QString ("-j ") + QString::number (m_width) + QString (" -k ") + QString::number (m_height); - QString cmd = QString ("gnash -x ") + + // TODO: check KLASH_PLAYER env ? + QString cmd = QString ("klash -x ") + QString::number (static_cast (widget ())->embedId()) + QChar (' ') + dim + QChar (' ') + KProcess::quote (m_src_url); From MAILER-DAEMON Tue Jun 05 15:33:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvemk-0002ya-HR for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 15:33:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvemi-0002yN-M6 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:33:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvemh-0002xD-85 for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:33:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvemh-0002ww-3M for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:33:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvemg-0002bv-6q for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:33:38 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvemY-0006rR-Qp for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:33:30 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvemY-0006rK-Lw for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:33:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 19:33:30 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog gui/kdesup.h [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 19:33:41 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 19:33:30 Modified files: . : ChangeLog gui : kdesup.h Log message: * gui/kdesup.h: raise a compile time error if RENDERER_OPENGL is not defined (not only if CAIRO is) ... CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.16&r2=1.3451.2.17 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kdesup.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.17&r2=1.17.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.16 retrieving revision 1.3451.2.17 diff -u -b -r1.3451.2.16 -r1.3451.2.17 --- ChangeLog 5 Jun 2007 19:19:29 -0000 1.3451.2.16 +++ ChangeLog 5 Jun 2007 19:33:29 -0000 1.3451.2.17 @@ -1,5 +1,7 @@ 2007-06-05 Sandro Santilli + * gui/kdesup.h: raise a compile time error if RENDERER_OPENGL is not + defined (not only if CAIRO is) ... * plugin/klash/klash_part.cpp: call 'klash', not 'gnash'. 2007-06-05 Ann Barcomb Index: gui/kdesup.h =================================================================== RCS file: /sources/gnash/gnash/gui/kdesup.h,v retrieving revision 1.17 retrieving revision 1.17.4.1 diff -u -b -r1.17 -r1.17.4.1 --- gui/kdesup.h 28 May 2007 15:41:00 -0000 1.17 +++ gui/kdesup.h 5 Jun 2007 19:33:30 -0000 1.17.4.1 @@ -48,10 +48,12 @@ #ifdef RENDERER_OPENGL # include # include "kde_glue_opengl.h" -#elif defined(RENDERER_CAIRO) +//#elif defined(RENDERER_CAIRO) // #include // #include "kde_glue_cairo.h" -# error "Cairo not supported yet for KDE!" +//# error "Cairo not supported yet for KDE!" +#else +# error "KDE gui only supports OpenGL renderer!" #endif namespace gnash From MAILER-DAEMON Tue Jun 05 15:41:06 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvett-0004TP-Ta for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 15:41:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvets-0004Sd-IE for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:41:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvetr-0004SH-Ss for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:41:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvetr-0004SA-OE for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:41:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvetr-0003ob-Ee for gnash-commit@gnu.org; Tue, 05 Jun 2007 15:41:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hvetq-00082y-Qr for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:41:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hvetq-00082v-L1 for gnash-commit@gnu.org; Tue, 05 Jun 2007 19:41:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 05 Jun 2007 19:41:02 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 19:41:04 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/05 19:41:02 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: Exit with an error if klash is enabled by renderer is NOT OpenGL (poor kde users...) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.17&r2=1.3451.2.18 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331&r2=1.331.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.17 retrieving revision 1.3451.2.18 diff -u -b -r1.3451.2.17 -r1.3451.2.18 --- ChangeLog 5 Jun 2007 19:33:29 -0000 1.3451.2.17 +++ ChangeLog 5 Jun 2007 19:41:00 -0000 1.3451.2.18 @@ -1,5 +1,7 @@ 2007-06-05 Sandro Santilli + * configure.ac: Exit with an error if klash is enabled by renderer is + NOT OpenGL (poor kde users...) * gui/kdesup.h: raise a compile time error if RENDERER_OPENGL is not defined (not only if CAIRO is) ... * plugin/klash/klash_part.cpp: call 'klash', not 'gnash'. Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331 retrieving revision 1.331.4.1 diff -u -b -r1.331 -r1.331.4.1 --- configure.ac 1 Jun 2007 17:54:52 -0000 1.331 +++ configure.ac 5 Jun 2007 19:41:01 -0000 1.331.4.1 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331 2007/06/01 17:54:52 bjacques Exp $ +dnl $Id: configure.ac,v 1.331.4.1 2007/06/05 19:41:01 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -251,6 +251,10 @@ fi AM_CONDITIONAL(USE_RENDERER_AGG, test x$renderer = xagg) +if test x"$klash" = xyes -a x"$renderer" != xopengl; then + AC_MSG_ERROR([You must use the OpenGL renderer ( --enable-renderer=OGL ) if you enable klash ( --disable-klash to disable ).]) +fi + dnl 16 bit: RGB555, RGB565 dnl 24 bit: RGB24, BGR24 dnl 32 bit: RGBA32, BGRA32 From MAILER-DAEMON Tue Jun 05 20:36:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvjVq-0002pA-0D for mharc-gnash-commit@gnu.org; Tue, 05 Jun 2007 20:36:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvjVn-0002lf-TF for gnash-commit@gnu.org; Tue, 05 Jun 2007 20:36:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvjVn-0002kn-8H for gnash-commit@gnu.org; Tue, 05 Jun 2007 20:36:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvjVn-0002k9-2A for gnash-commit@gnu.org; Tue, 05 Jun 2007 20:36:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvjVm-0003qz-OO for gnash-commit@gnu.org; Tue, 05 Jun 2007 20:36:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvjVl-00064j-JU for gnash-commit@gnu.org; Wed, 06 Jun 2007 00:36:29 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvjVl-00064c-BQ for gnash-commit@gnu.org; Wed, 06 Jun 2007 00:36:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Wed, 06 Jun 2007 00:36:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 00:36:32 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/06 00:36:29 Modified files: . : configure.ac Log message: * configure.ac: Comment out the SIZET_FMT test, which seems to cause weird side effects, and jjst set SIZET_FMT to "%ud" on the thought that compiler warnings are better than obscure runtime errors. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.1&r2=1.331.4.2 Patches: Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.1 retrieving revision 1.331.4.2 diff -u -b -r1.331.4.1 -r1.331.4.2 --- configure.ac 5 Jun 2007 19:41:01 -0000 1.331.4.1 +++ configure.ac 6 Jun 2007 00:36:28 -0000 1.331.4.2 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.1 2007/06/05 19:41:01 strk Exp $ +dnl $Id: configure.ac,v 1.331.4.2 2007/06/06 00:36:28 rsavoye Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -61,39 +61,39 @@ dnl AC_CHECK_SIZEOF([size_t], 4, AC_INCLUDES_DEFAULT) -dnl AC_DEFINE(SIZET_FMT, ["%z"], [size_t printf modifier is z]) +AC_DEFINE(SIZET_FMT, ["%ud"], [size_t printf modifier is ud]) -AC_LANG_PUSH(C++) -save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS="$CXXFLAGS -Werror -Wformat" - -AC_TRY_COMPILE([#include - #include ], [ - size_t num = 0; - printf("%d", num); ], - AC_DEFINE(SIZET_FMT, ["%d"], [size_t printf modifier is d]) -) -AC_TRY_COMPILE([#include - #include ], [ - size_t num = 0; - printf("%u", num); ], - AC_DEFINE(SIZET_FMT, ["%u"], [size_t printf modifier is u]) -) -AC_TRY_COMPILE([#include - #include ], [ - size_t num = 0; - printf("%lu", num); ], - AC_DEFINE(SIZET_FMT, ["%lu"], [size_t printf modifier is lu]) -) -AC_TRY_COMPILE([#include - #include ], [ - size_t num = 0; - printf("%ld", num); ], - AC_DEFINE(SIZET_FMT, ["%ld"], [size_t printf modifier is ld]) -) - -CXXFLAGS="$save_CXXFLAGS" -AC_LANG_POP(C++) +#AC_LANG_PUSH(C++) +#save_CXXFLAGS="$CXXFLAGS" +#CXXFLAGS="$CXXFLAGS -Werror -Wformat" +# +#AC_TRY_COMPILE([#include +# #include ], [ +# size_t num = 0; +# printf("%d", num); ], +# AC_DEFINE(SIZET_FMT, ["%d"], [size_t printf modifier is d]) +#) +#AC_TRY_COMPILE([#include +# #include ], [ +# size_t num = 0; +# printf("%u", num); ], +# AC_DEFINE(SIZET_FMT, ["%u"], [size_t printf modifier is u]) +#) +#AC_TRY_COMPILE([#include +# #include ], [ +# size_t num = 0; +# printf("%lu", num); ], +# AC_DEFINE(SIZET_FMT, ["%lu"], [size_t printf modifier is lu]) +#) +#AC_TRY_COMPILE([#include +# #include ], [ +# size_t num = 0; +# printf("%ld", num); ], +# AC_DEFINE(SIZET_FMT, ["%ld"], [size_t printf modifier is ld]) +#) +# +#CXXFLAGS="$save_CXXFLAGS" +#AC_LANG_POP(C++) dnl This is primarily used when compiling for a similar architecture, dnl like pentium->geode, which can use the same compiler, but have From MAILER-DAEMON Wed Jun 06 02:58:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvpT1-00072X-6F for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvpSy-0006yu-O0 for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvpSx-0006xK-Gs for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:57:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvpSw-0006wj-Q9 for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:57:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvpSv-0006lb-Hv for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:57:57 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvpSq-0006LT-Va for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:57:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvpSq-0006LP-PC for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:57:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 06:57:52 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog Makefile.am [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 06:58:01 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 06:57:52 Modified files: . : ChangeLog Makefile.am Log message: * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.18&r2=1.3451.2.19 http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.74&r2=1.74.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.18 retrieving revision 1.3451.2.19 diff -u -b -r1.3451.2.18 -r1.3451.2.19 --- ChangeLog 5 Jun 2007 19:41:00 -0000 1.3451.2.18 +++ ChangeLog 6 Jun 2007 06:57:50 -0000 1.3451.2.19 @@ -1,3 +1,7 @@ +2007-06-06 Sandro Santilli + + * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. + 2007-06-05 Sandro Santilli * configure.ac: Exit with an error if klash is enabled by renderer is Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.74 retrieving revision 1.74.4.1 diff -u -b -r1.74 -r1.74.4.1 --- Makefile.am 18 May 2007 10:14:10 -0000 1.74 +++ Makefile.am 6 Jun 2007 06:57:51 -0000 1.74.4.1 @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Makefile.am,v 1.74 2007/05/18 10:14:10 strk Exp $ +# $Id: Makefile.am,v 1.74.4.1 2007/06/06 06:57:51 strk Exp $ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6.0 @@ -139,6 +139,7 @@ @echo "Some directories may be excluded from the build" @uname -a $(CXX) -v + @echo "CXXFLAGS: $(CXXFLAGS)" @echo "" @echo "Image decoding support..." @echo " JPEG_CFLAGS is $(JPEG_CFLAGS)" From MAILER-DAEMON Wed Jun 06 02:58:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvpTR-0007RN-Kk for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvpTO-0007QP-V7 for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvpTO-0007Pp-5b for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvpTN-0007Pj-Rq for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:26 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvpTM-0006oe-PT for gnash-commit@gnu.org; Wed, 06 Jun 2007 02:58:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvpTI-0006OA-Fa for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:58:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvpTI-0006O5-6b for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:58:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 06:58:20 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 06:58:27 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 06:58:19 Modified files: . : ChangeLog Makefile.am Log message: * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3463&r2=1.3464 http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&r1=1.74&r2=1.75 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3463 retrieving revision 1.3464 diff -u -b -r1.3463 -r1.3464 --- ChangeLog 5 Jun 2007 14:40:00 -0000 1.3463 +++ ChangeLog 6 Jun 2007 06:58:18 -0000 1.3464 @@ -1,3 +1,7 @@ +2007-06-06 Sandro Santilli + + * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. + 2007-06-05 Tomas Groth Christensen * testsuite/media/square.flv: Changed the movements in the movie to Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.74 retrieving revision 1.75 diff -u -b -r1.74 -r1.75 --- Makefile.am 18 May 2007 10:14:10 -0000 1.74 +++ Makefile.am 6 Jun 2007 06:58:19 -0000 1.75 @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Makefile.am,v 1.74 2007/05/18 10:14:10 strk Exp $ +# $Id: Makefile.am,v 1.75 2007/06/06 06:58:19 strk Exp $ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6.0 @@ -139,6 +139,7 @@ @echo "Some directories may be excluded from the build" @uname -a $(CXX) -v + @echo "CXXFLAGS: $(CXXFLAGS)" @echo "" @echo "Image decoding support..." @echo " JPEG_CFLAGS is $(JPEG_CFLAGS)" From MAILER-DAEMON Wed Jun 06 03:50:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvqHe-0000k0-BP for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 03:50:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvqHc-0000iw-4r for gnash-commit@gnu.org; Wed, 06 Jun 2007 03:50:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvqHa-0000iZ-VG for gnash-commit@gnu.org; Wed, 06 Jun 2007 03:50:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvqHa-0000iS-Lm for gnash-commit@gnu.org; Wed, 06 Jun 2007 03:50:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvqHZ-0004wp-R9 for gnash-commit@gnu.org; Wed, 06 Jun 2007 03:50:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvqHV-0003Am-OU for gnash-commit@gnu.org; Wed, 06 Jun 2007 07:50:13 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvqHV-0003Aj-JV for gnash-commit@gnu.org; Wed, 06 Jun 2007 07:50:13 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 07:50:13 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 07:50:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 07:50:13 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT tests if not already set by user. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3464&r2=1.3465 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.332&r2=1.333 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3464 retrieving revision 1.3465 diff -u -b -r1.3464 -r1.3465 --- ChangeLog 6 Jun 2007 06:58:18 -0000 1.3464 +++ ChangeLog 6 Jun 2007 07:50:12 -0000 1.3465 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT + tests if not already set by user. * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. 2007-06-05 Tomas Groth Christensen Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.332 retrieving revision 1.333 diff -u -b -r1.332 -r1.333 --- configure.ac 5 Jun 2007 13:56:27 -0000 1.332 +++ configure.ac 6 Jun 2007 07:50:13 -0000 1.333 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.332 2007/06/05 13:56:27 strk Exp $ +dnl $Id: configure.ac,v 1.333 2007/06/06 07:50:13 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -63,6 +63,10 @@ dnl AC_DEFINE(SIZET_FMT, ["%z"], [size_t printf modifier is z]) +dnl NOTE: Using AC_TRY_COMPILE is bogus when cross-compiling ! +dnl We need to know the size of size_t in the *target* host, +dnl not the build host (right?) +dnl AC_LANG_PUSH(C++) save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Werror -Wformat" @@ -92,7 +96,11 @@ AC_DEFINE(SIZET_FMT, ["%ld"], [size_t printf modifier is ld]) ) -CXXFLAGS="$save_CXXFLAGS" +if test x"$ac_env_CXXFLAGS_set" = "xset"; then + CXXFLAGS="$save_CXXFLAGS" +else + unset CXXFLAGS; +fi AC_LANG_POP(C++) dnl This is primarily used when compiling for a similar architecture, From MAILER-DAEMON Wed Jun 06 04:27:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvqrP-0003zw-4Y for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 04:27:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvqrM-0003ze-RD for gnash-commit@gnu.org; Wed, 06 Jun 2007 04:27:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvqrH-0003y7-0Q for gnash-commit@gnu.org; Wed, 06 Jun 2007 04:27:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvqrG-0003y0-Rk for gnash-commit@gnu.org; Wed, 06 Jun 2007 04:27:10 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HvqqR-0000bP-RE for gnash-commit@gnu.org; Wed, 06 Jun 2007 04:27:10 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l568PpU4005124; Wed, 6 Jun 2007 10:25:53 +0200 Date: Wed, 6 Jun 2007 10:25:51 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1032264829.20070606102551@nova-sys.net> To: Sandro Santilli Subject: Re: [Gnash-commit] gnash ChangeLog configure.ac In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 08:27:17 -0000 Hello Sandro, Wednesday, June 6, 2007, 9:50:13 AM, you wrote: SS> Modified files: SS> . : ChangeLog configure.ac Great! CVS HEAD is now fast again. Thanks! :-) Udo From MAILER-DAEMON Wed Jun 06 05:08:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvrUt-0004YS-Tr for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 05:08:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvrUr-0004WV-Jt for gnash-commit@gnu.org; Wed, 06 Jun 2007 05:08:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvrUp-0004Vk-US for gnash-commit@gnu.org; Wed, 06 Jun 2007 05:08:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvrUp-0004VY-HI for gnash-commit@gnu.org; Wed, 06 Jun 2007 05:08:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvrUo-0005ty-Ec for gnash-commit@gnu.org; Wed, 06 Jun 2007 05:08:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvrUj-0001nt-TX for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:07:57 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvrUj-0001no-No for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:07:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 09:07:57 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog plugin/klash/Makefile.am plugin... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 09:08:05 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 09:07:57 Modified files: . : ChangeLog plugin/klash : Makefile.am klash_part.cpp Log message: * plugin/klash/: Makefile.am, klash_part.cpp: spanw the KLASH_PLAYER if set in the environment, or default to GNASHBINDIR/klash otherwise. This is to have klash plugin closer in implementation/features to the firefox one, and to test using other guis... CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.19&r2=1.3451.2.20 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.29&r2=1.29.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/klash_part.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.1&r2=1.13.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.19 retrieving revision 1.3451.2.20 diff -u -b -r1.3451.2.19 -r1.3451.2.20 --- ChangeLog 6 Jun 2007 06:57:50 -0000 1.3451.2.19 +++ ChangeLog 6 Jun 2007 09:07:55 -0000 1.3451.2.20 @@ -1,5 +1,13 @@ 2007-06-06 Sandro Santilli + * plugin/klash/: Makefile.am, klash_part.cpp: spanw the KLASH_PLAYER + if set in the environment, or default to GNASHBINDIR/klash + otherwise. This is to have klash plugin closer in + implementation/features to the firefox one, and to test using other + guis... + +2007-06-06 Sandro Santilli + * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. 2007-06-05 Sandro Santilli Index: plugin/klash/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/plugin/klash/Makefile.am,v retrieving revision 1.29 retrieving revision 1.29.4.1 diff -u -b -r1.29 -r1.29.4.1 --- plugin/klash/Makefile.am 14 May 2007 15:24:04 -0000 1.29 +++ plugin/klash/Makefile.am 6 Jun 2007 09:07:57 -0000 1.29.4.1 @@ -15,12 +15,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.29 2007/05/14 15:24:04 rsavoye Exp $ +# $Id: Makefile.am,v 1.29.4.1 2007/06/06 09:07:57 strk Exp $ AUTOMAKE_OPTIONS = if KLASH -AM_CPPFLAGS= $(KDE_CFLAGS) $(QT_CFLAGS) +AM_CPPFLAGS= $(KDE_CFLAGS) $(QT_CFLAGS) -DGNASHBINDIR=\"$(GNASHEXE)\" plugindir = $(libdir)/kde3 kde_servicesdir = $(prefix)/share/services Index: plugin/klash/klash_part.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/klash/klash_part.cpp,v retrieving revision 1.13.4.1 retrieving revision 1.13.4.2 diff -u -b -r1.13.4.1 -r1.13.4.2 --- plugin/klash/klash_part.cpp 5 Jun 2007 19:19:31 -0000 1.13.4.1 +++ plugin/klash/klash_part.cpp 6 Jun 2007 09:07:57 -0000 1.13.4.2 @@ -156,7 +156,18 @@ return kapp->authorizeURLAction ("redirect", m_docbase, url); } -KDE_NO_EXPORT void KlashPart::play () { +KDE_NO_EXPORT void KlashPart::play () +{ + + QString procname; + char *gnash_env = getenv("KLASH_PLAYER"); + if (!gnash_env) { + procname = GNASHBINDIR; + procname += "/klash"; + } else { + procname = gnash_env; + } + stop (); if (m_src_url.isEmpty ()) return; @@ -168,7 +179,7 @@ dim = QString ("-j ") + QString::number (m_width) + QString (" -k ") + QString::number (m_height); // TODO: check KLASH_PLAYER env ? - QString cmd = QString ("klash -x ") + + QString cmd = procname + QString (" -x ") + QString::number (static_cast (widget ())->embedId()) + QChar (' ') + dim + QChar (' ') + KProcess::quote (m_src_url); From MAILER-DAEMON Wed Jun 06 06:07:31 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvsQN-0007Dl-Re for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvsQM-0007Dg-Vl for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvsQM-0007DU-4Q for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvsQM-0007DR-1M for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvsQL-0004DT-Hn for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvsQL-0007TI-9B for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:07:29 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvsQL-0007TF-42 for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:07:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 10:07:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:07:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 10:07:28 Modified files: . : ChangeLog testsuite/misc-ming.all: NetStream-SquareTest.c Log message: * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for bytesTotal since the .flv was actually updated... Fixes bug #20096. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3465&r2=1.3466 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.12&r2=1.13 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3465 retrieving revision 1.3466 diff -u -b -r1.3465 -r1.3466 --- ChangeLog 6 Jun 2007 07:50:12 -0000 1.3465 +++ ChangeLog 6 Jun 2007 10:07:28 -0000 1.3466 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for + bytesTotal since the .flv was actually updated... Fixes bug #20096. * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT tests if not already set by user. * Makefile.am: Add print of CXXFLAGS at 'make dumpconfig' time. Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 19:21:21 -0000 1.12 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 6 Jun 2007 10:07:28 -0000 1.13 @@ -150,7 +150,7 @@ " {" " _root.check(this instanceOf NetStream); " " _root.check_equals(this.bufferTime, 2); " - " _root.check_equals(this.bytesTotal, 46893); " + " _root.check_equals(this.bytesTotal, 21482); " " this.stopNotified = true;" " _root.nextFrame();" " }" From MAILER-DAEMON Wed Jun 06 06:07:54 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvsQj-0007Fx-US for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvsQi-0007Fh-W6 for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvsQi-0007FV-ME for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvsQi-0007FS-Fm for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:52 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvsQi-0004FS-1I for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:07:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvsQh-0007VD-OH for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:07:51 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvsQh-0007VA-Jm for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:07:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 10:07:51 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:07:53 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 10:07:51 Modified files: . : ChangeLog testsuite/misc-ming.all: NetStream-SquareTest.c Log message: * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for bytesTotal since the .flv was actually updated... Fixes bug #20096. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.20&r2=1.3451.2.21 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.10&r2=1.10.2.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.20 retrieving revision 1.3451.2.21 diff -u -b -r1.3451.2.20 -r1.3451.2.21 --- ChangeLog 6 Jun 2007 09:07:55 -0000 1.3451.2.20 +++ ChangeLog 6 Jun 2007 10:07:49 -0000 1.3451.2.21 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for + bytesTotal since the .flv was actually updated... Fixes bug #20096. * plugin/klash/: Makefile.am, klash_part.cpp: spanw the KLASH_PLAYER if set in the environment, or default to GNASHBINDIR/klash otherwise. This is to have klash plugin closer in Index: testsuite/misc-ming.all/NetStream-SquareTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -u -b -r1.10 -r1.10.2.1 --- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:16:57 -0000 1.10 +++ testsuite/misc-ming.all/NetStream-SquareTest.c 6 Jun 2007 10:07:50 -0000 1.10.2.1 @@ -133,7 +133,7 @@ " {" " _root.check(this instanceOf NetStream); " " _root.check_equals(this.bufferTime, 2); " - " _root.check_equals(this.bytesTotal, 46893); " + " _root.check_equals(this.bytesTotal, 21482); " " this.stopNotified = true;" " _root.nextFrame();" " }" From MAILER-DAEMON Wed Jun 06 06:13:15 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvsVv-00007t-9h for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvsVt-00007i-Vq for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvsVs-00005k-IW for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvsVs-00005e-CS for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:12 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvsVs-0004iU-0c for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvsVr-0007tZ-N7 for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:13:11 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvsVr-0007tV-BW for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:13:11 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 10:13:11 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:13:14 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 10:13:11 Modified files: . : ChangeLog testsuite/misc-ming.all: Makefile.am Log message: * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf depends on testsuite/media/square.flv ! Fixes bug #20090. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.21&r2=1.3451.2.22 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.133&r2=1.133.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.21 retrieving revision 1.3451.2.22 diff -u -b -r1.3451.2.21 -r1.3451.2.22 --- ChangeLog 6 Jun 2007 10:07:49 -0000 1.3451.2.21 +++ ChangeLog 6 Jun 2007 10:13:09 -0000 1.3451.2.22 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf + depends on testsuite/media/square.flv ! Fixes bug #20090. * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for bytesTotal since the .flv was actually updated... Fixes bug #20096. * plugin/klash/: Makefile.am, klash_part.cpp: spanw the KLASH_PLAYER Index: testsuite/misc-ming.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v retrieving revision 1.133 retrieving revision 1.133.4.1 diff -u -b -r1.133 -r1.133.4.1 --- testsuite/misc-ming.all/Makefile.am 29 May 2007 07:28:31 -0000 1.133 +++ testsuite/misc-ming.all/Makefile.am 6 Jun 2007 10:13:10 -0000 1.133.4.1 @@ -1423,7 +1423,7 @@ Video_EmbedSquareTest_LDADD = libgnashmingutils.la -Video-EmbedSquareTest.swf: Video-EmbedSquareTest +Video-EmbedSquareTest.swf: Video-EmbedSquareTest $(srcdir)/../media/square.flv ./Video-EmbedSquareTest $(srcdir)/../media Video_EmbedSquareTestRunner_SOURCES = \ From MAILER-DAEMON Wed Jun 06 06:13:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvsW1-0000A2-D1 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvsVz-00009r-VX for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvsVz-00009U-8I for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvsVz-00009Q-2f for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvsVy-0004jY-QK for gnash-commit@gnu.org; Wed, 06 Jun 2007 06:13:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvsVy-0007uV-Bn for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:13:18 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvsVy-0007uQ-22 for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:13:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 10:13:18 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 10:13:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 10:13:17 Modified files: . : ChangeLog testsuite/misc-ming.all: Makefile.am Log message: * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf depends on testsuite/media/square.flv ! Fixes bug #20090. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3466&r2=1.3467 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.133&r2=1.134 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3466 retrieving revision 1.3467 diff -u -b -r1.3466 -r1.3467 --- ChangeLog 6 Jun 2007 10:07:28 -0000 1.3466 +++ ChangeLog 6 Jun 2007 10:13:16 -0000 1.3467 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf + depends on testsuite/media/square.flv ! Fixes bug #20090. * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for bytesTotal since the .flv was actually updated... Fixes bug #20096. * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT Index: testsuite/misc-ming.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v retrieving revision 1.133 retrieving revision 1.134 diff -u -b -r1.133 -r1.134 --- testsuite/misc-ming.all/Makefile.am 29 May 2007 07:28:31 -0000 1.133 +++ testsuite/misc-ming.all/Makefile.am 6 Jun 2007 10:13:17 -0000 1.134 @@ -1423,7 +1423,7 @@ Video_EmbedSquareTest_LDADD = libgnashmingutils.la -Video-EmbedSquareTest.swf: Video-EmbedSquareTest +Video-EmbedSquareTest.swf: Video-EmbedSquareTest $(srcdir)/../media/square.flv ./Video-EmbedSquareTest $(srcdir)/../media Video_EmbedSquareTestRunner_SOURCES = \ From MAILER-DAEMON Wed Jun 06 08:23:55 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvuYN-0003a8-Rt for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 08:23:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvuYL-0003ZR-Kv for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:23:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvuYK-0003Z5-7Y for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:23:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvuYK-0003Z2-1l for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:23:52 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvuYJ-0003Sz-Ny for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:23:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvuYI-0002Ug-KS for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:23:50 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvuYI-0002Ub-Fa for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:23:50 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 12:23:50 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/samples/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 12:23:54 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 12:23:50 Modified files: . : ChangeLog testsuite/samples: Makefile.am Log message: * testsuite/samples/Makefile.am: distribute subshapes.swf, as we're now using it for testing purposes. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3467&r2=1.3468 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/samples/Makefile.am?cvsroot=gnash&r1=1.17&r2=1.18 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3467 retrieving revision 1.3468 diff -u -b -r1.3467 -r1.3468 --- ChangeLog 6 Jun 2007 10:13:16 -0000 1.3467 +++ ChangeLog 6 Jun 2007 12:23:49 -0000 1.3468 @@ -1,5 +1,7 @@ 2007-06-06 Sandro Santilli + * testsuite/samples/Makefile.am: distribute subshapes.swf, as we're + now using it for testing purposes. * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf depends on testsuite/media/square.flv ! Fixes bug #20090. * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for Index: testsuite/samples/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/samples/Makefile.am,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- testsuite/samples/Makefile.am 5 Jun 2007 13:21:55 -0000 1.17 +++ testsuite/samples/Makefile.am 6 Jun 2007 12:23:50 -0000 1.18 @@ -97,6 +97,7 @@ clip_as_button2.swf \ GotoAndPlayTest.swf \ gotoFrameOnKeyEvent.swf \ + subshapes.swf \ README \ $(NULL) From MAILER-DAEMON Wed Jun 06 08:57:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvv50-0004Fj-2h for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 08:57:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvv4y-0004Du-Oa for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:57:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvv4x-0004Cf-VP for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:57:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvv4x-0004CL-OT for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:57:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvv4x-0007mK-D2 for gnash-commit@gnu.org; Wed, 06 Jun 2007 08:57:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hvv4w-0005yv-Ae for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:57:34 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hvv4v-0005yp-T0 for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:57:34 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 12:57:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 12:57:37 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 12:57:33 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: If no --enable-media was specified, use the first detected one in this order: ffmpeg/gst/mad. This is to allow ./configure with no args to be more failsafe (useful on 'make distcheck'). If you guys like this patch I'd backport to 0.8 branch. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3468&r2=1.3469 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.333&r2=1.334 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3468 retrieving revision 1.3469 diff -u -b -r1.3468 -r1.3469 --- ChangeLog 6 Jun 2007 12:23:49 -0000 1.3468 +++ ChangeLog 6 Jun 2007 12:57:32 -0000 1.3469 @@ -1,5 +1,12 @@ 2007-06-06 Sandro Santilli + * configure.ac: If no --enable-media was specified, use the first + detected one in this order: ffmpeg/gst/mad. This is to allow + ./configure with no args to be more failsafe (useful on 'make + distcheck'). If you guys like this patch I'd backport to 0.8 branch. + +2007-06-06 Sandro Santilli + * testsuite/samples/Makefile.am: distribute subshapes.swf, as we're now using it for testing purposes. * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.333 retrieving revision 1.334 diff -u -b -r1.333 -r1.334 --- configure.ac 6 Jun 2007 07:50:13 -0000 1.333 +++ configure.ac 6 Jun 2007 12:57:33 -0000 1.334 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.333 2007/06/06 07:50:13 strk Exp $ +dnl $Id: configure.ac,v 1.334 2007/06/06 12:57:33 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -321,13 +321,26 @@ dnl Select media handler dnl -------------------------------------------------------- +media_handler_specified=false AC_ARG_ENABLE(media, AC_HELP_STRING([--enable-media=handler], [Enable media handling support using the specified handler: ffmpeg, mad, GST (Gstreamer) or none (no sound) [[ffmpeg]] ]), [case "${enableval}" in - GST|gst) media_handler=gst ;; - ffmpeg|FFMPEG) media_handler=ffmpeg ;; - mad|MAD) media_handler=mad ;; - no|NO|none) media_handler=none ;; + GST|gst) + media_handler=gst + media_handler_specified=true + ;; + ffmpeg|FFMPEG) + media_handler=ffmpeg + media_handler_specified=true + ;; + mad|MAD) + media_handler=mad + media_handler_specified=true + ;; + no|NO|none) + media_handler=none + media_handler_specified=true + ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-media option]) ;; esac], [media_handler=ffmpeg] @@ -865,20 +878,38 @@ if test x"$media_handler" = x"ffmpeg"; then GNASH_PATH_FFMPEG - # If the library is not found, this will be reported and nogo'd at the end. - # if test x"${ac_cv_path_ffmpeg_lib}" = x; then - # AC_MSG_WARN([ffmpeg was specified as the media decoder but its library could not be found]) - # fi + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, or its version is not ok, we'll try gst + if test x"${ac_cv_path_ffmpeg_lib}" = x -o x"${ffmpeg_version}" != xok; then + AC_MSG_WARN([No appropriate ffmpeg library found, will try using gstreamer.]) + media_handler=gst + fi + fi fi +if test "$media_handler" = "gst"; then + GNASH_PKG_FIND(gstreamer, [gst/gst.h], [gstreamer library], gst_init, [0.10]) + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, or its version is not ok, we'll try mad + if test x"$GSTREAMER_LIBS" = x; then + AC_MSG_WARN([No appropriate gstreamer library found, will try using mad.]) + media_handler=mad + fi + fi +fi + + if test x"$media_handler" = x"mad"; then dnl Will set MAD_LIBS and MAD_CFLAGS. dnl Handles --with-mad-incl and --with-mad-lib GNASH_PKG_FIND(mad, [mad.h], [mad library], mad_copyright) - # If the library is not found, this will be reported and nogo'd at the end. - # if test x"${ac_cv_path_mad_lib}" = x ; then - # AC_MSG_WARN([Libmad was specified as the media decoder, but it could not be found]) - # fi + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, we'll disable media handling + if test x"${ac_cv_path_mad_lib}" = x ; then + AC_MSG_WARN([No libmad found, disabling media handlign.]) + media_handler=none + fi + fi fi dnl I'm kinda lazy, get rid of this later... //Markus @@ -904,10 +935,6 @@ *) esac -if test "$media_handler" = "gst"; then - GNASH_PKG_FIND(gstreamer, [gst/gst.h], [gstreamer library], gst_init, [0.10]) -fi - dnl I'm kinda lazy, get rid of this later... //Markus AM_CONDITIONAL(HAVE_GST, test x$media_handler = xgst) From MAILER-DAEMON Wed Jun 06 09:15:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvMB-0003Yg-Ug for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:15:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvvMA-0003Yb-KQ for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:15:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvvM8-0003WU-Tw for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:15:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvvM8-0003W3-KK for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:15:20 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvM7-0001W2-Fo for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:15:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvM6-00076N-35 for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:15:18 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvM5-00076J-UQ for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:15:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 13:15:17 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:15:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 13:15:17 Modified files: . : ChangeLog testsuite : MovieTester.cpp MovieTester.h Log message: * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't compiled in. Add a canTestSound() method to query that capability. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3469&r2=1.3470 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.39&r2=1.40 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.23&r2=1.24 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3469 retrieving revision 1.3470 diff -u -b -r1.3469 -r1.3470 --- ChangeLog 6 Jun 2007 12:57:32 -0000 1.3469 +++ ChangeLog 6 Jun 2007 13:15:16 -0000 1.3470 @@ -1,5 +1,10 @@ 2007-06-06 Sandro Santilli + * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't + compiled in. Add a canTestSound() method to query that capability. + +2007-06-06 Sandro Santilli + * configure.ac: If no --enable-media was specified, use the first detected one in this order: ffmpeg/gst/mad. This is to allow ./configure with no args to be more failsafe (useful on 'make Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -u -b -r1.39 -r1.40 --- testsuite/MovieTester.cpp 5 Jun 2007 13:07:01 -0000 1.39 +++ testsuite/MovieTester.cpp 6 Jun 2007 13:15:17 -0000 1.40 @@ -357,12 +357,14 @@ int MovieTester::soundsStarted() { + if ( ! _sound_handler ) return 0; return _sound_handler->numSoundsStarted(); } int MovieTester::soundsStopped() { + if ( ! _sound_handler ) return 0; return _sound_handler->numSoundsStopped(); } @@ -450,7 +452,8 @@ _sound_handler.reset( gnash::create_sound_handler_gst() ); #else cerr << "Neigher SOUND_SDL nor SOUND_GST defined" << endl; - exit(1); + return; + //exit(1); #endif gnash::set_sound_handler(_sound_handler.get()); Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- testsuite/MovieTester.h 4 Jun 2007 17:16:26 -0000 1.23 +++ testsuite/MovieTester.h 6 Jun 2007 13:15:17 -0000 1.24 @@ -75,6 +75,12 @@ /// Return the underlying render handler render_handler& getRenderer() const { return *_renderer; } + /// Return true if this build of MovieTester supports sound testing + // + /// Sound will be supported as long as a sound handler was compiled in. + /// + bool canTestSound() const { return _sound_handler.get() != NULL; } + private: std::string _name; @@ -210,10 +216,16 @@ /// handles mouse events bool isMouseOverMouseEntity(); - /// Return the number of times a sound has been stopped. + /// \brief + /// Return the number of times a sound has been stopped, + /// or 0 if sound testing is not supported. See canTestSound(). + // int soundsStopped(); - /// Return the number of times a sound has been started. + /// \brief + /// Return the number of times a sound has been started, + /// or 0 if sound testing is not supported. See canTestSound(). + // int soundsStarted(); private: From MAILER-DAEMON Wed Jun 06 09:18:59 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvPf-0005nO-8u for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:18:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvvPd-0005mv-Ko for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:18:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvvPc-0005mj-8H for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:18:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvvPc-0005mZ-1x for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:18:56 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvPb-00025s-Lm for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:18:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvPa-0007OU-FV for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:18:54 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvPa-0007OR-9Z for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:18:54 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 13:18:54 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/testsuite MovieTester.cpp MovieTester.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:18:57 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 13:18:54 Modified files: testsuite : MovieTester.cpp MovieTester.h Log message: Sorry, fixed bugs in last commit CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.40&r2=1.41 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.24&r2=1.25 Patches: Index: MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.40 retrieving revision 1.41 diff -u -b -r1.40 -r1.41 --- MovieTester.cpp 6 Jun 2007 13:15:17 -0000 1.40 +++ MovieTester.cpp 6 Jun 2007 13:18:53 -0000 1.41 @@ -357,14 +357,14 @@ int MovieTester::soundsStarted() { - if ( ! _sound_handler ) return 0; + if ( ! _sound_handler.get() ) return 0; return _sound_handler->numSoundsStarted(); } int MovieTester::soundsStopped() { - if ( ! _sound_handler ) return 0; + if ( ! _sound_handler.get() ) return 0; return _sound_handler->numSoundsStopped(); } Index: MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- MovieTester.h 6 Jun 2007 13:15:17 -0000 1.24 +++ MovieTester.h 6 Jun 2007 13:18:53 -0000 1.25 @@ -75,12 +75,6 @@ /// Return the underlying render handler render_handler& getRenderer() const { return *_renderer; } - /// Return true if this build of MovieTester supports sound testing - // - /// Sound will be supported as long as a sound handler was compiled in. - /// - bool canTestSound() const { return _sound_handler.get() != NULL; } - private: std::string _name; @@ -228,6 +222,12 @@ // int soundsStarted(); + /// Return true if this build of MovieTester supports sound testing + // + /// Sound will be supported as long as a sound handler was compiled in. + /// + bool canTestSound() const { return _sound_handler.get() != NULL; } + private: /// Initialize testing renderers From MAILER-DAEMON Wed Jun 06 09:24:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvVR-0000Jr-Nc for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:24:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvvVP-0000Iw-S3 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:24:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvvVO-0000IF-FZ for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:24:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvvVO-0000I5-5H for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:24:54 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvVN-00039l-P2 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:24:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvVM-0007oz-Nf for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:24:52 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvVM-0007ov-G0 for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:24:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 06 Jun 2007 13:24:52 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:24:56 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/06 13:24:52 Modified files: . : ChangeLog backend : render_handler_agg.cpp Log message: backend/render_handler_agg.cpp: apply stage scaling to matrix don't multiply each coordinate (should improve rendering performance) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3470&r2=1.3471 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.85&r2=1.86 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3470 retrieving revision 1.3471 diff -u -b -r1.3470 -r1.3471 --- ChangeLog 6 Jun 2007 13:15:16 -0000 1.3470 +++ ChangeLog 6 Jun 2007 13:24:51 -0000 1.3471 @@ -1,3 +1,8 @@ +2007-06-06 Udo Giacomozzi + + * backend/render_handler_agg.cpp: apply stage scaling to matrix, + don't multiply each coordinate (should improve rendering performance) + 2007-06-06 Sandro Santilli * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.85 retrieving revision 1.86 diff -u -b -r1.85 -r1.86 --- backend/render_handler_agg.cpp 5 Jun 2007 08:27:55 -0000 1.85 +++ backend/render_handler_agg.cpp 6 Jun 2007 13:24:52 -0000 1.86 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.85 2007/06/05 08:27:55 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.86 2007/06/06 13:24:52 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -331,7 +331,8 @@ int xres; int yres; int bpp; // bits per pixel - double xscale, yscale; + // double xscale, yscale; <-- deprecated, to be removed + gnash::matrix stage_matrix; // conversion from TWIPS to pixels @@ -426,7 +427,8 @@ } - void drawVideoFrame(image::image_base* baseframe, const matrix* mat, const rect* bounds) { + void drawVideoFrame(image::image_base* baseframe, const matrix* source_mat, + const rect* bounds) { // NOTE: Assuming that the source image is RGB 8:8:8 @@ -445,6 +447,9 @@ image::rgb* frame = static_cast(baseframe); + matrix mat = stage_matrix; + mat.concatenate(*source_mat); + // compute video scaling relative to video obejct size double vscaleX = TWIPS_TO_PIXELS(bounds->width()) / frame->m_width; double vscaleY = TWIPS_TO_PIXELS(bounds->height()) / frame->m_height; @@ -452,14 +457,11 @@ // convert Gnash matrix to AGG matrix and scale down to pixel coordinates // while we're at it agg::trans_affine img_mtx( - mat->m_[0][0], mat->m_[1][0], - mat->m_[0][1], mat->m_[1][1], - mat->m_[0][2], mat->m_[1][2] + mat.m_[0][0], mat.m_[1][0], + mat.m_[0][1], mat.m_[1][1], + mat.m_[0][2], mat.m_[1][2] ); - // apply global movie scaling - img_mtx *= agg::trans_affine_scaling((xscale+yscale) * 0.5); - // invert matrix since this is used for the image source img_mtx.invert(); @@ -497,17 +499,17 @@ // make a path for the video outline point a, b, c, d; - mat->transform(&a, point(bounds->get_x_min(), bounds->get_y_min())); - mat->transform(&b, point(bounds->get_x_max(), bounds->get_y_min())); - mat->transform(&c, point(bounds->get_x_max(), bounds->get_y_max())); - mat->transform(&d, point(bounds->get_x_min(), bounds->get_y_max())); + mat.transform(&a, point(bounds->get_x_min(), bounds->get_y_min())); + mat.transform(&b, point(bounds->get_x_max(), bounds->get_y_min())); + mat.transform(&c, point(bounds->get_x_max(), bounds->get_y_max())); + mat.transform(&d, point(bounds->get_x_min(), bounds->get_y_max())); agg::path_storage path; - path.move_to(a.m_x*xscale, a.m_y*yscale); - path.line_to(b.m_x*xscale, b.m_y*yscale); - path.line_to(c.m_x*xscale, c.m_y*yscale); - path.line_to(d.m_x*xscale, d.m_y*yscale); - path.line_to(a.m_x*xscale, a.m_y*yscale); + path.move_to(a.m_x, a.m_y); + path.line_to(b.m_x, b.m_y); + path.line_to(c.m_x, c.m_y); + path.line_to(d.m_x, d.m_y); + path.line_to(a.m_x, a.m_y); if (m_alpha_mask.empty()) { @@ -563,8 +565,8 @@ xres(1), yres(1), bpp(bits_per_pixel), - xscale(1.0/20.0), - yscale(1.0/20.0), + /*xscale(1.0/20.0), + yscale(1.0/20.0),*/ m_enable_antialias(true), m_pixf(NULL), m_drawing_mask(false) @@ -747,8 +749,12 @@ void draw_line_strip(const void* coords, int vertex_count, const rgba color) // Draw the line strip formed by the sequence of points. { + assert(m_pixf != NULL); + matrix mat = stage_matrix; + mat.concatenate(m_current_matrix); + if ( _clipbounds.size()==0 ) return; point pnt; @@ -777,12 +783,12 @@ const int16_t *vertex = static_cast(coords); - m_current_matrix.transform(&pnt, point(vertex[0], vertex[1])); - path.move_to(pnt.m_x * xscale, pnt.m_y * yscale); + mat.transform(&pnt, point(vertex[0], vertex[1])); + path.move_to(pnt.m_x, pnt.m_y); for (vertex += 2; vertex_count > 1; vertex_count--, vertex += 2) { - m_current_matrix.transform(&pnt, point(vertex[0], vertex[1])); - path.line_to(pnt.m_x * xscale, pnt.m_y * yscale); + mat.transform(&pnt, point(vertex[0], vertex[1])); + path.line_to(pnt.m_x, pnt.m_y); } // The vectorial pipeline ras.add_path(stroke); @@ -890,7 +896,11 @@ /// rendering of characters outside a particular clipping range. /// "_clipbounds_selected" is used by draw_shape() and draw_outline() and /// *must* be initialized prior to using those function. - void select_clipbounds(const shape_character_def *def, const matrix& mat) { + void select_clipbounds(const shape_character_def *def, + const matrix& source_mat) { + + matrix mat = stage_matrix; + mat.concatenate(source_mat); _clipbounds_selected.clear(); _clipbounds_selected.reserve(_clipbounds.size()); @@ -906,8 +916,6 @@ rect bounds; bounds.set_null(); bounds.expand_to_transformed_rect(mat, ch_bounds); - bounds.scale_x(xscale); - bounds.scale_y(yscale); const geometry::Range2d& range_float = bounds.getRange(); @@ -1055,11 +1063,14 @@ /// Takes a path and translates it using the given matrix. The new path /// is stored in paths_out. void apply_matrix_to_path(const std::vector &paths_in, - std::vector &paths_out, const matrix &mat) { + std::vector &paths_out, const matrix &source_mat) { int pcount, ecount; int pno, eno; + matrix mat = stage_matrix; + mat.concatenate(source_mat); + // copy path paths_out = paths_in; pcount = paths_out.size(); @@ -1143,8 +1154,8 @@ const gnash::path& this_path = paths[pno]; agg::path_storage& new_path = dest[pno]; - new_path.move_to(this_path.m_ax*xscale + subpixel_offset, - this_path.m_ay*yscale + subpixel_offset); + new_path.move_to(this_path.m_ax + subpixel_offset, + this_path.m_ay + subpixel_offset); int ecount = this_path.m_edges.size(); @@ -1153,19 +1164,16 @@ const edge& this_edge = this_path.m_edges[eno]; if (this_edge.is_straight()) - new_path.line_to(this_edge.m_ax*xscale + subpixel_offset, - this_edge.m_ay*yscale + subpixel_offset); + new_path.line_to(this_edge.m_ax + subpixel_offset, + this_edge.m_ay + subpixel_offset); else - new_path.curve3(this_edge.m_cx*xscale + subpixel_offset, - this_edge.m_cy*yscale + subpixel_offset, - this_edge.m_ax*xscale + subpixel_offset, - this_edge.m_ay*yscale + subpixel_offset); - + new_path.curve3(this_edge.m_cx + subpixel_offset, + this_edge.m_cy + subpixel_offset, + this_edge.m_ax + subpixel_offset, + this_edge.m_ay + subpixel_offset); } - } - } //build_agg_paths @@ -1198,8 +1206,8 @@ const gnash::path& this_path = paths[pno]; agg::path_storage& new_path = dest[pno]; - float prev_ax = this_path.m_ax*xscale; - float prev_ay = this_path.m_ay*yscale; + float prev_ax = this_path.m_ax; + float prev_ay = this_path.m_ay; bool prev_align_x = true; bool prev_align_y = true; @@ -1209,8 +1217,8 @@ const edge& this_edge = this_path.m_edges[eno]; - float this_ax = this_edge.m_ax*xscale; - float this_ay = this_edge.m_ay*yscale; + float this_ax = this_edge.m_ax; + float this_ay = this_edge.m_ay; if (this_edge.is_straight()) { @@ -1279,8 +1287,8 @@ new_path.move_to(prev_ax, prev_ay); // never align curves! - new_path.curve3(this_edge.m_cx*xscale + subpixel_offset, - this_edge.m_cy*yscale + subpixel_offset, + new_path.curve3(this_edge.m_cx + subpixel_offset, + this_edge.m_cy + subpixel_offset, this_ax + subpixel_offset, this_ay + subpixel_offset); @@ -1318,7 +1326,7 @@ (fabsf(linestyle_matrix.get_x_scale()) + fabsf(linestyle_matrix.get_y_scale())) / 2.0f - * (xscale+yscale)/2.0f; + * get_stroke_scale(); for (int pno=0; pno (fill_styles[fno].get_bitmap_info()), m, cx, @@ -1640,7 +1651,7 @@ this_path.m_fill1==0 ? -1 : 0); // starting point of path - path.move_to(this_path.m_ax*xscale, this_path.m_ay*yscale); + path.move_to(this_path.m_ax, this_path.m_ay); unsigned int ecount = this_path.m_edges.size(); for (unsigned int eno=0; eno ras_type; @@ -1836,19 +1850,19 @@ // Note: The coordinates are rounded and 0.5 is added to snap them to the // center of the pixel. This avoids blurring caused by anti-aliasing. - m_current_matrix.transform(&origin, + mat.transform(&origin, point(trunc(corners[0].m_x), trunc(corners[0].m_y))); - path.move_to(trunc(origin.m_x*xscale)+0.5, trunc(origin.m_y*yscale)+0.5); + path.move_to(trunc(origin.m_x)+0.5, trunc(origin.m_y)+0.5); for (unsigned int i=1; i0) { @@ -1875,14 +1889,20 @@ } + inline float get_stroke_scale() { + return (stage_matrix.get_x_scale() + stage_matrix.get_y_scale()) / 2.0f; + } + inline void world_to_pixel(int& x, int& y, float world_x, float world_y) { // negative pixels seems ok here... we don't // clip to valid range, use world_to_pixel(rect&) // and Intersect() against valid range instead. - x = (int)(world_x * xscale); - y = (int)(world_y * yscale); + point p(world_x, world_y); + stage_matrix.transform(p); + x = p.m_x; + y = p.m_y; } geometry::Range2d world_to_pixel(const rect& wb) @@ -1990,13 +2010,16 @@ } void set_scale(float new_xscale, float new_yscale) { - xscale = new_xscale/20.0f; - yscale = new_yscale/20.0f; + /*xscale = new_xscale/20.0f; + yscale = new_yscale/20.0f;*/ + + stage_matrix.set_identity(); + stage_matrix.set_scale(new_xscale/20.0f, new_yscale/20.0f); } virtual void get_scale(point& scale) { - scale.m_x = PIXELS_TO_TWIPS(xscale); - scale.m_y = PIXELS_TO_TWIPS(yscale); + scale.m_x = PIXELS_TO_TWIPS(stage_matrix.get_x_scale()); + scale.m_y = PIXELS_TO_TWIPS(stage_matrix.get_y_scale()); } virtual unsigned int getBytesPerPixel() const { From MAILER-DAEMON Wed Jun 06 09:31:15 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvbX-0002sH-Du for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:31:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvvbV-0002sA-TX for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:31:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvvbU-0002ry-DS for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:31:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvvbU-0002rv-8B for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:31:12 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvbT-0004H0-Sc for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:31:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvbS-0008Cf-JL for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:31:10 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvbS-0008Cc-C4 for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:31:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 13:31:10 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/eventSo... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:31:14 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 13:31:10 Modified files: . : ChangeLog testsuite/misc-ming.all: eventSoundTest1-Runner.cpp Log message: * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound if sound is not supported. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3471&r2=1.3472 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/eventSoundTest1-Runner.cpp?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3471 retrieving revision 1.3472 diff -u -b -r1.3471 -r1.3472 --- ChangeLog 6 Jun 2007 13:24:51 -0000 1.3471 +++ ChangeLog 6 Jun 2007 13:31:09 -0000 1.3472 @@ -1,3 +1,8 @@ +2007-06-06 Sandro Santilli + + * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound + if sound is not supported. + 2007-06-06 Udo Giacomozzi * backend/render_handler_agg.cpp: apply stage scaling to matrix, Index: testsuite/misc-ming.all/eventSoundTest1-Runner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/eventSoundTest1-Runner.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/misc-ming.all/eventSoundTest1-Runner.cpp 28 May 2007 15:41:12 -0000 1.5 +++ testsuite/misc-ming.all/eventSoundTest1-Runner.cpp 6 Jun 2007 13:31:09 -0000 1.6 @@ -67,6 +67,12 @@ check_equals(root->get_frame_count(), 20); + if ( ! tester.canTestSound() ) + { + cout << "UNTESTED: sounds can't be tested with this build." << endl; + return EXIT_SUCCESS; // so testing doesn't abort + } + // Advance and check... int frame = root->get_current_frame(); // 1 int sounds = 1; From MAILER-DAEMON Wed Jun 06 09:33:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvdZ-0003JR-QC for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:33:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvvdY-0003IK-99 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:33:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvvdW-0003Hz-IJ for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:33:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvvdW-0003Hw-E1 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:33:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvdW-0004WL-5Z for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:33:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvdV-0000Hu-MQ for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:33:17 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvdV-0000Hq-HQ for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:33:17 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 13:33:17 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:33:20 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 13:33:17 Modified files: . : ChangeLog testsuite : MovieTester.cpp MovieTester.h testsuite/misc-ming.all: eventSoundTest1-Runner.cpp Log message: * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound if sound is not supported. * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't compiled in. Add a canTestSound() method to query that capability. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.22&r2=1.3451.2.23 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.38.4.1&r2=1.38.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.23&r2=1.23.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/eventSoundTest1-Runner.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.5&r2=1.5.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.22 retrieving revision 1.3451.2.23 diff -u -b -r1.3451.2.22 -r1.3451.2.23 --- ChangeLog 6 Jun 2007 10:13:09 -0000 1.3451.2.22 +++ ChangeLog 6 Jun 2007 13:33:15 -0000 1.3451.2.23 @@ -1,5 +1,12 @@ 2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound + if sound is not supported. + * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't + compiled in. Add a canTestSound() method to query that capability. + +2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/Makefile.am: VideoEmbed-SquareTest.swf depends on testsuite/media/square.flv ! Fixes bug #20090. * testsuite/misc-ming.all/NetStream-SquareTest.c: Fixed test for Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.38.4.1 retrieving revision 1.38.4.2 diff -u -b -r1.38.4.1 -r1.38.4.2 --- testsuite/MovieTester.cpp 5 Jun 2007 13:09:33 -0000 1.38.4.1 +++ testsuite/MovieTester.cpp 6 Jun 2007 13:33:16 -0000 1.38.4.2 @@ -357,12 +357,14 @@ int MovieTester::soundsStarted() { + if ( ! _sound_handler.get() ) return 0; return _sound_handler->numSoundsStarted(); } int MovieTester::soundsStopped() { + if ( ! _sound_handler.get() ) return 0; return _sound_handler->numSoundsStopped(); } @@ -450,7 +452,8 @@ _sound_handler.reset( gnash::create_sound_handler_gst() ); #else cerr << "Neigher SOUND_SDL nor SOUND_GST defined" << endl; - exit(1); + return; + //exit(1); #endif gnash::set_sound_handler(_sound_handler.get()); Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.23 retrieving revision 1.23.4.1 diff -u -b -r1.23 -r1.23.4.1 --- testsuite/MovieTester.h 4 Jun 2007 17:16:26 -0000 1.23 +++ testsuite/MovieTester.h 6 Jun 2007 13:33:16 -0000 1.23.4.1 @@ -210,12 +210,24 @@ /// handles mouse events bool isMouseOverMouseEntity(); - /// Return the number of times a sound has been stopped. + /// \brief + /// Return the number of times a sound has been stopped, + /// or 0 if sound testing is not supported. See canTestSound(). + // int soundsStopped(); - /// Return the number of times a sound has been started. + /// \brief + /// Return the number of times a sound has been started, + /// or 0 if sound testing is not supported. See canTestSound(). + // int soundsStarted(); + /// Return true if this build of MovieTester supports sound testing + // + /// Sound will be supported as long as a sound handler was compiled in. + /// + bool canTestSound() const { return _sound_handler.get() != NULL; } + private: /// Initialize testing renderers Index: testsuite/misc-ming.all/eventSoundTest1-Runner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/eventSoundTest1-Runner.cpp,v retrieving revision 1.5 retrieving revision 1.5.4.1 diff -u -b -r1.5 -r1.5.4.1 --- testsuite/misc-ming.all/eventSoundTest1-Runner.cpp 28 May 2007 15:41:12 -0000 1.5 +++ testsuite/misc-ming.all/eventSoundTest1-Runner.cpp 6 Jun 2007 13:33:17 -0000 1.5.4.1 @@ -67,6 +67,12 @@ check_equals(root->get_frame_count(), 20); + if ( ! tester.canTestSound() ) + { + cout << "UNTESTED: sounds can't be tested with this build." << endl; + return EXIT_SUCCESS; // so testing doesn't abort + } + // Advance and check... int frame = root->get_current_frame(); // 1 int sounds = 1; From MAILER-DAEMON Wed Jun 06 09:39:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvvjA-0004ja-8g for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:39:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvvj9-0004jV-1O for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:39:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvvj4-0004j4-Dy for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:39:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvvj4-0004j1-BB for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:39:02 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvvj3-0005LN-G7 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:39:02 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l56Dcuu68983; Wed, 6 Jun 2007 15:38:56 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Wed, 6 Jun 2007 15:38:56 +0200 To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp Message-ID: <20070606133856.GO51933@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:39:07 -0000 On Wed, Jun 06, 2007 at 01:24:52PM +0000, Udo Giacomozzi wrote: > // NOTE: Assuming that the source image is RGB 8:8:8 > > @@ -445,6 +447,9 @@ > > image::rgb* frame = static_cast(baseframe); If the NOTE and the static_cast are related, consider adding an assertion above the static cast: assert(dynamic_cast(baseframe)); I guess this is one of those "caches" preventing multiple renderers in a single run... --strk; From MAILER-DAEMON Wed Jun 06 09:42:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvvmd-00067S-0L for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:42:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvvmb-00065k-HY for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:42:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvvma-00063a-9a for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:42:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvvma-00063X-5v for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:42:40 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvvmZ-0005t7-Q3 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:42:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvvmZ-0001bL-Bv for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:42:39 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvvmZ-0001bI-7I for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:42:39 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 06 Jun 2007 13:42:39 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:42:41 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/06 13:42:38 Modified files: . : ChangeLog backend : render_handler_agg.cpp Log message: backend/render_handler_agg.cpp: dynamic cast check CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3472&r2=1.3473 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.86&r2=1.87 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3472 retrieving revision 1.3473 diff -u -b -r1.3472 -r1.3473 --- ChangeLog 6 Jun 2007 13:31:09 -0000 1.3472 +++ ChangeLog 6 Jun 2007 13:42:38 -0000 1.3473 @@ -1,3 +1,7 @@ +2007-06-06 Udo Giacomozzi + + * backend/render_handler_agg.cpp: dynamic cast check + 2007-06-06 Sandro Santilli * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.86 retrieving revision 1.87 diff -u -b -r1.86 -r1.87 --- backend/render_handler_agg.cpp 6 Jun 2007 13:24:52 -0000 1.86 +++ backend/render_handler_agg.cpp 6 Jun 2007 13:42:38 -0000 1.87 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.86 2007/06/06 13:24:52 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.87 2007/06/06 13:42:38 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -445,6 +445,8 @@ typedef agg::pixfmt_rgb24_pre baseformat; + assert(dynamic_cast(baseframe)); + image::rgb* frame = static_cast(baseframe); matrix mat = stage_matrix; From MAILER-DAEMON Wed Jun 06 09:45:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvvor-0007Ea-45 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:45:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvvop-0007Dm-Il for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:44:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvvoo-0007Ci-2Z for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:44:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvvon-0007Ce-P4 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:44:57 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvvon-0006AZ-84 for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:44:57 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l56DirU4009463; Wed, 6 Jun 2007 15:44:55 +0200 Date: Wed, 6 Jun 2007 15:44:53 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1557500885.20070606154453@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp In-Reply-To: <20070606133856.GO51933@keybit.net> References: <20070606133856.GO51933@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:44:59 -0000 Hello strk, Wednesday, June 6, 2007, 3:38:56 PM, you wrote: s> On Wed, Jun 06, 2007 at 01:24:52PM +0000, Udo Giacomozzi wrote: >> // NOTE: Assuming that the source image is RGB 8:8:8 >> >> @@ -445,6 +447,9 @@ >> >> image::rgb* frame = static_cast(baseframe); s> If the NOTE and the static_cast are related, Yes and no. The note is about the pixel format (24 bit and not 15 or 16 or whatever bits). But it also assumes RGB, not YUV. However, videoFrameFormat() tells the core that the renderer needs RGB data. s> consider adding an assertion s> above the static cast: s> assert(dynamic_cast(baseframe)); Ok, added. s> I guess this is one of those "caches" preventing multiple renderers in s> a single run... It's not a cache. Don't know if the core continously calls videoFrameFormat(). In that case there would be no problem. Udo From MAILER-DAEMON Wed Jun 06 09:51:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvvun-0003rB-5d for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 09:51:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvvul-0003mT-8s for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:51:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvvuk-0003jR-7U for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:51:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvvuj-0003it-Ic for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:51:05 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvvui-0007MS-Hy for gnash-commit@gnu.org; Wed, 06 Jun 2007 09:51:05 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l56Dou569227; Wed, 6 Jun 2007 15:50:56 +0200 (CEST) (envelope-from strk@keybit.net) Date: Wed, 6 Jun 2007 15:50:56 +0200 From: strk To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp Message-ID: <20070606135056.GP51933@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: <20070606133856.GO51933@keybit.net> <1557500885.20070606154453@nova-sys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1557500885.20070606154453@nova-sys.net> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:51:07 -0000 On Wed, Jun 06, 2007 at 03:44:53PM +0200, Udo Giacomozzi wrote: > s> I guess this is one of those "caches" preventing multiple renderers in > s> a single run... > > It's not a cache. Don't know if the core continously calls > videoFrameFormat(). In that case there would be no problem. Well, if the image were created just before calling drawVideoFrame, and discarded immediately after, then it would not be a cache. Instead, it is kept for later query, so I see it as a cache, and it's also renderer-dependent. --strk; From MAILER-DAEMON Wed Jun 06 10:00:48 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvw48-0002SD-84 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 10:00:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvw45-0002RL-O0 for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:00:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvw44-0002Qi-HV for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:00:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvw44-0002Qc-8L for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:00:44 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvw43-0000Zm-MO for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:00:43 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l56E0dU4011215; Wed, 6 Jun 2007 16:00:42 +0200 Date: Wed, 6 Jun 2007 16:00:39 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1511948805.20070606160039@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp In-Reply-To: <20070606135056.GP51933@keybit.net> References: <20070606133856.GO51933@keybit.net> <1557500885.20070606154453@nova-sys.net> <20070606135056.GP51933@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 14:00:46 -0000 Hello strk, Wednesday, June 6, 2007, 3:50:56 PM, you wrote: s> Well, if the image were created just before calling drawVideoFrame, s> and discarded immediately after, then it would not be a cache. s> Instead, it is kept for later query, so I see it as a cache, and s> it's also renderer-dependent. What? Each *video* frame is kept in memory?? From MAILER-DAEMON Wed Jun 06 10:05:48 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvw8y-0003c5-Ec for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 10:05:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvw8w-0003bi-Sb for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:05:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvw8w-0003bL-7p for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:05:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvw8w-0003bH-3c for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:05:46 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvw8v-0001Lz-87 for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:05:45 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l56E5e969523; Wed, 6 Jun 2007 16:05:40 +0200 (CEST) (envelope-from strk@keybit.net) Date: Wed, 6 Jun 2007 16:05:40 +0200 From: strk To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp Message-ID: <20070606140540.GA69385@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: <20070606133856.GO51933@keybit.net> <1557500885.20070606154453@nova-sys.net> <20070606135056.GP51933@keybit.net> <1511948805.20070606160039@nova-sys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511948805.20070606160039@nova-sys.net> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 14:05:47 -0000 On Wed, Jun 06, 2007 at 04:00:39PM +0200, Udo Giacomozzi wrote: > Hello strk, > > Wednesday, June 6, 2007, 3:50:56 PM, you wrote: > s> Well, if the image were created just before calling drawVideoFrame, > s> and discarded immediately after, then it would not be a cache. > s> Instead, it is kept for later query, so I see it as a cache, and > s> it's also renderer-dependent. > > What? Each *video* frame is kept in memory?? For embedded video each video frame is decoded on demand (at ::display time) and, just found out, simply leaked away [ I'm fixing it now ]. For the *loaded* video case things are a bit more complex, and I'm not sure I'm able to anser this question right away ... Will inspect after the leak for embedded video is fixed. -- () ASCII Ribbon Campaign /\ Keep it simple! From MAILER-DAEMON Wed Jun 06 10:50:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvwqP-0007mx-2P for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 10:50:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvwqN-0007mX-Co for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:50:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvwqM-0007lN-2a for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:50:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvwqL-0007lE-UR for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:50:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvwqL-0007H8-Gv for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:50:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvwqK-000875-WD for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:50:37 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvwqK-000871-Pe for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:50:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 14:50:36 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 14:50:40 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 14:50:36 Modified files: . : ChangeLog configure.ac Log message: backport: * configure.ac: If no --enable-media was specified, use the first detected one in this order: ffmpeg/gst/mad. This is to allow ./configure with no args to be more failsafe (useful on 'make distcheck'). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.23&r2=1.3451.2.24 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.2&r2=1.331.4.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.23 retrieving revision 1.3451.2.24 diff -u -b -r1.3451.2.23 -r1.3451.2.24 --- ChangeLog 6 Jun 2007 13:33:15 -0000 1.3451.2.23 +++ ChangeLog 6 Jun 2007 14:50:35 -0000 1.3451.2.24 @@ -1,5 +1,12 @@ 2007-06-06 Sandro Santilli + * configure.ac: If no --enable-media was specified, use the first + detected one in this order: ffmpeg/gst/mad. This is to allow + ./configure with no args to be more failsafe (useful on 'make + distcheck'). + +2007-06-06 Sandro Santilli + * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: don't test sound if sound is not supported. * testsuite/MovieTester.{cpp,h}: Don't abort if sound support wasn't Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.2 retrieving revision 1.331.4.3 diff -u -b -r1.331.4.2 -r1.331.4.3 --- configure.ac 6 Jun 2007 00:36:28 -0000 1.331.4.2 +++ configure.ac 6 Jun 2007 14:50:36 -0000 1.331.4.3 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.2 2007/06/06 00:36:28 rsavoye Exp $ +dnl $Id: configure.ac,v 1.331.4.3 2007/06/06 14:50:36 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -317,13 +317,26 @@ dnl Select media handler dnl -------------------------------------------------------- +media_handler_specified=false AC_ARG_ENABLE(media, AC_HELP_STRING([--enable-media=handler], [Enable media handling support using the specified handler: ffmpeg, mad, GST (Gstreamer) or none (no sound) [[ffmpeg]] ]), [case "${enableval}" in - GST|gst) media_handler=gst ;; - ffmpeg|FFMPEG) media_handler=ffmpeg ;; - mad|MAD) media_handler=mad ;; - no|NO|none) media_handler=none ;; + GST|gst) + media_handler=gst + media_handler_specified=true + ;; + ffmpeg|FFMPEG) + media_handler=ffmpeg + media_handler_specified=true + ;; + mad|MAD) + media_handler=mad + media_handler_specified=true + ;; + no|NO|none) + media_handler=none + media_handler_specified=true + ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-media option]) ;; esac], [media_handler=ffmpeg] @@ -856,20 +869,38 @@ if test x"$media_handler" = x"ffmpeg"; then GNASH_PATH_FFMPEG - # If the library is not found, this will be reported and nogo'd at the end. - # if test x"${ac_cv_path_ffmpeg_lib}" = x; then - # AC_MSG_WARN([ffmpeg was specified as the media decoder but its library could not be found]) - # fi + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, or its version is not ok, we'll try gst + if test x"${ac_cv_path_ffmpeg_lib}" = x -o x"${ffmpeg_version}" != xok; then + AC_MSG_WARN([No appropriate ffmpeg library found, will try using gstreamer.]) + media_handler=gst + fi + fi fi +if test "$media_handler" = "gst"; then + GNASH_PKG_FIND(gstreamer, [gst/gst.h], [gstreamer library], gst_init, [0.10]) + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, or its version is not ok, we'll try mad + if test x"$GSTREAMER_LIBS" = x; then + AC_MSG_WARN([No appropriate gstreamer library found, will try using mad.]) + media_handler=mad + fi + fi +fi + + if test x"$media_handler" = x"mad"; then dnl Will set MAD_LIBS and MAD_CFLAGS. dnl Handles --with-mad-incl and --with-mad-lib GNASH_PKG_FIND(mad, [mad.h], [mad library], mad_copyright) - # If the library is not found, this will be reported and nogo'd at the end. - # if test x"${ac_cv_path_mad_lib}" = x ; then - # AC_MSG_WARN([Libmad was specified as the media decoder, but it could not be found]) - # fi + if test x"${media_handler_specified}" = xfalse; then + # If the library is not found, we'll disable media handling + if test x"${ac_cv_path_mad_lib}" = x ; then + AC_MSG_WARN([No libmad found, disabling media handlign.]) + media_handler=none + fi + fi fi dnl I'm kinda lazy, get rid of this later... //Markus @@ -895,10 +926,6 @@ *) esac -if test "$media_handler" = "gst"; then - GNASH_PKG_FIND(gstreamer, [gst/gst.h], [gstreamer library], gst_init, [0.10]) -fi - dnl I'm kinda lazy, get rid of this later... //Markus AM_CONDITIONAL(HAVE_GST, test x$media_handler = xgst) From MAILER-DAEMON Wed Jun 06 10:54:45 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvwuL-0003Eo-R7 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 10:54:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvwuK-0003Ee-Ch for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:54:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvwuJ-0003ER-Bg for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:54:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvwuJ-0003EO-6O for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:54:43 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvwuI-0007gg-QS for gnash-commit@gnu.org; Wed, 06 Jun 2007 10:54:42 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvwuI-0008UW-0d for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:54:42 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvwuG-0008UM-9G for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:54:41 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 14:54:40 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 14:54:44 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/06 14:54:39 Modified files: . : ChangeLog configure.ac Log message: backport: * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT tests if not already set by user. Back to using AC_TRY_RUN, btw, till we find a better solution. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.24&r2=1.3451.2.25 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.3&r2=1.331.4.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.24 retrieving revision 1.3451.2.25 diff -u -b -r1.3451.2.24 -r1.3451.2.25 --- ChangeLog 6 Jun 2007 14:50:35 -0000 1.3451.2.24 +++ ChangeLog 6 Jun 2007 14:54:37 -0000 1.3451.2.25 @@ -1,5 +1,11 @@ 2007-06-06 Sandro Santilli + * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT + tests if not already set by user. Back to using AC_TRY_RUN, btw, + till we find a better solution. + +2007-06-06 Sandro Santilli + * configure.ac: If no --enable-media was specified, use the first detected one in this order: ffmpeg/gst/mad. This is to allow ./configure with no args to be more failsafe (useful on 'make Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.3 retrieving revision 1.331.4.4 diff -u -b -r1.331.4.3 -r1.331.4.4 --- configure.ac 6 Jun 2007 14:50:36 -0000 1.331.4.3 +++ configure.ac 6 Jun 2007 14:54:38 -0000 1.331.4.4 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.3 2007/06/06 14:50:36 strk Exp $ +dnl $Id: configure.ac,v 1.331.4.4 2007/06/06 14:54:38 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -61,39 +61,45 @@ dnl AC_CHECK_SIZEOF([size_t], 4, AC_INCLUDES_DEFAULT) -AC_DEFINE(SIZET_FMT, ["%ud"], [size_t printf modifier is ud]) +dnl NOTE: Using AC_TRY_COMPILE is bogus when cross-compiling ! +dnl We need to know the size of size_t in the *target* host, +dnl not the build host (right?) +dnl +AC_LANG_PUSH(C++) +save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS="$CXXFLAGS -Werror -Wformat" + +AC_TRY_COMPILE([#include + #include ], [ + size_t num = 0; + printf("%d", num); ], + AC_DEFINE(SIZET_FMT, ["%d"], [size_t printf modifier is d]) +) +AC_TRY_COMPILE([#include + #include ], [ + size_t num = 0; + printf("%u", num); ], + AC_DEFINE(SIZET_FMT, ["%u"], [size_t printf modifier is u]) +) +AC_TRY_COMPILE([#include + #include ], [ + size_t num = 0; + printf("%lu", num); ], + AC_DEFINE(SIZET_FMT, ["%lu"], [size_t printf modifier is lu]) +) +AC_TRY_COMPILE([#include + #include ], [ + size_t num = 0; + printf("%ld", num); ], + AC_DEFINE(SIZET_FMT, ["%ld"], [size_t printf modifier is ld]) +) -#AC_LANG_PUSH(C++) -#save_CXXFLAGS="$CXXFLAGS" -#CXXFLAGS="$CXXFLAGS -Werror -Wformat" -# -#AC_TRY_COMPILE([#include -# #include ], [ -# size_t num = 0; -# printf("%d", num); ], -# AC_DEFINE(SIZET_FMT, ["%d"], [size_t printf modifier is d]) -#) -#AC_TRY_COMPILE([#include -# #include ], [ -# size_t num = 0; -# printf("%u", num); ], -# AC_DEFINE(SIZET_FMT, ["%u"], [size_t printf modifier is u]) -#) -#AC_TRY_COMPILE([#include -# #include ], [ -# size_t num = 0; -# printf("%lu", num); ], -# AC_DEFINE(SIZET_FMT, ["%lu"], [size_t printf modifier is lu]) -#) -#AC_TRY_COMPILE([#include -# #include ], [ -# size_t num = 0; -# printf("%ld", num); ], -# AC_DEFINE(SIZET_FMT, ["%ld"], [size_t printf modifier is ld]) -#) -# -#CXXFLAGS="$save_CXXFLAGS" -#AC_LANG_POP(C++) +if test x"$ac_env_CXXFLAGS_set" = "xset"; then + CXXFLAGS="$save_CXXFLAGS" +else + unset CXXFLAGS; +fi +AC_LANG_POP(C++) dnl This is primarily used when compiling for a similar architecture, dnl like pentium->geode, which can use the same compiler, but have From MAILER-DAEMON Wed Jun 06 11:41:23 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvxdT-0005LJ-Lk for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 11:41:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvxdS-0005L2-1v for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:41:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvxdO-0005Kq-Aa for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:41:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvxdO-0005Kn-6d for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:41:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvxdN-0005DH-Ns for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:41:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvxdK-0005cc-06 for gnash-commit@gnu.org; Wed, 06 Jun 2007 15:41:14 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvxdJ-0005cY-QL for gnash-commit@gnu.org; Wed, 06 Jun 2007 15:41:13 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Wed, 06 Jun 2007 15:41:13 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoder.h lib... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 15:41:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/06 15:41:13 Modified files: . : ChangeLog libbase : embedVideoDecoder.h embedVideoDecoderFfmpeg.cpp embedVideoDecoderFfmpeg.h embedVideoDecoderGst.cpp embedVideoDecoderGst.h server : video_stream_instance.cpp Log message: * libbase/embedVideoDecoder.h: Added docs and made decodeFrame return a auto_ptr. * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Made decodeFrame return a auto_ptr. * libbase/embedVideoDecoderGst.{cpp,h}: Made decodeFrame return a auto_ptr, and fixed a deadlock. * server/video_stream_instance.cpp: embedVideoDecoder::decodeFrame now returns a auto_ptr, adjust to that. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3473&r2=1.3474 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoder.h?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.h?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.h?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.cpp?cvsroot=gnash&r1=1.27&r2=1.28 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3473 retrieving revision 1.3474 diff -u -b -r1.3473 -r1.3474 --- ChangeLog 6 Jun 2007 13:42:38 -0000 1.3473 +++ ChangeLog 6 Jun 2007 15:41:11 -0000 1.3474 @@ -1,3 +1,14 @@ +2007-06-06 Tomas Groth Christensen + + * libbase/embedVideoDecoder.h: Added docs and made decodeFrame + return a auto_ptr. + * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Made decodeFrame + return a auto_ptr. + * libbase/embedVideoDecoderGst.{cpp,h}: Made decodeFrame + return a auto_ptr, and fixed a deadlock. + * server/video_stream_instance.cpp: embedVideoDecoder::decodeFrame + now returns a auto_ptr, adjust to that. + 2007-06-06 Udo Giacomozzi * backend/render_handler_agg.cpp: dynamic cast check Index: libbase/embedVideoDecoder.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoder.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- libbase/embedVideoDecoder.h 28 May 2007 15:41:01 -0000 1.6 +++ libbase/embedVideoDecoder.h 6 Jun 2007 15:41:12 -0000 1.7 @@ -19,7 +19,7 @@ // // -// $Id: embedVideoDecoder.h,v 1.6 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoder.h,v 1.7 2007/06/06 15:41:12 tgc Exp $ #ifndef __EMBEDVIDEODECODER_H__ #define __EMBEDVIDEODECODER_H__ @@ -29,16 +29,21 @@ #endif #include "image.h" +#include "log.h" -// -// Decoder for embedded video. -// +namespace gnash { + +/// +/// \brief +/// The embedVideoDecoder is used to decodes a video frame which has been +/// embedded in a SWF. +/// class embedVideoDecoder { public: - // This is copied from the render and should be changed if the original is. + /// This is copied from the render and should be changed if the original is. enum videoOutputFormat { NONE, @@ -46,6 +51,7 @@ RGB }; + /// Codecs type we know of enum codecType { CODEC_H263 = 2, // H263/SVQ3 video codec @@ -55,19 +61,50 @@ CODEC_SCREENVIDEO2 = 6 // Screenvideo2 codec }; - // Assign handles however you like. - virtual void createDecoder( - int /*width*/, + /// + /// Sets up the decoder. + // + /// @param width + /// The width of the video + /// + /// @param height + /// The height of the video + /// + /// @param deblocking + /// Should a deblocking filter be used? 1 = off, 2 = on + /// + /// @param smoothing + /// Should the video be smoothed? + /// + /// @param format + /// The codec of the video, see codecType + /// + /// @param outputFormat + /// The outputFormat of the video, see videoOutputFormat + /// + virtual void createDecoder(int /*width*/, int /*height*/, int /*deblocking*/, bool /*smoothing*/, int /*format*/, int /*outputFormat*/){} - // gnash calls this when it wants you to decode the given videoframe - virtual image::image_base* decodeFrame(uint8_t* /*data*/, int /*size*/) { return NULL; } + /// + /// gnash calls this when it wants to decode the given videoframe. + // + /// @param data + /// The video frame that is to be decoded. + /// + /// @param size + /// The sizes of the undecoded videoframe in bytes. + /// + /// @return a auto_ptr containing the image which is a result of the decoding. + /// The caller owns the returned image. + /// + virtual std::auto_ptr decodeFrame(uint8_t* /*data*/, int /*size*/) { std::auto_ptr i (NULL); return i; } virtual ~embedVideoDecoder() {}; }; +} // end of gnash namespace #endif // __EMBEDVIDEODECODER_H__ Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- libbase/embedVideoDecoderFfmpeg.cpp 31 May 2007 21:48:33 -0000 1.13 +++ libbase/embedVideoDecoderFfmpeg.cpp 6 Jun 2007 15:41:12 -0000 1.14 @@ -31,6 +31,8 @@ #include +namespace gnash { + embedVideoDecoderFfmpeg::embedVideoDecoderFfmpeg() : codec(NULL), cc(NULL), @@ -42,7 +44,7 @@ { if (cc) avcodec_close(cc); - if(decodedFrame) delete decodedFrame; + delete decodedFrame; } @@ -71,10 +73,12 @@ } else if (format == CODEC_SCREENVIDEO) { codec = avcodec_find_decoder(CODEC_ID_FLASHSV); } else { + gnash::log_error("Unsupported embedded video format, it might help if you upgrade ffmpeg and recompile gnash"); return; } if (codec == NULL) { + gnash::log_error("Unsupported embedded video format, it might help if you upgrade ffmpeg and recompile gnash"); return; } @@ -141,11 +145,18 @@ } // gnash calls this when it wants you to decode the given videoframe -image::image_base* +std::auto_ptr embedVideoDecoderFfmpeg::decodeFrame(uint8_t* data, int size) { + std::auto_ptr ret_image; - if (data == NULL || codec == NULL) return decodedFrame; + if (outputFormat == YUV) { + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + ret_image.reset(new image::rgb(width, height)); + } + + if (data == NULL || codec == NULL || size == 0) return ret_image; // Allocate a frame to store the decoded frame in AVFrame* frame = avcodec_alloc_frame(); @@ -158,7 +169,7 @@ if (outputFormat == NONE) { // NullGui? av_free(frame); - return NULL; + return ret_image; } else if (outputFormat == YUV && cc->pix_fmt != PIX_FMT_YUV420P) { //assert(0); // TODO @@ -199,12 +210,13 @@ } } } else { - return decodedFrame; + return ret_image; } - return decodedFrame; + ret_image->update(decodedFrame->m_data); + return ret_image; } - +} // end of gnash namespace #endif // USE_FFMPEG Index: libbase/embedVideoDecoderFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- libbase/embedVideoDecoderFfmpeg.h 31 May 2007 06:39:08 -0000 1.4 +++ libbase/embedVideoDecoderFfmpeg.h 6 Jun 2007 15:41:12 -0000 1.5 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderFfmpeg.h,v 1.4 2007/05/31 06:39:08 strk Exp $ +// $Id: embedVideoDecoderFfmpeg.h,v 1.5 2007/06/06 15:41:12 tgc Exp $ #ifndef __EMBEDVIDEODECODERFFMPEG_H__ #define __EMBEDVIDEODECODERFFMPEG_H__ @@ -31,7 +31,7 @@ #include #include "image.h" - +namespace gnash { class DSOEXPORT embedVideoDecoderFfmpeg: public embedVideoDecoder { public: @@ -48,7 +48,7 @@ int outputFormat); // gnash calls this when it wants you to decode the given videoframe - image::image_base* decodeFrame(uint8_t* data, int size); + std::auto_ptr decodeFrame(uint8_t* data, int size); /// Convert the given srcFrame to RGB24 pixel format. // @@ -80,6 +80,7 @@ }; +} // end of gnash namespace #endif // USE_FFMPEG Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- libbase/embedVideoDecoderGst.cpp 28 May 2007 15:41:01 -0000 1.4 +++ libbase/embedVideoDecoderGst.cpp 6 Jun 2007 15:41:12 -0000 1.5 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.4 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.5 2007/06/06 15:41:12 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -25,6 +25,8 @@ #include "embedVideoDecoderGst.h" +namespace gnash { + embedVideoDecoderGst::embedVideoDecoderGst() : pipeline(NULL), input(NULL), @@ -33,16 +35,19 @@ output(NULL), decoder(NULL), colorspace(NULL), - decodedFrame(NULL) + decodedFrame(NULL), + stop(false) { } embedVideoDecoderGst::~embedVideoDecoderGst() { - if(decodedFrame) delete decodedFrame; + delete decodedFrame; if (pipeline) { + stop = true; + delete input_lock; gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL); gst_object_unref (GST_OBJECT (pipeline)); } @@ -120,7 +125,7 @@ // setup the video colorspaceconverter converter colorspace = gst_element_factory_make ("ffmpegcolorspace", NULL); - // Find the decoder and init the parser + // Find the decoder if (format == CODEC_H263) { decoder = gst_element_factory_make ("ffdec_flv", NULL); } else if (format == CODEC_VP6) { @@ -128,10 +133,17 @@ } else if (format == CODEC_SCREENVIDEO) { decoder = gst_element_factory_make ("ffdec_flashsv", NULL); } else { + gnash::log_error("Unsupported embedded video format"); return; } - if (!pipeline || !input || !inputcaps || !videocaps || !output || !decoder || !colorspace) { + if (!pipeline || !input || !inputcaps || !videocaps || !output || !colorspace) { + gnash::log_error("Creation of Gstreamer baisc elements failed, is your Gstreamer installation complete?"); + return; + } + + if (!decoder) { + gnash::log_error("Creation of decoder element failed, do you have gstreamer-0.10-ffmpeg installed?"); return; } @@ -160,11 +172,19 @@ // gnash calls this when it wants you to decode the given videoframe -image::image_base* +std::auto_ptr embedVideoDecoderGst::decodeFrame(uint8_t* data, int size) { - if (data == NULL) return decodedFrame; + std::auto_ptr ret_image; + + if (outputFormat == YUV) { + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + ret_image.reset(new image::rgb(width, height)); + } + + if (data == NULL || size == 0) return ret_image; frame = data; frameSize = size; @@ -173,7 +193,8 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); - return decodedFrame; + ret_image->update(decodedFrame->m_data); + return ret_image; } // The callback function which refills the buffer with data @@ -182,6 +203,8 @@ { embedVideoDecoderGst* decoder = static_cast(user_data); + if (decoder->stop) return; + decoder->input_lock = new boost::mutex::scoped_lock(decoder->input_mutex); GST_BUFFER_SIZE(buffer) = decoder->frameSize; @@ -195,6 +218,8 @@ { embedVideoDecoderGst* decoder = static_cast(user_data); + if (decoder->stop) return; + if (decoder->decodedFrame) { if (decoder->outputFormat == YUV) { @@ -228,4 +253,6 @@ } +} // end of gnash namespace + #endif // SOUND_GST Index: libbase/embedVideoDecoderGst.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- libbase/embedVideoDecoderGst.h 28 May 2007 15:41:01 -0000 1.2 +++ libbase/embedVideoDecoderGst.h 6 Jun 2007 15:41:12 -0000 1.3 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.h,v 1.2 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoderGst.h,v 1.3 2007/06/06 15:41:12 tgc Exp $ #ifndef __EMBEDVIDEODECODERGST_H__ #define __EMBEDVIDEODECODERGST_H__ @@ -33,6 +33,7 @@ #include #include +namespace gnash { class embedVideoDecoderGst : public embedVideoDecoder { public: @@ -49,7 +50,7 @@ int outputFormat); // gnash calls this when it wants you to decode the given videoframe - image::image_base* decodeFrame(uint8_t* data, int size); + std::auto_ptr decodeFrame(uint8_t* data, int size); // Callback functions used to handle input and output static void callback_handoff (GstElement * /*c*/, GstBuffer *buffer, GstPad* /*pad*/, gpointer user_data); @@ -65,11 +66,10 @@ /// Gstreamer objects GstElement *input; GstElement *inputcaps; - GstElement *parser; - GstElement *decoder; GstElement *videocaps; - GstElement *colorspace; GstElement *output; + GstElement *decoder; + GstElement *colorspace; /// mutexes and locks used to handle input and output. boost::mutex input_mutex; @@ -92,8 +92,11 @@ /// Last decoded frame image::image_base* decodedFrame; + /// If we should stop this will be true + volatile bool stop; }; +} // end of gnash namespace #endif // SOUND_GST Index: server/video_stream_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- server/video_stream_instance.cpp 4 Jun 2007 19:21:20 -0000 1.27 +++ server/video_stream_instance.cpp 6 Jun 2007 15:41:12 -0000 1.28 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.cpp,v 1.27 2007/06/04 19:21:20 strk Exp $ +// $Id: video_stream_instance.cpp,v 1.28 2007/06/06 15:41:12 tgc Exp $ #include "sprite_instance.h" #include "video_stream_instance.h" @@ -206,10 +206,10 @@ assert(m_def); m_def->get_frame_data(current_frame, &data, &size); - image::image_base* i = m_decoder->decodeFrame(data, size); - if (i) + std::auto_ptr i ( m_decoder->decodeFrame(data, size) ); + if (i.get()) { - gnash::render::drawVideoFrame(i, &m, &bounds); + gnash::render::drawVideoFrame(i.get(), &m, &bounds); } else { log_error(_("An error occured while decoding video frame")); } From MAILER-DAEMON Wed Jun 06 11:44:17 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvxgH-0006hU-Nl for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 11:44:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvxgG-0006fl-JY for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:44:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvxgF-0006eL-MT for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:44:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvxgF-0006dm-FZ for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:44:15 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvxgF-0005bN-1i for gnash-commit@gnu.org; Wed, 06 Jun 2007 11:44:15 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvxgE-0005rl-Aa for gnash-commit@gnu.org; Wed, 06 Jun 2007 15:44:14 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvxgE-0005ri-6S for gnash-commit@gnu.org; Wed, 06 Jun 2007 15:44:14 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Wed, 06 Jun 2007 15:44:14 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoder.h lib... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 15:44:17 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/06 15:44:13 Modified files: . : ChangeLog libbase : embedVideoDecoder.h embedVideoDecoderFfmpeg.cpp embedVideoDecoderFfmpeg.h embedVideoDecoderGst.cpp embedVideoDecoderGst.h server : video_stream_instance.cpp Log message: * libbase/embedVideoDecoder.h: Added docs and made decodeFrame return a auto_ptr. * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Made decodeFrame return a auto_ptr. * libbase/embedVideoDecoderGst.{cpp,h}: Made decodeFrame return a auto_ptr, and fixed a deadlock. * server/video_stream_instance.cpp: embedVideoDecoder::decodeFrame now returns a auto_ptr, adjust to that. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.25&r2=1.3451.2.26 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoder.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.6&r2=1.6.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13&r2=1.13.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4&r2=1.4.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4&r2=1.4.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2&r2=1.2.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.26&r2=1.26.2.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.25 retrieving revision 1.3451.2.26 diff -u -b -r1.3451.2.25 -r1.3451.2.26 --- ChangeLog 6 Jun 2007 14:54:37 -0000 1.3451.2.25 +++ ChangeLog 6 Jun 2007 15:44:12 -0000 1.3451.2.26 @@ -1,3 +1,14 @@ +2007-06-06 Tomas Groth Christensen + + * libbase/embedVideoDecoder.h: Added docs and made decodeFrame + return a auto_ptr. + * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Made decodeFrame + return a auto_ptr. + * libbase/embedVideoDecoderGst.{cpp,h}: Made decodeFrame + return a auto_ptr, and fixed a deadlock. + * server/video_stream_instance.cpp: embedVideoDecoder::decodeFrame + now returns a auto_ptr, adjust to that. + 2007-06-06 Sandro Santilli * configure.ac: don't set CXXFLAGS as a side-effect of the SIZET_FMT Index: libbase/embedVideoDecoder.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoder.h,v retrieving revision 1.6 retrieving revision 1.6.4.1 diff -u -b -r1.6 -r1.6.4.1 --- libbase/embedVideoDecoder.h 28 May 2007 15:41:01 -0000 1.6 +++ libbase/embedVideoDecoder.h 6 Jun 2007 15:44:12 -0000 1.6.4.1 @@ -19,7 +19,7 @@ // // -// $Id: embedVideoDecoder.h,v 1.6 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoder.h,v 1.6.4.1 2007/06/06 15:44:12 tgc Exp $ #ifndef __EMBEDVIDEODECODER_H__ #define __EMBEDVIDEODECODER_H__ @@ -29,16 +29,21 @@ #endif #include "image.h" +#include "log.h" -// -// Decoder for embedded video. -// +namespace gnash { + +/// +/// \brief +/// The embedVideoDecoder is used to decodes a video frame which has been +/// embedded in a SWF. +/// class embedVideoDecoder { public: - // This is copied from the render and should be changed if the original is. + /// This is copied from the render and should be changed if the original is. enum videoOutputFormat { NONE, @@ -46,6 +51,7 @@ RGB }; + /// Codecs type we know of enum codecType { CODEC_H263 = 2, // H263/SVQ3 video codec @@ -55,19 +61,50 @@ CODEC_SCREENVIDEO2 = 6 // Screenvideo2 codec }; - // Assign handles however you like. - virtual void createDecoder( - int /*width*/, + /// + /// Sets up the decoder. + // + /// @param width + /// The width of the video + /// + /// @param height + /// The height of the video + /// + /// @param deblocking + /// Should a deblocking filter be used? 1 = off, 2 = on + /// + /// @param smoothing + /// Should the video be smoothed? + /// + /// @param format + /// The codec of the video, see codecType + /// + /// @param outputFormat + /// The outputFormat of the video, see videoOutputFormat + /// + virtual void createDecoder(int /*width*/, int /*height*/, int /*deblocking*/, bool /*smoothing*/, int /*format*/, int /*outputFormat*/){} - // gnash calls this when it wants you to decode the given videoframe - virtual image::image_base* decodeFrame(uint8_t* /*data*/, int /*size*/) { return NULL; } + /// + /// gnash calls this when it wants to decode the given videoframe. + // + /// @param data + /// The video frame that is to be decoded. + /// + /// @param size + /// The sizes of the undecoded videoframe in bytes. + /// + /// @return a auto_ptr containing the image which is a result of the decoding. + /// The caller owns the returned image. + /// + virtual std::auto_ptr decodeFrame(uint8_t* /*data*/, int /*size*/) { std::auto_ptr i (NULL); return i; } virtual ~embedVideoDecoder() {}; }; +} // end of gnash namespace #endif // __EMBEDVIDEODECODER_H__ Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13 retrieving revision 1.13.4.1 diff -u -b -r1.13 -r1.13.4.1 --- libbase/embedVideoDecoderFfmpeg.cpp 31 May 2007 21:48:33 -0000 1.13 +++ libbase/embedVideoDecoderFfmpeg.cpp 6 Jun 2007 15:44:13 -0000 1.13.4.1 @@ -31,6 +31,8 @@ #include +namespace gnash { + embedVideoDecoderFfmpeg::embedVideoDecoderFfmpeg() : codec(NULL), cc(NULL), @@ -42,7 +44,7 @@ { if (cc) avcodec_close(cc); - if(decodedFrame) delete decodedFrame; + delete decodedFrame; } @@ -71,10 +73,12 @@ } else if (format == CODEC_SCREENVIDEO) { codec = avcodec_find_decoder(CODEC_ID_FLASHSV); } else { + gnash::log_error("Unsupported embedded video format, it might help if you upgrade ffmpeg and recompile gnash"); return; } if (codec == NULL) { + gnash::log_error("Unsupported embedded video format, it might help if you upgrade ffmpeg and recompile gnash"); return; } @@ -141,11 +145,18 @@ } // gnash calls this when it wants you to decode the given videoframe -image::image_base* +std::auto_ptr embedVideoDecoderFfmpeg::decodeFrame(uint8_t* data, int size) { + std::auto_ptr ret_image; - if (data == NULL || codec == NULL) return decodedFrame; + if (outputFormat == YUV) { + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + ret_image.reset(new image::rgb(width, height)); + } + + if (data == NULL || codec == NULL || size == 0) return ret_image; // Allocate a frame to store the decoded frame in AVFrame* frame = avcodec_alloc_frame(); @@ -158,7 +169,7 @@ if (outputFormat == NONE) { // NullGui? av_free(frame); - return NULL; + return ret_image; } else if (outputFormat == YUV && cc->pix_fmt != PIX_FMT_YUV420P) { //assert(0); // TODO @@ -199,12 +210,13 @@ } } } else { - return decodedFrame; + return ret_image; } - return decodedFrame; + ret_image->update(decodedFrame->m_data); + return ret_image; } - +} // end of gnash namespace #endif // USE_FFMPEG Index: libbase/embedVideoDecoderFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.h,v retrieving revision 1.4 retrieving revision 1.4.4.1 diff -u -b -r1.4 -r1.4.4.1 --- libbase/embedVideoDecoderFfmpeg.h 31 May 2007 06:39:08 -0000 1.4 +++ libbase/embedVideoDecoderFfmpeg.h 6 Jun 2007 15:44:13 -0000 1.4.4.1 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderFfmpeg.h,v 1.4 2007/05/31 06:39:08 strk Exp $ +// $Id: embedVideoDecoderFfmpeg.h,v 1.4.4.1 2007/06/06 15:44:13 tgc Exp $ #ifndef __EMBEDVIDEODECODERFFMPEG_H__ #define __EMBEDVIDEODECODERFFMPEG_H__ @@ -31,7 +31,7 @@ #include #include "image.h" - +namespace gnash { class DSOEXPORT embedVideoDecoderFfmpeg: public embedVideoDecoder { public: @@ -48,7 +48,7 @@ int outputFormat); // gnash calls this when it wants you to decode the given videoframe - image::image_base* decodeFrame(uint8_t* data, int size); + std::auto_ptr decodeFrame(uint8_t* data, int size); /// Convert the given srcFrame to RGB24 pixel format. // @@ -80,6 +80,7 @@ }; +} // end of gnash namespace #endif // USE_FFMPEG Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.4 retrieving revision 1.4.4.1 diff -u -b -r1.4 -r1.4.4.1 --- libbase/embedVideoDecoderGst.cpp 28 May 2007 15:41:01 -0000 1.4 +++ libbase/embedVideoDecoderGst.cpp 6 Jun 2007 15:44:13 -0000 1.4.4.1 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.4 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.4.4.1 2007/06/06 15:44:13 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -25,6 +25,8 @@ #include "embedVideoDecoderGst.h" +namespace gnash { + embedVideoDecoderGst::embedVideoDecoderGst() : pipeline(NULL), input(NULL), @@ -33,16 +35,19 @@ output(NULL), decoder(NULL), colorspace(NULL), - decodedFrame(NULL) + decodedFrame(NULL), + stop(false) { } embedVideoDecoderGst::~embedVideoDecoderGst() { - if(decodedFrame) delete decodedFrame; + delete decodedFrame; if (pipeline) { + stop = true; + delete input_lock; gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL); gst_object_unref (GST_OBJECT (pipeline)); } @@ -120,7 +125,7 @@ // setup the video colorspaceconverter converter colorspace = gst_element_factory_make ("ffmpegcolorspace", NULL); - // Find the decoder and init the parser + // Find the decoder if (format == CODEC_H263) { decoder = gst_element_factory_make ("ffdec_flv", NULL); } else if (format == CODEC_VP6) { @@ -128,10 +133,17 @@ } else if (format == CODEC_SCREENVIDEO) { decoder = gst_element_factory_make ("ffdec_flashsv", NULL); } else { + gnash::log_error("Unsupported embedded video format"); return; } - if (!pipeline || !input || !inputcaps || !videocaps || !output || !decoder || !colorspace) { + if (!pipeline || !input || !inputcaps || !videocaps || !output || !colorspace) { + gnash::log_error("Creation of Gstreamer baisc elements failed, is your Gstreamer installation complete?"); + return; + } + + if (!decoder) { + gnash::log_error("Creation of decoder element failed, do you have gstreamer-0.10-ffmpeg installed?"); return; } @@ -160,11 +172,19 @@ // gnash calls this when it wants you to decode the given videoframe -image::image_base* +std::auto_ptr embedVideoDecoderGst::decodeFrame(uint8_t* data, int size) { - if (data == NULL) return decodedFrame; + std::auto_ptr ret_image; + + if (outputFormat == YUV) { + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + ret_image.reset(new image::rgb(width, height)); + } + + if (data == NULL || size == 0) return ret_image; frame = data; frameSize = size; @@ -173,7 +193,8 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); - return decodedFrame; + ret_image->update(decodedFrame->m_data); + return ret_image; } // The callback function which refills the buffer with data @@ -182,6 +203,8 @@ { embedVideoDecoderGst* decoder = static_cast(user_data); + if (decoder->stop) return; + decoder->input_lock = new boost::mutex::scoped_lock(decoder->input_mutex); GST_BUFFER_SIZE(buffer) = decoder->frameSize; @@ -195,6 +218,8 @@ { embedVideoDecoderGst* decoder = static_cast(user_data); + if (decoder->stop) return; + if (decoder->decodedFrame) { if (decoder->outputFormat == YUV) { @@ -228,4 +253,6 @@ } +} // end of gnash namespace + #endif // SOUND_GST Index: libbase/embedVideoDecoderGst.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.h,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -b -r1.2 -r1.2.4.1 --- libbase/embedVideoDecoderGst.h 28 May 2007 15:41:01 -0000 1.2 +++ libbase/embedVideoDecoderGst.h 6 Jun 2007 15:44:13 -0000 1.2.4.1 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.h,v 1.2 2007/05/28 15:41:01 ann Exp $ +// $Id: embedVideoDecoderGst.h,v 1.2.4.1 2007/06/06 15:44:13 tgc Exp $ #ifndef __EMBEDVIDEODECODERGST_H__ #define __EMBEDVIDEODECODERGST_H__ @@ -33,6 +33,7 @@ #include #include +namespace gnash { class embedVideoDecoderGst : public embedVideoDecoder { public: @@ -49,7 +50,7 @@ int outputFormat); // gnash calls this when it wants you to decode the given videoframe - image::image_base* decodeFrame(uint8_t* data, int size); + std::auto_ptr decodeFrame(uint8_t* data, int size); // Callback functions used to handle input and output static void callback_handoff (GstElement * /*c*/, GstBuffer *buffer, GstPad* /*pad*/, gpointer user_data); @@ -65,11 +66,10 @@ /// Gstreamer objects GstElement *input; GstElement *inputcaps; - GstElement *parser; - GstElement *decoder; GstElement *videocaps; - GstElement *colorspace; GstElement *output; + GstElement *decoder; + GstElement *colorspace; /// mutexes and locks used to handle input and output. boost::mutex input_mutex; @@ -92,8 +92,11 @@ /// Last decoded frame image::image_base* decodedFrame; + /// If we should stop this will be true + volatile bool stop; }; +} // end of gnash namespace #endif // SOUND_GST Index: server/video_stream_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.cpp,v retrieving revision 1.26 retrieving revision 1.26.2.1 diff -u -b -r1.26 -r1.26.2.1 --- server/video_stream_instance.cpp 30 May 2007 15:12:28 -0000 1.26 +++ server/video_stream_instance.cpp 6 Jun 2007 15:44:13 -0000 1.26.2.1 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.cpp,v 1.26 2007/05/30 15:12:28 strk Exp $ +// $Id: video_stream_instance.cpp,v 1.26.2.1 2007/06/06 15:44:13 tgc Exp $ #include "sprite_instance.h" #include "video_stream_instance.h" @@ -101,10 +101,10 @@ int current_frame = get_parent()->to_movie()->get_current_frame(); m_def->get_frame_data(current_frame, &data, &size); - image::image_base* i = m_decoder->decodeFrame(data, size); - if (i) + std::auto_ptr i ( m_decoder->decodeFrame(data, size) ); + if (i.get()) { - gnash::render::drawVideoFrame(i, &m, &bounds); + gnash::render::drawVideoFrame(i.get(), &m, &bounds); } else { log_error(_("An error occured while decoding video frame")); } From MAILER-DAEMON Wed Jun 06 12:15:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvyA5-0008MO-L9 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 12:15:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvyA4-0008JS-3U for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:15:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvyA3-0008IW-E3 for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:15:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvyA3-0008IP-9H for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:15:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvyA3-0001ZC-1K for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:15:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvyA1-0007jQ-Cp for gnash-commit@gnu.org; Wed, 06 Jun 2007 16:15:01 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvyA1-0007jE-54 for gnash-commit@gnu.org; Wed, 06 Jun 2007 16:15:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 06 Jun 2007 16:15:01 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 16:15:04 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/06 16:15:01 Modified files: . : ChangeLog backend : render_handler_agg.cpp Log message: backend/render_handler_agg.cpp: add checks for known scale and preset scale to 1:1 so that "make check" succeeds again CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3474&r2=1.3475 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.87&r2=1.88 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3474 retrieving revision 1.3475 diff -u -b -r1.3474 -r1.3475 --- ChangeLog 6 Jun 2007 15:41:11 -0000 1.3474 +++ ChangeLog 6 Jun 2007 16:15:00 -0000 1.3475 @@ -1,3 +1,8 @@ +2007-06-06 Udo Giacomozzi + + * backend/render_handler_agg.cpp: add checks for known scale + and preset scale to 1:1 so that "make check" succeeds again + 2007-06-06 Tomas Groth Christensen * libbase/embedVideoDecoder.h: Added docs and made decodeFrame Index: backend/render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.87 retrieving revision 1.88 diff -u -b -r1.87 -r1.88 --- backend/render_handler_agg.cpp 6 Jun 2007 13:42:38 -0000 1.87 +++ backend/render_handler_agg.cpp 6 Jun 2007 16:15:00 -0000 1.88 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.87 2007/06/06 13:42:38 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.88 2007/06/06 16:15:00 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -333,6 +333,7 @@ int bpp; // bits per pixel // double xscale, yscale; <-- deprecated, to be removed gnash::matrix stage_matrix; // conversion from TWIPS to pixels + bool scale_set; @@ -571,8 +572,15 @@ yscale(1.0/20.0),*/ m_enable_antialias(true), m_pixf(NULL), - m_drawing_mask(false) + m_drawing_mask(false), + scale_set(false) { + // TODO: we really don't want to set the scale here as the core should + // tell us the right values before rendering anything. However this is + // currently difficult to implement. Removing the next call will + // lead to an assertion failure in begin_display() because we check + // whether the scale is known there. + set_scale(1.0f, 1.0f); } // Destructor @@ -641,6 +649,8 @@ { assert(m_pixf != NULL); + assert(scale_set); + // clear the stage using the background color for (unsigned int i=0; i<_clipbounds.size(); i++) clear_framebuffer(_clipbounds[i], agg::rgba8_pre(background_color.m_r, @@ -2015,6 +2025,8 @@ /*xscale = new_xscale/20.0f; yscale = new_yscale/20.0f;*/ + scale_set=true; + stage_matrix.set_identity(); stage_matrix.set_scale(new_xscale/20.0f, new_yscale/20.0f); } From MAILER-DAEMON Wed Jun 06 12:28:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvyN8-0003qZ-IC for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 12:28:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvyN6-0003pw-Tl for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:28:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvyN5-0003pQ-VL for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:28:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvyN5-0003pL-S1 for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:28:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvyN5-0002mu-Kq for gnash-commit@gnu.org; Wed, 06 Jun 2007 12:28:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvyN3-00008c-Ra for gnash-commit@gnu.org; Wed, 06 Jun 2007 16:28:29 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvyN3-00008Z-OG for gnash-commit@gnu.org; Wed, 06 Jun 2007 16:28:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 16:28:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/libbase embedVideoDecoder.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 16:28:33 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 16:28:29 Modified files: libbase : embedVideoDecoder.h Log message: Cleanups in documentation, a few questions and a TODO item CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoder.h?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: embedVideoDecoder.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoder.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- embedVideoDecoder.h 6 Jun 2007 15:41:12 -0000 1.7 +++ embedVideoDecoder.h 6 Jun 2007 16:28:29 -0000 1.8 @@ -19,7 +19,7 @@ // // -// $Id: embedVideoDecoder.h,v 1.7 2007/06/06 15:41:12 tgc Exp $ +// $Id: embedVideoDecoder.h,v 1.8 2007/06/06 16:28:29 strk Exp $ #ifndef __EMBEDVIDEODECODER_H__ #define __EMBEDVIDEODECODER_H__ @@ -38,7 +38,6 @@ /// The embedVideoDecoder is used to decodes a video frame which has been /// embedded in a SWF. /// - class embedVideoDecoder { public: @@ -61,7 +60,6 @@ CODEC_SCREENVIDEO2 = 6 // Screenvideo2 codec }; - /// /// Sets up the decoder. // /// @param width @@ -82,26 +80,38 @@ /// @param outputFormat /// The outputFormat of the video, see videoOutputFormat /// + /// The default implementation is a no-op + /// + /// TODO: shouldn't this initialization be done by the constructor ? + /// virtual void createDecoder(int /*width*/, int /*height*/, int /*deblocking*/, bool /*smoothing*/, - int /*format*/, - int /*outputFormat*/){} + int /*format*/, // should this argument be of codecType type ? + int /*outputFormat*/) // should this argument be of VideoOutputFormat type ? + {} - /// /// gnash calls this when it wants to decode the given videoframe. // /// @param data /// The video frame that is to be decoded. + /// Data is expected to be in the format specified with the + /// "format" parameter in the createDecoder call. /// /// @param size /// The sizes of the undecoded videoframe in bytes. /// - /// @return a auto_ptr containing the image which is a result of the decoding. - /// The caller owns the returned image. + /// @return + /// An auto_ptr containing the image which is a result of the decoding. + /// A NULL one on error. + /// + /// The default implementation always returns a NULL auto pointer. /// - virtual std::auto_ptr decodeFrame(uint8_t* /*data*/, int /*size*/) { std::auto_ptr i (NULL); return i; } + virtual std::auto_ptr decodeFrame(uint8_t* /*data*/, int /*size*/) + { + return std::auto_ptr(NULL); + } virtual ~embedVideoDecoder() {}; }; From MAILER-DAEMON Wed Jun 06 13:02:31 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvyty-0002TD-R8 for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 13:02:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvytw-0002RM-Px for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:02:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvytw-0002R2-6F for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:02:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvytv-0002Qv-UH for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:02:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvytv-0006Rz-9d for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:02:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hvyte-0003JF-Hc for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:02:10 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hvyte-0003JB-BF for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:02:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Wed, 06 Jun 2007 17:02:10 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/bugreport.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 17:02:29 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/06 17:02:10 Modified files: . : ChangeLog doc/C/usermanual: bugreport.xml Log message: Added a description of how to make a bug report. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.26&r2=1.3451.2.27 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/bugreport.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.2.1&r2=1.1.2.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.26 retrieving revision 1.3451.2.27 diff -u -b -r1.3451.2.26 -r1.3451.2.27 --- ChangeLog 6 Jun 2007 15:44:12 -0000 1.3451.2.26 +++ ChangeLog 6 Jun 2007 17:02:08 -0000 1.3451.2.27 @@ -1,3 +1,8 @@ +2007-06-06 Ann Barcomb + + * doc/C/usermanual/bugreport.xml: Described how to make a bug + report. + 2007-06-06 Tomas Groth Christensen * libbase/embedVideoDecoder.h: Added docs and made decodeFrame Index: doc/C/usermanual/bugreport.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/Attic/bugreport.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -b -r1.1.2.1 -r1.1.2.2 --- doc/C/usermanual/bugreport.xml 5 Jun 2007 15:17:23 -0000 1.1.2.1 +++ doc/C/usermanual/bugreport.xml 6 Jun 2007 17:02:09 -0000 1.1.2.2 @@ -1,4 +1,123 @@ Reporting Bugs + + + The better your bug report is, the easier it will be for the + developers to address the issue. + Please follow the three steps described below before filing a bug + report: + + + Compile the latest + &app; build. + + + Determine if the bug was + previously reported. + + + Review the bug writing + guidelines. + + + + + + Compile the latest &app; build + + Obtain a copy of the latest development + checkout or development + snapshot. Put the source in an empty directory, then + configure and + compile &app;. + + + If you are able to replicate the bug, + proceed to the next step. + + + If the bug does not persist, the problem may have been solved, or + the issue may involve your environment. By creating a fresh build + of your original version and trying to replicate the bug you + can determine if it is an environmental issue or a resolved bug. + If you are able to replicate the bug, the problem has been fixed + and there is no need to file a bug report. + + + If the bug is no longer visible, the problem may be related to + your environment. Try to determine the source of the conflict + so that you can include this information in your bug report. + + + + + Determine if the bug was previously reported + + Search the &app; + bug tracker to see if the bug has already been identified. + + + If the issue has already been reported, you should not file + a bug report. However, you may add some additional information + to the ticket if you feel that it will be beneficial to the + developers. For instance, if someone reported a problem using + AGG with KDE on Ubuntu GNU/Linux, and you noticed the same issue + on OpenBSD, you could confirm that the problem exists on your + system as well. Conversely, it would not be helpful to add + "me too" to a report that the --enable-dmalloc + configure option doesn't enable DMalloc. + + + + + Review the bug writing guidelines + + A good bug report should be precise, explicit, and discrete. + This means that there should be just one bug per ticket, and + that a ticket should contain the following information: + + + An overview of the problem; + + + Instructions on how to replicate the bug; + + + A description of what happened when you performed the steps + to replicate the bug, and what you expected to happen; + + + Your system information: operating system name and version, as + well as the versions of major dependencies; + + + The release number or checkout timestamp for the version of &app; + where you observe the problem; + + + The file config.log, which should be + attached as a file; and + + + A descriptive title. + + + Include any additional information that you feel might be useful + to the developers. + + + + + Filing a bug report + + After following the steps described above, you can + file a + bug report. + + + From MAILER-DAEMON Wed Jun 06 13:46:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvzaH-0005YN-FA for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 13:46:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvzaF-0005Xo-PR for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:46:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvzaE-0005XE-Rk for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:46:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvzaE-0005X8-HG for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:46:10 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvzaD-0002mo-Pj for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:46:10 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HvzaD-0006yX-1S for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:46:09 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HvzaC-0006yU-SD for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:46:08 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Wed, 06 Jun 2007 17:46:08 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/bugreport.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 17:46:12 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/06 17:46:08 Modified files: . : ChangeLog doc/C/usermanual: bugreport.xml Log message: Bastiaan suggested better examples of useful and useless bug followups. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.27&r2=1.3451.2.28 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/bugreport.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.2.2&r2=1.1.2.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.27 retrieving revision 1.3451.2.28 diff -u -b -r1.3451.2.27 -r1.3451.2.28 --- ChangeLog 6 Jun 2007 17:02:08 -0000 1.3451.2.27 +++ ChangeLog 6 Jun 2007 17:46:06 -0000 1.3451.2.28 @@ -1,5 +1,6 @@ 2007-06-06 Ann Barcomb + * doc/C/usermanual/bugreport.xml: Changed examples. * doc/C/usermanual/bugreport.xml: Described how to make a bug report. Index: doc/C/usermanual/bugreport.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/Attic/bugreport.xml,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -b -r1.1.2.2 -r1.1.2.3 --- doc/C/usermanual/bugreport.xml 6 Jun 2007 17:02:09 -0000 1.1.2.2 +++ doc/C/usermanual/bugreport.xml 6 Jun 2007 17:46:07 -0000 1.1.2.3 @@ -61,12 +61,10 @@ If the issue has already been reported, you should not file a bug report. However, you may add some additional information to the ticket if you feel that it will be beneficial to the - developers. For instance, if someone reported a problem using - AGG with KDE on Ubuntu GNU/Linux, and you noticed the same issue - on OpenBSD, you could confirm that the problem exists on your - system as well. Conversely, it would not be helpful to add - "me too" to a report that the --enable-dmalloc - configure option doesn't enable DMalloc. + developers. For instance, if someone reported a memory issue + on Ubuntu GNU/Linux, and you noticed the same problem on OpenBSD, + your stacktrace would be useful. Conversely, adding a "me too" + note to a feature request is not helpful. From MAILER-DAEMON Wed Jun 06 13:49:06 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvzd4-0005oD-TA for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 13:49:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvzd3-0005nz-Ng for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:49:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvzd2-0005nk-3L for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:49:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvzd1-0005nb-S4 for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:49:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hvzd1-00037c-HJ for gnash-commit@gnu.org; Wed, 06 Jun 2007 13:49:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hvzd0-00076h-Al for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:49:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hvzd0-00076d-67 for gnash-commit@gnu.org; Wed, 06 Jun 2007 17:49:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 06 Jun 2007 17:49:02 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/swf/tag_loaders.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 17:49:05 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/06 17:49:02 Modified files: . : ChangeLog server/swf : tag_loaders.cpp Log message: * server/swf/tag_loader.cpp (fixme_loader): warn only once for each unimplemented tag found in SWF streams during a run. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3475&r2=1.3476 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.111&r2=1.112 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3475 retrieving revision 1.3476 diff -u -b -r1.3475 -r1.3476 --- ChangeLog 6 Jun 2007 16:15:00 -0000 1.3475 +++ ChangeLog 6 Jun 2007 17:49:01 -0000 1.3476 @@ -1,3 +1,8 @@ +2007-06-06 Sandro Santilli + + * server/swf/tag_loader.cpp (fixme_loader): warn only once for each + unimplemented tag found in SWF streams during a run. + 2007-06-06 Udo Giacomozzi * backend/render_handler_agg.cpp: add checks for known scale Index: server/swf/tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.111 retrieving revision 1.112 diff -u -b -r1.111 -r1.112 --- server/swf/tag_loaders.cpp 25 May 2007 12:41:48 -0000 1.111 +++ server/swf/tag_loaders.cpp 6 Jun 2007 17:49:01 -0000 1.112 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.111 2007/05/25 12:41:48 bjacques Exp $ */ +/* $Id: tag_loaders.cpp,v 1.112 2007/06/06 17:49:01 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -59,6 +59,7 @@ #ifdef HAVE_ZLIB_H #include #endif +#include namespace gnash { @@ -665,7 +666,12 @@ void fixme_loader(stream* /*in*/, tag_type tag, movie_definition* /*m*/) { + static std::map warned; + if ( ! warned[tag] ) + { log_unimpl(_(" FIXME: tagtype = %d"), tag); + warned[tag] = true; + } } void define_shape_loader(stream* in, tag_type tag, movie_definition* m) From MAILER-DAEMON Wed Jun 06 14:00:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hvzo6-00004t-3E for mharc-gnash-commit@gnu.org; Wed, 06 Jun 2007 14:00:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvzo5-0008VV-8g for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:00:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvzo4-0008V2-J5 for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:00:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvzo4-0008Uz-Gr for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:00:28 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hvzo3-0004IS-NO for gnash-commit@gnu.org; Wed, 06 Jun 2007 14:00:28 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l56I0CF73420; Wed, 6 Jun 2007 20:00:12 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Wed, 6 Jun 2007 20:00:12 +0200 To: Ann Barcomb Subject: Re: [Gnash-commit] gnash ChangeLog doc/C/usermanual/bugreport.xml [release-0-8-0] Message-ID: <20070606180012.GB70942@keybit.net> Mail-Followup-To: Ann Barcomb , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 18:00:29 -0000 On Wed, Jun 06, 2007 at 05:46:08PM +0000, Ann Barcomb wrote: > Log message: > Bastiaan suggested better examples of useful and useless bug followups. > + your stacktrace would be useful. Conversely, adding a "me too" > + note to a feature request is not helpful. I belive savannah provides a "voting" system for me toos ;) --strk; From MAILER-DAEMON Thu Jun 07 01:42:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwAln-00052V-Ii for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 01:42:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwAll-00052Q-44 for gnash-commit@gnu.org; Thu, 07 Jun 2007 01:42:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwAlh-00052D-NX for gnash-commit@gnu.org; Thu, 07 Jun 2007 01:42:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwAlh-00052A-GI for gnash-commit@gnu.org; Thu, 07 Jun 2007 01:42:45 -0400 Received: from zimbra.lulu.com ([216.27.62.14]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HwAlg-000517-8G for gnash-commit@gnu.org; Thu, 07 Jun 2007 01:42:44 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.lulu.com (Postfix) with ESMTP id CF52C12340AD for ; Thu, 7 Jun 2007 01:42:39 -0400 (EDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: -2.599 Received: from zimbra.lulu.com ([127.0.0.1]) by localhost (zimbra1.dur.lulu.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GUi-yPUsQudl for ; Thu, 7 Jun 2007 01:42:39 -0400 (EDT) Received: from [192.168.2.5] (ip56538861.direct-adsl.nl [86.83.136.97]) by zimbra.lulu.com (Postfix) with ESMTP id A115A123401B for ; Thu, 7 Jun 2007 01:42:38 -0400 (EDT) Date: Thu, 7 Jun 2007 07:42:40 +0200 (CEST) From: Ann Barcomb X-X-Sender: ann@madame.local cc: Commit mailing list Subject: Re: [Gnash-commit] gnash ChangeLog doc/C/usermanual/bugreport.xml [release-0-8-0]A In-Reply-To: <20070606180012.GB70942@keybit.net> Message-ID: References: <20070606180012.GB70942@keybit.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 05:42:49 -0000 Which means that saying "me too" to a ticket isn't helpful ;) More seriously, if you can think of an example that you prefer, go ahead and make the change directly to the file and when I see the commit I'll review it for punctuation, clarity, etc. - Ann > On Wed, Jun 06, 2007 at 05:46:08PM +0000, Ann Barcomb wrote: > >> Log message: >> Bastiaan suggested better examples of useful and useless bug followups. > >> + your stacktrace would be useful. Conversely, adding a "me too" >> + note to a feature request is not helpful. > > I belive savannah provides a "voting" system for me toos ;) > --strk; > From MAILER-DAEMON Thu Jun 07 02:51:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwBqY-0001uy-NU for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 02:51:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwBqW-0001sU-AW for gnash-commit@gnu.org; Thu, 07 Jun 2007 02:51:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwBqU-0001q9-8E for gnash-commit@gnu.org; Thu, 07 Jun 2007 02:51:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwBqU-0001pm-29 for gnash-commit@gnu.org; Thu, 07 Jun 2007 02:51:46 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwBqS-0006GQ-KM for gnash-commit@gnu.org; Thu, 07 Jun 2007 02:51:45 -0400 Received: by wa-out-1112.google.com with SMTP id k34so489587wah for ; Wed, 06 Jun 2007 23:51:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=GPlnW58yOajjuyhFCzuAbW4aVxna8DHijJT33reGf8adxAgR5CPHVX934t0hh1psP+8dItxqHI2bfsG7utYqvCjyDHP0++1COa4VZdde4WqkSoNOII+6n6KoaYZuLfr+cUQ6YEV3JeLfOoAdISlQGMFCcr2p17IgRfvVJ+VpD64= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=pT0Iuszim11CFaLgThcvHFF95DySasZU9is1NeMBgLhRRXjVuCxdlY1DFVRmseBSxPxqwgCSfk9ikVf2ujEm9+P/0rqSt2Gg+1JIenoanlS4GwoVJL3Cv3fdiW8nXuAMjmNWlHSeJrlpF+PvjRtLEdxZPrzr1ZFIfRlDPRlFTSA= Received: by 10.114.181.1 with SMTP id d1mr1289111waf.1181199094317; Wed, 06 Jun 2007 23:51:34 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Wed, 6 Jun 2007 23:51:34 -0700 (PDT) Message-ID: Date: Thu, 7 Jun 2007 14:51:34 +0800 From: "zou lunkai" To: gnash-commit@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-kernel: Linux 2.6 (newer, 2) Cc: strk Subject: [Gnash-commit] "make check" report X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 06:51:48 -0000 "make check" failed again here, can anyone confirm? This blocks my coming commit. cd testsuite/misc-ming.all make check got: === Summary === # of expected passes 1875 # of unexpected failures 84 # of expected failures 65 # of untested testcases 1 these are part of the unexpected failures, all of which are from the same file. FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:1,1 exp:255,0,0,255 obt:255,255 ,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:61] FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:35,1 exp:255,255,0,255 obt:255, 255,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:64] FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:1,35 exp:255,255,0,255 obt:255, 255,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:67] FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:5,1 exp:255,255,0,255 obt:255,2 55,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:77] FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:25,1 exp:255,0,0,255 obt:255,25 5,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:80] FAIL: Video-EmbedSquareTestRunner: AGG_RGB24 pix:25,35 exp:255,255,0,255 obt:255 ,255,255,255 tol:5 [Video-EmbedSquareTestRunner.cpp:83] Maybe I could just disable these tests here. I need confirmation before doing that. Thanks! From MAILER-DAEMON Thu Jun 07 03:15:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwCDe-0007TI-HG for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 03:15:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwCDc-0007QO-2O for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:15:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwCDZ-0007Nq-KA for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:15:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwCDZ-0007Nf-EZ for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:15:37 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwCDX-00009v-PE for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:15:36 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l577FGI85033; Thu, 7 Jun 2007 09:15:16 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 7 Jun 2007 09:15:16 +0200 From: strk To: zou lunkai Message-ID: <20070607071516.GA83679@keybit.net> Mail-Followup-To: zou lunkai , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org Subject: [Gnash-commit] Re: "make check" report X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 07:15:40 -0000 On Thu, Jun 07, 2007 at 02:51:34PM +0800, zou lunkai wrote: > "make check" failed again here, can anyone confirm? This blocks my > coming commit. There was a missing dependency of Video-EmbedSquare.swf against testsuite/media/square.swf. Should be fixed now (did you update?). --strk; From MAILER-DAEMON Thu Jun 07 03:20:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwCHp-0000jb-Mj for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 03:20:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwCHp-0000jW-5J for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:20:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwCHm-0000jH-Oo for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:19:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwCHm-0000jE-La for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:19:58 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwCHl-0000dq-Eg for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:19:58 -0400 Received: by wa-out-1112.google.com with SMTP id k34so496062wah for ; Thu, 07 Jun 2007 00:19:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rFYSS8qgeyYcXG5KE+7Gs70aUe4eciy+YFhouclzEj9gN1rKS5m2CokuJpOzbUI0Uu1axJfZbbBv2bG27/vsvypCSEXxso+XAadpFnGEhZsh6z830S2zDGept2DBjL1TDMfCfxRr/E9jqjbelZOC/EcyjycUTLf7PnTYa+xgKKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IxkCI90sovz58pd/evd6Wptx6mjw0l/cnK56EMFaR5EUV3h+mQlh0ZSXkTN8LtrqrcK6PT6tHMIjlAz/1vIZfmZCXJ2A8GEkS07Cq3GOsCQtmkQW9tN3iGVNr9prLIViWX+G0yn6TDOSsKu5811u8+/0cGsFwn2wplW/4z+4RfI= Received: by 10.114.12.9 with SMTP id 9mr1289075wal.1181200790004; Thu, 07 Jun 2007 00:19:50 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Thu, 7 Jun 2007 00:19:49 -0700 (PDT) Message-ID: Date: Thu, 7 Jun 2007 15:19:49 +0800 From: "zou lunkai" To: strk , gnash-commit@gnu.org In-Reply-To: <20070607071516.GA83679@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070607071516.GA83679@keybit.net> X-detected-kernel: Linux 2.6 (newer, 2) Cc: Subject: [Gnash-commit] Re: "make check" report X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 07:20:01 -0000 > On Thu, Jun 07, 2007 at 02:51:34PM +0800, zou lunkai wrote: > > "make check" failed again here, can anyone confirm? This blocks my > > coming commit. > > There was a missing dependency of Video-EmbedSquare.swf > against testsuite/media/square.swf. Should be fixed now (did you update?). > Upated half an hour ago. maybe need to do "make clean" first, and then "make" and "make check". I'll try again later. From MAILER-DAEMON Thu Jun 07 03:28:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwCQ6-0005os-SL for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 03:28:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwCQ4-0005o7-KZ for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:28:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwCQ4-0005nP-18 for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:28:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwCQ3-0005nJ-H4 for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:28:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwCQ2-0001cH-EV for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:28:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwCPw-0004bm-M0 for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:28:24 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwCPw-0004be-C7 for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:28:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 07 Jun 2007 07:28:24 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 07:28:33 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/07 07:28:24 Modified files: . : ChangeLog server : sprite_instance.cpp Log message: avoid using possibly invalidated interators CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3476&r2=1.3477 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.283&r2=1.284 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3476 retrieving revision 1.3477 diff -u -b -r1.3476 -r1.3477 --- ChangeLog 6 Jun 2007 17:49:01 -0000 1.3476 +++ ChangeLog 7 Jun 2007 07:28:23 -0000 1.3477 @@ -1,3 +1,8 @@ +2007-06-07 Zou Lunkai + + * server/sprite_instance.cpp: improved call_frame_actions(), + avoid using possibly invalidated interators. + 2007-06-06 Sandro Santilli * server/swf/tag_loader.cpp (fixme_loader): warn only once for each Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.283 retrieving revision 1.284 diff -u -b -r1.283 -r1.284 --- server/sprite_instance.cpp 28 May 2007 09:35:34 -0000 1.283 +++ server/sprite_instance.cpp 7 Jun 2007 07:28:23 -0000 1.284 @@ -1981,20 +1981,18 @@ } } - // Execute any new actions triggered by the tag, - // leaving existing actions to be executed. + // + // exetract target frame actions and execute them + // ActionList::iterator it = m_action_list.begin(); - for(size_t i =0; i) id 1HwCeg-0003Bp-Ej for gnash-commit@gnu.org; Thu, 07 Jun 2007 03:43:39 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l577hRF85469; Thu, 7 Jun 2007 09:43:27 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 7 Jun 2007 09:43:27 +0200 To: Zou Lunkai Subject: Re: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp Message-ID: <20070607074327.GC83679@keybit.net> Mail-Followup-To: Zou Lunkai , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 07:43:44 -0000 On Thu, Jun 07, 2007 at 07:28:24AM +0000, Zou Lunkai wrote: > Log message: > avoid using possibly invalidated interators > + for(size_t i =0; i) id 1HwEAk-0006FF-Pt for gnash-commit@gnu.org; Thu, 07 Jun 2007 05:20:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwEAf-0005Kq-2u for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:20:45 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwEAe-0005Km-VQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:20:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Thu, 07 Jun 2007 09:20:44 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 09:20:53 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/07 09:20:44 Modified files: . : ChangeLog server : edit_text_character.cpp Log message: server/edit_text_character.cpp: shift text by 2 pixels, fixes bug #17954 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3477&r2=1.3478 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.62&r2=1.63 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3477 retrieving revision 1.3478 diff -u -b -r1.3477 -r1.3478 --- ChangeLog 7 Jun 2007 07:28:23 -0000 1.3477 +++ ChangeLog 7 Jun 2007 09:20:44 -0000 1.3478 @@ -1,3 +1,8 @@ +2007-06-07 Udo Giacomozzi + + * server/edit_text_character.cpp: shift text by 2 pixels, + fixes bug #17954 + 2007-06-07 Zou Lunkai * server/sprite_instance.cpp: improved call_frame_actions(), Index: server/edit_text_character.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -u -b -r1.62 -r1.63 --- server/edit_text_character.cpp 26 Apr 2007 10:56:50 -0000 1.62 +++ server/edit_text_character.cpp 7 Jun 2007 09:20:44 -0000 1.63 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.62 2007/04/26 10:56:50 zoulunkai Exp $ */ +/* $Id: edit_text_character.cpp,v 1.63 2007/06/07 09:20:44 udog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -451,10 +451,19 @@ // m_x_offset and m_y_offset memebers in glyph records. // Anyway, see bug #17954 for a testcase. matrix m; + if ( ! def_bounds.is_null() && ! def_bounds.is_world() ) { - m.set_translation(def_bounds.get_x_min(), def_bounds.get_y_min()); + m.concatenate_translation(def_bounds.get_x_min(), def_bounds.get_y_min()); } + + // Shift by two additional pixels. I absolutely dislike this hack because + // it's based on empirical tests. I checked with various files (including + // various text format styles) and it seems to be work fine, though. + // Maybe it's really some hard-coded border in Flash. + // See bug #17954 for more info. + m.concatenate_translation(2*20.0, 2*20.0); + display_glyph_records(m, this, m_text_glyph_records, m_def->get_root_def()); From MAILER-DAEMON Thu Jun 07 05:44:15 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwEXP-0006dj-Fn for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 05:44:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwEXN-0006bZ-Mq for gnash-commit@gnu.org; Thu, 07 Jun 2007 05:44:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwEXM-0006ZX-7D for gnash-commit@gnu.org; Thu, 07 Jun 2007 05:44:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwEXM-0006ZR-4A for gnash-commit@gnu.org; Thu, 07 Jun 2007 05:44:12 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwEXL-0000Ww-HY for gnash-commit@gnu.org; Thu, 07 Jun 2007 05:44:12 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l579i6A87209; Thu, 7 Jun 2007 11:44:06 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 7 Jun 2007 11:44:06 +0200 To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp Message-ID: <20070607094406.GD83679@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 09:44:13 -0000 On Thu, Jun 07, 2007 at 09:20:44AM +0000, Udo Giacomozzi wrote: > + // Shift by two additional pixels. I absolutely dislike this hack because > + // it's based on empirical tests. I checked with various files (including > + // various text format styles) and it seems to be work fine, though. > + // Maybe it's really some hard-coded border in Flash. > + // See bug #17954 for more info. Did you test if it depend on the font ? Glyphs (or fonts?) have a "leading" parameter.. --strk; From MAILER-DAEMON Thu Jun 07 06:34:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwFJl-0001q4-7J for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 06:34:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwFJj-0001nQ-3i for gnash-commit@gnu.org; Thu, 07 Jun 2007 06:34:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwFJg-0001nE-ON for gnash-commit@gnu.org; Thu, 07 Jun 2007 06:34:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwFJg-0001nB-Ic for gnash-commit@gnu.org; Thu, 07 Jun 2007 06:34:08 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwFJg-0006Nb-4K for gnash-commit@gnu.org; Thu, 07 Jun 2007 06:34:08 -0400 Received: by wa-out-1112.google.com with SMTP id k34so545291wah for ; Thu, 07 Jun 2007 03:34:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DIOInOuZXedru5B6m9Ycse5XHCJ1EoSZHgA9faMNTmG6EnY+n7o+OENO4lhhcVhKb4V0bhpS5/oKDudDzXvK4hP+3kHcPS3/+9vR20fg8XSlqsfFh1kkM7Z/owujCFAc4JEgJN65g/xYr//fnwPXvywVB3JCxTfpPbkbI4mVGII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MZMEfl2P8H49lMGeWBeAXdwBDedyepgOU60W71TWsKKS6hJDnVwQUnQg6Nb0jDaPZS6a9O/XFJwn/PsNaCu84wjyqi3N4ir6Tmbd240f+LxeNBIO9QnSNNCdkxAv42eC+qc4YnB9VdOldTLKTbCUya+RAMczcSByM0jRBjZLczw= Received: by 10.114.78.1 with SMTP id a1mr1386807wab.1181212446850; Thu, 07 Jun 2007 03:34:06 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Thu, 7 Jun 2007 03:34:06 -0700 (PDT) Message-ID: Date: Thu, 7 Jun 2007 18:34:06 +0800 From: "zou lunkai" To: strk , gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp In-Reply-To: <20070607074327.GC83679@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070607074327.GC83679@keybit.net> X-detected-kernel: Linux 2.6 (newer, 2) Cc: X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 10:34:11 -0000 On 6/7/07, strk wrote: > On Thu, Jun 07, 2007 at 07:28:24AM +0000, Zou Lunkai wrote: > > > Log message: > > avoid using possibly invalidated interators > > > + for(size_t i =0; i > Uh ? Is that loop really needed ? With iterators you can usually > access the end using .end() or .rbegin() and twiking a bit.. > Hmm, not really, should be done in a faster way. I'll update it. Thanks! From MAILER-DAEMON Thu Jun 07 07:13:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwFvP-00007C-0C for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 07:13:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwFvM-00004u-A8 for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:13:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwFvJ-0008WO-OJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:13:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwFvJ-0008WL-JK for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:13:01 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwFvJ-0002w0-5U for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:13:01 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57BCtU4015601; Thu, 7 Jun 2007 13:12:57 +0200 Date: Thu, 7 Jun 2007 13:12:55 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <853813087.20070607131255@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp In-Reply-To: <20070607094406.GD83679@keybit.net> References: <20070607094406.GD83679@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 11:13:04 -0000 Hello strk, Thursday, June 7, 2007, 11:44:06 AM, you wrote: s> Did you test if it depend on the font ? s> Glyphs (or fonts?) have a "leading" parameter.. I did some tests now with different fonts (even with some like Wingdings) and scaling, rotation... Gnash always displayed it right now, except for word wrapping which is a different story.... Udo From MAILER-DAEMON Thu Jun 07 07:15:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwFxm-0001F7-7N for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 07:15:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwFxj-0001Ek-SF for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:15:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwFxi-0001EY-F7 for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:15:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwFxi-0001EV-AX for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:15:30 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwFxh-0003Dk-SF for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:15:30 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57BFRU4015917; Thu, 7 Jun 2007 13:15:28 +0200 Date: Thu, 7 Jun 2007 13:15:26 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1088036743.20070607131526@nova-sys.net> To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 11:15:32 -0000 Hello Udo, Thursday, June 7, 2007, 11:20:44 AM, you wrote: UG> Log message: UG> server/edit_text_character.cpp: shift text by 2 pixels, fixes bug #17954 Do we want to backport this to 0.8.0 ? Udo From MAILER-DAEMON Thu Jun 07 08:00:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGen-0001qu-FD for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:00:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGem-0001pk-6s for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:00:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGek-0001mO-Bk for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:59:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGek-0001mJ-9c for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:59:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwGej-0000nk-U9 for gnash-commit@gnu.org; Thu, 07 Jun 2007 07:59:58 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwGej-0002O7-2C for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:59:57 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwGei-0002O4-P2 for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:59:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Thu, 07 Jun 2007 11:59:56 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:00:00 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/07 11:59:56 Modified files: . : ChangeLog server : edit_text_character.cpp Log message: server/edit_text_character.cpp: better version of previous patch; gets rid of WIDTH_FUDGE too CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3478&r2=1.3479 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.63&r2=1.64 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3478 retrieving revision 1.3479 diff -u -b -r1.3478 -r1.3479 --- ChangeLog 7 Jun 2007 09:20:44 -0000 1.3478 +++ ChangeLog 7 Jun 2007 11:59:55 -0000 1.3479 @@ -1,5 +1,10 @@ 2007-06-07 Udo Giacomozzi + * server/edit_text_character.cpp: better version of previous patch; + gets rid of WIDTH_FUDGE too + +2007-06-07 Udo Giacomozzi + * server/edit_text_character.cpp: shift text by 2 pixels, fixes bug #17954 Index: server/edit_text_character.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -u -b -r1.63 -r1.64 --- server/edit_text_character.cpp 7 Jun 2007 09:20:44 -0000 1.63 +++ server/edit_text_character.cpp 7 Jun 2007 11:59:56 -0000 1.64 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.63 2007/06/07 09:20:44 udog Exp $ */ +/* $Id: edit_text_character.cpp,v 1.64 2007/06/07 11:59:56 udog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -42,6 +42,10 @@ #include #include +// Text fields have a fixed 2 pixel padding for each side (regardless of border) +#define PADDING_TWIPS 40.0f + + namespace gnash { // Forward declarations @@ -457,12 +461,6 @@ m.concatenate_translation(def_bounds.get_x_min(), def_bounds.get_y_min()); } - // Shift by two additional pixels. I absolutely dislike this hack because - // it's based on empirical tests. I checked with various files (including - // various text format styles) and it seems to be work fine, though. - // Maybe it's really some hard-coded border in Flash. - // See bug #17954 for more info. - m.concatenate_translation(2*20.0, 2*20.0); display_glyph_records(m, this, m_text_glyph_records, m_def->get_root_def()); @@ -837,10 +835,6 @@ return get_member_default(name, val); } -// @@ WIDTH_FUDGE is a total fudge to make it match the Flash player! Maybe -// we have a bug? -#define WIDTH_FUDGE 80.0f - float edit_text_character::align_line( @@ -851,7 +845,7 @@ assert(m_def); float extra_space = (m_def->width() - - m_def->get_right_margin()) - x - WIDTH_FUDGE; + m_def->get_right_margin()) - x - PADDING_TWIPS; //assert(extra_space >= 0.0f); if (extra_space <= 0.0f) @@ -965,8 +959,8 @@ text_glyph_record rec; // one to work on rec.m_style.m_font = _font; rec.m_style.m_color = m_def->get_text_color(); - rec.m_style.m_x_offset = std::max(0, m_def->get_left_margin() + m_def->get_indent()); - rec.m_style.m_y_offset = m_def->get_font_height() + rec.m_style.m_x_offset = PADDING_TWIPS + std::max(0, m_def->get_left_margin() + m_def->get_indent()); + rec.m_style.m_y_offset = PADDING_TWIPS + m_def->get_font_height() + (_font->get_leading() - _font->get_descent()) * scale; rec.m_style.m_text_height = m_def->get_font_height(); rec.m_style.m_has_x_offset = true; @@ -1027,7 +1021,8 @@ align_line(m_def->get_alignment(), last_line_start_record, x); // new paragraphs get the indent. - x = std::max(0, m_def->get_left_margin() + m_def->get_indent()); + x = std::max(0, m_def->get_left_margin() + m_def->get_indent()) + + PADDING_TWIPS; y += m_def->get_font_height() + leading; // Start a new record on the next line. @@ -1141,7 +1136,7 @@ after_x_advance: - if (x >= m_def->width() - m_def->get_right_margin() - WIDTH_FUDGE) + if (x >= m_def->width() - m_def->get_right_margin() - PADDING_TWIPS) { // Whoops, we just exceeded the box width. // Do word-wrap if requested to do so. @@ -1161,8 +1156,7 @@ // Close out this stretch of glyphs. m_text_glyph_records.push_back(rec); float previous_x = x; - - x = m_def->get_left_margin(); + x = m_def->get_left_margin() + PADDING_TWIPS; y += m_def->get_font_height() + leading; // Start a new record on the next line. From MAILER-DAEMON Thu Jun 07 08:02:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGh3-0003hc-6g for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:02:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGh1-0003em-Pw for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:02:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGh0-0003dU-BA for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:02:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGh0-0003dM-5V for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:02:18 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwGgz-0001os-70 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:02:17 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57C2DU4021028; Thu, 7 Jun 2007 14:02:15 +0200 Date: Thu, 7 Jun 2007 14:02:13 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1491837221.20070607140213@nova-sys.net> To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:02:19 -0000 UG> - if (x >= m_def->width() - m_def->get_right_margin() - WIDTH_FUDGE) UG> + if (x >= m_def->width() - m_def->get_right_margin() - PADDING_TWIPS) It's not the same, I know, but I think the previous version was incorrect (too much padding for the right side). From MAILER-DAEMON Thu Jun 07 08:10:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGot-000840-7p for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGor-00083R-0b for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGoq-000836-2d for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGop-00082z-Ui for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:24 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwGop-0003As-0z for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwGoo-0003Jj-7s for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:10:22 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwGon-0003Jf-VX for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:10:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Thu, 07 Jun 2007 12:10:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:10:25 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/07 12:10:21 Modified files: . : ChangeLog backend : sound_handler.cpp sound_handler_gst.cpp libbase : embedVideoDecoderFfmpeg.cpp embedVideoDecoderGst.cpp Log message: * backend/sound_handler.cpp: Fixed a warning. * backend/sound_handler_gst.cpp: Small cleanup. * libbase/embedVideoDecoder{Ffmpeg, Gst}.cpp: Made more robust, can now handle if render image format is NONE. Should fix bug #20111. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3479&r2=1.3480 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_gst.cpp?cvsroot=gnash&r1=1.47&r2=1.48 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3479 retrieving revision 1.3480 diff -u -b -r1.3479 -r1.3480 --- ChangeLog 7 Jun 2007 11:59:55 -0000 1.3479 +++ ChangeLog 7 Jun 2007 12:10:20 -0000 1.3480 @@ -1,3 +1,10 @@ +2007-06-07 Tomas Groth Christensen + + * backend/sound_handler.cpp: Fixed a warning. + * backend/sound_handler_gst.cpp: Small cleanup. + * libbase/embedVideoDecoder{Ffmpeg, Gst}.cpp: Made more robust, can + now handle if render image format is NONE. Should fix bug #20111. + 2007-06-07 Udo Giacomozzi * server/edit_text_character.cpp: better version of previous patch; Index: backend/sound_handler.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- backend/sound_handler.cpp 28 May 2007 15:40:57 -0000 1.7 +++ backend/sound_handler.cpp 7 Jun 2007 12:10:21 -0000 1.8 @@ -31,7 +31,7 @@ int* adjusted_size, void* data, int sample_count, // A stereo pair counts as one - int sample_size, // Should now always == 2 + int /*sample_size*/, // Should now always == 2 // sample_rate and stereo are those of the incoming sample int sample_rate, bool stereo, @@ -112,6 +112,7 @@ in += 2; } } else { + // Linear upsampling, either to increase a sample rate // or to convert a mono file to stereo or both: // replicate each sample several times. Index: backend/sound_handler_gst.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_gst.cpp,v retrieving revision 1.47 retrieving revision 1.48 diff -u -b -r1.47 -r1.48 --- backend/sound_handler_gst.cpp 29 May 2007 17:15:14 -0000 1.47 +++ backend/sound_handler_gst.cpp 7 Jun 2007 12:10:21 -0000 1.48 @@ -20,7 +20,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -/* $Id: sound_handler_gst.cpp,v 1.47 2007/05/29 17:15:14 strk Exp $ */ +/* $Id: sound_handler_gst.cpp,v 1.48 2007/06/07 12:10:21 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -381,21 +381,15 @@ "channels", G_TYPE_INT, sounddata->stereo ? 2 : 1, "endianness", G_TYPE_INT, G_BIG_ENDIAN, "width", G_TYPE_INT, 16, + "depth", G_TYPE_INT, 16, /*"signed", G_TYPE_INT, 1,*/ NULL); g_object_set (G_OBJECT (gst_element->capsfilter), "caps", caps, NULL); gst_caps_unref (caps); - // number of buffers to send - int numBuf = static_cast(ceil(static_cast(sounddata->data_size) / static_cast(BUFFER_SIZE))); - if (loop_count == -1) { - numBuf = -1; - } else if (loop_count > 0) { - numBuf = numBuf * (loop_count+1) -1; - } // setup fake source g_object_set (G_OBJECT (gst_element->input), "sizetype", 2, "can-activate-pull", FALSE, "signal-handoffs", TRUE, - "sizemax", BUFFER_SIZE, "num-buffers", numBuf, NULL); + "sizemax", BUFFER_SIZE, NULL); // Setup the callback gst_element->handoff_signal_id = g_signal_connect (gst_element->input, "handoff", G_CALLBACK (callback_handoff), gst_element); Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- libbase/embedVideoDecoderFfmpeg.cpp 6 Jun 2007 15:41:12 -0000 1.14 +++ libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 12:10:21 -0000 1.15 @@ -148,15 +148,25 @@ std::auto_ptr embedVideoDecoderFfmpeg::decodeFrame(uint8_t* data, int size) { + std::auto_ptr ret_image; if (outputFormat == YUV) { ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { ret_image.reset(new image::rgb(width, height)); + } else { + ret_image.reset(NULL); + return ret_image; + } + + // If there is nothing to decode in the new frame + // we just return the lastest. + if (data == NULL || codec == NULL || size == 0) { + ret_image->update(decodedFrame->m_data); + return ret_image; } - if (data == NULL || codec == NULL || size == 0) return ret_image; // Allocate a frame to store the decoded frame in AVFrame* frame = avcodec_alloc_frame(); @@ -169,6 +179,7 @@ if (outputFormat == NONE) { // NullGui? av_free(frame); + ret_image->update(decodedFrame->m_data); return ret_image; } else if (outputFormat == YUV && cc->pix_fmt != PIX_FMT_YUV420P) { @@ -209,8 +220,6 @@ } } } - } else { - return ret_image; } ret_image->update(decodedFrame->m_data); Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- libbase/embedVideoDecoderGst.cpp 6 Jun 2007 15:41:12 -0000 1.5 +++ libbase/embedVideoDecoderGst.cpp 7 Jun 2007 12:10:21 -0000 1.6 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.5 2007/06/06 15:41:12 tgc Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.6 2007/06/07 12:10:21 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -182,9 +182,17 @@ ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { ret_image.reset(new image::rgb(width, height)); + } else { + ret_image.reset(NULL); + return ret_image; } - if (data == NULL || size == 0) return ret_image; + // If there is nothing to decode in the new frame + // we just return the lastest. + if (data == NULL || size == 0 || !decoder) { + ret_image->update(decodedFrame->m_data); + return ret_image; + } frame = data; frameSize = size; @@ -194,6 +202,7 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); ret_image->update(decodedFrame->m_data); + return ret_image; } From MAILER-DAEMON Thu Jun 07 08:10:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGp7-0008Bd-D1 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGp6-0008BS-80 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGp4-0008Am-K6 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGp4-0008Ah-Gu for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:38 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwGp3-0003DE-SF for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:10:38 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57CAXj89943; Thu, 7 Jun 2007 14:10:33 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 7 Jun 2007 14:10:32 +0200 To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp Message-ID: <20070607121032.GA89291@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:10:40 -0000 On Thu, Jun 07, 2007 at 11:59:56AM +0000, Udo Giacomozzi wrote: > Log message: > server/edit_text_character.cpp: better version of previous patch; gets rid of WIDTH_FUDGE too I guess we want to backport this one :) --strk; From MAILER-DAEMON Thu Jun 07 08:12:40 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGr2-0000iy-Ap for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:12:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGr0-0000iR-G6 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:12:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGqz-0000iD-KM for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:12:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGqz-0000iA-DD for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:12:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwGqz-0003Zl-3k for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:12:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwGqy-0003QL-HV for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:12:36 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwGqy-0003QI-Cz for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:12:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Thu, 07 Jun 2007 12:12:36 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:12:39 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/07 12:12:36 Modified files: . : ChangeLog backend : sound_handler.cpp sound_handler_gst.cpp libbase : embedVideoDecoderFfmpeg.cpp embedVideoDecoderGst.cpp Log message: * backend/sound_handler.cpp: Fixed a warning. * backend/sound_handler_gst.cpp: Small cleanup. * libbase/embedVideoDecoder{Ffmpeg, Gst}.cpp: Made more robust, can now handle if render image format is NONE. Should fix bug #20111 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.28&r2=1.3451.2.29 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.7&r2=1.7.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_gst.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.47&r2=1.47.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.1&r2=1.13.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4.4.1&r2=1.4.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.28 retrieving revision 1.3451.2.29 diff -u -b -r1.3451.2.28 -r1.3451.2.29 --- ChangeLog 6 Jun 2007 17:46:06 -0000 1.3451.2.28 +++ ChangeLog 7 Jun 2007 12:12:34 -0000 1.3451.2.29 @@ -1,3 +1,10 @@ +2007-06-07 Tomas Groth Christensen + + * backend/sound_handler.cpp: Fixed a warning. + * backend/sound_handler_gst.cpp: Small cleanup. + * libbase/embedVideoDecoder{Ffmpeg, Gst}.cpp: Made more robust, + can now handle if render image format is NONE. Should fix bug #20111 + 2007-06-06 Ann Barcomb * doc/C/usermanual/bugreport.xml: Changed examples. Index: backend/sound_handler.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler.cpp,v retrieving revision 1.7 retrieving revision 1.7.4.1 diff -u -b -r1.7 -r1.7.4.1 --- backend/sound_handler.cpp 28 May 2007 15:40:57 -0000 1.7 +++ backend/sound_handler.cpp 7 Jun 2007 12:12:35 -0000 1.7.4.1 @@ -31,7 +31,7 @@ int* adjusted_size, void* data, int sample_count, // A stereo pair counts as one - int sample_size, // Should now always == 2 + int /*sample_size*/, // Should now always == 2 // sample_rate and stereo are those of the incoming sample int sample_rate, bool stereo, @@ -112,6 +112,7 @@ in += 2; } } else { + // Linear upsampling, either to increase a sample rate // or to convert a mono file to stereo or both: // replicate each sample several times. Index: backend/sound_handler_gst.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_gst.cpp,v retrieving revision 1.47 retrieving revision 1.47.4.1 diff -u -b -r1.47 -r1.47.4.1 --- backend/sound_handler_gst.cpp 29 May 2007 17:15:14 -0000 1.47 +++ backend/sound_handler_gst.cpp 7 Jun 2007 12:12:35 -0000 1.47.4.1 @@ -20,7 +20,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -/* $Id: sound_handler_gst.cpp,v 1.47 2007/05/29 17:15:14 strk Exp $ */ +/* $Id: sound_handler_gst.cpp,v 1.47.4.1 2007/06/07 12:12:35 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -381,21 +381,15 @@ "channels", G_TYPE_INT, sounddata->stereo ? 2 : 1, "endianness", G_TYPE_INT, G_BIG_ENDIAN, "width", G_TYPE_INT, 16, + "depth", G_TYPE_INT, 16, /*"signed", G_TYPE_INT, 1,*/ NULL); g_object_set (G_OBJECT (gst_element->capsfilter), "caps", caps, NULL); gst_caps_unref (caps); - // number of buffers to send - int numBuf = static_cast(ceil(static_cast(sounddata->data_size) / static_cast(BUFFER_SIZE))); - if (loop_count == -1) { - numBuf = -1; - } else if (loop_count > 0) { - numBuf = numBuf * (loop_count+1) -1; - } // setup fake source g_object_set (G_OBJECT (gst_element->input), "sizetype", 2, "can-activate-pull", FALSE, "signal-handoffs", TRUE, - "sizemax", BUFFER_SIZE, "num-buffers", numBuf, NULL); + "sizemax", BUFFER_SIZE, NULL); // Setup the callback gst_element->handoff_signal_id = g_signal_connect (gst_element->input, "handoff", G_CALLBACK (callback_handoff), gst_element); Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13.4.1 retrieving revision 1.13.4.2 diff -u -b -r1.13.4.1 -r1.13.4.2 --- libbase/embedVideoDecoderFfmpeg.cpp 6 Jun 2007 15:44:13 -0000 1.13.4.1 +++ libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 12:12:35 -0000 1.13.4.2 @@ -148,15 +148,25 @@ std::auto_ptr embedVideoDecoderFfmpeg::decodeFrame(uint8_t* data, int size) { + std::auto_ptr ret_image; if (outputFormat == YUV) { ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { ret_image.reset(new image::rgb(width, height)); + } else { + ret_image.reset(NULL); + return ret_image; + } + + // If there is nothing to decode in the new frame + // we just return the lastest. + if (data == NULL || codec == NULL || size == 0) { + ret_image->update(decodedFrame->m_data); + return ret_image; } - if (data == NULL || codec == NULL || size == 0) return ret_image; // Allocate a frame to store the decoded frame in AVFrame* frame = avcodec_alloc_frame(); @@ -169,6 +179,7 @@ if (outputFormat == NONE) { // NullGui? av_free(frame); + ret_image->update(decodedFrame->m_data); return ret_image; } else if (outputFormat == YUV && cc->pix_fmt != PIX_FMT_YUV420P) { @@ -209,8 +220,6 @@ } } } - } else { - return ret_image; } ret_image->update(decodedFrame->m_data); Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -u -b -r1.4.4.1 -r1.4.4.2 --- libbase/embedVideoDecoderGst.cpp 6 Jun 2007 15:44:13 -0000 1.4.4.1 +++ libbase/embedVideoDecoderGst.cpp 7 Jun 2007 12:12:36 -0000 1.4.4.2 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.4.4.1 2007/06/06 15:44:13 tgc Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.4.4.2 2007/06/07 12:12:36 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -182,9 +182,17 @@ ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { ret_image.reset(new image::rgb(width, height)); + } else { + ret_image.reset(NULL); + return ret_image; } - if (data == NULL || size == 0) return ret_image; + // If there is nothing to decode in the new frame + // we just return the lastest. + if (data == NULL || size == 0 || !decoder) { + ret_image->update(decodedFrame->m_data); + return ret_image; + } frame = data; frameSize = size; @@ -194,6 +202,7 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); ret_image->update(decodedFrame->m_data); + return ret_image; } From MAILER-DAEMON Thu Jun 07 08:19:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwGxm-0006rQ-9S for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:19:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwGxl-0006r5-3K for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:19:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwGxk-0006qn-GM for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:19:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwGxk-0006qh-Ak for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:19:36 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwGxj-0004kA-Iz for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:19:36 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57CJTd90146; Thu, 7 Jun 2007 14:19:29 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 7 Jun 2007 14:19:29 +0200 To: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... Message-ID: <20070607121929.GB89291@keybit.net> Mail-Followup-To: Tomas Groth , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:19:37 -0000 On Thu, Jun 07, 2007 at 12:10:21PM +0000, Tomas Groth wrote: > std::auto_ptr ret_image; > > if (outputFormat == YUV) { > ret_image.reset(new image::yuv(width, height)); > } else if (outputFormat == RGB) { > ret_image.reset(new image::rgb(width, height)); > + } else { > + ret_image.reset(NULL); log_error("Unknown outputFormat %d during decoding ..."); ? > + return ret_image; > + } Question: why do we opt between RGB and YUV ? Do we do this also for other kind of bitmaps (glyphs, whatever...) ? is any renderer using YUV ? Could we have the renderer provide an "hint" but then accept any of the two formats ? --strk; From MAILER-DAEMON Thu Jun 07 08:24:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwH2d-0000Mf-8q for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:24:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwH2b-0000M1-Ek for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:24:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwH2a-0000Lk-Lz for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:24:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwH2a-0000Lh-HK for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:24:36 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwH2a-0005a7-8o for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:24:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwH2Z-00046O-4w for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:24:35 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwH2Z-00046L-0Q for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:24:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:24:35 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libgeometry/snappingrange.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:24:37 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:24:34 Modified files: . : ChangeLog libgeometry : snappingrange.h Log message: * libgeometry/snappingrange.h: initialize all members in the templated copy ctor. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3480&r2=1.3481 http://cvs.savannah.gnu.org/viewcvs/gnash/libgeometry/snappingrange.h?cvsroot=gnash&r1=1.21&r2=1.22 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3480 retrieving revision 1.3481 diff -u -b -r1.3480 -r1.3481 --- ChangeLog 7 Jun 2007 12:10:20 -0000 1.3480 +++ ChangeLog 7 Jun 2007 12:24:34 -0000 1.3481 @@ -1,3 +1,8 @@ +2007-06-07 Sandro Santilli + + * libgeometry/snappingrange.h: initialize all members in the + templated copy ctor. + 2007-06-07 Tomas Groth Christensen * backend/sound_handler.cpp: Fixed a warning. Index: libgeometry/snappingrange.h =================================================================== RCS file: /sources/gnash/gnash/libgeometry/snappingrange.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- libgeometry/snappingrange.h 28 May 2007 15:41:02 -0000 1.21 +++ libgeometry/snappingrange.h 7 Jun 2007 12:24:34 -0000 1.22 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: snappingrange.h,v 1.21 2007/05/28 15:41:02 ann Exp $ +// $Id: snappingrange.h,v 1.22 2007/06/07 12:24:34 strk Exp $ #ifndef GNASH_SNAPPINGRANGE_H #define GNASH_SNAPPINGRANGE_H @@ -94,12 +94,20 @@ /// Templated copy constructor, for casting between range types template SnappingRanges2d(const SnappingRanges2d& from) + : + snap_distance(T(from.snap_distance)), // does it make sense ? + single_mode(from.single_mode), + _combine_counter(0) { if ( from.isWorld() ) { setWorld(); } else if ( from.isNull() ) { setNull(); } else { + // TODO: can we safely assume that the 'from' parameter was + // finalized ? + // from.finalize(); // can't call finalize, it's private !! + // TODO: use visitor pattern ! unsigned rcount = from.size(); for (unsigned int rno=0; rno) id 1HwH4B-0005mL-E0 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:26:15 -0400 Received: (qmail 22577 invoked by uid 60001); 7 Jun 2007 12:26:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.dk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=M0rD4zW/afO31a+108rI6sBEdVrdhQPQg7nHs/Mh0jZhFPMlG9QEyzwQ0LFfkCaDQGBLIsw87TRCWe+m2XNtxkn7IIFITm5l4Xr9oFXWqLWjZnsptwoitnws5GOGwrbfx7r76NpaxFxhqGbAKc+StTuuUHcquzOUr46nT9LkT04=; X-YMail-OSG: SuqCA34VM1kBFR06jZhjMAw6_EEvZdHHAn8pedugi_aGxkrvJneAYU1T6GPfdz94jK3U4w-- Received: from [87.72.76.187] by web34714.mail.mud.yahoo.com via HTTP; Thu, 07 Jun 2007 14:26:14 CEST Date: Thu, 7 Jun 2007 14:26:14 +0200 (CEST) From: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... To: strk In-Reply-To: <20070607121929.GB89291@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <540656.21936.qm@web34714.mail.mud.yahoo.com> X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:26:18 -0000 --- strk skrev: > On Thu, Jun 07, 2007 at 12:10:21PM +0000, Tomas Groth wrote: > > > std::auto_ptr ret_image; > > > > if (outputFormat == YUV) { > > ret_image.reset(new image::yuv(width, height)); > > } else if (outputFormat == RGB) { > > ret_image.reset(new image::rgb(width, height)); > > + } else { > > + ret_image.reset(NULL); > > log_error("Unknown outputFormat %d during decoding ..."); ? > > > + return ret_image; > > + } > > > Question: why do we opt between RGB and YUV ? Do we do this also for other > kind of bitmaps (glyphs, whatever...) ? is any renderer using YUV ? > Could we have the renderer provide an "hint" but then accept any > of the two formats ? > I guess it originate back to when the OpenGL backend was doing the YUV->RGB conversion itself (which never really worked), and it just stayed... Both AGG and GL now uses RGB, but i think i understood that Cairo might prefer RGBA, which i believe we could then convert to when cairo gets up to speed. About what the renderers can and can't do, i'm not too sure about... cheers, Tomas From MAILER-DAEMON Thu Jun 07 08:34:29 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHC8-0001LW-Uw for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:34:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHC7-0001K2-WD for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:34:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHC6-0001ID-O9 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:34:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHC6-0001Ht-Du for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:34:26 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHC5-00072j-TJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:34:26 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57CYLU4024300; Thu, 7 Jun 2007 14:34:23 +0200 Date: Thu, 7 Jun 2007 14:34:21 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1872300083.20070607143421@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... In-Reply-To: <20070607121929.GB89291@keybit.net> References: <20070607121929.GB89291@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:34:28 -0000 Hello strk, Thursday, June 7, 2007, 2:19:29 PM, you wrote: s> Could we have the renderer provide an "hint" but then accept any s> of the two formats ? Let's hope not! From MAILER-DAEMON Thu Jun 07 08:35:14 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHCs-0002HD-Dv for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHCq-0002Ec-RK for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHCp-0002DX-UL for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHCp-0002DO-OT for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:11 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHCp-00078p-EO for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:11 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHCo-0005WL-Bf for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:35:10 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHCo-0005WF-6B for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:35:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:35:10 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.h testsui... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:35:13 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 12:35:09 Modified files: . : ChangeLog testsuite : MovieTester.h testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Don't run the pixel checking part if MovieTester can't test rendering. Raise an UNTESTED label instead, so it's reported. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.29&r2=1.3451.2.30 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.23.4.1&r2=1.23.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2.4.1&r2=1.2.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.29 retrieving revision 1.3451.2.30 diff -u -b -r1.3451.2.29 -r1.3451.2.30 --- ChangeLog 7 Jun 2007 12:12:34 -0000 1.3451.2.29 +++ ChangeLog 7 Jun 2007 12:35:07 -0000 1.3451.2.30 @@ -1,3 +1,10 @@ +2007-06-06 Sandro Santilli + + * testsuite/MovieTester.h: add a canTestRendering() method. + * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: + Don't run the pixel checking part if MovieTester can't test + rendering. Raise an UNTESTED label instead, so it's reported. + 2007-06-07 Tomas Groth Christensen * backend/sound_handler.cpp: Fixed a warning. Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.23.4.1 retrieving revision 1.23.4.2 diff -u -b -r1.23.4.1 -r1.23.4.2 --- testsuite/MovieTester.h 6 Jun 2007 13:33:16 -0000 1.23.4.1 +++ testsuite/MovieTester.h 7 Jun 2007 12:35:09 -0000 1.23.4.2 @@ -228,6 +228,14 @@ /// bool canTestSound() const { return _sound_handler.get() != NULL; } + /// Return true if this build of MovieTester supports pixel checking + // + /// Pixel checking will be supported as long as a testing-capable render handler + /// was compiled in. Testing-capable means capable of off-screen rendering, which + /// is implementing the render_handler::initTestBuffer method. + /// + bool canTestRendering() const { return ! _testingRenderers.empty(); } + private: /// Initialize testing renderers Index: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -u -b -r1.2.4.1 -r1.2.4.2 --- testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 5 Jun 2007 14:45:43 -0000 1.2.4.1 +++ testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:35:09 -0000 1.2.4.2 @@ -46,6 +46,12 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + if ( ! tester.canTestRendering() ) + { + cout << "UNTESTED: rendering can't be tested with this build." << endl; + return EXIT_SUCCESS; // so testing doesn't abort + } + rgba red(255,0,0,255); rgba yellow(255,255,0,255); From MAILER-DAEMON Thu Jun 07 08:35:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHD5-0002Ua-Mk for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHD2-0002Qp-Cv for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHD0-0002PU-SQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHD0-0002PI-KD for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHD0-0007AO-B5 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:35:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHCz-0005Zr-Os for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:35:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHCz-0005Zl-JH for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:35:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:35:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.h testsui... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:35:25 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:35:21 Modified files: . : ChangeLog testsuite : MovieTester.h testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Don't run the pixel checking part if MovieTester can't test rendering. Raise an UNTESTED label instead, so it's reported. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3481&r2=1.3482 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3481 retrieving revision 1.3482 diff -u -b -r1.3481 -r1.3482 --- ChangeLog 7 Jun 2007 12:24:34 -0000 1.3481 +++ ChangeLog 7 Jun 2007 12:35:20 -0000 1.3482 @@ -1,3 +1,10 @@ +2007-06-06 Sandro Santilli + + * testsuite/MovieTester.h: add a canTestRendering() method. + * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: + Don't run the pixel checking part if MovieTester can't test + rendering. Raise an UNTESTED label instead, so it's reported. + 2007-06-07 Sandro Santilli * libgeometry/snappingrange.h: initialize all members in the Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- testsuite/MovieTester.h 6 Jun 2007 13:18:53 -0000 1.25 +++ testsuite/MovieTester.h 7 Jun 2007 12:35:21 -0000 1.26 @@ -228,6 +228,14 @@ /// bool canTestSound() const { return _sound_handler.get() != NULL; } + /// Return true if this build of MovieTester supports pixel checking + // + /// Pixel checking will be supported as long as a testing-capable render handler + /// was compiled in. Testing-capable means capable of off-screen rendering, which + /// is implementing the render_handler::initTestBuffer method. + /// + bool canTestRendering() const { return ! _testingRenderers.empty(); } + private: /// Initialize testing renderers Index: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 5 Jun 2007 14:40:00 -0000 1.3 +++ testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:35:21 -0000 1.4 @@ -46,6 +46,12 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + if ( ! tester.canTestRendering() ) + { + cout << "UNTESTED: rendering can't be tested with this build." << endl; + return EXIT_SUCCESS; // so testing doesn't abort + } + rgba red(255,0,0,255); rgba yellow(255,255,0,255); From MAILER-DAEMON Thu Jun 07 08:37:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHEw-0004LK-6g for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHEu-0004Jw-A7 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHEt-0004Jj-Sx for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHEt-0004Jg-QU for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHEt-0007UI-DY for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHEs-00062j-Ta for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:18 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHEs-00062g-Np for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:37:18 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all Video-EmbedSquare... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:37:20 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 12:37:18 Modified files: testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: nicer UNTESTED message CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2.4.2&r2=1.2.4.3 Patches: Index: Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.2.4.2 retrieving revision 1.2.4.3 diff -u -b -r1.2.4.2 -r1.2.4.3 --- Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:35:09 -0000 1.2.4.2 +++ Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:37:18 -0000 1.2.4.3 @@ -48,7 +48,7 @@ if ( ! tester.canTestRendering() ) { - cout << "UNTESTED: rendering can't be tested with this build." << endl; + cout << "UNTESTED: rendering of embedded video (testing not possible with this build)." << endl; return EXIT_SUCCESS; // so testing doesn't abort } From MAILER-DAEMON Thu Jun 07 08:37:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHF7-0004R7-BV for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHF5-0004Ql-GS for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHF4-0004QZ-GX for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHF4-0004QW-CU for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHF4-0007Vc-3R for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:37:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHF3-00063N-Kt for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:29 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHF3-00063K-HN for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:37:29 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all Video-EmbedSquare... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:37:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:37:29 Modified files: testsuite/misc-ming.all: Video-EmbedSquareTestRunner.cpp Log message: nicer UNTESTED message CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: Video-EmbedSquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:35:21 -0000 1.4 +++ Video-EmbedSquareTestRunner.cpp 7 Jun 2007 12:37:29 -0000 1.5 @@ -48,7 +48,7 @@ if ( ! tester.canTestRendering() ) { - cout << "UNTESTED: rendering can't be tested with this build." << endl; + cout << "UNTESTED: rendering of embedded video (testing not possible with this build)." << endl; return EXIT_SUCCESS; // so testing doesn't abort } From MAILER-DAEMON Thu Jun 07 08:38:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHGT-00056b-Es for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:38:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHGS-00055h-0i for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:38:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHGQ-00053S-1I for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:38:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHGP-00053M-UJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:38:53 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHGP-0007jp-Ac for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:38:53 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57CcnU4024739; Thu, 7 Jun 2007 14:38:51 +0200 Date: Thu, 7 Jun 2007 14:38:49 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <807268930.20070607143849@nova-sys.net> To: Tomas Groth Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... In-Reply-To: <540656.21936.qm@web34714.mail.mud.yahoo.com> References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org, strk X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:38:56 -0000 Hello Tomas, Thursday, June 7, 2007, 2:26:14 PM, you wrote: TG> I guess it originate back to when the OpenGL backend was doing the YUV->RGB TG> conversion itself (which never really worked), and it just stayed... Both AGG TG> and GL now uses RGB, but i think i understood that Cairo might prefer RGBA, TG> which i believe we could then convert to when cairo gets up to speed. TG> About what the renderers can and can't do, i'm not too sure about... Note that Flash also supports video with an extra alpha channel so RGBA should be supported by all renderers sooner or later. RGBA would be no problem for AGG. YUV is not natively supported, but anyway I think someone said there is a fast library that could do the conversion. Udo From MAILER-DAEMON Thu Jun 07 08:40:20 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHHo-0005h2-Lv for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHHm-0005gw-Tl for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHHl-0005gf-Ro for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHHl-0005gc-Kj for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:17 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHHl-0007x7-9o for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHHk-0006Ah-OQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:40:16 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHHk-0006Ae-JI for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:40:16 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:40:16 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/anaylse-results.sh [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:40:19 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 12:40:16 Modified files: . : ChangeLog testsuite : anaylse-results.sh Log message: * testsuite/anaylse-results.sh: print untested in report. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.30&r2=1.3451.2.31 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/anaylse-results.sh?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.8&r2=1.8.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.30 retrieving revision 1.3451.2.31 diff -u -b -r1.3451.2.30 -r1.3451.2.31 --- ChangeLog 7 Jun 2007 12:35:07 -0000 1.3451.2.30 +++ ChangeLog 7 Jun 2007 12:40:15 -0000 1.3451.2.31 @@ -1,5 +1,6 @@ 2007-06-06 Sandro Santilli + * testsuite/anaylse-results.sh: print untested in report. * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Don't run the pixel checking part if MovieTester can't test Index: testsuite/anaylse-results.sh =================================================================== RCS file: /sources/gnash/gnash/testsuite/anaylse-results.sh,v retrieving revision 1.8 retrieving revision 1.8.4.1 diff -u -b -r1.8 -r1.8.4.1 --- testsuite/anaylse-results.sh 10 May 2007 16:05:36 -0000 1.8 +++ testsuite/anaylse-results.sh 7 Jun 2007 12:40:16 -0000 1.8.4.1 @@ -31,6 +31,7 @@ noxfail=`grep -c "^XFAIL: " ${dir}/testrun.sum` noxpass=`grep -c "^XPASS: " ${dir}/testrun.sum` nounresolved=`grep -c "^UNRESOLVED: " ${dir}/testrun.sum` + nountested=`grep -c "^UNTESTED: " ${dir}/testrun.sum` echo -n "Test suite $dir: " if test $nofail -gt 0; then echo -n " $nofail real failures" @@ -60,6 +61,14 @@ fi total_unresolved=`expr ${total_unresolved} + ${nounresolved}` fi + if test ${nountested} -gt 0; then + if test $nofail -gt 0 -o $nopass -gt 0 -o $noxfail -gt 0 -o $nounresolved -gt 0; then + echo -n ", ${nountested} untested" + else + echo -n "${nountested} untested" + fi + total_untested=`expr ${total_untested} + ${nountested}` + fi echo done @@ -77,6 +86,9 @@ if test ${total_xfail} -gt 0; then echo " Total expected failures: ${total_xfail}" fi +if test ${total_untested} -gt 0; then + echo " Total untested: ${total_untested}" +fi echo From MAILER-DAEMON Thu Jun 07 08:40:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHHs-0005ir-PA for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHHr-0005i8-3P for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHHq-0005hi-He for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHHq-0005hf-7t for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHHp-0007yJ-Sg for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:40:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHHp-0006Ax-8i for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:40:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHHp-0006Au-2V for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:40:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:40:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/anaylse-results.sh X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:40:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:40:20 Modified files: . : ChangeLog testsuite : anaylse-results.sh Log message: * testsuite/anaylse-results.sh: print untested in report. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3482&r2=1.3483 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/anaylse-results.sh?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3482 retrieving revision 1.3483 diff -u -b -r1.3482 -r1.3483 --- ChangeLog 7 Jun 2007 12:35:20 -0000 1.3482 +++ ChangeLog 7 Jun 2007 12:40:20 -0000 1.3483 @@ -1,5 +1,6 @@ 2007-06-06 Sandro Santilli + * testsuite/anaylse-results.sh: print untested in report. * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Don't run the pixel checking part if MovieTester can't test Index: testsuite/anaylse-results.sh =================================================================== RCS file: /sources/gnash/gnash/testsuite/anaylse-results.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- testsuite/anaylse-results.sh 10 May 2007 16:05:36 -0000 1.8 +++ testsuite/anaylse-results.sh 7 Jun 2007 12:40:20 -0000 1.9 @@ -31,6 +31,7 @@ noxfail=`grep -c "^XFAIL: " ${dir}/testrun.sum` noxpass=`grep -c "^XPASS: " ${dir}/testrun.sum` nounresolved=`grep -c "^UNRESOLVED: " ${dir}/testrun.sum` + nountested=`grep -c "^UNTESTED: " ${dir}/testrun.sum` echo -n "Test suite $dir: " if test $nofail -gt 0; then echo -n " $nofail real failures" @@ -60,6 +61,14 @@ fi total_unresolved=`expr ${total_unresolved} + ${nounresolved}` fi + if test ${nountested} -gt 0; then + if test $nofail -gt 0 -o $nopass -gt 0 -o $noxfail -gt 0 -o $nounresolved -gt 0; then + echo -n ", ${nountested} untested" + else + echo -n "${nountested} untested" + fi + total_untested=`expr ${total_untested} + ${nountested}` + fi echo done @@ -77,6 +86,9 @@ if test ${total_xfail} -gt 0; then echo " Total expected failures: ${total_xfail}" fi +if test ${total_untested} -gt 0; then + echo " Total untested: ${total_untested}" +fi echo From MAILER-DAEMON Thu Jun 07 08:48:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHPF-0002Bb-ED for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:48:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHPE-0002B0-1c for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:48:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHPC-00029i-MP for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:47:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHPC-00029H-GF for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:47:58 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHPB-0000el-Mu for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:47:58 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57CljM90786; Thu, 7 Jun 2007 14:47:45 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 7 Jun 2007 14:47:45 +0200 From: strk To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... Message-ID: <20070607124745.GA90269@keybit.net> Mail-Followup-To: Udo Giacomozzi , Tomas Groth , gnash-commit@gnu.org References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> <807268930.20070607143849@nova-sys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <807268930.20070607143849@nova-sys.net> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:48:00 -0000 On Thu, Jun 07, 2007 at 02:38:49PM +0200, Udo Giacomozzi wrote: > Hello Tomas, > > Thursday, June 7, 2007, 2:26:14 PM, you wrote: > TG> I guess it originate back to when the OpenGL backend was doing the YUV->RGB > TG> conversion itself (which never really worked), and it just stayed... Both AGG > TG> and GL now uses RGB, but i think i understood that Cairo might prefer RGBA, > TG> which i believe we could then convert to when cairo gets up to speed. > TG> About what the renderers can and can't do, i'm not too sure about... > > Note that Flash also supports video with an extra alpha channel so > RGBA should be supported by all renderers sooner or later. > > RGBA would be no problem for AGG. > > YUV is not natively supported, but anyway I think someone said there > is a fast library that could do the conversion. So, do you think an RGBA (cache?) would do for all and be renderer-agnostic ? --strk; From MAILER-DAEMON Thu Jun 07 08:49:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHR6-0006Ig-QP for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:49:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHR5-0006H1-89 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:49:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHR3-0006Gn-Lp for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:49:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHR3-0006Gk-GD for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:49:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHR3-0000vJ-4U for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:49:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHR2-0006X6-Fw for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:49:52 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHR2-0006X3-9C for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:49:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 12:49:52 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:49:55 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/07 12:49:51 Modified files: . : ChangeLog Log message: Sandro is living in the past! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.31&r2=1.3451.2.32 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.31 retrieving revision 1.3451.2.32 diff -u -b -r1.3451.2.31 -r1.3451.2.32 --- ChangeLog 7 Jun 2007 12:40:15 -0000 1.3451.2.31 +++ ChangeLog 7 Jun 2007 12:49:50 -0000 1.3451.2.32 @@ -1,4 +1,4 @@ -2007-06-06 Sandro Santilli +2007-06-07 Sandro Santilli * testsuite/anaylse-results.sh: print untested in report. * testsuite/MovieTester.h: add a canTestRendering() method. From MAILER-DAEMON Thu Jun 07 08:50:14 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHRN-0006fi-TV for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHRM-0006cS-D3 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHRL-0006bx-Ub for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHRL-0006bf-Pj for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:11 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHRL-0000yL-Ev for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:11 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHRK-0006Yf-TI for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:50:10 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHRK-0006Yc-Nj for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:50:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:50:10 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:50:12 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:50:10 Modified files: . : ChangeLog testsuite : MovieTester.cpp Log message: * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED message if no renderers were initialized. This gives you a feel about how many tests are we failign to run when building with a renderer that doesn't provide testing facilitites. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3483&r2=1.3484 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.41&r2=1.42 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3483 retrieving revision 1.3484 diff -u -b -r1.3483 -r1.3484 --- ChangeLog 7 Jun 2007 12:40:20 -0000 1.3483 +++ ChangeLog 7 Jun 2007 12:50:09 -0000 1.3484 @@ -1,5 +1,9 @@ 2007-06-06 Sandro Santilli + * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED + message if no renderers were initialized. This gives you + a feel about how many tests are we failign to run when building + with a renderer that doesn't provide testing facilities. * testsuite/anaylse-results.sh: print untested in report. * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.41 retrieving revision 1.42 diff -u -b -r1.41 -r1.42 --- testsuite/MovieTester.cpp 6 Jun 2007 13:18:53 -0000 1.41 +++ testsuite/MovieTester.cpp 7 Jun 2007 12:50:10 -0000 1.42 @@ -222,6 +222,13 @@ MovieTester::checkPixel(int x, int y, unsigned radius, const rgba& color, short unsigned tolerance, const std::string& label, bool expectFailure) const { + if ( ! canTestRendering() ) + { + std::stringstream ss; + ss << "exp:" << color.toShortString() << " "; + log_msg("UNTESTED: NORENDERER: pix:%d,%d %s %s", x, y, ss.str().c_str(), label.c_str()); + } + FuzzyPixel exp(color, tolerance); const char* X=""; if ( expectFailure ) X="X"; From MAILER-DAEMON Thu Jun 07 08:50:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHRy-00072U-55 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHRw-00072O-7z for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHRu-00072C-Og for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHRu-000729-J1 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHRu-00012c-4j for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:50:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHRt-0006aj-HS for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:50:45 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHRt-0006ag-8C for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:50:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:50:45 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:50:48 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 12:50:44 Modified files: . : ChangeLog testsuite : MovieTester.cpp Log message: * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED message if no renderers were initialized. This gives you a feel about how many tests are we failign to run when building with a renderer that doesn't provide testing facilitites. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.32&r2=1.3451.2.33 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.38.4.2&r2=1.38.4.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.32 retrieving revision 1.3451.2.33 diff -u -b -r1.3451.2.32 -r1.3451.2.33 --- ChangeLog 7 Jun 2007 12:49:50 -0000 1.3451.2.32 +++ ChangeLog 7 Jun 2007 12:50:43 -0000 1.3451.2.33 @@ -1,5 +1,9 @@ 2007-06-07 Sandro Santilli + * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED + message if no renderers were initialized. This gives you + a feel about how many tests are we failign to run when building + with a renderer that doesn't provide testing facilities. * testsuite/anaylse-results.sh: print untested in report. * testsuite/MovieTester.h: add a canTestRendering() method. * testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp: Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.38.4.2 retrieving revision 1.38.4.3 diff -u -b -r1.38.4.2 -r1.38.4.3 --- testsuite/MovieTester.cpp 6 Jun 2007 13:33:16 -0000 1.38.4.2 +++ testsuite/MovieTester.cpp 7 Jun 2007 12:50:44 -0000 1.38.4.3 @@ -222,6 +222,13 @@ MovieTester::checkPixel(int x, int y, unsigned radius, const rgba& color, short unsigned tolerance, const std::string& label, bool expectFailure) const { + if ( ! canTestRendering() ) + { + std::stringstream ss; + ss << "exp:" << color.toShortString() << " "; + log_msg("UNTESTED: NORENDERER: pix:%d,%d %s %s", x, y, ss.str().c_str(), label.c_str()); + } + FuzzyPixel exp(color, tolerance); const char* X=""; if ( expectFailure ) X="X"; From MAILER-DAEMON Thu Jun 07 08:53:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHUn-0000AY-W3 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:53:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHUn-0000AT-Bj for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:53:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHUm-0000AB-R6 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:53:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHUm-0000A7-O1 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:53:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHUl-0001SW-Er for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:53:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHUf-0006gb-Bz for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:53:37 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHUf-0006gY-6u for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:53:37 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 12:53:37 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:53:45 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 12:53:37 Modified files: . : ChangeLog Log message: .. still living in the past, sorry.. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3484&r2=1.3485 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3484 retrieving revision 1.3485 diff -u -b -r1.3484 -r1.3485 --- ChangeLog 7 Jun 2007 12:50:09 -0000 1.3484 +++ ChangeLog 7 Jun 2007 12:53:36 -0000 1.3485 @@ -1,4 +1,4 @@ -2007-06-06 Sandro Santilli +2007-06-07 Sandro Santilli * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED message if no renderers were initialized. This gives you From MAILER-DAEMON Thu Jun 07 08:54:31 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHVX-0000t7-Bo for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 08:54:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHVV-0000pE-6z for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:54:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHVT-0000mL-LL for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:54:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHVT-0000mB-Fq for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:54:27 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHVS-0001at-W0 for gnash-commit@gnu.org; Thu, 07 Jun 2007 08:54:27 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57CsMU4026443; Thu, 7 Jun 2007 14:54:25 +0200 Date: Thu, 7 Jun 2007 14:54:22 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1036921828.20070607145422@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... In-Reply-To: <20070607124745.GA90269@keybit.net> References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> <807268930.20070607143849@nova-sys.net> <20070607124745.GA90269@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 12:54:29 -0000 Hello strk, Thursday, June 7, 2007, 2:47:45 PM, you wrote: >> YUV is not natively supported, but anyway I think someone said there >> is a fast library that could do the conversion. s> So, do you think an RGBA (cache?) would do for all and be s> renderer-agnostic ? Speaking for AGG: RGB (faster) *and* RGBA. It would certainly be renderer-agnostic but who knows if sometime OpenGL can do the conversion in hardware? I would leave it the way it is (just add RGBA maybe, but do we support such a codec yet?). Udo From MAILER-DAEMON Thu Jun 07 09:00:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHbJ-0003yp-HU for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:00:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHbH-0003yR-1D for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:00:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHbG-0003yE-CL for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:00:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHbF-0003y9-Pr for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:00:25 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHbF-0002V3-AL for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:00:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHbE-0006uh-QI for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:00:24 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHbE-0006ue-KM for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:00:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 13:00:24 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/usermanual/glossary.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:00:27 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/07 13:00:24 Modified files: . : ChangeLog doc/C/usermanual: glossary.xml Log message: Added a glossary to the user manual. This glossary includes all terms from the wiki page which appear in the body of the user manual, with the exception of package names which are listed in the dependency table. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.33&r2=1.3451.2.34 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/glossary.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.2.1&r2=1.1.2.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.33 retrieving revision 1.3451.2.34 diff -u -b -r1.3451.2.33 -r1.3451.2.34 --- ChangeLog 7 Jun 2007 12:50:43 -0000 1.3451.2.33 +++ ChangeLog 7 Jun 2007 13:00:23 -0000 1.3451.2.34 @@ -1,3 +1,7 @@ +2007-06-07 Ann Barcomb + + * doc/C/usermanual/glossary.xml: Created the glossary. + 2007-06-07 Sandro Santilli * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED Index: doc/C/usermanual/glossary.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/Attic/glossary.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -b -r1.1.2.1 -r1.1.2.2 --- doc/C/usermanual/glossary.xml 5 Jun 2007 15:17:23 -0000 1.1.2.1 +++ doc/C/usermanual/glossary.xml 7 Jun 2007 13:00:23 -0000 1.1.2.2 @@ -1,4 +1,221 @@ Glossary + + + + + ActionScript + + + + ActionScript, or "AS", is the scripting + language for Flash + applications. It is compiled to bytecode, which is a subset of + the SWF format. + + + + + + + AMF + + + + AMF + is the object format used by Flash + for shared objects and streaming video. + + + + + + + DocBook + + + + DocBook + is a markup language for presentation-neutral + documentation, such as manuals. + + + + + + + Doxygen + + + + Doxygen + is a documentation generator for for multiple languages + which uses comments in the source code to create stand-alone + documentation. + + + + + + + extensions + + + + A &app; extension is a plugin (not + a browser plugin) which + implements additional + functionality beyond what is covered by + Flash specification. + These are shared libraries which are loaded at runtime. + + + + + + + Flash + + + + The term Flash is used to describe both the + Adobe IDE for creating SWF + files, and the technology itself. + &app; documentation uses the latter definition. + + + + + + + GUI + + + + A GUI is a + "graphical user interface". In &app;, the GUI + library provides a wrapper for mouse and keyboard events, + menus, windowing (where available) and a drawing area. + You must choose a GUI library during the + configuration stage. + + + + + + + Klash + + + + Klash was the name given to the stand-alone + instance of &app; which used the KDE GUI. It has been replaced with + an implementation using Qt. Some documentation may incorrectly + refer to the Konqueror plugin as Klash. + The plugin was renamed Kpart. + + + + + + + Kpart + + + + Kpart is a plugin for Konqueror which is + enabled with the configuration option + --enable-klash. + + + + + + + Mesa + + + + Mesa is the free software OpenGL + implementation. &app; documentation will sometimes use the + terms 'OpenGL' and 'Mesa' interchangeably. + + + + + + + plugin + + + + The term plugin is used in &app; to + refer to both any &app; browser plugin, as well as the Firefox + plugin specifically. The Konqueror plugin is called + Kpart. Sometimes, the term is used in + an even more generic sense to refer to + extensions. + + + + + + + renderer + + + + The renderer is the subsystem of &app; + which renders content. Only one renderer may be used; it is + chosen during configuration. + + + Available renderers are: AGG, OpenGL, and Cairo. In terms of + feature completeness, AGG comes first; followed by OpenGL and + then Cairo. In most cases, AGG is preferred for performance, + except cases where it is beneficial to have hardware accelerated + rendering (for example, when you have a very slow CPU but a very + fast graphics card). In this case OpenGL should be used. + + + + + + + sound handler + + + + The sound handler is the part of &app; + which handles both event sounds and streaming sound. Audio + from external sources are also handled through the sound handler + when SDL is used. The sound handler must be selected during + configuration. + + + There are currently two sound handlers available in &app;: + SDL and Gstreamer. The SDL sound handler uses ffmpeg or + libmad for decoding mp3-audio, although it can be built without + mp3-support. The Gstreamer-sound handler uses the available + plugins to decode the audio, so it might not work if some + important plugins are missing. The SDL sound handler is + recommended. + + + + + + + SWF + + + + SWF is the file format for + Flash movies. + + + + + From MAILER-DAEMON Thu Jun 07 09:01:45 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHcW-000434-UQ for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:01:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHcU-00042q-DZ for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:01:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHcT-00042e-6B for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:01:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHcS-00042b-81 for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:01:40 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHcR-0002eY-7p for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:01:39 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57D1WF91130; Thu, 7 Jun 2007 15:01:32 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 7 Jun 2007 15:01:32 +0200 From: strk To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... Message-ID: <20070607130132.GB90269@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> <807268930.20070607143849@nova-sys.net> <20070607124745.GA90269@keybit.net> <1036921828.20070607145422@nova-sys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1036921828.20070607145422@nova-sys.net> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:01:43 -0000 On Thu, Jun 07, 2007 at 02:54:22PM +0200, Udo Giacomozzi wrote: > Hello strk, > > Thursday, June 7, 2007, 2:47:45 PM, you wrote: > >> YUV is not natively supported, but anyway I think someone said there > >> is a fast library that could do the conversion. > > s> So, do you think an RGBA (cache?) would do for all and be > s> renderer-agnostic ? > > Speaking for AGG: RGB (faster) *and* RGBA. > > It would certainly be renderer-agnostic but who knows if sometime > OpenGL can do the conversion in hardware? I would leave it the way it > is (just add RGBA maybe, but do we support such a codec yet?). Alright, then what about specifying the output format in the embedVideoDecoder::decodeFrame() method rather then in its (failed-to-be) constructor, so to remove a rendering call during parse time ? --strk; From MAILER-DAEMON Thu Jun 07 09:03:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHeJ-0005Ql-6f for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:03:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHeH-0005Nj-Rs for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:03:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHeG-0005LE-6e for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:03:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHeG-0005Kz-16 for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:03:32 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHeF-0002tp-CY for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:03:31 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l57D3RU4027595; Thu, 7 Jun 2007 15:03:29 +0200 Date: Thu, 7 Jun 2007 15:03:27 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1644326333.20070607150327@nova-sys.net> To: strk Subject: Re[2]: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... In-Reply-To: <20070607130132.GB90269@keybit.net> References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> <807268930.20070607143849@nova-sys.net> <20070607124745.GA90269@keybit.net> <1036921828.20070607145422@nova-sys.net> <20070607130132.GB90269@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:03:34 -0000 Hello strk, Thursday, June 7, 2007, 3:01:32 PM, you wrote: s> Alright, then what about specifying the output format in the s> embedVideoDecoder::decodeFrame() method rather then in its s> (failed-to-be) constructor, so to remove a rendering call during s> parse time ? Dunno. Never looked at embedVideoDecoder :) Udo From MAILER-DAEMON Thu Jun 07 09:09:31 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHk3-0001AA-4i for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:09:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHk0-000158-TA for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:09:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHjy-0000xf-Eo for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:09:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHjy-0000xS-Ac for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:09:26 -0400 Received: from web34710.mail.mud.yahoo.com ([209.191.68.159]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HwHjx-0004AD-Ui for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:09:26 -0400 Received: (qmail 95899 invoked by uid 60001); 7 Jun 2007 13:09:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.dk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=DvpKOivMwMWQ5C9HkMobRqnCk2pxQvLH6xqR2o7A6/Xb0q1e/UFuBVvMY6e6kLFT0XxXzh4HHIai2eSAqDbEXmgkyDdun06NyS9dPBi1sZVec/Ddlz6Y453PhNZazoisXyh8ZAjYEGOhqg5+S4WoJEW0kiVnnWmNKdq7CDu2w50=; X-YMail-OSG: v2hsXa8VM1n3YKX.d05S3Z4wEZ4lr8NhmkKAgqnET.C2I.IbdnK7eiqtgwJ1dB.2.i82iA-- Received: from [87.72.76.187] by web34710.mail.mud.yahoo.com via HTTP; Thu, 07 Jun 2007 15:09:24 CEST Date: Thu, 7 Jun 2007 15:09:24 +0200 (CEST) From: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... To: strk , Udo Giacomozzi In-Reply-To: <20070607130132.GB90269@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <87530.95737.qm@web34710.mail.mud.yahoo.com> X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:09:29 -0000 --- strk skrev: > > Alright, then what about specifying the output format in the > embedVideoDecoder::decodeFrame() method rather then in its > (failed-to-be) constructor, so to remove a rendering call during > parse time ? > That should be possible. But not in the release, right? cheers, Tomas From MAILER-DAEMON Thu Jun 07 09:10:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHlQ-0003XG-H6 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:10:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHlP-0003VE-8m for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:10:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHlO-0003Su-0v for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:10:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHlN-0003Sn-VG for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:10:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHlN-0004Px-Ll for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:10:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHlN-0007Ei-8u for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:10:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHlN-0007Ee-3r for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:10:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 13:10:53 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/Makefile.am [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:10:55 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 13:10:52 Modified files: . : ChangeLog server : Makefile.am Log message: * server/Makefile.am: add libgnashbackend to libserver LDADD. Fixes bug #20110. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.34&r2=1.3451.2.35 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.113&r2=1.113.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.34 retrieving revision 1.3451.2.35 diff -u -b -r1.3451.2.34 -r1.3451.2.35 --- ChangeLog 7 Jun 2007 13:00:23 -0000 1.3451.2.34 +++ ChangeLog 7 Jun 2007 13:10:51 -0000 1.3451.2.35 @@ -1,3 +1,8 @@ +2007-06-07 Sandro Santilli + + * server/Makefile.am: add libgnashbackend to libserver LDADD. + Fixes bug #20110. + 2007-06-07 Ann Barcomb * doc/C/usermanual/glossary.xml: Created the glossary. Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.113 retrieving revision 1.113.4.1 diff -u -b -r1.113 -r1.113.4.1 --- server/Makefile.am 24 May 2007 20:10:42 -0000 1.113 +++ server/Makefile.am 7 Jun 2007 13:10:52 -0000 1.113.4.1 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.113 2007/05/24 20:10:42 strk Exp $ +# $Id: Makefile.am,v 1.113.4.1 2007/06/07 13:10:52 strk Exp $ AUTOMAKE_OPTIONS = @@ -160,6 +160,7 @@ libgnashserver_la_LIBADD = \ $(top_builddir)/libbase/libgnashbase.la \ + $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/server/asobj/libgnashasobjs.la \ $(top_builddir)/server/parser/libgnashparser.la \ $(top_builddir)/server/vm/libgnashvm.la \ From MAILER-DAEMON Thu Jun 07 09:11:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHm6-00047x-SI for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHm4-00042g-Di for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHm2-0003zm-Te for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHm2-0003zX-PJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwHm2-0004Wy-DG for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwHm1-0007G1-U7 for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:11:34 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwHm1-0007Fy-NO for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:11:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 13:11:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:11:36 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 13:11:33 Modified files: . : ChangeLog server : Makefile.am Log message: * server/Makefile.am: add libgnashbackend to libserver LDADD. Fixes bug #20110. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3485&r2=1.3486 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.113&r2=1.114 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3485 retrieving revision 1.3486 diff -u -b -r1.3485 -r1.3486 --- ChangeLog 7 Jun 2007 12:53:36 -0000 1.3485 +++ ChangeLog 7 Jun 2007 13:11:32 -0000 1.3486 @@ -1,5 +1,10 @@ 2007-06-07 Sandro Santilli + * server/Makefile.am: add libgnashbackend to libserver LDADD. + Fixes bug #20110. + +2007-06-07 Sandro Santilli + * testsuite/MovieTester.cpp (checkPixel): print an UNTESTED message if no renderers were initialized. This gives you a feel about how many tests are we failign to run when building Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.113 retrieving revision 1.114 diff -u -b -r1.113 -r1.114 --- server/Makefile.am 24 May 2007 20:10:42 -0000 1.113 +++ server/Makefile.am 7 Jun 2007 13:11:33 -0000 1.114 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.113 2007/05/24 20:10:42 strk Exp $ +# $Id: Makefile.am,v 1.114 2007/06/07 13:11:33 strk Exp $ AUTOMAKE_OPTIONS = @@ -160,6 +160,7 @@ libgnashserver_la_LIBADD = \ $(top_builddir)/libbase/libgnashbase.la \ + $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/server/asobj/libgnashasobjs.la \ $(top_builddir)/server/parser/libgnashparser.la \ $(top_builddir)/server/vm/libgnashvm.la \ From MAILER-DAEMON Thu Jun 07 09:11:40 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHm8-0004AA-BX for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHm6-00047b-Jq for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHm5-000451-HU for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHm5-00044i-Br for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:37 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHm4-0004Wl-AU for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:11:37 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57DBVQ91389; Thu, 7 Jun 2007 15:11:31 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 7 Jun 2007 15:11:31 +0200 From: strk To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... Message-ID: <20070607131131.GC90269@keybit.net> Mail-Followup-To: Udo Giacomozzi , gnash-commit@gnu.org References: <20070607121929.GB89291@keybit.net> <540656.21936.qm@web34714.mail.mud.yahoo.com> <807268930.20070607143849@nova-sys.net> <20070607124745.GA90269@keybit.net> <1036921828.20070607145422@nova-sys.net> <20070607130132.GB90269@keybit.net> <1644326333.20070607150327@nova-sys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1644326333.20070607150327@nova-sys.net> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:11:38 -0000 On Thu, Jun 07, 2007 at 03:03:27PM +0200, Udo Giacomozzi wrote: > Hello strk, > > Thursday, June 7, 2007, 3:01:32 PM, you wrote: > s> Alright, then what about specifying the output format in the > s> embedVideoDecoder::decodeFrame() method rather then in its > s> (failed-to-be) constructor, so to remove a rendering call during > s> parse time ? > > Dunno. Never looked at embedVideoDecoder :) It's a thing that you construct, then you tell it which output format to give you back and which input format you'll feed it and then you call decodeFrame() on it :) Gnash is constructing/initializing it during parse time and using it on ::display. For initializing it queries the renderer for the preferred format, so it's one of those "rendering calls from parser": See https://savannah.gnu.org/task/?5837 --strk; From MAILER-DAEMON Thu Jun 07 09:12:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwHmt-0005QV-Mz for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:12:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwHmr-0005Nt-Mv for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:12:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwHmr-0005NM-A2 for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:12:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwHmr-0005NB-3M for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:12:25 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwHmq-0004hC-9j for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:12:24 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l57DCG091438; Thu, 7 Jun 2007 15:12:16 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 7 Jun 2007 15:12:16 +0200 From: strk To: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler.cpp backe... Message-ID: <20070607131216.GD90269@keybit.net> Mail-Followup-To: Tomas Groth , Udo Giacomozzi , gnash-commit@gnu.org References: <20070607130132.GB90269@keybit.net> <87530.95737.qm@web34710.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87530.95737.qm@web34710.mail.mud.yahoo.com> X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:12:25 -0000 On Thu, Jun 07, 2007 at 03:09:24PM +0200, Tomas Groth wrote: > > --- strk skrev: > > > > Alright, then what about specifying the output format in the > > embedVideoDecoder::decodeFrame() method rather then in its > > (failed-to-be) constructor, so to remove a rendering call during > > parse time ? > > > That should be possible. But not in the release, right? No no ! --strk; From MAILER-DAEMON Thu Jun 07 09:45:45 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIJ7-0000cU-BN for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:45:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIJ5-0000XN-G1 for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:45:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIJ4-0000UD-4k for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:45:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIJ3-0000Tn-UK for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:45:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwIJ3-0003h7-Em for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:45:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIJ2-0001P5-UH for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:45:41 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIJ2-0001P2-PH for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:45:40 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 13:45:40 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/gnash.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:45:43 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/07 13:45:40 Modified files: . : ChangeLog doc/C : gnash.xml Log message: This replaces the existing gnash.xml with a new one which contains only the user manual portions of the previous manual. The remaining portions of the old manual are being moved to a developer's manual. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.35&r2=1.3451.2.36 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnash.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.43&r2=1.43.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.35 retrieving revision 1.3451.2.36 diff -u -b -r1.3451.2.35 -r1.3451.2.36 --- ChangeLog 7 Jun 2007 13:10:51 -0000 1.3451.2.35 +++ ChangeLog 7 Jun 2007 13:45:38 -0000 1.3451.2.36 @@ -1,3 +1,8 @@ +2007-06-07 Ann Barcomb + + * doc/C/gnash.xml: Replace the old usermanual + developer + information with the new usermanual. + 2007-06-07 Sandro Santilli * server/Makefile.am: add libgnashbackend to libserver LDADD. Index: doc/C/gnash.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/gnash.xml,v retrieving revision 1.43 retrieving revision 1.43.4.1 diff -u -b -r1.43 -r1.43.4.1 --- doc/C/gnash.xml 29 Mar 2007 22:09:44 -0000 1.43 +++ doc/C/gnash.xml 7 Jun 2007 13:45:40 -0000 1.43.4.1 @@ -1,714 +1,89 @@ + - - - + + + Gnash"> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + ] > - -
- - + + +
+ + + - &app; Manual V&manrevision; + &app; Manual version &manrevision; 2005, 2006, 2007 Free Software Foundation - - - - GNOME Documentation Project - - - &legal; + &writers; + &revisionhistory; - - - - - Rob - Savoye - -
- rob@senecass.com -
-
-
- - -
- - - - &appname; Manual V&manrevision; - &date; - - Rob Savoye - rob@senecass.com - Updated for the alpha release. - - Free Software Foundation - - - - - This manual describes version &appversion; of &appname;. + + This manual describes version &appversion; of &appname;. +
Gnash - - Introduction - - Gnash is a free Flash movie player, which can be used - standalone or as a Firebox/Mozilla plugin. - - - - Gnash Overview - - - Gnash is originally based on the code of GameSWF, by Thatcher - Ulrich. GameSWF was the most advanced of the free flash movie player - projects, and implemented a fairly broad set of Flash Format - v7 compliance. GameSWF was unsupported public domain software however, - and not really designed as an industrial strength project which could - be used by everyone who uses Firefox. So in early December of 2005, - GameSWF was forked. After being rearranged in GNU project style, - development of the plugin was started. - - - - Gnash works as standalone player; as a Mozilla Firefox plugin; - and as a Konqueror plugin, called Klash. The plugins use the - standalone player for processing, but embed the output into - the browser. - - - - Currently, Gnash uses OpenGL to get a high quality rendered - image. There are plans to write a Cairo back-end to give Gnash - a performance boost on graphics processors without 3D hardware - acceleration. Other plans involve running Gnash in a framebuffer, - with no windowing system at all. - - - - - - Included in the Gnash is an XML-based messaging system, as - specified in the Flash specification. This lets a flash movie - communicate over a TCP/IP socket, and parse the incoming XML - message. This allows a movie be a remote control for other - devices or applications. - - - - Plugin Overview - - The plugin currently works by creating a new window in the - standalone player which is connected to the browser window in - Firefox. - - - - All movies are downloaded to /tmp and played from there. - Many web pages use IE-specific JavaScript to initiate movies, - which means that Firefox does not load the Gnash plugin. - - - - - Standalone Player Overview - - The standalone player supports both SDL and GTK2. The SDL - support is more portable, and the GTK support allows better - integration as a Firefox plugin. When using GTK, a right-button - mouse click will activate a menu which can be used to control - the movie. - - - - - Flash Support: - - - Many movies play without any difficulty in Gnash. - Gnash supports the majority of Flash - opcodes up to SWF version 7, and a wide sampling of - ActionScript classes for SWF version 7. All the core ones - are implemented, and many of the newer ones work, but may be - missing some of the methods. All unimplemented opcodes and - ActionScript classes and methods print a warning when using - -v with gnash or gprocessor. Using gprocessor -v is a quick - way to see why a movie isn't playing correctly. - - - - There are plans to work towards supporting all the SWF - version 8 and greater opcodes, as well as as implementing the - missing methods and ActionScript classes. During the first - few months of Gnash's existence as a project, most of the - focus has been towards portability issues, and getting the - plugin to work. Now that the plugin works, more focus will - be spent on catching up to full compliance with version 7 - and beyond. - - - - Currently implemented ActionScript classes are: Array, - Boolean, Date, Key, Math, Mouse, MovieClip, Number, Object, - Sound, String, XML, XMLNode, and XMLSocket. - - - - Partially implemented classes are: MovieClipLoader, - NetConnection, LocalConnection, TextField, and TextFormat. - - - - Unimplemented classes are: Accessibility, Error, Function, - LoadVars, Microphone, NetStream, Selection, SharedObject, - Stage, System, Button, Camera, Color, ContextMenu, - CustomActions, and Video. - - - Unimplemented Opcodes are: Throw, Implements, Extends, - enum_object, Try, new_method, enum_object, md length, md - substring, md chr, delete, and get target. - - - There is currently no support for FLV video, more than minimal - AMF data, or loading external jpegs. - - - - - - - - Gnash Usage - - - Gnash can be used as a standalone player or as a plugin. Using it - as a standalone player, you - can execute any flash movie from the command line by just - supplying the file name. No command line options are required to - just play the movie using the default actions. So if you type: - - - - - gnash samples/car_smash.swf - - - - It will create a window and play the movie. In this case it's a - simple animation of a car driving, swerving, and finally - crashing. - - - - - - - - - - Gnash Command Line Options - - - While by default no options are necessary, there are options - that can be used to change Gnash's basic - behavior. - - - - gnash [options] file - - - - - -h - - - Print usage information. - - - - - - -s factor - - - Scale the movie up/down by the specified factor. - - - - - - -c - - - Produce a core file instead of letting SDL trap it. By - default, SDL traps all signals, but sometimes a core file - is desired to assist with debugging. - - - - - - -d num - - - Number of milliseconds to delay in main loop. The main - loop polls continuously with a delay to adjust how long - Gnash sleeps between iterations of the - loop. The smaller the number, the higher the CPU load - gets, and of course, the more iterations of the main - command loop. - - - - - - -p - - - Run full speed (no sleep) and log frame rate. - - - - - - -a - - - Enable Actionscript debugging. - - - - - - -v - - - Be verbose; i.e. print debug messages to stdout. - - - - - - -va - - - Be verbose about movie Actions. - - - - - - -vp - - - Be verbose about parsing the movie. Warning: this can - generate a lot of text, and can affect the performance of - the movie you are playing. - - - - - - -ml bias - - - Specify the texture LOD bias (float, default is -1) This - affects the fuzziness of small objects, especially small - text. - - - - - -w - - - Write a debug log called gnash-dbg.log. This will - record of all the debug messages whether they are printed - to the screen or not. - - - - - -j - - - Specify the width of the window. This is mostly used - only by the plugin. - - - - - -k - - - Specify the height of the window. This is mostly used - only by the plugin. - - - - - - -1 - - - Play once; exit when/if movie reaches the last - frame. This is the default. - - - - - - -r [0|1|2|3] - - - 0 disables rendering and sound (good for batch tests). - - - 1 enables rendering and disables sound (default setting). - - - 2 enables sound and disables rendering. - - - 3 enables rendering and sound. - - - - - - -t sec - - - Timeout and exit after the specified number of - seconds. This is useful for movies which repeat - themselves. - - - - - - -g - - - Start Gnash with a Flash debugger console so one can set - break points or watchpoints. - - - - - - -x id - - - This specifies the X11 window ID to display - in; this is mainly used by plugins. - - - - - - -b bits - - - Bit depth of output window (for example, 16 or 32). Appropriate - bit depths depend on the renderer and GUI library used. - FIXME: add information about which depths are suitable for each - renderer. - - - - - - -u url - - - Set the _url member of the root movie. This is useful - when you download a movie and play it from a different - location. See also the -U switch. - - - - - - -U baseurl - - - Set base url for this run. URLs are resolved relative to - this base. If omitted defaults to the _url member of the - top-level movie (see the -u switch). - - - - - - -P parameter - - - Parameters are given in ParamName=Value syntax and are mostly - useful to the plugin to honour EMBED tags attributes - or explicit OBJECT PARAM tags. A common use for -P - is to provide FlashVars - (ie: -P "FlashVars=home=http://www.gnu.org"). - - - - - - - - - - Gnash Interactive Control Keys - - - While a movie is playing, there are several control - keys. These can be used to step through frames, pause the - playing, and control other actions. - - - - - CTRL-Q - - - Quit/Exit. - - - - - - CTRL-W - - - Quit/Exit. - - - - - - ESC - - - Quit/Exit. - - - - - - CTRL-P - - - Toggle Pause. - - - - - - CTRL-R - - - Restart the movie. - - - - - - CTRL-[ or kp- - - - Step back one frame. - - - - - - CTRL-] or kp+ - - - Step forward one frame. - - - - - - - - CTRL-T - - - Debug. Test the set_variable() function. - - - - - - CTRL-G - - - Debug. Test the get_variable() function. - - - - - - CTRL-M - - - Debug. Test the call_method() function. - - - - - - CTRL-B - - - Toggle the background color. - - - - - - - &gnashrc; - &debugger; - - - - &sources; - &internals; - &extend; - &appendix; - - - - - Authors - - Gnash is maintained by Rob Savoye - rob@senecass.com. Other active developers are: - Sandro Santilli, Bastiaan Jacques, Vitaly Alexeev, and Tomas - Groth. Please send all comments and suggestions to - gnash-dev@gnu.org. Please use this link to submit a - patch - or this link to file a bug - report. - I am available for consulting on a variety of renewable energy - and open source technologies. More details at http://www.senecass.com - - - - The primary author of GameSWF (which provided the initial code for - Gnash) is Thatcher Ulrich tu@tulrich.com. Other - individuals who contributed code are: Mike Shaver, Thierry Berger-Perrin, - Ignacio Castaño, Willem Kokke, Vitaly Alexeev, - Alexander Streit, and Rob Savoye. - + &introduction; - + + &usage; + &installation; + &bugreport; + &glossary; - + + &programmers; + &fdl-app;
From MAILER-DAEMON Thu Jun 07 09:47:55 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwILD-0004rS-BP for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:47:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwILC-0004r8-DX for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:47:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwILB-0004qr-0J for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:47:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwILA-0004qo-UF for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:47:52 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwILA-00049X-Gr for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:47:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIL9-0001Ws-U2 for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:47:52 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIL9-0001Wp-Lk for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:47:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 13:47:51 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/gnashrc.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:47:54 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/07 13:47:51 Modified files: . : ChangeLog Removed files: doc/C : gnashrc.xml Log message: The file has been moved to doc/C/usermanual/usage/gnashrc.xml. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.36&r2=1.3451.2.37 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnashrc.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.9&r2=0 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.36 retrieving revision 1.3451.2.37 diff -u -b -r1.3451.2.36 -r1.3451.2.37 --- ChangeLog 7 Jun 2007 13:45:38 -0000 1.3451.2.36 +++ ChangeLog 7 Jun 2007 13:47:50 -0000 1.3451.2.37 @@ -1,5 +1,7 @@ 2007-06-07 Ann Barcomb + * doc/C/gnashrc.xml: Removed file; it has been moved to + doc/C/usermanual/usage/gnashrc.xml. * doc/C/gnash.xml: Replace the old usermanual + developer information with the new usermanual. Index: doc/C/gnashrc.xml =================================================================== RCS file: doc/C/gnashrc.xml diff -N doc/C/gnashrc.xml --- doc/C/gnashrc.xml 1 Jun 2007 15:01:54 -0000 1.9 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,236 +0,0 @@ - - - User Configuration File - - - Gnash supports a configuration file which lives in the users home - directory. This file is called .gnashrc. In - this you can have default settings which will be used by Gnash - when running standalone, or as a browser plugin. Any command line - options override these values. - - - - Gnash supports three types of configuration variables. The three - types are an on/off value, a numeric value, or in the case of the - whitelist and blacklist, a list of hostnames as ASCII text. - - - - - localdomain - - - This value can be set to either on or - off, and controls the loading of - external Flash movies over a network. Traditionally this - tells Gnash to only load Flash movies from the existing domain. - - - - - - localhost - - - This value can be set to either on or - off, and controls the loading of - external Flash movies over a network. This is a stricter - version of the localdomain setting as - this allows the loading of Flash movies to the same host - Gnash is running on. - - - - - - whitelist - - - This is a list of hostnames, separated by a colon - :. If this list is not empty, - only external flash movies from these hosts are allowed to - load. - - - - - - blacklist - - - This is a list of hostnames, separated by a colon - :. External flash movies from these - domains are never allowed to load. If whitelist is present - and not empty, blacklist is not used. - - - - - - delay - - - Gnash uses a timer based event mechanism to advance frames - at a steady rate. This lets one override the default - setting in Gnash to play a movie slower or faster. - - - - - - verbosity - - - This is a numeric value which defines the default level of - verbosity from the player. - - - - - - MalformedSWFVerbosity - - - This value can be set to either on or - off, and controls whether malformed SWF errors should - be printed. If set to true, verbosity level is automatically incremented. - Set 'verbosity' to 0 afterwards to hush. - - - - - - ASCodingErrorsVerbosity - - - This value can be set to either on or - off, and controls whether ActionScript coding - errors should be printed. If set to true, verbosity level is - automatically incremented. Set 'verbosity' to 0 afterwards to hush. - - - - - - debuglog - - - This is the full path and name of debug logfile as - produced by Gnash. - - - - - - writelog - - - This value can be set to either on or - off, and controls whether a debug log - is always written by Gnash, or not at all. - - - - - - sound - - - This value can be set to either on or - off, and controls the sound of the - standalone player. By default Gnash enables playing the - sound in any Flash movie. Refer to - pluginsound - to control sound for the browser plugin. - - - - - - pluginsound - - - This value can be set to either on or - off, and controls the sound of the - player when running as a browser plugin. By default, sound - is enabled when using Gnash as a browser plugin. Refer to - sound - for information about standalone player sound control. - - - - - - EnableExtensions - - - Set to ``on'' to enable extensions. Off by default. - - - - - - StartStopped - - - Set to ``on'' to have the GUI start in "stop" mode. This is useful in particular - for the plugin, so you have to explicitly start any movie on a webpage. Off by default. - - - - - - - - My current Gnash configuration file looks like this: - - - - # - # Gnash client options - # - - # Only access remote content from our local domain - set localdomain on - - # Only access content from our local host - set localhost on - - # These sites are OK - # uncommenting the following line will allow load of external - # movies *only* from the specified hosts. - #set whitelist www.doonesbury.com:www.cnn.com:www.9news.com - - # Don't access content from these sites - set blacklist www.doubleclick.com:mochibot.com - - # The delay between timer interrupts - set delay 50 - - # The default verbosity level - set verbosity 1 - - # Be verbose about malformed SWF - set MalformedSWFVerbosity true - - # Be verbose about AS coding errors - set ASCodingErrorsVerbosity true - - # The full path to the debug log - set debuglog ~/gnash-dbg.log - - # Write a debug log to disk - set writelog on - - # Enable or Disable sound for the standalone player - set sound on - - # Enable or Disable sound for the standalone player - set pluginsound on - - - - - - From MAILER-DAEMON Thu Jun 07 09:50:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIO5-00068M-JM for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 09:50:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIO3-00065f-Mc for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:50:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIO1-00063O-PM for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:50:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIO1-000639-GS for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:50:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwINz-00052t-Tr for gnash-commit@gnu.org; Thu, 07 Jun 2007 09:50:49 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwINz-0001dk-GE for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:50:47 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwINz-0001dh-9j for gnash-commit@gnu.org; Thu, 07 Jun 2007 13:50:47 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 13:50:47 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/sources.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 13:50:52 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/07 13:50:47 Modified files: . : ChangeLog Removed files: doc/C : sources.xml Log message: The information contained in this file was moved to doc/C/usermanual/installation/sources.xml. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.37&r2=1.3451.2.38 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/sources.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.43&r2=0 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.37 retrieving revision 1.3451.2.38 diff -u -b -r1.3451.2.37 -r1.3451.2.38 --- ChangeLog 7 Jun 2007 13:47:50 -0000 1.3451.2.37 +++ ChangeLog 7 Jun 2007 13:50:45 -0000 1.3451.2.38 @@ -1,5 +1,7 @@ 2007-06-07 Ann Barcomb + * doc/C/sources.xml: Removed file; the replacement is + doc/C/usermanual/installation/sources.xml. * doc/C/gnashrc.xml: Removed file; it has been moved to doc/C/usermanual/usage/gnashrc.xml. * doc/C/gnash.xml: Replace the old usermanual + developer Index: doc/C/sources.xml =================================================================== RCS file: doc/C/sources.xml diff -N doc/C/sources.xml --- doc/C/sources.xml 31 May 2007 16:44:57 -0000 1.43 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,1714 +0,0 @@ - - Building From Source - - - Overview - - The typical process of building from source will involve - getting the source, - resolving dependencies, - configuration, - compilation, - testing, and - installation. - A simplified overview of the process would be: - - ./autogen.sh - ./configure - make - make check - make install - - - - - If you are compiling with GCC you will probably need to use a machine - with at least 128 megabytes of physical RAM; 64MB is not enough for a - couple of the files, even with swap enabled and optimisation turned off. - - - At present the Gnash source is about 16 MB to extracted and configured - and requires a total of about 100 megabytes to compile it. - - - Continue reading for detailed step-by-step instructions - of the entire procedure. - - - - - Getting The Source - - - Releases - - Tarballs of official releases can be found in the download area - of the project's GNU Savannah page at - - http://savannah.gnu.org/projects/gnash - - or under - - http://ftp.gnu.org/gnu/gnash - - - - - - CVS Access - - The latest Gnash development sources are available via anonymous CVS. - Use the following commands to check them out - (just hit return when you are prompted for the password): - - export CVS_RSH=ssh - cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/gnash co gnash - - you will then be able to update your copy from the repository using - - cd gnash - cvs update -d - - - - If you only have access to the internet via a web proxy, - you will find daily snapshots of the latest CVS tree in - - http://www.gnashdev.org/dev_snapshots - - - - - - - Code Dependencies - - - Gnash has dependencies on other packages. When installing - from a packaged release file (rpm, deb, etc.), you'll need - to install the development versions to get the tools used to - compile Gnash. The normal runtime packages installed are usually - missing the headers needed to compile Gnash. - - - - OpenGL - - Gnash can use OpenGL for rendering the images. OpenGL is a 3D - graphics package which supports hardware acceleration. You can - get the free version of OpenGL at this link: - http://www.mesa3d.org - - - - To install a binary package using apt-get (on Debian based - systems), install libgl1-mesa-dev. For RPM or Yum based - systems, install the libmesa-devel package. - - - - - - AGG - - AGG is the AntiGrain low-level 2D graphics library that can be used - instead of OpenGL. Unlike OpenGL, AGG does all rendering in software - without requiring that much floating point calculation. - - - To install a binary package using apt-get (on Debian based - systems), install libagg-dev. For RPM or Yum based - systems, install the agg-devel package. - - - - - GtkGlExt - - GtkGlExt is an optional package used to link the gtk GUI to the - opengl renderer. - Gtk enables better integration with Firefox, as well as better - event handling and higher level GUI constructs like menus and - dialog boxes. - - - To install a binary package using apt-get (on Debian based - systems), install libgtkglext1-dev. For RPM or Yum based - systems, install the gtkglext-devel package. - - - - - Pango - - Pango is a dependency of GtkGlExt, and is used for font handling. - - - To install a binary package using apt-get (on Debian based - systems), install libpango1.0-dev. For RPM or Yum based - systems, install the pango-devel package. - - - - - Atk - - Atk is a dependency of GtkGlExt, and is used for accessibility - support. - - - To install a binary package using apt-get (on Debian based - systems), install atk-dev. For RPM or Yum based - systems, install the atk-devel package. - - - - - Cairo - - Cairo is a dependency of GtkGlExt, and is used for 2D rendering. - - - To install a binary package using apt-get (on Debian based - systems), install libcairo2-dev. For RPM or Yum based - systems, install the cairo-devel package. - - - - - Boost - - Boost is a library of portable C++ classes and templates which - layer on top of STL. Boost is used for thread and mutext - handling. - - - To install a binary package using apt-get (on Debian based - systems), install libboost-thread-dev. For RPM or Yum based - systems, install the libboost-devel package. - - - - - Glib - - Glib is a dependency of GtkGlExt, and is a collection of - commonly used functions. - - - To install a binary package using apt-get (on Debian based - systems), install glib-dev. For RPM or Yum based - systems, install the glib-devel package. - - - - - Gstreamer - - Gstreamer is used for sound and video support. It is not - needed to build this release. Currently only Gstreamer version - 0.10 or higher can be used. - - - To install a binary package using apt-get (on Debian based - systems), install libgstreamer0.10-dev. For RPM or Yum based - systems, install the gstreamer-devel package. Version 0.10 or - greater will be required. - - - - - FFMPEG - - FFMPEG can also be used for sound and video support. It is not - needed to build this release, but is recommended if you want - working sound. - - - To install a binary package using apt-get (on Debian based - systems), install libavformat-dev. For RPM or Yum based - systems, install the libffmpeg-devel package. Version 0.10 or - greater will be required. - - - - - SDL - - The Simple DirectMedia Layer is a cross-platform multimedia - library designed to provide low level access to audio, - keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D - video framebuffer. You can get SDL from this link: - - http://www.libsdl.org - - - - To install a binary package using apt-get (on Debian based - systems), install libsdl1.2-dev. For RPM or Yum based - systems, install the SDL-devel package. - - - - - - PNG - - PNG is a - patent-free image format that is comparable to - GIF. - - - To install a binary package using apt-get (on Debian based - systems), install libpng12-dev. For RPM or Yum based - systems, install the libpng package. - - - - - - JPEG - - JPEG is a lossy image - format, heavily used for images because of the smaller size of - the file. - - - To install a binary package using apt-get (on Debian based - systems), install libjpeg62-dev. For RPM or Yum based - systems, install the libjpeg package. - - - - - - libxml2 - - Libxml2 is the GNOME XML parser library. This is used when - Gnash is configured with XML support. Libxml2 is used to - parse any incoming messages when using the XML or XMLSocket - ActionScript classes. You can get libxml2 from this link: - http://xmlsoft.org - - - - To install a binary package using apt-get (on Debian based - systems), install libxml2-dev. For RPM or Yum based - systems, install the libxml2-devel package. - - - - - Ogg Vorbis - - Ogg - Vorbis is a patent free audio format that is - comparable (many people say better) to MP3. This is used by - SDL to play Ogg files. You can get Ogg Vorbis from this - link: - http://www.vorbis.com/. - - - To install a binary package using apt-get (on Debian based - systems), install libogg-dev. For RPM or Yum based - systems, install the libogg package. - - - - - - libMAD - - - libMad is a high-quality MPG decoder for audio files. All - variations of the MP3 format are supported. - - http://www.underbit.com/products/mad/. You can get - libMAD from this link: http://xmlsoft.org - - - To install a binary package using apt-get (on Debian based - systems), install libmad0-dev. For RPM or Yum based - systems, install the libmad package. - - - - - - Mozilla/Firefox - - - The Mozilla development package is no longer needed to build - the plugin. The required header files are now included in - Gnash, so it builds without Mozilla or Firefox installed at - all. - - - - To install a binary package using apt-get (on Debian based - systems), install mozilla-dev or firefox-dev. For RPM or Yum - based systems, install the mozilla-devel or firefox-devel - package. - - - - - - Documentation Dependencies - - - Docbook - - - - Docbook is an industry standard XML format for technical - documentation. It is used by many projects, as there are free - software implementations of the Docbook style-sheets and - tools. It is used by both the GNOME project, and the - Linux - Documentation Project. It is customizable by using - style-sheets for each output device. Default style-sheets are - included for a variety of print formats, like PDF - and HTML. - - - You can get Docbook from this link: - - http://sourceforge.net/project/showfiles.php?group_id=21935#files. - - - To install a binary packages using apt-get (on Debian based - systems), install the docbook, docbook-xsl, docbook-xml, - docbook-dsssl,and docbook-utils packages. For RPM or Yum based - systems, install the docbook, docbook-style-xsl, - docbook-style-dsssl, and docbook-utils packages. - - - - - DocBook2X - - - DocBook2X is a software package that converts DocBook - documents into the traditional Unix man page format and the - GNU Texinfo format. It supports tables for man pages, - internationalization, and easy customization of the - output using XSLT. This package is used to convert the Gnash - documentation into HTML and - Texinfo formats. Texinfo can later be converted to - standard GNU info pages. - - - You can get DocBook2X from this link: - - http://docbook2x.sourceforge.net/. Texinfo is - available at this link: - - http://ftp.gnu.org/gnu/texinfo/. - - - To install a binary package of DocBook2X using apt-get (on - Debian based systems), install docbook2x. For RPM or Yum based - systems, install the docbook2x package. - To install a binary package of DocBook2X using apt-get (on - Debian based systems), install texinfo. For RPM or Yum based - systems, install the texinfo package. - - - - - FOP - - - FOP (Formatting Objects Processor) is the world's first print - formatter driven by XSL formatting objects (XSL-FO) and the - world's first output independent formatter. It is a - Java application that reads a formatting object - (FO) tree and renders the resulting pages to a specified - output. Output formats currently supported include PDF, PCL, - PS, SVG, XML, Print, AWT, MIF and Text. The default output - target is PDF. - - - - You can get fop from this link: - - http://xmlgraphics.apache.org/fop/. Presently only - fop version 0.20.5 works with current DocBook - tools. - - - - - Java - - - The fop processor is a Java - application, so it needs a Java runtime to work. This is - installed on many platforms by default, but unfortunately - fop doesn't work with the GCJ runtime. There is - apparently work being done on FOP to make it usable, but for - now, this means installing Sun Java. - - - - In addition to the default j2re package, you also - need to install JAI, the Java Advanced Imaging - library. You can get JAI from - this link. JAI is not required, and the - PDF file will be generated. It will just be - missing all the graphics. - - - Fop also requires an environment variable to be - set. This is JAVA_HOME. This needs to point to the top - directory where your Sun j2re is installed. If - you have any other problems with your Java installation, you - can also try adding the Sun j2re path to the - CLASSPATH environment variable. - - - - - - - Configuring The Code - - - Gnash uses GNU Autoconf ( - http://www.gnu.org/software/autoconf) for - configuration. All the standard configure options apply. - - - - The configure script is not included in the CVS - sources. It must be produced by running the - ./autogen.sh script in the top level source - directory. This script requires you have autoconf, - automake, and libtool installed. - After building this script, you can configure Gnash by running it from - the source directory like this: ./configure, or from - another directory by specifying the full path to configure. - - - - By default, `make install' will install all the files in - `/usr/local/bin', `/usr/local/lib' etc. You can specify - an installation prefix other than `/usr/local' using `--prefix', - for instance `--prefix=$HOME'. - - - - Occasionally the default paths for a development package - aren't correct. There are several options which can be used - to adjust these paths to your own setup. By default, Gnash - will look in all the standard places for these tools. - - - - A configure script can support many options, but they fall - into two main types. The first type are options to enable or - disable features. The second type is used to specify custom - paths for development packages which can't be found by the - default searching and testing. - - - - Configure Options - - - Some switches can be used at configuration time to enable or disable - various features of Gnash. The major configuration options are: - - - GUI: see --enable-gui (default is GTK) - - - Renderer: see --enable-renderer (default is AGG) - - - Media handler: see --enable-media (default is FFMPEG thru SDL sound) - - - - The smallest working standalone version is obtained with: - - ./configure --disable-debugger --disable-cygnal --disable-docbook \ - --disable-plugin --enable-media=mad --enable-gui=sdl - - - - - - --disable-debugger - - - Disable support for the Flash debugger. The debugger is - mainly of interest to Flash developers. - - - - - - --enable-dmalloc - - - Enable support for the DMalloc memory debugging tool. - - - - - - --enable-dom - - - When using the XML library, parse the messages using a - DOM based parser. This is the default. - - - - - - --enable-embedded - - - Link to Qt-embedded, don't use X. This is only used by - Klash. - - - - - - - --disable-fork - - - Disable the plugin forking the standalone player, and - using a thread for the player instead. Currently forking - the standalone player will give you the best results. - - - - - - --enable-ghelp - - - Enable support for the GNOME help system. - - - - - - --disable-glext - - - Disable using GtkGlExt, which forces the use of SDL - instead. By default if the GtkGL extension for Gtk is found - by configure, the GTK enabled GUI is built. - - - - - - --enable-gui=gtk|sdl|kde|fltk|fb - - - Select the Graphic User Interface to use (just one at a time please). - - - GTK - - The GTK+ toolkit, which is the default GUI. - Said to interwork particularly well with firefox. - - - - SDL - - Simple DirectMedia Layer, a simple and portable GUI. - Its sound facilities are used when --enable-media=ffmpeg|mad - regoardless of whether it is also in charge of the GUI. - - - - KDE - - An interface adapted to the KDE Desktop Environment. - This must be selected when building the Konqueror plugin - "klash". Furthermore, the only renderer that currently - works with KDE is opengl. - - - - FLTK - - Fast Light ToolKit, low on resource usage. - Since all build using fltk are now broken, we declare it - "for developers". - - - - FB - - The Linux Frame Buffer, also known as /dev/fb0. - AGG is the only renderer that can currently be used - with the framebuffer GUI. - - - - - - - --enable-i810-lod-bias - - - Enable fix for Intel 810 LOD bias problem. Older versions - of libMesa on the Intel i810 or i815 graphics processor - need this flag or Gnash will core dump. This has been - fixed in newer versions (summer 2005) of libMesa. - - - - - - --disable-klash - - - Disable support for Konqueror plugin. If - --enable--plugin is specified, and - support for building KDE programs is found, Klash is - built by default. This option limits the plugin to only - the Mozilla/Firefox one. - - - - - - --enable-libsuffix - - - /lib directory suffix (64,32,none=default). This is only - used by Klash. - - - - - - --enable-mac - - - Link to Qt/Mac (don't use X). This is only used by - Klash. - - - - - - --enable-media=ffmpeg|mad|gst - - - Select the specified media decoder and sound engine. - FFMPEG and MAD use the SDL sound engine; GST uses its own. - Mixing this with --enable-sound=gst is invalid. Using - ffmpeg is the default decoder. - - - You should only select one media decoder. - - - - - - --enable-plugin - - - Enable building the plugin. By default the - Mozilla Firefox plugin won't be built, even if all the required - files are found by configure. Configure - --with-plugindir= to specify where the - plugin should be installed. - - - - - - --enable-qtopia - - - Link to Qt-embedded, link to the Qtopia - Environment. This is only used by Klash. - - - - - - --enable-renderer=opengl|cairo|agg - - - Enable support for the a graphics backend. Currently - only opengl and - agg work sufficiently. OpenGL is - used when you have hardware accelerated graphics. AGG is - used when you don't have hardware accelerated - graphics. Typically most desktop machines have OpenGL - support, and most embedded systems don't. OpenGL is the - default when building Gnash, though the quality of AGG's - rendering is currently superior to OpenGL. - - - - - - --enable-sdk-install - - - Enable installing the libraries and headers as an SDK. - - - - - - --disable-shared - - - Enable installing the shared libraries and headers. - Note that the extensions mechanism may not work if shared - libraries are disabled. - - - - - - --enable-strict - - - Turn on tons of GCC compiler warnings. By default only - -Wall is used with GCC. - - - - - - --enable-testing - - - Enable testing-specific methods. - - - - - - --enable-xmlreader - - - When using the XML library, parse the messages using a - SAX based parser. - - - - - - - - - Specifying A Custom Path - - - This set of options typically use a --with-[name] - naming convention. A Prefix can often be supplied, which is - the top level directory which can be used to look for the other - sub directories. Most options of this type have two - variations, one to specify a path to the header files, and - another to specify a path to the libraries. This lets you - override the default paths configure finds, or - specify your own paths. - - - - By default, none of the options should be required unless you - want Gnash to use a specific version of a development package, - or the configure test for Gnash fails to find the - component. There are a lot of options, but Gnash has a lot of - dependencies. If you find a configure test is failing on your - machine, please submit a patch - or file a bug - report. - - - - - --x-includes=DIR - - - X include files are in DIR. - - - - - - --x-libraries=DIR - - - X library files are in DIR. - - - - - - --with-libxml=PFX - - - Prefix to where libxml is installed. - - - - - - --with-libxml-libraries=DIR - - - Directory where libxml library is installed. - - - - - - --with-libxml-includes=DIR - - - Directory where libxml header files are installed. - - - - - - --with-docbook=DIR - - - Directory where the DocBook style-sheets are installed. - - - - - - --with-sdl-prefix=PFX - - - Prefix where SDL is installed. - - - - - - --with-zlib-incl - - - Directory where zlib header is installed. - - - - - - --with-zlib-lib - - - Directory where zlib library is installed. - - - - - - --with-jpeg-incl - - - Directory where jpeg header is installed. - - - - - - --with-jpeg-lib - - - Directory where jpeg library is installed. - - - - - - --with-png-incl - - - Directory where png header is installed. - - - - - - --with-png-lib - - - Directory where png library is installed. - - - - - - --with-qt-dir - - - Directory where QT is installed. This is only used by - the Klash plugin. - - - - - - --with-qt-includes - - - Directory where the QT header files are installed. This - is only used by the Klash plugin. - - - - - - --with-qt-libraries - - - Directory where the QT libraries are installed. This is - only used by the Klash plugin. - - - - - - --with-plugindir - - - This is the directory to install the Firefox plugin in. - - - - - - --with-ming - - - Ming is used to build test cases, but not by the Gnash - player itself. - - - - - - --with-mad_incl - - - Directory where libmad header is installed. - - - - - - --with-mad_lib - - - Directory where libmad library is installed. - - - - - - --with-ogg_incl - - - Directory where the libogg headers are installed. - - - - - - --with-ogg_lib - - - Directory where the libogg library is installed. - - - - - - --with-gstreamer-incl - - - Directory where the Gstreamer headers are - installed. Gstreamer version 0.10 or greater must be used. - - - - - - --with-gstreamer-lib - - - Directory where the Gstreamer library is - installed. Gstreamer version 0.10 or greater must be used. - - - - - - --with-opengl-includes - - - Directory where OpenGL (libMesa) headers are installed. - - - - - - --with-opengl-lib - - - Directory where the OpenGL (libMesa) library is installed. - - - - - - --with-glext-incl - - - Directory where GtkGlExt headers are installed. - - - - - - --with-glext-lib - - - Directory where the GtkGlExt library is installed. - - - - - - --with-gtk2-incl - - - Directory where the Gtk2 headers are installed. - - - - - - --with-gtk2-lib - - - Directory where the Gtk2 library is installed. - - - - - - --with-cairo_incl - - - Directory where the Cairo headers are installed. - - - - - - --with-cairo-lib - - - Directory where the Cairo library is installed. - - - - - - --with-glib-incl - - - Directory where the Glib headers are installed. - - - - - - --with-glib-lib - - - Directory where the Glib library is installed. - - - - - - --with-pango-incl - - - Directory where the Pango headers are installed. - - - - - - --with-pango-lib - - - Directory where the Pango library is installed. - - - - - - --with-atk-incl - - - Directory where the ATK headers are installed. - - - - - - --with-atk-lib - - - Directory where the ATK library is installed. - - - - - - --with-pthread-incl - - - Directory where the Pthread headers are installed. - - - - - - --with-pthread-lib - - - Directory where the Pthread library is installed. - - - - - - --with-agg-incl - - - Directory where the AGG (Antigrain) headers are installed. - - - - - - --with-agg-lib - - - Directory where the AGG (Antigrain) library is installed. - - - - - - --with-ffmpeg-incl - - - Directory where the FFMPEG headers are installed. - - - - - - --with-ffmpeg-lib - - - Directory where the FFMPEG library is installed. - - - - - - --with-boost-incl - - - Directory where the Boost headers are installed. - - - - - - --with-boost-lib - - - Directory where the Boost library is installed. - - - - - - --with-curl-incl - - - Directory where the libCurl headers are installed. - - - - - - --with-curl-lib - - - Directory where the libCurl library is installed. - - - - - - - - - Influential environment variables - - - You can control other flags used for compiling using - environment variables. Set these variables before configuring, - and they will be used by the configure process instead of the - default values. - - - - - - CPPFLAGS - - - C/C++ preprocessor flags, e.g. -I[headers directory] if you have - headers in a nonstandard directory. - - - - - - CXX - - - C++ compiler command. - - - - - - CXXFLAGS - - - C++ compiler flags. - - - - - - LDFLAGS - - - linker flags, e.g. -L[library directory] if you have libraries in - a non-standard directory. - - - - - - - - Cross Compiling And Configuration - - - To cross configure and compile Gnash, you first need to build - a target system on your workstation. This includes cross - compilers for the target architecture, and typically some - system headers. You will also need libxml2, - libpng, libjpeg, - sdl, opengl, and - ogg development packages built for the target - system. - - - - If you need to build up a target system from scratch, there is - a good document and shell script at this web site: - http://frank.harvard.edu/~coldwell/toolchain/. - - - - After I built up an ARM system in /usr/arm using the shell - script from this web site, I then cross compiled all the - other libraries I needed. The fun part is trying to get - libMesa to cross compile, because it's not really set up for - that. - - - - So to build for an ARM based system on an x86 based systems, - configure like this: - - - - ../../gnash/configure --build=i686-pc-linux-gnu --host=arm-linux --prefix=/usr/local/arm/oe --disable-plugin --enable-renderer=agg --disable-shared - - - - The important options here are the ones that specify the - architectures for the build. - - - - --target - - - The target architecture. This is the architecture the - final executables are supposed to run on. - - - - - --host - - - The host architecture. This is the architecture the - executables are supposed to run on. This is usually the - same as --target except when building a - compiler as a - Canadian Cross. This is when you build a cross - compiler on a Unix machine, that runs on a - win32 machine, producing code for yet - a third architecture, like the ARM. - - - - - --build - - - This is the system this build is running on. - - - - - - - - - - - - Building Gnash - - - After managing to configure Gnash, building the code is - simple. Gnash is built using GNU make. - - - - Compiling The Code - - - After configuring, typing make will compile the - code. No options are necessary. If desired, you can redefine - the variables used by make on the command line - when invoking the program. The few flags of interest are - CFLAGS and CXXFLAGS, often used to - turn on debugging or turn off optimizing. Invoking make as in - this example would build all the code with debugging turned - on, and optimizing turned off. The default values for both of - these variables is -O2 -g. - - - make CFLAGS=-g CXXFLAGS=-g - - - - - If the compilation ends with an error, check the output of - configure and make sure nothing required to build Gnash is - missing. - - - - - Processing The Documentation - - - By default, the documentation isn't built at all. It isn't - even built when typing make install from the top - level build directory. It's only built when specified with a - specific target in the generated Makefile in the - doc/C/ sub-directory. All the documents are built in - this directory when executing a make install. - - - - There is a target for each output format, make - html, make pdf, make info, - and make man. A higher level target, make - alldocs, builds the four main formats for the - documentation. - - - - Gnash also has support to use - Doxygen to produce HTML pages documenting - the internals of Gnash. While this is not necessarily - internals documentation, it does give very useful information - about all the files, the classes, a cross reference, and other - data. - - - You need to have Doxygen installed to produce these documents. If - you do have it installed, typing make apidoc in - the doc directory will make these documents under a - sub directory of apidoc/html - - - - - Running the Tests - - - - - Using DejaGnu - - FIXME: Add a section on running tests without DejaGnu. - The easiest way to run Gnash's test suite is to install - DejaGnu. - After installing DejaGnu, run: - - make check - - - - - Increasing Verbosity - - If you encounter a problem with a test, increasing the - verbosity may make the issue easier to spot. - Additional details are visible when - RUNTESTFLAGS are used to add the - verbose and all options. - Verbose prints more information about the testing process, while - all includes details on passing tests. - - make check RUNTESTFLAGS="-v -a" - - - - - - Running Some Tests - - It is possible to run just a particular test, or - subdirectory of tests, by specifying the directory or - compiled test file. - - - Some tests rely on testsuite/Dejagnu.swf, - which in turn relies on Ming. - This file is created when you run 'make check' for the entire - testsuite, and can also be created on demand: - - make -C testsuite Dejagnu.swf - - - - In this example, the 'clip_as_button2' test is compiled and - run: - - make -C testsuite/samples clip_as_button2-TestRunner - cd testsuite/samples && ./clip_as_button2-TestRunner - - This would create and run all the tests in the directory - 'movies.all': - - make -C testsuite/movies.all check - - - - - - - Running The Tests Manually - - - You may also run test cases by hand, which can be useful if you - want to see all the debugging output from the test case. Often - the messages which come from deep within Gnash are most useful for - development. - - - - The first step is to compile the test case, which can be done - with 'make XML-v#.swf' where the '#' is replaced with the - target SWF version or versions. - For example: - - make XML-v{5,6,7,8}.swf - - - - - Movie tests - - This creates a Flash movie version of the test case, which - can be run with a standalone Flash player. For instance, - the target for SWF version 6 could be run with Gnash: - - gnash -v XML-v6.swf - - - - - - ActionScript Unit Tests - - Unit tests for ActionScript classes in 'testsuite/actionscript.all' - are run without a graphical display: - - gprocessor -v XML-v6.swf - - - - - - - - - Installation - - - Gnash installs its libraries so they can be found in the - runtime path for the Gnash executable. Unless the --prefix - option is used at configuration time, the libraries get - installed in /usr/local/lib. If you install Gnash in a - non-standard location, you have to specify this runtime path - by one of two means. - - - - - The traditional way that works on all Unix platforms is to set - the LD_LIBRARY_PATH environment variable to $prefix/lib. You - can have multiple paths in this variable as long as they are - seperated by a colon ":" character. - - - - For GNU/Linux systems, the custom path to the libraries can be - added to the /etc/ld.so.conf file. After adding the custom - path, then run (as root) the ldconfig command to - update the runtime cache. - - - - What Code Gets Installed and Where - - - Several libraries get installed, as well as the three - executables. All the libraries, libbase, libgeometry, - libgbackend, libserver, and libmozsdk get installed in the - directory pointed to by $prefix. This variable is - set by the --prefix option at configure time, and - if not specified, it defaults to /usr/local. All - the libraries get installed in $prefix/lib where - most packages also install their libraries. - - - The plugin gets installed in the plugins directory of the - version of theFirefox or Mozilla you - have the development packaged installed for. For builds from - Mozilla CVS, the default installation directory is - /usr/local/lib/firefox-[version - number]/plugins/. The default system directory used - when installing packages is - /usr/lib/mozilla/plugins. Note that you have to be - root to install files in a system directory. For - some reason when the plugin is installed in the users - $HOME/.mozilla/plugins or - $HOME/.firefox/plugins directory, unresolved - symbols from deep within Firefox appear. - - - - The executables get installed in a bin directory of - the directory specified by $prefix. Once again, - this path defaults to /usr/local/bin if a special - prefix wasn't configured in. - - - - If using a single file-system NFSmounted to - multiple platforms, you can specify an additional option, - --exec-prefix. This is where all the platform - dependent executables and libraries can get installed. - - - - - What Documentation Gets Installed and Where - - - The documentation only installs when GNOME Help support is - enabled by using --enable-ghelp. Because GNOME - help files get installed in a system directory when building - from source, you need to either change the permissions on the - destination directory, or do the install as root. - The default directory for GNOME Help files is: - /usr/local/share/gnash/doc/gnash/C/. - - - A configuration file in the Gnash source tree, - doc/C/gnash.omf is used to specify under which - menu item Gnash is listed in the GNOME Help system. - - - - - - - From MAILER-DAEMON Thu Jun 07 10:08:47 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIfO-0005U9-QK for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:08:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIfN-0005Tu-Ix for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:08:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIfM-0005Td-Q3 for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:08:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIfM-0005TW-NT for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:08:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwIfM-0008RL-BN for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:08:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIfL-0002Pu-VK for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:08:44 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIfL-0002Pq-QI for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:08:43 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 14:08:43 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C gnashrc.xml X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:08:45 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/07 14:08:43 Removed files: doc/C : gnashrc.xml Log message: File moved to usermanual/usage/gnashrc.xml CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnashrc.xml?cvsroot=gnash&r1=1.9&r2=0 Patches: Index: gnashrc.xml =================================================================== RCS file: gnashrc.xml diff -N gnashrc.xml --- gnashrc.xml 1 Jun 2007 15:01:54 -0000 1.9 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,236 +0,0 @@ - - - User Configuration File - - - Gnash supports a configuration file which lives in the users home - directory. This file is called .gnashrc. In - this you can have default settings which will be used by Gnash - when running standalone, or as a browser plugin. Any command line - options override these values. - - - - Gnash supports three types of configuration variables. The three - types are an on/off value, a numeric value, or in the case of the - whitelist and blacklist, a list of hostnames as ASCII text. - - - - - localdomain - - - This value can be set to either on or - off, and controls the loading of - external Flash movies over a network. Traditionally this - tells Gnash to only load Flash movies from the existing domain. - - - - - - localhost - - - This value can be set to either on or - off, and controls the loading of - external Flash movies over a network. This is a stricter - version of the localdomain setting as - this allows the loading of Flash movies to the same host - Gnash is running on. - - - - - - whitelist - - - This is a list of hostnames, separated by a colon - :. If this list is not empty, - only external flash movies from these hosts are allowed to - load. - - - - - - blacklist - - - This is a list of hostnames, separated by a colon - :. External flash movies from these - domains are never allowed to load. If whitelist is present - and not empty, blacklist is not used. - - - - - - delay - - - Gnash uses a timer based event mechanism to advance frames - at a steady rate. This lets one override the default - setting in Gnash to play a movie slower or faster. - - - - - - verbosity - - - This is a numeric value which defines the default level of - verbosity from the player. - - - - - - MalformedSWFVerbosity - - - This value can be set to either on or - off, and controls whether malformed SWF errors should - be printed. If set to true, verbosity level is automatically incremented. - Set 'verbosity' to 0 afterwards to hush. - - - - - - ASCodingErrorsVerbosity - - - This value can be set to either on or - off, and controls whether ActionScript coding - errors should be printed. If set to true, verbosity level is - automatically incremented. Set 'verbosity' to 0 afterwards to hush. - - - - - - debuglog - - - This is the full path and name of debug logfile as - produced by Gnash. - - - - - - writelog - - - This value can be set to either on or - off, and controls whether a debug log - is always written by Gnash, or not at all. - - - - - - sound - - - This value can be set to either on or - off, and controls the sound of the - standalone player. By default Gnash enables playing the - sound in any Flash movie. Refer to - pluginsound - to control sound for the browser plugin. - - - - - - pluginsound - - - This value can be set to either on or - off, and controls the sound of the - player when running as a browser plugin. By default, sound - is enabled when using Gnash as a browser plugin. Refer to - sound - for information about standalone player sound control. - - - - - - EnableExtensions - - - Set to ``on'' to enable extensions. Off by default. - - - - - - StartStopped - - - Set to ``on'' to have the GUI start in "stop" mode. This is useful in particular - for the plugin, so you have to explicitly start any movie on a webpage. Off by default. - - - - - - - - My current Gnash configuration file looks like this: - - - - # - # Gnash client options - # - - # Only access remote content from our local domain - set localdomain on - - # Only access content from our local host - set localhost on - - # These sites are OK - # uncommenting the following line will allow load of external - # movies *only* from the specified hosts. - #set whitelist www.doonesbury.com:www.cnn.com:www.9news.com - - # Don't access content from these sites - set blacklist www.doubleclick.com:mochibot.com - - # The delay between timer interrupts - set delay 50 - - # The default verbosity level - set verbosity 1 - - # Be verbose about malformed SWF - set MalformedSWFVerbosity true - - # Be verbose about AS coding errors - set ASCodingErrorsVerbosity true - - # The full path to the debug log - set debuglog ~/gnash-dbg.log - - # Write a debug log to disk - set writelog on - - # Enable or Disable sound for the standalone player - set sound on - - # Enable or Disable sound for the standalone player - set pluginsound on - - - - - - From MAILER-DAEMON Thu Jun 07 10:09:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIfi-0005Wm-UM for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:09:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIfh-0005Wh-Sj for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:09:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIfg-0005WV-N6 for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:09:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIfg-0005WS-K3 for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:09:04 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwIff-0008UR-Rk for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:09:04 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIff-0002RV-HO for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:09:03 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIff-0002RR-BD for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:09:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 14:09:03 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C sources.xml X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:09:06 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/07 14:09:03 Removed files: doc/C : sources.xml Log message: Information in this file was moved to usermanual/installation/sources.xml. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/sources.xml?cvsroot=gnash&r1=1.43&r2=0 Patches: Index: sources.xml =================================================================== RCS file: sources.xml diff -N sources.xml --- sources.xml 31 May 2007 16:44:57 -0000 1.43 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,1714 +0,0 @@ - - Building From Source - - - Overview - - The typical process of building from source will involve - getting the source, - resolving dependencies, - configuration, - compilation, - testing, and - installation. - A simplified overview of the process would be: - - ./autogen.sh - ./configure - make - make check - make install - - - - - If you are compiling with GCC you will probably need to use a machine - with at least 128 megabytes of physical RAM; 64MB is not enough for a - couple of the files, even with swap enabled and optimisation turned off. - - - At present the Gnash source is about 16 MB to extracted and configured - and requires a total of about 100 megabytes to compile it. - - - Continue reading for detailed step-by-step instructions - of the entire procedure. - - - - - Getting The Source - - - Releases - - Tarballs of official releases can be found in the download area - of the project's GNU Savannah page at - - http://savannah.gnu.org/projects/gnash - - or under - - http://ftp.gnu.org/gnu/gnash - - - - - - CVS Access - - The latest Gnash development sources are available via anonymous CVS. - Use the following commands to check them out - (just hit return when you are prompted for the password): - - export CVS_RSH=ssh - cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/gnash co gnash - - you will then be able to update your copy from the repository using - - cd gnash - cvs update -d - - - - If you only have access to the internet via a web proxy, - you will find daily snapshots of the latest CVS tree in - - http://www.gnashdev.org/dev_snapshots - - - - - - - Code Dependencies - - - Gnash has dependencies on other packages. When installing - from a packaged release file (rpm, deb, etc.), you'll need - to install the development versions to get the tools used to - compile Gnash. The normal runtime packages installed are usually - missing the headers needed to compile Gnash. - - - - OpenGL - - Gnash can use OpenGL for rendering the images. OpenGL is a 3D - graphics package which supports hardware acceleration. You can - get the free version of OpenGL at this link: - http://www.mesa3d.org - - - - To install a binary package using apt-get (on Debian based - systems), install libgl1-mesa-dev. For RPM or Yum based - systems, install the libmesa-devel package. - - - - - - AGG - - AGG is the AntiGrain low-level 2D graphics library that can be used - instead of OpenGL. Unlike OpenGL, AGG does all rendering in software - without requiring that much floating point calculation. - - - To install a binary package using apt-get (on Debian based - systems), install libagg-dev. For RPM or Yum based - systems, install the agg-devel package. - - - - - GtkGlExt - - GtkGlExt is an optional package used to link the gtk GUI to the - opengl renderer. - Gtk enables better integration with Firefox, as well as better - event handling and higher level GUI constructs like menus and - dialog boxes. - - - To install a binary package using apt-get (on Debian based - systems), install libgtkglext1-dev. For RPM or Yum based - systems, install the gtkglext-devel package. - - - - - Pango - - Pango is a dependency of GtkGlExt, and is used for font handling. - - - To install a binary package using apt-get (on Debian based - systems), install libpango1.0-dev. For RPM or Yum based - systems, install the pango-devel package. - - - - - Atk - - Atk is a dependency of GtkGlExt, and is used for accessibility - support. - - - To install a binary package using apt-get (on Debian based - systems), install atk-dev. For RPM or Yum based - systems, install the atk-devel package. - - - - - Cairo - - Cairo is a dependency of GtkGlExt, and is used for 2D rendering. - - - To install a binary package using apt-get (on Debian based - systems), install libcairo2-dev. For RPM or Yum based - systems, install the cairo-devel package. - - - - - Boost - - Boost is a library of portable C++ classes and templates which - layer on top of STL. Boost is used for thread and mutext - handling. - - - To install a binary package using apt-get (on Debian based - systems), install libboost-thread-dev. For RPM or Yum based - systems, install the libboost-devel package. - - - - - Glib - - Glib is a dependency of GtkGlExt, and is a collection of - commonly used functions. - - - To install a binary package using apt-get (on Debian based - systems), install glib-dev. For RPM or Yum based - systems, install the glib-devel package. - - - - - Gstreamer - - Gstreamer is used for sound and video support. It is not - needed to build this release. Currently only Gstreamer version - 0.10 or higher can be used. - - - To install a binary package using apt-get (on Debian based - systems), install libgstreamer0.10-dev. For RPM or Yum based - systems, install the gstreamer-devel package. Version 0.10 or - greater will be required. - - - - - FFMPEG - - FFMPEG can also be used for sound and video support. It is not - needed to build this release, but is recommended if you want - working sound. - - - To install a binary package using apt-get (on Debian based - systems), install libavformat-dev. For RPM or Yum based - systems, install the libffmpeg-devel package. Version 0.10 or - greater will be required. - - - - - SDL - - The Simple DirectMedia Layer is a cross-platform multimedia - library designed to provide low level access to audio, - keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D - video framebuffer. You can get SDL from this link: - - http://www.libsdl.org - - - - To install a binary package using apt-get (on Debian based - systems), install libsdl1.2-dev. For RPM or Yum based - systems, install the SDL-devel package. - - - - - - PNG - - PNG is a - patent-free image format that is comparable to - GIF. - - - To install a binary package using apt-get (on Debian based - systems), install libpng12-dev. For RPM or Yum based - systems, install the libpng package. - - - - - - JPEG - - JPEG is a lossy image - format, heavily used for images because of the smaller size of - the file. - - - To install a binary package using apt-get (on Debian based - systems), install libjpeg62-dev. For RPM or Yum based - systems, install the libjpeg package. - - - - - - libxml2 - - Libxml2 is the GNOME XML parser library. This is used when - Gnash is configured with XML support. Libxml2 is used to - parse any incoming messages when using the XML or XMLSocket - ActionScript classes. You can get libxml2 from this link: - http://xmlsoft.org - - - - To install a binary package using apt-get (on Debian based - systems), install libxml2-dev. For RPM or Yum based - systems, install the libxml2-devel package. - - - - - Ogg Vorbis - - Ogg - Vorbis is a patent free audio format that is - comparable (many people say better) to MP3. This is used by - SDL to play Ogg files. You can get Ogg Vorbis from this - link: - http://www.vorbis.com/. - - - To install a binary package using apt-get (on Debian based - systems), install libogg-dev. For RPM or Yum based - systems, install the libogg package. - - - - - - libMAD - - - libMad is a high-quality MPG decoder for audio files. All - variations of the MP3 format are supported. - - http://www.underbit.com/products/mad/. You can get - libMAD from this link: http://xmlsoft.org - - - To install a binary package using apt-get (on Debian based - systems), install libmad0-dev. For RPM or Yum based - systems, install the libmad package. - - - - - - Mozilla/Firefox - - - The Mozilla development package is no longer needed to build - the plugin. The required header files are now included in - Gnash, so it builds without Mozilla or Firefox installed at - all. - - - - To install a binary package using apt-get (on Debian based - systems), install mozilla-dev or firefox-dev. For RPM or Yum - based systems, install the mozilla-devel or firefox-devel - package. - - - - - - Documentation Dependencies - - - Docbook - - - - Docbook is an industry standard XML format for technical - documentation. It is used by many projects, as there are free - software implementations of the Docbook style-sheets and - tools. It is used by both the GNOME project, and the - Linux - Documentation Project. It is customizable by using - style-sheets for each output device. Default style-sheets are - included for a variety of print formats, like PDF - and HTML. - - - You can get Docbook from this link: - - http://sourceforge.net/project/showfiles.php?group_id=21935#files. - - - To install a binary packages using apt-get (on Debian based - systems), install the docbook, docbook-xsl, docbook-xml, - docbook-dsssl,and docbook-utils packages. For RPM or Yum based - systems, install the docbook, docbook-style-xsl, - docbook-style-dsssl, and docbook-utils packages. - - - - - DocBook2X - - - DocBook2X is a software package that converts DocBook - documents into the traditional Unix man page format and the - GNU Texinfo format. It supports tables for man pages, - internationalization, and easy customization of the - output using XSLT. This package is used to convert the Gnash - documentation into HTML and - Texinfo formats. Texinfo can later be converted to - standard GNU info pages. - - - You can get DocBook2X from this link: - - http://docbook2x.sourceforge.net/. Texinfo is - available at this link: - - http://ftp.gnu.org/gnu/texinfo/. - - - To install a binary package of DocBook2X using apt-get (on - Debian based systems), install docbook2x. For RPM or Yum based - systems, install the docbook2x package. - To install a binary package of DocBook2X using apt-get (on - Debian based systems), install texinfo. For RPM or Yum based - systems, install the texinfo package. - - - - - FOP - - - FOP (Formatting Objects Processor) is the world's first print - formatter driven by XSL formatting objects (XSL-FO) and the - world's first output independent formatter. It is a - Java application that reads a formatting object - (FO) tree and renders the resulting pages to a specified - output. Output formats currently supported include PDF, PCL, - PS, SVG, XML, Print, AWT, MIF and Text. The default output - target is PDF. - - - - You can get fop from this link: - - http://xmlgraphics.apache.org/fop/. Presently only - fop version 0.20.5 works with current DocBook - tools. - - - - - Java - - - The fop processor is a Java - application, so it needs a Java runtime to work. This is - installed on many platforms by default, but unfortunately - fop doesn't work with the GCJ runtime. There is - apparently work being done on FOP to make it usable, but for - now, this means installing Sun Java. - - - - In addition to the default j2re package, you also - need to install JAI, the Java Advanced Imaging - library. You can get JAI from - this link. JAI is not required, and the - PDF file will be generated. It will just be - missing all the graphics. - - - Fop also requires an environment variable to be - set. This is JAVA_HOME. This needs to point to the top - directory where your Sun j2re is installed. If - you have any other problems with your Java installation, you - can also try adding the Sun j2re path to the - CLASSPATH environment variable. - - - - - - - Configuring The Code - - - Gnash uses GNU Autoconf ( - http://www.gnu.org/software/autoconf) for - configuration. All the standard configure options apply. - - - - The configure script is not included in the CVS - sources. It must be produced by running the - ./autogen.sh script in the top level source - directory. This script requires you have autoconf, - automake, and libtool installed. - After building this script, you can configure Gnash by running it from - the source directory like this: ./configure, or from - another directory by specifying the full path to configure. - - - - By default, `make install' will install all the files in - `/usr/local/bin', `/usr/local/lib' etc. You can specify - an installation prefix other than `/usr/local' using `--prefix', - for instance `--prefix=$HOME'. - - - - Occasionally the default paths for a development package - aren't correct. There are several options which can be used - to adjust these paths to your own setup. By default, Gnash - will look in all the standard places for these tools. - - - - A configure script can support many options, but they fall - into two main types. The first type are options to enable or - disable features. The second type is used to specify custom - paths for development packages which can't be found by the - default searching and testing. - - - - Configure Options - - - Some switches can be used at configuration time to enable or disable - various features of Gnash. The major configuration options are: - - - GUI: see --enable-gui (default is GTK) - - - Renderer: see --enable-renderer (default is AGG) - - - Media handler: see --enable-media (default is FFMPEG thru SDL sound) - - - - The smallest working standalone version is obtained with: - - ./configure --disable-debugger --disable-cygnal --disable-docbook \ - --disable-plugin --enable-media=mad --enable-gui=sdl - - - - - - --disable-debugger - - - Disable support for the Flash debugger. The debugger is - mainly of interest to Flash developers. - - - - - - --enable-dmalloc - - - Enable support for the DMalloc memory debugging tool. - - - - - - --enable-dom - - - When using the XML library, parse the messages using a - DOM based parser. This is the default. - - - - - - --enable-embedded - - - Link to Qt-embedded, don't use X. This is only used by - Klash. - - - - - - - --disable-fork - - - Disable the plugin forking the standalone player, and - using a thread for the player instead. Currently forking - the standalone player will give you the best results. - - - - - - --enable-ghelp - - - Enable support for the GNOME help system. - - - - - - --disable-glext - - - Disable using GtkGlExt, which forces the use of SDL - instead. By default if the GtkGL extension for Gtk is found - by configure, the GTK enabled GUI is built. - - - - - - --enable-gui=gtk|sdl|kde|fltk|fb - - - Select the Graphic User Interface to use (just one at a time please). - - - GTK - - The GTK+ toolkit, which is the default GUI. - Said to interwork particularly well with firefox. - - - - SDL - - Simple DirectMedia Layer, a simple and portable GUI. - Its sound facilities are used when --enable-media=ffmpeg|mad - regoardless of whether it is also in charge of the GUI. - - - - KDE - - An interface adapted to the KDE Desktop Environment. - This must be selected when building the Konqueror plugin - "klash". Furthermore, the only renderer that currently - works with KDE is opengl. - - - - FLTK - - Fast Light ToolKit, low on resource usage. - Since all build using fltk are now broken, we declare it - "for developers". - - - - FB - - The Linux Frame Buffer, also known as /dev/fb0. - AGG is the only renderer that can currently be used - with the framebuffer GUI. - - - - - - - --enable-i810-lod-bias - - - Enable fix for Intel 810 LOD bias problem. Older versions - of libMesa on the Intel i810 or i815 graphics processor - need this flag or Gnash will core dump. This has been - fixed in newer versions (summer 2005) of libMesa. - - - - - - --disable-klash - - - Disable support for Konqueror plugin. If - --enable--plugin is specified, and - support for building KDE programs is found, Klash is - built by default. This option limits the plugin to only - the Mozilla/Firefox one. - - - - - - --enable-libsuffix - - - /lib directory suffix (64,32,none=default). This is only - used by Klash. - - - - - - --enable-mac - - - Link to Qt/Mac (don't use X). This is only used by - Klash. - - - - - - --enable-media=ffmpeg|mad|gst - - - Select the specified media decoder and sound engine. - FFMPEG and MAD use the SDL sound engine; GST uses its own. - Mixing this with --enable-sound=gst is invalid. Using - ffmpeg is the default decoder. - - - You should only select one media decoder. - - - - - - --enable-plugin - - - Enable building the plugin. By default the - Mozilla Firefox plugin won't be built, even if all the required - files are found by configure. Configure - --with-plugindir= to specify where the - plugin should be installed. - - - - - - --enable-qtopia - - - Link to Qt-embedded, link to the Qtopia - Environment. This is only used by Klash. - - - - - - --enable-renderer=opengl|cairo|agg - - - Enable support for the a graphics backend. Currently - only opengl and - agg work sufficiently. OpenGL is - used when you have hardware accelerated graphics. AGG is - used when you don't have hardware accelerated - graphics. Typically most desktop machines have OpenGL - support, and most embedded systems don't. OpenGL is the - default when building Gnash, though the quality of AGG's - rendering is currently superior to OpenGL. - - - - - - --enable-sdk-install - - - Enable installing the libraries and headers as an SDK. - - - - - - --disable-shared - - - Enable installing the shared libraries and headers. - Note that the extensions mechanism may not work if shared - libraries are disabled. - - - - - - --enable-strict - - - Turn on tons of GCC compiler warnings. By default only - -Wall is used with GCC. - - - - - - --enable-testing - - - Enable testing-specific methods. - - - - - - --enable-xmlreader - - - When using the XML library, parse the messages using a - SAX based parser. - - - - - - - - - Specifying A Custom Path - - - This set of options typically use a --with-[name] - naming convention. A Prefix can often be supplied, which is - the top level directory which can be used to look for the other - sub directories. Most options of this type have two - variations, one to specify a path to the header files, and - another to specify a path to the libraries. This lets you - override the default paths configure finds, or - specify your own paths. - - - - By default, none of the options should be required unless you - want Gnash to use a specific version of a development package, - or the configure test for Gnash fails to find the - component. There are a lot of options, but Gnash has a lot of - dependencies. If you find a configure test is failing on your - machine, please submit a patch - or file a bug - report. - - - - - --x-includes=DIR - - - X include files are in DIR. - - - - - - --x-libraries=DIR - - - X library files are in DIR. - - - - - - --with-libxml=PFX - - - Prefix to where libxml is installed. - - - - - - --with-libxml-libraries=DIR - - - Directory where libxml library is installed. - - - - - - --with-libxml-includes=DIR - - - Directory where libxml header files are installed. - - - - - - --with-docbook=DIR - - - Directory where the DocBook style-sheets are installed. - - - - - - --with-sdl-prefix=PFX - - - Prefix where SDL is installed. - - - - - - --with-zlib-incl - - - Directory where zlib header is installed. - - - - - - --with-zlib-lib - - - Directory where zlib library is installed. - - - - - - --with-jpeg-incl - - - Directory where jpeg header is installed. - - - - - - --with-jpeg-lib - - - Directory where jpeg library is installed. - - - - - - --with-png-incl - - - Directory where png header is installed. - - - - - - --with-png-lib - - - Directory where png library is installed. - - - - - - --with-qt-dir - - - Directory where QT is installed. This is only used by - the Klash plugin. - - - - - - --with-qt-includes - - - Directory where the QT header files are installed. This - is only used by the Klash plugin. - - - - - - --with-qt-libraries - - - Directory where the QT libraries are installed. This is - only used by the Klash plugin. - - - - - - --with-plugindir - - - This is the directory to install the Firefox plugin in. - - - - - - --with-ming - - - Ming is used to build test cases, but not by the Gnash - player itself. - - - - - - --with-mad_incl - - - Directory where libmad header is installed. - - - - - - --with-mad_lib - - - Directory where libmad library is installed. - - - - - - --with-ogg_incl - - - Directory where the libogg headers are installed. - - - - - - --with-ogg_lib - - - Directory where the libogg library is installed. - - - - - - --with-gstreamer-incl - - - Directory where the Gstreamer headers are - installed. Gstreamer version 0.10 or greater must be used. - - - - - - --with-gstreamer-lib - - - Directory where the Gstreamer library is - installed. Gstreamer version 0.10 or greater must be used. - - - - - - --with-opengl-includes - - - Directory where OpenGL (libMesa) headers are installed. - - - - - - --with-opengl-lib - - - Directory where the OpenGL (libMesa) library is installed. - - - - - - --with-glext-incl - - - Directory where GtkGlExt headers are installed. - - - - - - --with-glext-lib - - - Directory where the GtkGlExt library is installed. - - - - - - --with-gtk2-incl - - - Directory where the Gtk2 headers are installed. - - - - - - --with-gtk2-lib - - - Directory where the Gtk2 library is installed. - - - - - - --with-cairo_incl - - - Directory where the Cairo headers are installed. - - - - - - --with-cairo-lib - - - Directory where the Cairo library is installed. - - - - - - --with-glib-incl - - - Directory where the Glib headers are installed. - - - - - - --with-glib-lib - - - Directory where the Glib library is installed. - - - - - - --with-pango-incl - - - Directory where the Pango headers are installed. - - - - - - --with-pango-lib - - - Directory where the Pango library is installed. - - - - - - --with-atk-incl - - - Directory where the ATK headers are installed. - - - - - - --with-atk-lib - - - Directory where the ATK library is installed. - - - - - - --with-pthread-incl - - - Directory where the Pthread headers are installed. - - - - - - --with-pthread-lib - - - Directory where the Pthread library is installed. - - - - - - --with-agg-incl - - - Directory where the AGG (Antigrain) headers are installed. - - - - - - --with-agg-lib - - - Directory where the AGG (Antigrain) library is installed. - - - - - - --with-ffmpeg-incl - - - Directory where the FFMPEG headers are installed. - - - - - - --with-ffmpeg-lib - - - Directory where the FFMPEG library is installed. - - - - - - --with-boost-incl - - - Directory where the Boost headers are installed. - - - - - - --with-boost-lib - - - Directory where the Boost library is installed. - - - - - - --with-curl-incl - - - Directory where the libCurl headers are installed. - - - - - - --with-curl-lib - - - Directory where the libCurl library is installed. - - - - - - - - - Influential environment variables - - - You can control other flags used for compiling using - environment variables. Set these variables before configuring, - and they will be used by the configure process instead of the - default values. - - - - - - CPPFLAGS - - - C/C++ preprocessor flags, e.g. -I[headers directory] if you have - headers in a nonstandard directory. - - - - - - CXX - - - C++ compiler command. - - - - - - CXXFLAGS - - - C++ compiler flags. - - - - - - LDFLAGS - - - linker flags, e.g. -L[library directory] if you have libraries in - a non-standard directory. - - - - - - - - Cross Compiling And Configuration - - - To cross configure and compile Gnash, you first need to build - a target system on your workstation. This includes cross - compilers for the target architecture, and typically some - system headers. You will also need libxml2, - libpng, libjpeg, - sdl, opengl, and - ogg development packages built for the target - system. - - - - If you need to build up a target system from scratch, there is - a good document and shell script at this web site: - http://frank.harvard.edu/~coldwell/toolchain/. - - - - After I built up an ARM system in /usr/arm using the shell - script from this web site, I then cross compiled all the - other libraries I needed. The fun part is trying to get - libMesa to cross compile, because it's not really set up for - that. - - - - So to build for an ARM based system on an x86 based systems, - configure like this: - - - - ../../gnash/configure --build=i686-pc-linux-gnu --host=arm-linux --prefix=/usr/local/arm/oe --disable-plugin --enable-renderer=agg --disable-shared - - - - The important options here are the ones that specify the - architectures for the build. - - - - --target - - - The target architecture. This is the architecture the - final executables are supposed to run on. - - - - - --host - - - The host architecture. This is the architecture the - executables are supposed to run on. This is usually the - same as --target except when building a - compiler as a - Canadian Cross. This is when you build a cross - compiler on a Unix machine, that runs on a - win32 machine, producing code for yet - a third architecture, like the ARM. - - - - - --build - - - This is the system this build is running on. - - - - - - - - - - - - Building Gnash - - - After managing to configure Gnash, building the code is - simple. Gnash is built using GNU make. - - - - Compiling The Code - - - After configuring, typing make will compile the - code. No options are necessary. If desired, you can redefine - the variables used by make on the command line - when invoking the program. The few flags of interest are - CFLAGS and CXXFLAGS, often used to - turn on debugging or turn off optimizing. Invoking make as in - this example would build all the code with debugging turned - on, and optimizing turned off. The default values for both of - these variables is -O2 -g. - - - make CFLAGS=-g CXXFLAGS=-g - - - - - If the compilation ends with an error, check the output of - configure and make sure nothing required to build Gnash is - missing. - - - - - Processing The Documentation - - - By default, the documentation isn't built at all. It isn't - even built when typing make install from the top - level build directory. It's only built when specified with a - specific target in the generated Makefile in the - doc/C/ sub-directory. All the documents are built in - this directory when executing a make install. - - - - There is a target for each output format, make - html, make pdf, make info, - and make man. A higher level target, make - alldocs, builds the four main formats for the - documentation. - - - - Gnash also has support to use - Doxygen to produce HTML pages documenting - the internals of Gnash. While this is not necessarily - internals documentation, it does give very useful information - about all the files, the classes, a cross reference, and other - data. - - - You need to have Doxygen installed to produce these documents. If - you do have it installed, typing make apidoc in - the doc directory will make these documents under a - sub directory of apidoc/html - - - - - Running the Tests - - - - - Using DejaGnu - - FIXME: Add a section on running tests without DejaGnu. - The easiest way to run Gnash's test suite is to install - DejaGnu. - After installing DejaGnu, run: - - make check - - - - - Increasing Verbosity - - If you encounter a problem with a test, increasing the - verbosity may make the issue easier to spot. - Additional details are visible when - RUNTESTFLAGS are used to add the - verbose and all options. - Verbose prints more information about the testing process, while - all includes details on passing tests. - - make check RUNTESTFLAGS="-v -a" - - - - - - Running Some Tests - - It is possible to run just a particular test, or - subdirectory of tests, by specifying the directory or - compiled test file. - - - Some tests rely on testsuite/Dejagnu.swf, - which in turn relies on Ming. - This file is created when you run 'make check' for the entire - testsuite, and can also be created on demand: - - make -C testsuite Dejagnu.swf - - - - In this example, the 'clip_as_button2' test is compiled and - run: - - make -C testsuite/samples clip_as_button2-TestRunner - cd testsuite/samples && ./clip_as_button2-TestRunner - - This would create and run all the tests in the directory - 'movies.all': - - make -C testsuite/movies.all check - - - - - - - Running The Tests Manually - - - You may also run test cases by hand, which can be useful if you - want to see all the debugging output from the test case. Often - the messages which come from deep within Gnash are most useful for - development. - - - - The first step is to compile the test case, which can be done - with 'make XML-v#.swf' where the '#' is replaced with the - target SWF version or versions. - For example: - - make XML-v{5,6,7,8}.swf - - - - - Movie tests - - This creates a Flash movie version of the test case, which - can be run with a standalone Flash player. For instance, - the target for SWF version 6 could be run with Gnash: - - gnash -v XML-v6.swf - - - - - - ActionScript Unit Tests - - Unit tests for ActionScript classes in 'testsuite/actionscript.all' - are run without a graphical display: - - gprocessor -v XML-v6.swf - - - - - - - - - Installation - - - Gnash installs its libraries so they can be found in the - runtime path for the Gnash executable. Unless the --prefix - option is used at configuration time, the libraries get - installed in /usr/local/lib. If you install Gnash in a - non-standard location, you have to specify this runtime path - by one of two means. - - - - - The traditional way that works on all Unix platforms is to set - the LD_LIBRARY_PATH environment variable to $prefix/lib. You - can have multiple paths in this variable as long as they are - seperated by a colon ":" character. - - - - For GNU/Linux systems, the custom path to the libraries can be - added to the /etc/ld.so.conf file. After adding the custom - path, then run (as root) the ldconfig command to - update the runtime cache. - - - - What Code Gets Installed and Where - - - Several libraries get installed, as well as the three - executables. All the libraries, libbase, libgeometry, - libgbackend, libserver, and libmozsdk get installed in the - directory pointed to by $prefix. This variable is - set by the --prefix option at configure time, and - if not specified, it defaults to /usr/local. All - the libraries get installed in $prefix/lib where - most packages also install their libraries. - - - The plugin gets installed in the plugins directory of the - version of theFirefox or Mozilla you - have the development packaged installed for. For builds from - Mozilla CVS, the default installation directory is - /usr/local/lib/firefox-[version - number]/plugins/. The default system directory used - when installing packages is - /usr/lib/mozilla/plugins. Note that you have to be - root to install files in a system directory. For - some reason when the plugin is installed in the users - $HOME/.mozilla/plugins or - $HOME/.firefox/plugins directory, unresolved - symbols from deep within Firefox appear. - - - - The executables get installed in a bin directory of - the directory specified by $prefix. Once again, - this path defaults to /usr/local/bin if a special - prefix wasn't configured in. - - - - If using a single file-system NFSmounted to - multiple platforms, you can specify an additional option, - --exec-prefix. This is where all the platform - dependent executables and libraries can get installed. - - - - - What Documentation Gets Installed and Where - - - The documentation only installs when GNOME Help support is - enabled by using --enable-ghelp. Because GNOME - help files get installed in a system directory when building - from source, you need to either change the permissions on the - destination directory, or do the install as root. - The default directory for GNOME Help files is: - /usr/local/share/gnash/doc/gnash/C/. - - - A configuration file in the Gnash source tree, - doc/C/gnash.omf is used to specify under which - menu item Gnash is listed in the GNOME Help system. - - - - - - - From MAILER-DAEMON Thu Jun 07 10:11:32 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIi4-0005yf-Bp for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:11:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIi2-0005yU-FM for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:11:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIi1-0005y6-0f for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:11:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIi0-0005y3-QX for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:11:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwIi0-0000TI-0x for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:11:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIhz-0002Xv-NA for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:11:27 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIhz-0002Xq-IB for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:11:27 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 14:11:27 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/gnash.xml doc/C/usermanua... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:11:30 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/07 14:11:27 Modified files: . : ChangeLog doc/C : gnash.xml doc/C/usermanual: installation.xml usage.xml doc/C/usermanual/installation: building.xml code_dependencies.xml custompath_configuration.xml documentation_dependencies.xml feature_configuration.xml install.xml testing_dependencies.xml Log message: This commit brings all recent documentation commits in branch release-8-0-0 to head. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3486&r2=1.3487 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnash.xml?cvsroot=gnash&r1=1.43&r2=1.44 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation.xml?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/usage.xml?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/building.xml?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/code_dependencies.xml?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/custompath_configuration.xml?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/documentation_dependencies.xml?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/feature_configuration.xml?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/install.xml?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/testing_dependencies.xml?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3486 retrieving revision 1.3487 diff -u -b -r1.3486 -r1.3487 --- ChangeLog 7 Jun 2007 13:11:32 -0000 1.3486 +++ ChangeLog 7 Jun 2007 14:11:25 -0000 1.3487 @@ -1,3 +1,34 @@ +2007-06-07 Ann Barcomb + + * doc/C/usermanual/installation/building.xml: mention that + GNOME help is a possible documentation make target. Completed + instructions for building documentation; added instructions for + testing from old manual. + * doc/C/usermanual/installation/feature_configuration.xml: The + default renderer isn't AGG. FLTK works. Spelling fixes. + Comment out TODO/FIXME sections, so that they are not visible + to users, but can still be searched. + * doc/C/usermanual/installation.xml: Changed the title of this + section. + * doc/C/usermanual/installation/install.xml: Added information on + where Gnash installs. + * doc/C/usermanual/installation/custompath_configuration.xml, + doc/C/usermanual/usage.xml: Comment out TODO/FIXME sections, + so that they are not visible to users, but can still be searched. + * doc/C/usermanual/installation/testing_dependencies.xml, + doc/C/usermanual/installation/documentation_dependencies.xml, + doc/C/usermanual/installation/code_dependencies.xml: Resolved + TODO items in the dependency tables (package names). + * doc/C/usermanual/bugreport.xml: Described how to make a bug + report. + * doc/C/usermanual/glossary.xml: Created the glossary. + * doc/C/sources.xml: Removed file; the replacement is + doc/C/usermanual/installation/sources.xml. + * doc/C/gnashrc.xml: Removed file; it has been moved to + doc/C/usermanual/usage/gnashrc.xml. + * doc/C/gnash.xml: Replace the old usermanual + developer + information with the new usermanual. + 2007-06-07 Sandro Santilli * server/Makefile.am: add libgnashbackend to libserver LDADD. Index: doc/C/gnash.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/gnash.xml,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- doc/C/gnash.xml 29 Mar 2007 22:09:44 -0000 1.43 +++ doc/C/gnash.xml 7 Jun 2007 14:11:26 -0000 1.44 @@ -1,714 +1,89 @@ + - - - + + + Gnash"> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + ] > - -
- - + + +
+ + + - &app; Manual V&manrevision; + &app; Manual version &manrevision; 2005, 2006, 2007 Free Software Foundation - - - - GNOME Documentation Project - - - &legal; + &writers; + &revisionhistory; - - - - - Rob - Savoye - -
- rob@senecass.com -
-
-
- - -
- - - - &appname; Manual V&manrevision; - &date; - - Rob Savoye - rob@senecass.com - Updated for the alpha release. - - Free Software Foundation - - - - - This manual describes version &appversion; of &appname;. + + This manual describes version &appversion; of &appname;. +
Gnash - - Introduction - - Gnash is a free Flash movie player, which can be used - standalone or as a Firebox/Mozilla plugin. - - - - Gnash Overview - - - Gnash is originally based on the code of GameSWF, by Thatcher - Ulrich. GameSWF was the most advanced of the free flash movie player - projects, and implemented a fairly broad set of Flash Format - v7 compliance. GameSWF was unsupported public domain software however, - and not really designed as an industrial strength project which could - be used by everyone who uses Firefox. So in early December of 2005, - GameSWF was forked. After being rearranged in GNU project style, - development of the plugin was started. - - - - Gnash works as standalone player; as a Mozilla Firefox plugin; - and as a Konqueror plugin, called Klash. The plugins use the - standalone player for processing, but embed the output into - the browser. - - - - Currently, Gnash uses OpenGL to get a high quality rendered - image. There are plans to write a Cairo back-end to give Gnash - a performance boost on graphics processors without 3D hardware - acceleration. Other plans involve running Gnash in a framebuffer, - with no windowing system at all. - - - - - - Included in the Gnash is an XML-based messaging system, as - specified in the Flash specification. This lets a flash movie - communicate over a TCP/IP socket, and parse the incoming XML - message. This allows a movie be a remote control for other - devices or applications. - - - - Plugin Overview - - The plugin currently works by creating a new window in the - standalone player which is connected to the browser window in - Firefox. - - - - All movies are downloaded to /tmp and played from there. - Many web pages use IE-specific JavaScript to initiate movies, - which means that Firefox does not load the Gnash plugin. - - - - - Standalone Player Overview - - The standalone player supports both SDL and GTK2. The SDL - support is more portable, and the GTK support allows better - integration as a Firefox plugin. When using GTK, a right-button - mouse click will activate a menu which can be used to control - the movie. - - - - - Flash Support: - - - Many movies play without any difficulty in Gnash. - Gnash supports the majority of Flash - opcodes up to SWF version 7, and a wide sampling of - ActionScript classes for SWF version 7. All the core ones - are implemented, and many of the newer ones work, but may be - missing some of the methods. All unimplemented opcodes and - ActionScript classes and methods print a warning when using - -v with gnash or gprocessor. Using gprocessor -v is a quick - way to see why a movie isn't playing correctly. - - - - There are plans to work towards supporting all the SWF - version 8 and greater opcodes, as well as as implementing the - missing methods and ActionScript classes. During the first - few months of Gnash's existence as a project, most of the - focus has been towards portability issues, and getting the - plugin to work. Now that the plugin works, more focus will - be spent on catching up to full compliance with version 7 - and beyond. - - - - Currently implemented ActionScript classes are: Array, - Boolean, Date, Key, Math, Mouse, MovieClip, Number, Object, - Sound, String, XML, XMLNode, and XMLSocket. - - - - Partially implemented classes are: MovieClipLoader, - NetConnection, LocalConnection, TextField, and TextFormat. - - - - Unimplemented classes are: Accessibility, Error, Function, - LoadVars, Microphone, NetStream, Selection, SharedObject, - Stage, System, Button, Camera, Color, ContextMenu, - CustomActions, and Video. - - - Unimplemented Opcodes are: Throw, Implements, Extends, - enum_object, Try, new_method, enum_object, md length, md - substring, md chr, delete, and get target. - - - There is currently no support for FLV video, more than minimal - AMF data, or loading external jpegs. - - - - - - - - Gnash Usage - - - Gnash can be used as a standalone player or as a plugin. Using it - as a standalone player, you - can execute any flash movie from the command line by just - supplying the file name. No command line options are required to - just play the movie using the default actions. So if you type: - - - - - gnash samples/car_smash.swf - - - - It will create a window and play the movie. In this case it's a - simple animation of a car driving, swerving, and finally - crashing. - - - - - - - - - - Gnash Command Line Options - - - While by default no options are necessary, there are options - that can be used to change Gnash's basic - behavior. - - - - gnash [options] file - - - - - -h - - - Print usage information. - - - - - - -s factor - - - Scale the movie up/down by the specified factor. - - - - - - -c - - - Produce a core file instead of letting SDL trap it. By - default, SDL traps all signals, but sometimes a core file - is desired to assist with debugging. - - - - - - -d num - - - Number of milliseconds to delay in main loop. The main - loop polls continuously with a delay to adjust how long - Gnash sleeps between iterations of the - loop. The smaller the number, the higher the CPU load - gets, and of course, the more iterations of the main - command loop. - - - - - - -p - - - Run full speed (no sleep) and log frame rate. - - - - - - -a - - - Enable Actionscript debugging. - - - - - - -v - - - Be verbose; i.e. print debug messages to stdout. - - - - - - -va - - - Be verbose about movie Actions. - - - - - - -vp - - - Be verbose about parsing the movie. Warning: this can - generate a lot of text, and can affect the performance of - the movie you are playing. - - - - - - -ml bias - - - Specify the texture LOD bias (float, default is -1) This - affects the fuzziness of small objects, especially small - text. - - - - - -w - - - Write a debug log called gnash-dbg.log. This will - record of all the debug messages whether they are printed - to the screen or not. - - - - - -j - - - Specify the width of the window. This is mostly used - only by the plugin. - - - - - -k - - - Specify the height of the window. This is mostly used - only by the plugin. - - - - - - -1 - - - Play once; exit when/if movie reaches the last - frame. This is the default. - - - - - - -r [0|1|2|3] - - - 0 disables rendering and sound (good for batch tests). - - - 1 enables rendering and disables sound (default setting). - - - 2 enables sound and disables rendering. - - - 3 enables rendering and sound. - - - - - - -t sec - - - Timeout and exit after the specified number of - seconds. This is useful for movies which repeat - themselves. - - - - - - -g - - - Start Gnash with a Flash debugger console so one can set - break points or watchpoints. - - - - - - -x id - - - This specifies the X11 window ID to display - in; this is mainly used by plugins. - - - - - - -b bits - - - Bit depth of output window (for example, 16 or 32). Appropriate - bit depths depend on the renderer and GUI library used. - FIXME: add information about which depths are suitable for each - renderer. - - - - - - -u url - - - Set the _url member of the root movie. This is useful - when you download a movie and play it from a different - location. See also the -U switch. - - - - - - -U baseurl - - - Set base url for this run. URLs are resolved relative to - this base. If omitted defaults to the _url member of the - top-level movie (see the -u switch). - - - - - - -P parameter - - - Parameters are given in ParamName=Value syntax and are mostly - useful to the plugin to honour EMBED tags attributes - or explicit OBJECT PARAM tags. A common use for -P - is to provide FlashVars - (ie: -P "FlashVars=home=http://www.gnu.org"). - - - - - - - - - - Gnash Interactive Control Keys - - - While a movie is playing, there are several control - keys. These can be used to step through frames, pause the - playing, and control other actions. - - - - - CTRL-Q - - - Quit/Exit. - - - - - - CTRL-W - - - Quit/Exit. - - - - - - ESC - - - Quit/Exit. - - - - - - CTRL-P - - - Toggle Pause. - - - - - - CTRL-R - - - Restart the movie. - - - - - - CTRL-[ or kp- - - - Step back one frame. - - - - - - CTRL-] or kp+ - - - Step forward one frame. - - - - - - - - CTRL-T - - - Debug. Test the set_variable() function. - - - - - - CTRL-G - - - Debug. Test the get_variable() function. - - - - - - CTRL-M - - - Debug. Test the call_method() function. - - - - - - CTRL-B - - - Toggle the background color. - - - - - - - &gnashrc; - &debugger; - - - - &sources; - &internals; - &extend; - &appendix; - - - - - Authors - - Gnash is maintained by Rob Savoye - rob@senecass.com. Other active developers are: - Sandro Santilli, Bastiaan Jacques, Vitaly Alexeev, and Tomas - Groth. Please send all comments and suggestions to - gnash-dev@gnu.org. Please use this link to submit a - patch - or this link to file a bug - report. - I am available for consulting on a variety of renewable energy - and open source technologies. More details at http://www.senecass.com - - - - The primary author of GameSWF (which provided the initial code for - Gnash) is Thatcher Ulrich tu@tulrich.com. Other - individuals who contributed code are: Mike Shaver, Thierry Berger-Perrin, - Ignacio Castaño, Willem Kokke, Vitaly Alexeev, - Alexander Streit, and Rob Savoye. - + &introduction; - + + &usage; + &installation; + &bugreport; + &glossary; - + + &programmers; + &fdl-app;
Index: doc/C/usermanual/installation.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- doc/C/usermanual/installation.xml 27 May 2007 09:00:29 -0000 1.2 +++ doc/C/usermanual/installation.xml 7 Jun 2007 14:11:26 -0000 1.3 @@ -1,5 +1,5 @@ - Installing &app; + Installing and Configuring &app; There are two ways of installing &app;: Index: doc/C/usermanual/usage.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/usage.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/usage.xml 22 May 2007 13:48:09 -0000 1.1 +++ doc/C/usermanual/usage.xml 7 Jun 2007 14:11:26 -0000 1.2 @@ -1,5 +1,5 @@ - &app; Usage + Using &app; &app; can be used as a standalone player or as a plugin. Using it @@ -245,8 +245,10 @@ Bit depth of output window (for example, 16 or 32). Appropriate bit depths depend on the renderer and GUI library used. - FIXME: add information about which depths are suitable for each + Index: doc/C/usermanual/installation/building.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/building.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/installation/building.xml 27 May 2007 09:00:29 -0000 1.1 +++ doc/C/usermanual/installation/building.xml 7 Jun 2007 14:11:26 -0000 1.2 @@ -57,14 +57,147 @@ documentation. The available output formats are: html, pdf, info, man, and alldocs. - alldocs will build all of the other four output - formats. For example, to create HTML output, type: + It is also possible to output GNOME help if + the configure option + --enable-ghelp was used. + The alldocs target will build all output formats + except GNOME help. + For example, to create HTML output, type: make html - TODO + + &app; also uses Doxygen to produce HTML + documentation of &app; internals. You must have Doxygen installed + to produce this documentation, which is built from the + doc directory with the command (documents + will be placed in the subdirectory apidoc/html): + + make apidoc + + + + Running the Tests + + + If a test fails, please report it by following the + instructions for reporting a bug. + + + + Using DejaGnu + + + + The easiest way to run &app;'s test suite is to install + DejaGnu. + After installing DejaGnu, run: + + make check + + + + + Increasing Verbosity + + If you encounter a problem with a test, increasing the + verbosity may make the issue easier to spot. + Additional details are visible when + RUNTESTFLAGS are used to add the + verbose and all options. + Verbose prints more information about the testing process, while + all includes details on passing tests. + + make check RUNTESTFLAGS="-v -a" + + + + + + Running Some Tests + + It is possible to run just a particular test, or + subdirectory of tests, by specifying the directory or + compiled test file. + + + Some tests rely on testsuite/Dejagnu.swf, + which in turn relies on Ming. + This file is created when you run 'make check' for the entire + testsuite, and can also be created on demand: + + make -C testsuite Dejagnu.swf + + + + In this example, the 'clip_as_button2' test is compiled and + run: + + make -C testsuite/samples clip_as_button2-TestRunner + cd testsuite/samples && ./clip_as_button2-TestRunner + + This would create and run all the tests in the directory + movies.all: + + make -C testsuite/movies.all check + + + + + + + Running The Tests Manually + + + You may also run test cases by hand, which can be useful if you + want to see all the debugging output from the test case. Often + the messages which come from deep within &app; are most useful for + development. + + + + The first step is to compile the test case, which can be done + with make XML-v#.swf where the '#' is replaced + with the target SWF version or versions. + For example: + + make XML-v{5,6,7,8}.swf + + + + + Movie tests + + This creates a Flash movie version of the test case, which + can be run with a standalone Flash player. For instance, + the target for SWF version 6 could be run with &app;: + + gnash -v XML-v6.swf + + + + + + ActionScript Unit Tests + + Unit tests for ActionScript classes in 'testsuite/actionscript.all' + are run without a graphical display: + + gprocessor -v XML-v6.swf + + + + + + + + Index: doc/C/usermanual/installation/code_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/code_dependencies.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- doc/C/usermanual/installation/code_dependencies.xml 26 May 2007 10:45:16 -0000 1.2 +++ doc/C/usermanual/installation/code_dependencies.xml 7 Jun 2007 14:11:26 -0000 1.3 @@ -75,7 +75,7 @@ &app; requires the installation of at least one renderer. AGG is considered the best - supported renderer for &app; + supported renderer for &app;. libagg-dev agg-devel @@ -194,8 +194,8 @@ GUI library. FLTK may be used in conjunction with the Cairo and AGG renderers. - No distribution packages are available - No distribution packages are available + No distribution packages are available. + No distribution packages are available. @@ -319,8 +319,9 @@ This library is used for URL downloading. - TODO - TODO + libcurl4-gnutls + libcurl + Index: doc/C/usermanual/installation/custompath_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/custompath_configuration.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- doc/C/usermanual/installation/custompath_configuration.xml 26 May 2007 10:42:50 -0000 1.2 +++ doc/C/usermanual/installation/custompath_configuration.xml 7 Jun 2007 14:11:26 -0000 1.3 @@ -9,7 +9,7 @@ The following custom path options are available: -TODO - review this section + Index: doc/C/usermanual/installation/documentation_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/documentation_dependencies.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- doc/C/usermanual/installation/documentation_dependencies.xml 27 May 2007 09:03:45 -0000 1.2 +++ doc/C/usermanual/installation/documentation_dependencies.xml 7 Jun 2007 14:11:26 -0000 1.3 @@ -43,8 +43,10 @@ &app; documentation is written in Docbook. - TODO - TODO + docbook-utils and + docbook-dsssl + docbook-dtd41-sgml and + docbook-style-dsssl @@ -99,8 +101,8 @@ FOP is required for PDF output. - TODO - TODO + fop + fop Index: doc/C/usermanual/installation/feature_configuration.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/feature_configuration.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- doc/C/usermanual/installation/feature_configuration.xml 26 May 2007 10:42:51 -0000 1.4 +++ doc/C/usermanual/installation/feature_configuration.xml 7 Jun 2007 14:11:26 -0000 1.5 @@ -14,7 +14,7 @@ --enable-renderer allows a renderer to be -chosen. The default renderer is AGG. +chosen. The default renderer is OpenGL. @@ -27,7 +27,7 @@ A complete list of available features follows. -TODO - review this section + @@ -243,7 +243,7 @@ used when you don't have hardware accelerated graphics. Typically most desktop machines have OpenGL support, and most embedded systems don't. OpenGl is the - default when building Gnash, though the quality of AGG's + default when building Gnash, although the quality of AGG's rendering is currently superior to OpenGL. Index: doc/C/usermanual/installation/install.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/install.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/installation/install.xml 27 May 2007 09:01:58 -0000 1.1 +++ doc/C/usermanual/installation/install.xml 7 Jun 2007 14:11:26 -0000 1.2 @@ -1 +1,110 @@ Installation + + + Installation is done with the command: + + make install + + + + + &app; installs a number of libraries, + namely: libbase, + libgeometry, libbackend, + libserver, and libmozsdk. + Executables + consist of the (optional) plugin, gprocessor, + cygnal, and gnash. + Documentation may also be installed. + The installation location is controlled with the + --prefix configure + option. + + + + Note that if you are using a single file-system NFS + mounted to multiple platforms, the + configuration option + --exec-prefix may be used to specify where + platform-dependent executables and libraries are installed. + + + + Libraries + + + Installed libraries are located in + /usr/local/lib by default. + If the --prefix option was used in + configuration, the libraries will + be installed in the directory lib inside the + path you specified. If the libraries are stored in a non-standard + location, you need to identify the path in one of two ways. + + + + The traditional way to do this on UNIX + platforms is to set the LD_LIBRARY_PATH variable + to the path plus /lib. For example, if you + installed in /home/gnash, the + LD_LIBRARY_PATH path would be + /home/gnash/lib. Multiple paths are delimited + with a colon (':'). + + + + GNU/Linux allows the custom path to be added to + /etc/ld.so.conf. After adding the path, + run ldconfig as root to update the runtime + cache. + + + + + Executables + + + The Mozilla plugin is installed into the plugins + directory of the system + installed Firefox or Mozilla, + if development packages are installed for either of them. + Otherwise, the default is /usr/lib/mozilla/plugins. + You may also specify the plugin installation directory by using the + --with-plugindir option + to configure. + + + + The remaining executables will be installed in the bin + subdirectory of the directory specified by during configuration. + If no path was specified, the default is + /usr/local/bin. + + + + + Documentation + + + Documentation is not built by default; please refer to the + section on documentation for + more information on building documentation. + + + + man and info + will be installed in /usr/local/share/man + and /usr/local/share/info respectively, unless + the --mandif or --infodir + configuration options are used. + + + + GNOME help documentation uses the directory + /usr/local/share/gnash/doc/gnash/C/ by default. + A configuration file in the &app; source tree, + doc/C/gnash.omf is used to specify under + which menu item &app; appears in the GNOME help + system. + + Index: doc/C/usermanual/installation/testing_dependencies.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/testing_dependencies.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- doc/C/usermanual/installation/testing_dependencies.xml 22 May 2007 13:48:10 -0000 1.1 +++ doc/C/usermanual/installation/testing_dependencies.xml 7 Jun 2007 14:11:26 -0000 1.2 @@ -39,8 +39,8 @@ Ming is the primary compiler for ActionScript testcases. - TODO - TODO + No distribution packages are available. + No distribution packages are available. @@ -53,8 +53,8 @@ Mtasc is used in some tests. - TODO - TODO + mtasc + No distribution packages are available. @@ -67,8 +67,8 @@ Swfdec is used in some testcases. - TODO - TODO + No distribution packages are available. + Unofficial package swfdec @@ -82,8 +82,8 @@ DejaGnu is used to run multiple tests in an automated fashion. - TODO - TODO + dejagnu + dejagnu From MAILER-DAEMON Thu Jun 07 10:12:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwIiu-0006Ah-Ku for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:12:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwIis-0006A4-UV for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:12:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwIir-00069s-Eq for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:12:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwIir-00069p-9W for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:12:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwIiq-0000cJ-Sk for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:12:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwIiq-0002aP-FG for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:12:20 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwIiq-0002aM-Aw for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:12:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Thu, 07 Jun 2007 14:12:20 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C/usermanual glossary.xml bugreport.xml X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:12:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/07 14:12:20 Added files: doc/C/usermanual: glossary.xml bugreport.xml Log message: These two files were also added in release-8-0-0; this commit adds them to head CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/glossary.xml?cvsroot=gnash&rev=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/bugreport.xml?cvsroot=gnash&rev=1.2 Patches: Index: glossary.xml =================================================================== RCS file: glossary.xml diff -N glossary.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ glossary.xml 7 Jun 2007 14:12:20 -0000 1.2 @@ -0,0 +1,221 @@ + + Glossary + + + + + ActionScript + + + + ActionScript, or "AS", is the scripting + language for Flash + applications. It is compiled to bytecode, which is a subset of + the SWF format. + + + + + + + AMF + + + + AMF + is the object format used by Flash + for shared objects and streaming video. + + + + + + + DocBook + + + + DocBook + is a markup language for presentation-neutral + documentation, such as manuals. + + + + + + + Doxygen + + + + Doxygen + is a documentation generator for for multiple languages + which uses comments in the source code to create stand-alone + documentation. + + + + + + + extensions + + + + A &app; extension is a plugin (not + a browser plugin) which + implements additional + functionality beyond what is covered by + Flash specification. + These are shared libraries which are loaded at runtime. + + + + + + + Flash + + + + The term Flash is used to describe both the + Adobe IDE for creating SWF + files, and the technology itself. + &app; documentation uses the latter definition. + + + + + + + GUI + + + + A GUI is a + "graphical user interface". In &app;, the GUI + library provides a wrapper for mouse and keyboard events, + menus, windowing (where available) and a drawing area. + You must choose a GUI library during the + configuration stage. + + + + + + + Klash + + + + Klash was the name given to the stand-alone + instance of &app; which used the KDE GUI. It has been replaced with + an implementation using Qt. Some documentation may incorrectly + refer to the Konqueror plugin as Klash. + The plugin was renamed Kpart. + + + + + + + Kpart + + + + Kpart is a plugin for Konqueror which is + enabled with the configuration option + --enable-klash. + + + + + + + Mesa + + + + Mesa is the free software OpenGL + implementation. &app; documentation will sometimes use the + terms 'OpenGL' and 'Mesa' interchangeably. + + + + + + + plugin + + + + The term plugin is used in &app; to + refer to both any &app; browser plugin, as well as the Firefox + plugin specifically. The Konqueror plugin is called + Kpart. Sometimes, the term is used in + an even more generic sense to refer to + extensions. + + + + + + + renderer + + + + The renderer is the subsystem of &app; + which renders content. Only one renderer may be used; it is + chosen during configuration. + + + Available renderers are: AGG, OpenGL, and Cairo. In terms of + feature completeness, AGG comes first; followed by OpenGL and + then Cairo. In most cases, AGG is preferred for performance, + except cases where it is beneficial to have hardware accelerated + rendering (for example, when you have a very slow CPU but a very + fast graphics card). In this case OpenGL should be used. + + + + + + + sound handler + + + + The sound handler is the part of &app; + which handles both event sounds and streaming sound. Audio + from external sources are also handled through the sound handler + when SDL is used. The sound handler must be selected during + configuration. + + + There are currently two sound handlers available in &app;: + SDL and Gstreamer. The SDL sound handler uses ffmpeg or + libmad for decoding mp3-audio, although it can be built without + mp3-support. The Gstreamer-sound handler uses the available + plugins to decode the audio, so it might not work if some + important plugins are missing. The SDL sound handler is + recommended. + + + + + + + SWF + + + + SWF is the file format for + Flash movies. + + + + + + + Index: bugreport.xml =================================================================== RCS file: bugreport.xml diff -N bugreport.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ bugreport.xml 7 Jun 2007 14:12:20 -0000 1.2 @@ -0,0 +1,121 @@ + + Reporting Bugs + + + The better your bug report is, the easier it will be for the + developers to address the issue. + Please follow the three steps described below before filing a bug + report: + + + Compile the latest + &app; build. + + + Determine if the bug was + previously reported. + + + Review the bug writing + guidelines. + + + + + + Compile the latest &app; build + + Obtain a copy of the latest development + checkout or development + snapshot. Put the source in an empty directory, then + configure and + compile &app;. + + + If you are able to replicate the bug, + proceed to the next step. + + + If the bug does not persist, the problem may have been solved, or + the issue may involve your environment. By creating a fresh build + of your original version and trying to replicate the bug you + can determine if it is an environmental issue or a resolved bug. + If you are able to replicate the bug, the problem has been fixed + and there is no need to file a bug report. + + + If the bug is no longer visible, the problem may be related to + your environment. Try to determine the source of the conflict + so that you can include this information in your bug report. + + + + + Determine if the bug was previously reported + + Search the &app; + bug tracker to see if the bug has already been identified. + + + If the issue has already been reported, you should not file + a bug report. However, you may add some additional information + to the ticket if you feel that it will be beneficial to the + developers. For instance, if someone reported a memory issue + on Ubuntu GNU/Linux, and you noticed the same problem on OpenBSD, + your stacktrace would be useful. Conversely, adding a "me too" + note to a feature request is not helpful. + + + + + Review the bug writing guidelines + + A good bug report should be precise, explicit, and discrete. + This means that there should be just one bug per ticket, and + that a ticket should contain the following information: + + + An overview of the problem; + + + Instructions on how to replicate the bug; + + + A description of what happened when you performed the steps + to replicate the bug, and what you expected to happen; + + + Your system information: operating system name and version, as + well as the versions of major dependencies; + + + The release number or checkout timestamp for the version of &app; + where you observe the problem; + + + The file config.log, which should be + attached as a file; and + + + A descriptive title. + + + Include any additional information that you feel might be useful + to the developers. + + + + + Filing a bug report + + After following the steps described above, you can + file a + bug report. + + + + + From MAILER-DAEMON Thu Jun 07 10:50:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJJv-0005UC-Gf for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:50:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJJu-0005Tz-5Z for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:50:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJJs-0005T1-7Y for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:50:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJJs-0005Sy-1X for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:50:36 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJJr-0006kR-LU for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:50:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJJr-0006Qt-9C for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:50:35 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJJr-0006Qq-3B for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:50:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 14:50:35 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:50:38 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 14:50:34 Modified files: . : ChangeLog testsuite : MovieTester.cpp MovieTester.h testsuite/misc-ming.all: NetStream-SquareTestRunner.cpp Log message: * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't wait for Play.Stop event to be sent if video can't be tested (ie: not supported by mad). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3487&r2=1.3488 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.42&r2=1.43 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3487 retrieving revision 1.3488 diff -u -b -r1.3487 -r1.3488 --- ChangeLog 7 Jun 2007 14:11:25 -0000 1.3487 +++ ChangeLog 7 Jun 2007 14:50:33 -0000 1.3488 @@ -1,3 +1,10 @@ +2007-06-07 Sandro Santilli + + * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. + * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't + wait for Play.Stop event to be sent if video can't be tested + (ie: not supported by mad). + 2007-06-07 Ann Barcomb * doc/C/usermanual/installation/building.xml: mention that Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- testsuite/MovieTester.cpp 7 Jun 2007 12:50:10 -0000 1.42 +++ testsuite/MovieTester.cpp 7 Jun 2007 14:50:34 -0000 1.43 @@ -448,9 +448,23 @@ set_render_handler(&(_testingRenderers.back()->getRenderer())); } +bool +MovieTester::canTestVideo() const +{ + if ( ! canTestSound() ) return false; + +#ifdef USE_MAD + // mad doesn't support video ! + return false; +#endif + + return true; +} + void MovieTester::initTestingSoundHandlers() { + #ifdef SOUND_SDL cout << "Creating SDL sound handler" << endl; _sound_handler.reset( gnash::create_sound_handler_sdl() ); Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -b -r1.26 -r1.27 --- testsuite/MovieTester.h 7 Jun 2007 12:35:21 -0000 1.26 +++ testsuite/MovieTester.h 7 Jun 2007 14:50:34 -0000 1.27 @@ -236,6 +236,9 @@ /// bool canTestRendering() const { return ! _testingRenderers.empty(); } + /// Return true if this build of gnash supports video + bool canTestVideo() const; + private: /// Initialize testing renderers Index: testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 28 May 2007 15:41:12 -0000 1.3 +++ testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 7 Jun 2007 14:50:34 -0000 1.4 @@ -46,6 +46,12 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + if ( ! tester.canTestVideo() ) + { + cout << "UNTESTED: NetStream video (not supported by this build)." << endl; + return EXIT_SUCCESS; + } + // On NetStatus.Play.Stop we jump to last frame and stop, // so this loop is about equivalent to running a // generic self-contained test. From MAILER-DAEMON Thu Jun 07 10:51:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJKP-0005ZZ-Mj for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:51:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJKO-0005ZU-2G for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:51:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJKM-0005ZI-Ln for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:51:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJKM-0005ZF-Gr for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:51:06 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJKM-0006nh-3Q for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:51:06 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJKL-0006Sr-Po for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:51:05 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJKL-0006So-IH for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:51:05 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 14:51:05 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:51:08 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 14:51:05 Modified files: . : ChangeLog testsuite : MovieTester.cpp MovieTester.h testsuite/misc-ming.all: NetStream-SquareTestRunner.cpp Log message: * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't wait for Play.Stop event to be sent if video can't be tested (ie: not supported by mad). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.38&r2=1.3451.2.39 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.38.4.3&r2=1.38.4.4 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.23.4.2&r2=1.23.4.3 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3&r2=1.3.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.38 retrieving revision 1.3451.2.39 diff -u -b -r1.3451.2.38 -r1.3451.2.39 --- ChangeLog 7 Jun 2007 13:50:45 -0000 1.3451.2.38 +++ ChangeLog 7 Jun 2007 14:51:03 -0000 1.3451.2.39 @@ -1,3 +1,10 @@ +2007-06-07 Sandro Santilli + + * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. + * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't + wait for Play.Stop event to be sent if video can't be tested + (ie: not supported by mad). + 2007-06-07 Ann Barcomb * doc/C/sources.xml: Removed file; the replacement is Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.38.4.3 retrieving revision 1.38.4.4 diff -u -b -r1.38.4.3 -r1.38.4.4 --- testsuite/MovieTester.cpp 7 Jun 2007 12:50:44 -0000 1.38.4.3 +++ testsuite/MovieTester.cpp 7 Jun 2007 14:51:04 -0000 1.38.4.4 @@ -448,9 +448,23 @@ set_render_handler(&(_testingRenderers.back()->getRenderer())); } +bool +MovieTester::canTestVideo() const +{ + if ( ! canTestSound() ) return false; + +#ifdef USE_MAD + // mad doesn't support video ! + return false; +#endif + + return true; +} + void MovieTester::initTestingSoundHandlers() { + #ifdef SOUND_SDL cout << "Creating SDL sound handler" << endl; _sound_handler.reset( gnash::create_sound_handler_sdl() ); Index: testsuite/MovieTester.h =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v retrieving revision 1.23.4.2 retrieving revision 1.23.4.3 diff -u -b -r1.23.4.2 -r1.23.4.3 --- testsuite/MovieTester.h 7 Jun 2007 12:35:09 -0000 1.23.4.2 +++ testsuite/MovieTester.h 7 Jun 2007 14:51:04 -0000 1.23.4.3 @@ -236,6 +236,9 @@ /// bool canTestRendering() const { return ! _testingRenderers.empty(); } + /// Return true if this build of gnash supports video + bool canTestVideo() const; + private: /// Initialize testing renderers Index: testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -u -b -r1.3 -r1.3.4.1 --- testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 28 May 2007 15:41:12 -0000 1.3 +++ testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp 7 Jun 2007 14:51:05 -0000 1.3.4.1 @@ -46,6 +46,12 @@ sprite_instance* root = tester.getRootMovie(); assert(root); + if ( ! tester.canTestVideo() ) + { + cout << "UNTESTED: NetStream video (not supported by this build)." << endl; + return EXIT_SUCCESS; + } + // On NetStatus.Play.Stop we jump to last frame and stop, // so this loop is about equivalent to running a // generic self-contained test. From MAILER-DAEMON Thu Jun 07 10:58:26 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJRS-0005F7-Pa for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:58:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJRQ-0005En-GJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:58:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJRO-0005EO-Oy for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:58:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJRO-0005EL-JX for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:58:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJRO-0007jI-7x for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:58:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJRN-0006nH-5p for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:58:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJRN-0006nD-1s for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:58:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 14:58:21 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/Makefile.am utilities/Ma... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:58:25 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 14:58:20 Modified files: . : ChangeLog server : Makefile.am utilities : Makefile.am Log message: * server/Makefile.am, utilities/Makefile.am: Moved the libgnashbackend dependency out of libgnashserver and into the utilities/ dir. This is to avoid a circular dependency I erroneously introduced with my last commit aimed at fixing bug #20110. This should be a better fix. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.39&r2=1.3451.2.40 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.113.4.1&r2=1.113.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.55&r2=1.55.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.39 retrieving revision 1.3451.2.40 diff -u -b -r1.3451.2.39 -r1.3451.2.40 --- ChangeLog 7 Jun 2007 14:51:03 -0000 1.3451.2.39 +++ ChangeLog 7 Jun 2007 14:58:18 -0000 1.3451.2.40 @@ -1,5 +1,14 @@ 2007-06-07 Sandro Santilli + * server/Makefile.am, utilities/Makefile.am: + Moved the libgnashbackend dependency out of libgnashserver + and into the utilities/ dir. This is to avoid a circular + dependency I erroneously introduced with my last + commit aimed at fixing bug #20110. This should be a better + fix. + +2007-06-07 Sandro Santilli + * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't wait for Play.Stop event to be sent if video can't be tested Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.113.4.1 retrieving revision 1.113.4.2 diff -u -b -r1.113.4.1 -r1.113.4.2 --- server/Makefile.am 7 Jun 2007 13:10:52 -0000 1.113.4.1 +++ server/Makefile.am 7 Jun 2007 14:58:20 -0000 1.113.4.2 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.113.4.1 2007/06/07 13:10:52 strk Exp $ +# $Id: Makefile.am,v 1.113.4.2 2007/06/07 14:58:20 strk Exp $ AUTOMAKE_OPTIONS = @@ -160,7 +160,6 @@ libgnashserver_la_LIBADD = \ $(top_builddir)/libbase/libgnashbase.la \ - $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/server/asobj/libgnashasobjs.la \ $(top_builddir)/server/parser/libgnashparser.la \ $(top_builddir)/server/vm/libgnashvm.la \ Index: utilities/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/utilities/Makefile.am,v retrieving revision 1.55 retrieving revision 1.55.4.1 diff -u -b -r1.55 -r1.55.4.1 --- utilities/Makefile.am 14 May 2007 17:26:05 -0000 1.55 +++ utilities/Makefile.am 7 Jun 2007 14:58:20 -0000 1.55.4.1 @@ -26,6 +26,7 @@ GNASH_LIBS = \ $(top_builddir)/server/libgnashserver.la \ $(top_builddir)/libbase/libgnashbase.la \ + $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/libamf/libgnashamf.la ## WARNING: make sure GLIB_LIBS appears first From MAILER-DAEMON Thu Jun 07 10:59:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJSD-0005Hi-0Z for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 10:59:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJSB-0005HV-HV for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:59:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJSA-0005HJ-4X for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:59:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJS9-0005HG-VI for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:59:09 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJS9-0007pM-Jb for gnash-commit@gnu.org; Thu, 07 Jun 2007 10:59:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJS9-0006tG-1x for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:09 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJS8-0006tD-Te for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:08 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 14:59:08 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/Makefile.am utilities/Ma... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 14:59:11 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 14:59:08 Modified files: . : ChangeLog server : Makefile.am utilities : Makefile.am Log message: * server/Makefile.am, utilities/Makefile.am: Moved the libgnashbackend dependency out of libgnashserver and into the utilities/ dir. This is to avoid a circular dependency I erroneously introduced with my last commit aimed at fixing bug #20110. This should be a better fix. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3488&r2=1.3489 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.114&r2=1.115 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/Makefile.am?cvsroot=gnash&r1=1.55&r2=1.56 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3488 retrieving revision 1.3489 diff -u -b -r1.3488 -r1.3489 --- ChangeLog 7 Jun 2007 14:50:33 -0000 1.3488 +++ ChangeLog 7 Jun 2007 14:59:07 -0000 1.3489 @@ -1,5 +1,14 @@ 2007-06-07 Sandro Santilli + * server/Makefile.am, utilities/Makefile.am: + Moved the libgnashbackend dependency out of libgnashserver + and into the utilities/ dir. This is to avoid a circular + dependency I erroneously introduced with my last + commit aimed at fixing bug #20110. This should be a better + fix. + +2007-06-07 Sandro Santilli + * testsuite/MovieTester.{cpp,h}: add a canTestVideo() method. * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: don't wait for Play.Stop event to be sent if video can't be tested Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.114 retrieving revision 1.115 diff -u -b -r1.114 -r1.115 --- server/Makefile.am 7 Jun 2007 13:11:33 -0000 1.114 +++ server/Makefile.am 7 Jun 2007 14:59:08 -0000 1.115 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.114 2007/06/07 13:11:33 strk Exp $ +# $Id: Makefile.am,v 1.115 2007/06/07 14:59:08 strk Exp $ AUTOMAKE_OPTIONS = @@ -160,7 +160,6 @@ libgnashserver_la_LIBADD = \ $(top_builddir)/libbase/libgnashbase.la \ - $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/server/asobj/libgnashasobjs.la \ $(top_builddir)/server/parser/libgnashparser.la \ $(top_builddir)/server/vm/libgnashvm.la \ Index: utilities/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/utilities/Makefile.am,v retrieving revision 1.55 retrieving revision 1.56 diff -u -b -r1.55 -r1.56 --- utilities/Makefile.am 14 May 2007 17:26:05 -0000 1.55 +++ utilities/Makefile.am 7 Jun 2007 14:59:08 -0000 1.56 @@ -26,6 +26,7 @@ GNASH_LIBS = \ $(top_builddir)/server/libgnashserver.la \ $(top_builddir)/libbase/libgnashbase.la \ + $(top_builddir)/backend/libgnashbackend.la \ $(top_builddir)/libamf/libgnashamf.la ## WARNING: make sure GLIB_LIBS appears first From MAILER-DAEMON Thu Jun 07 11:10:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJdE-0003Dt-Ko for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJdD-0003Af-BX for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJdC-00039s-IU for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJdC-00039k-FQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJdC-0000qG-5c for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJdB-0007U0-5f for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:10:33 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJdB-0007Tw-0J for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:10:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 15:10:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 15:10:35 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 15:10:32 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: hint user about using AGG if framebuffer gui is requested. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.40&r2=1.3451.2.41 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.4&r2=1.331.4.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.40 retrieving revision 1.3451.2.41 diff -u -b -r1.3451.2.40 -r1.3451.2.41 --- ChangeLog 7 Jun 2007 14:58:18 -0000 1.3451.2.40 +++ ChangeLog 7 Jun 2007 15:10:31 -0000 1.3451.2.41 @@ -1,5 +1,7 @@ 2007-06-07 Sandro Santilli + * configure.ac: hint user about using AGG if framebuffer gui is + requested. * server/Makefile.am, utilities/Makefile.am: Moved the libgnashbackend dependency out of libgnashserver and into the utilities/ dir. This is to avoid a circular Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.4 retrieving revision 1.331.4.5 diff -u -b -r1.331.4.4 -r1.331.4.5 --- configure.ac 6 Jun 2007 14:54:38 -0000 1.331.4.4 +++ configure.ac 7 Jun 2007 15:10:32 -0000 1.331.4.5 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.4 2007/06/06 14:54:38 strk Exp $ +dnl $Id: configure.ac,v 1.331.4.5 2007/06/07 15:10:32 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -235,7 +235,7 @@ if test x$renderer = xopengl; then if test x"$gui" = xfb -o x"$gui" = xfltk; then - AC_MSG_ERROR([opengl renderer is not supported by the $gui gui]); + AC_MSG_ERROR([OpenGL renderer is not supported by the $gui gui. Try using AGG ( --enable-renderer=AGG ).]); fi AC_DEFINE([RENDERER_OPENGL], [], [Use OpenGL renderer]) fi From MAILER-DAEMON Thu Jun 07 11:10:59 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwJdb-0003qo-Os for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwJdZ-0003ms-UD for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwJdZ-0003m1-5R for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwJdZ-0003lu-0B for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:57 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwJdY-0000t2-Me for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:10:56 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwJdY-0007Ve-86 for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:10:56 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwJdY-0007Vb-0o for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:10:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 15:10:56 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 15:10:58 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 15:10:55 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: hint user about using AGG if framebuffer gui is requested. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3489&r2=1.3490 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.334&r2=1.335 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3489 retrieving revision 1.3490 diff -u -b -r1.3489 -r1.3490 --- ChangeLog 7 Jun 2007 14:59:07 -0000 1.3489 +++ ChangeLog 7 Jun 2007 15:10:54 -0000 1.3490 @@ -1,5 +1,7 @@ 2007-06-07 Sandro Santilli + * configure.ac: hint user about using AGG if framebuffer gui is + requested. * server/Makefile.am, utilities/Makefile.am: Moved the libgnashbackend dependency out of libgnashserver and into the utilities/ dir. This is to avoid a circular Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.334 retrieving revision 1.335 diff -u -b -r1.334 -r1.335 --- configure.ac 6 Jun 2007 12:57:33 -0000 1.334 +++ configure.ac 7 Jun 2007 15:10:55 -0000 1.335 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.334 2007/06/06 12:57:33 strk Exp $ +dnl $Id: configure.ac,v 1.335 2007/06/07 15:10:55 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -237,7 +237,7 @@ if test x$renderer = xopengl; then if test x"$gui" = xfb -o x"$gui" = xfltk; then - AC_MSG_ERROR([opengl renderer is not supported by the $gui gui]); + AC_MSG_ERROR([OpenGL renderer is not supported by the $gui gui. Try using AGG ( --enable-renderer=AGG ).]); fi AC_DEFINE([RENDERER_OPENGL], [], [Use OpenGL renderer]) fi From MAILER-DAEMON Thu Jun 07 11:42:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwK80-0007AQ-HQ for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwK7y-00076R-JJ for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwK7x-00074c-Q7 for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwK7x-00074B-LQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwK7x-0004yK-9r for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwK7v-0002Cb-PT for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:42:19 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwK7v-0002CY-JZ for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:42:19 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 15:42:19 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac gui/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 15:42:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 15:42:19 Modified files: . : ChangeLog configure.ac gui : Makefile.am Log message: * configure.ac: disable klash if QT lib aren't found. * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds to distribution). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3490&r2=1.3491 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.335&r2=1.336 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.75&r2=1.76 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3490 retrieving revision 1.3491 diff -u -b -r1.3490 -r1.3491 --- ChangeLog 7 Jun 2007 15:10:54 -0000 1.3490 +++ ChangeLog 7 Jun 2007 15:42:18 -0000 1.3491 @@ -1,5 +1,11 @@ 2007-06-07 Sandro Santilli + * configure.ac: disable klash if QT lib aren't found. + * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds + to distribution). + +2007-06-07 Sandro Santilli + * configure.ac: hint user about using AGG if framebuffer gui is requested. * server/Makefile.am, utilities/Makefile.am: Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.335 retrieving revision 1.336 diff -u -b -r1.335 -r1.336 --- configure.ac 7 Jun 2007 15:10:55 -0000 1.335 +++ configure.ac 7 Jun 2007 15:42:19 -0000 1.336 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.335 2007/06/07 15:10:55 strk Exp $ +dnl $Id: configure.ac,v 1.336 2007/06/07 15:42:19 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -778,6 +778,12 @@ klash=no fi fi +if test x$has_qt != xyes; then + if test x$klash = xyes; then + echo "WARNING: No QT development package installed, disabling klash" + klash=no + fi +fi AM_CONDITIONAL(KLASH, [test x$klash = xyes]) Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.75 retrieving revision 1.76 diff -u -b -r1.75 -r1.76 --- gui/Makefile.am 24 May 2007 21:35:02 -0000 1.75 +++ gui/Makefile.am 7 Jun 2007 15:42:19 -0000 1.76 @@ -17,7 +17,7 @@ # -# $Id: Makefile.am,v 1.75 2007/05/24 21:35:02 bjacques Exp $ +# $Id: Makefile.am,v 1.76 2007/06/07 15:42:19 strk Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -157,7 +157,7 @@ endif if USE_GUI_KDE - KDE_SRCS = kde.cpp kdesup.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) + KDE_SRCS = kde.cpp kdesup.h kde_glue.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) AM_CPPFLAGS += -I$(kde_includes)/kio $(all_includes) else KDE_SRCS = From MAILER-DAEMON Thu Jun 07 11:42:32 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwK88-0007QT-NP for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwK86-0007MS-Cl for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwK84-0007JQ-VK for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwK84-0007J2-Np for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwK84-0004z2-CK for gnash-commit@gnu.org; Thu, 07 Jun 2007 11:42:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwK83-0002DG-R0 for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:42:27 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwK83-0002DD-LH for gnash-commit@gnu.org; Thu, 07 Jun 2007 15:42:27 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 15:42:27 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac gui/Makefile.am [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 15:42:30 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 15:42:27 Modified files: . : ChangeLog configure.ac gui : Makefile.am Log message: * configure.ac: disable klash if QT lib aren't found. * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds to distribution). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.41&r2=1.3451.2.42 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.5&r2=1.331.4.6 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.75.4.2&r2=1.75.4.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.41 retrieving revision 1.3451.2.42 diff -u -b -r1.3451.2.41 -r1.3451.2.42 --- ChangeLog 7 Jun 2007 15:10:31 -0000 1.3451.2.41 +++ ChangeLog 7 Jun 2007 15:42:25 -0000 1.3451.2.42 @@ -1,5 +1,11 @@ 2007-06-07 Sandro Santilli + * configure.ac: disable klash if QT lib aren't found. + * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds + to distribution). + +2007-06-07 Sandro Santilli + * configure.ac: hint user about using AGG if framebuffer gui is requested. * server/Makefile.am, utilities/Makefile.am: Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.5 retrieving revision 1.331.4.6 diff -u -b -r1.331.4.5 -r1.331.4.6 --- configure.ac 7 Jun 2007 15:10:32 -0000 1.331.4.5 +++ configure.ac 7 Jun 2007 15:42:26 -0000 1.331.4.6 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.5 2007/06/07 15:10:32 strk Exp $ +dnl $Id: configure.ac,v 1.331.4.6 2007/06/07 15:42:26 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -775,6 +775,12 @@ klash=no fi fi +if test x$has_qt != xyes; then + if test x$klash = xyes; then + echo "WARNING: No QT development package installed, disabling klash" + klash=no + fi +fi AM_CONDITIONAL(KLASH, [test x$klash = xyes]) Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.75.4.2 retrieving revision 1.75.4.3 diff -u -b -r1.75.4.2 -r1.75.4.3 --- gui/Makefile.am 5 Jun 2007 10:09:33 -0000 1.75.4.2 +++ gui/Makefile.am 7 Jun 2007 15:42:27 -0000 1.75.4.3 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.75.4.2 2007/06/05 10:09:33 strk Exp $ +# $Id: Makefile.am,v 1.75.4.3 2007/06/07 15:42:27 strk Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -156,7 +156,7 @@ #if USE_GUI_KDE if KLASH - KDE_SRCS = kde.cpp kdesup.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) + KDE_SRCS = kde.cpp kdesup.h kde_glue.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) AM_CPPFLAGS += -I$(kde_includes)/kio $(all_includes) else KDE_SRCS = From MAILER-DAEMON Thu Jun 07 12:19:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwKi5-0001ib-AP for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 12:19:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwKi3-0001iH-HT for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:19:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwKi1-0001i5-Sr for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:19:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwKi1-0001i2-NM for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:19:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwKi1-0002SQ-Jb for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:19:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwKi0-0004Ud-7n for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:19:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwKhz-0004Ua-Pw for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:19:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 16:19:35 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/Makefile.am macros/docboo... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 16:19:40 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 16:19:35 Modified files: . : ChangeLog doc/C : Makefile.am macros : docbook.m4 Log message: * doc/C/Makefile.am: distribute all XML files. * macros/docbook.m4: advertise --enable-docbook, not --disable-docbook since it's disabled by default. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.42&r2=1.3451.2.43 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/Makefile.am?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.37&r2=1.37.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/docbook.m4?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.21&r2=1.21.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.42 retrieving revision 1.3451.2.43 diff -u -b -r1.3451.2.42 -r1.3451.2.43 --- ChangeLog 7 Jun 2007 15:42:25 -0000 1.3451.2.42 +++ ChangeLog 7 Jun 2007 16:19:34 -0000 1.3451.2.43 @@ -1,5 +1,11 @@ 2007-06-07 Sandro Santilli + * doc/C/Makefile.am: distribute all XML files. + * macros/docbook.m4: advertise --enable-docbook, not + --disable-docbook since it's disabled by default. + +2007-06-07 Sandro Santilli + * configure.ac: disable klash if QT lib aren't found. * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds to distribution). Index: doc/C/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/doc/C/Makefile.am,v retrieving revision 1.37 retrieving revision 1.37.4.1 diff -u -b -r1.37 -r1.37.4.1 --- doc/C/Makefile.am 30 Apr 2007 19:21:14 -0000 1.37 +++ doc/C/Makefile.am 7 Jun 2007 16:19:35 -0000 1.37.4.1 @@ -26,7 +26,6 @@ lang = C omffile = gnash-C.omf entities = \ - sources.xml \ internals.xml \ amf.xml \ appendix.xml \ @@ -42,7 +41,70 @@ rtmp.xml \ actionscript/main.xml \ actionscript/as_value.xml \ - actionscript/new_as_class.xml + actionscript/new_as_class.xml \ + asspec/accessibility.xml \ + asspec/array.xml \ + asspec/asspec.xml \ + asspec/boolean.xml \ + asspec/button.xml \ + asspec/camera.xml \ + asspec/color.xml \ + asspec/contextmenu.xml \ + asspec/customactions.xml \ + asspec/date.xml \ + asspec/error.xml \ + asspec/fdl-appendix.xml \ + asspec/function.xml \ + asspec/key.xml \ + asspec/legal.xml \ + asspec/loadvars.xml \ + asspec/localconnection.xml \ + asspec/math.xml \ + asspec/microphone.xml \ + asspec/mouse.xml \ + asspec/movieclip.xml \ + asspec/moviecliploader.xml \ + asspec/netconnection.xml \ + asspec/netstream.xml \ + asspec/number.xml \ + asspec/selection.xml \ + asspec/sharedobject.xml \ + asspec/sound.xml \ + asspec/stage.xml \ + asspec/string.xml \ + asspec/system.xml \ + asspec/textfield.xml \ + asspec/textformat.xml \ + asspec/textsnapshot.xml \ + asspec/video.xml \ + asspec/xml.xml \ + asspec/xmlnode.xml \ + asspec/xmlsocket.xml \ + conformance.xml \ + usermanual/installation/code_dependencies.xml \ + usermanual/installation/configuration.xml \ + usermanual/installation/custompath_configuration.xml \ + usermanual/installation/documentation_dependencies.xml \ + usermanual/installation/feature_configuration.xml \ + usermanual/installation/packagemanager.xml \ + usermanual/installation/sources.xml \ + usermanual/installation/testing_dependencies.xml \ + usermanual/installation/cross_compiling.xml \ + usermanual/installation/building.xml \ + usermanual/installation/install.xml \ + usermanual/doc_authors.xml \ + usermanual/installation.xml \ + usermanual/introduction.xml \ + usermanual/revisions.xml \ + usermanual/usage.xml \ + usermanual/usage/gnashrc.xml \ + usermanual/bugreport.xml \ + usermanual/glossary.xml \ + app_authors.xml \ + gpl-appendix.xml \ + legal.xml \ + logging.xml \ + $(NULL) xml_files = $(entities) $(docname).xml actionscript.xml Index: macros/docbook.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/docbook.m4,v retrieving revision 1.21 retrieving revision 1.21.4.1 diff -u -b -r1.21 -r1.21.4.1 --- macros/docbook.m4 9 Jan 2007 00:43:43 -0000 1.21 +++ macros/docbook.m4 7 Jun 2007 16:19:35 -0000 1.21.4.1 @@ -16,7 +16,7 @@ AC_DEFUN([GNASH_DOCBOOK], [ - AC_ARG_ENABLE(docbook, AC_HELP_STRING([--disable-docbook], [Disable support for building documentation]), + AC_ARG_ENABLE(docbook, AC_HELP_STRING([--enable-docbook], [Enable support for building documentation]), [case "${enableval}" in yes) docbook=yes ;; no) docbook=no ;; From MAILER-DAEMON Thu Jun 07 12:37:32 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwKzM-0007Lt-Cg for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwKzJ-0007LL-Ky for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwKzJ-0007L4-37 for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwKzI-0007L1-Rk for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwKzI-0004qs-KB for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:37:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwKzH-0006o5-Ud for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:37:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwKzH-0006o2-Qg for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:37:27 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 16:37:27 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog doc/C/Makefile.am macros/docboo... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 16:37:30 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 16:37:27 Modified files: . : ChangeLog doc/C : Makefile.am macros : docbook.m4 Log message: * doc/C/Makefile.am: distribute all XML files. * macros/docbook.m4: advertise --enable-docbook, not --disable-docbook since it's disabled by default. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3491&r2=1.3492 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/Makefile.am?cvsroot=gnash&r1=1.37&r2=1.38 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/docbook.m4?cvsroot=gnash&r1=1.21&r2=1.22 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3491 retrieving revision 1.3492 diff -u -b -r1.3491 -r1.3492 --- ChangeLog 7 Jun 2007 15:42:18 -0000 1.3491 +++ ChangeLog 7 Jun 2007 16:37:26 -0000 1.3492 @@ -1,5 +1,11 @@ 2007-06-07 Sandro Santilli + * doc/C/Makefile.am: distribute all XML files. + * macros/docbook.m4: advertise --enable-docbook, not + --disable-docbook since it's disabled by default. + +2007-06-07 Sandro Santilli + * configure.ac: disable klash if QT lib aren't found. * gui/Makefile.am: add kde_glue.h in KDE_SRCS (hopefully this adds to distribution). Index: doc/C/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/doc/C/Makefile.am,v retrieving revision 1.37 retrieving revision 1.38 diff -u -b -r1.37 -r1.38 --- doc/C/Makefile.am 30 Apr 2007 19:21:14 -0000 1.37 +++ doc/C/Makefile.am 7 Jun 2007 16:37:27 -0000 1.38 @@ -26,7 +26,6 @@ lang = C omffile = gnash-C.omf entities = \ - sources.xml \ internals.xml \ amf.xml \ appendix.xml \ @@ -42,7 +41,70 @@ rtmp.xml \ actionscript/main.xml \ actionscript/as_value.xml \ - actionscript/new_as_class.xml + actionscript/new_as_class.xml \ + asspec/accessibility.xml \ + asspec/array.xml \ + asspec/asspec.xml \ + asspec/boolean.xml \ + asspec/button.xml \ + asspec/camera.xml \ + asspec/color.xml \ + asspec/contextmenu.xml \ + asspec/customactions.xml \ + asspec/date.xml \ + asspec/error.xml \ + asspec/fdl-appendix.xml \ + asspec/function.xml \ + asspec/key.xml \ + asspec/legal.xml \ + asspec/loadvars.xml \ + asspec/localconnection.xml \ + asspec/math.xml \ + asspec/microphone.xml \ + asspec/mouse.xml \ + asspec/movieclip.xml \ + asspec/moviecliploader.xml \ + asspec/netconnection.xml \ + asspec/netstream.xml \ + asspec/number.xml \ + asspec/selection.xml \ + asspec/sharedobject.xml \ + asspec/sound.xml \ + asspec/stage.xml \ + asspec/string.xml \ + asspec/system.xml \ + asspec/textfield.xml \ + asspec/textformat.xml \ + asspec/textsnapshot.xml \ + asspec/video.xml \ + asspec/xml.xml \ + asspec/xmlnode.xml \ + asspec/xmlsocket.xml \ + conformance.xml \ + usermanual/installation/code_dependencies.xml \ + usermanual/installation/configuration.xml \ + usermanual/installation/custompath_configuration.xml \ + usermanual/installation/documentation_dependencies.xml \ + usermanual/installation/feature_configuration.xml \ + usermanual/installation/packagemanager.xml \ + usermanual/installation/sources.xml \ + usermanual/installation/testing_dependencies.xml \ + usermanual/installation/cross_compiling.xml \ + usermanual/installation/building.xml \ + usermanual/installation/install.xml \ + usermanual/doc_authors.xml \ + usermanual/installation.xml \ + usermanual/introduction.xml \ + usermanual/revisions.xml \ + usermanual/usage.xml \ + usermanual/usage/gnashrc.xml \ + usermanual/bugreport.xml \ + usermanual/glossary.xml \ + app_authors.xml \ + gpl-appendix.xml \ + legal.xml \ + logging.xml \ + $(NULL) xml_files = $(entities) $(docname).xml actionscript.xml Index: macros/docbook.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/docbook.m4,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- macros/docbook.m4 9 Jan 2007 00:43:43 -0000 1.21 +++ macros/docbook.m4 7 Jun 2007 16:37:27 -0000 1.22 @@ -16,7 +16,7 @@ AC_DEFUN([GNASH_DOCBOOK], [ - AC_ARG_ENABLE(docbook, AC_HELP_STRING([--disable-docbook], [Disable support for building documentation]), + AC_ARG_ENABLE(docbook, AC_HELP_STRING([--enable-docbook], [Enable support for building documentation]), [case "${enableval}" in yes) docbook=yes ;; no) docbook=no ;; From MAILER-DAEMON Thu Jun 07 12:38:44 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwL0W-0007XJ-N6 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 12:38:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwL0U-0007Vt-LR for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:38:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwL0T-0007Vh-95 for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:38:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwL0T-0007Ve-4P for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:38:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwL0S-0004yL-U9 for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:38:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwL0S-0006sM-4j for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:38:40 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwL0R-0006sI-W9 for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:38:40 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 16:38:39 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/anaylse-results.sh [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 16:38:43 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 16:38:39 Modified files: . : ChangeLog testsuite : anaylse-results.sh Log message: * testsuite/anaylse-results.sh: don't forget to initialize total_untested. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.43&r2=1.3451.2.44 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/anaylse-results.sh?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.8.4.1&r2=1.8.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.43 retrieving revision 1.3451.2.44 diff -u -b -r1.3451.2.43 -r1.3451.2.44 --- ChangeLog 7 Jun 2007 16:19:34 -0000 1.3451.2.43 +++ ChangeLog 7 Jun 2007 16:38:38 -0000 1.3451.2.44 @@ -1,5 +1,10 @@ 2007-06-07 Sandro Santilli + * testsuite/anaylse-results.sh: don't forget to initialize + total_untested. + +2007-06-07 Sandro Santilli + * doc/C/Makefile.am: distribute all XML files. * macros/docbook.m4: advertise --enable-docbook, not --disable-docbook since it's disabled by default. Index: testsuite/anaylse-results.sh =================================================================== RCS file: /sources/gnash/gnash/testsuite/anaylse-results.sh,v retrieving revision 1.8.4.1 retrieving revision 1.8.4.2 diff -u -b -r1.8.4.1 -r1.8.4.2 --- testsuite/anaylse-results.sh 7 Jun 2007 12:40:16 -0000 1.8.4.1 +++ testsuite/anaylse-results.sh 7 Jun 2007 16:38:39 -0000 1.8.4.2 @@ -12,6 +12,7 @@ total_pass=0; total_xfail=0; total_xpass=0; +total_untested=0; total_unresolved=0; echo From MAILER-DAEMON Thu Jun 07 12:39:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwL0o-0007ac-SH for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 12:39:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwL0n-0007aO-UH for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:39:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwL0m-0007aC-Go for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:39:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwL0m-0007a9-BQ for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:39:00 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwL0m-0004zp-4w for gnash-commit@gnu.org; Thu, 07 Jun 2007 12:39:00 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwL0l-0006tN-F2 for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:38:59 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwL0l-0006tK-Am for gnash-commit@gnu.org; Thu, 07 Jun 2007 16:38:59 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 16:38:59 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog testsuite/anaylse-results.sh X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 16:39:02 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 16:38:59 Modified files: . : ChangeLog testsuite : anaylse-results.sh Log message: * testsuite/anaylse-results.sh: don't forget to initialize total_untested. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3492&r2=1.3493 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/anaylse-results.sh?cvsroot=gnash&r1=1.9&r2=1.10 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3492 retrieving revision 1.3493 diff -u -b -r1.3492 -r1.3493 --- ChangeLog 7 Jun 2007 16:37:26 -0000 1.3492 +++ ChangeLog 7 Jun 2007 16:38:58 -0000 1.3493 @@ -1,5 +1,10 @@ 2007-06-07 Sandro Santilli + * testsuite/anaylse-results.sh: don't forget to initialize + total_untested. + +2007-06-07 Sandro Santilli + * doc/C/Makefile.am: distribute all XML files. * macros/docbook.m4: advertise --enable-docbook, not --disable-docbook since it's disabled by default. Index: testsuite/anaylse-results.sh =================================================================== RCS file: /sources/gnash/gnash/testsuite/anaylse-results.sh,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- testsuite/anaylse-results.sh 7 Jun 2007 12:40:20 -0000 1.9 +++ testsuite/anaylse-results.sh 7 Jun 2007 16:38:59 -0000 1.10 @@ -12,6 +12,7 @@ total_pass=0; total_xfail=0; total_xpass=0; +total_untested=0; total_unresolved=0; echo From MAILER-DAEMON Thu Jun 07 14:22:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwMcw-0004mH-C1 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 14:22:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwMcu-0004kn-BT for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:22:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwMcs-0004kN-IC for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:22:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwMcs-0004kB-CO for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:22:26 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwMcs-0006VK-5M for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:22:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwMcq-0004t7-Rq for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:22:24 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwMcq-0004t3-Mw for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:22:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 18:22:24 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog macros/ffmpeg.m4 [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 18:22:28 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/07 18:22:24 Modified files: . : ChangeLog macros : ffmpeg.m4 Log message: * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if available. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.44&r2=1.3451.2.45 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.43&r2=1.43.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.44 retrieving revision 1.3451.2.45 diff -u -b -r1.3451.2.44 -r1.3451.2.45 --- ChangeLog 7 Jun 2007 16:38:38 -0000 1.3451.2.44 +++ ChangeLog 7 Jun 2007 18:22:22 -0000 1.3451.2.45 @@ -1,5 +1,7 @@ 2007-06-07 Sandro Santilli + * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if + available. * testsuite/anaylse-results.sh: don't forget to initialize total_untested. Index: macros/ffmpeg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v retrieving revision 1.43 retrieving revision 1.43.4.1 diff -u -b -r1.43 -r1.43.4.1 --- macros/ffmpeg.m4 1 Jun 2007 17:50:07 -0000 1.43 +++ macros/ffmpeg.m4 7 Jun 2007 18:22:24 -0000 1.43.4.1 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: ffmpeg.m4,v 1.43 2007/06/01 17:50:07 bjacques Exp $ +dnl $Id: ffmpeg.m4,v 1.43.4.1 2007/06/07 18:22:24 strk Exp $ AC_DEFUN([GNASH_PATH_FFMPEG], [ @@ -302,6 +302,28 @@ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libtheora}" fi + dnl Look for the GSM library, which is required on some systems. + AC_MSG_CHECKING([for libgsm library]) + if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then + $PKG_CONFIG --exists gsm && libgsm=`$PKG_CONFIG --libs gsm` + else + libgsm="" + fi + if test x"${libgsm}" = x; then + if test -f ${topdir}/libgsm.a -o -f ${topdir}/libgsm.${shlibext}; then + ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm" + AC_MSG_RESULT(${topdir}/libgsm) + else + AC_MSG_RESULT(no) + if test x${cross_compiling} = xno; then + AC_CHECK_LIB(gsm, gsm_destroy, [ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm"]) + fi + fi + else + AC_MSG_RESULT(${libgsm}) + ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libgsm}" + fi + dnl Look for the DC1394 library, which is required on some systems. AC_MSG_CHECKING([for libdc1394 library]) if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then From MAILER-DAEMON Thu Jun 07 14:59:55 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwND9-0002sP-Ds for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwND7-0002s5-UT for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwND7-0002rt-BG for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwND7-0002rq-3w for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwND6-0005Jp-Mn for gnash-commit@gnu.org; Thu, 07 Jun 2007 14:59:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwND5-0007P0-JN for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:59:51 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwND5-0007Ox-GX for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:59:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 07 Jun 2007 18:59:51 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog macros/ffmpeg.m4 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 18:59:54 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/07 18:59:51 Modified files: . : ChangeLog macros : ffmpeg.m4 Log message: * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if available. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3493&r2=1.3494 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&r1=1.43&r2=1.44 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3493 retrieving revision 1.3494 diff -u -b -r1.3493 -r1.3494 --- ChangeLog 7 Jun 2007 16:38:58 -0000 1.3493 +++ ChangeLog 7 Jun 2007 18:59:50 -0000 1.3494 @@ -1,5 +1,7 @@ 2007-06-07 Sandro Santilli + * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if + available. * testsuite/anaylse-results.sh: don't forget to initialize total_untested. Index: macros/ffmpeg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- macros/ffmpeg.m4 1 Jun 2007 17:50:07 -0000 1.43 +++ macros/ffmpeg.m4 7 Jun 2007 18:59:51 -0000 1.44 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: ffmpeg.m4,v 1.43 2007/06/01 17:50:07 bjacques Exp $ +dnl $Id: ffmpeg.m4,v 1.44 2007/06/07 18:59:51 strk Exp $ AC_DEFUN([GNASH_PATH_FFMPEG], [ @@ -302,6 +302,28 @@ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libtheora}" fi + dnl Look for the GSM library, which is required on some systems. + AC_MSG_CHECKING([for libgsm library]) + if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then + $PKG_CONFIG --exists gsm && libgsm=`$PKG_CONFIG --libs gsm` + else + libgsm="" + fi + if test x"${libgsm}" = x; then + if test -f ${topdir}/libgsm.a -o -f ${topdir}/libgsm.${shlibext}; then + ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm" + AC_MSG_RESULT(${topdir}/libgsm) + else + AC_MSG_RESULT(no) + if test x${cross_compiling} = xno; then + AC_CHECK_LIB(gsm, gsm_destroy, [ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lgsm"]) + fi + fi + else + AC_MSG_RESULT(${libgsm}) + ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} ${libgsm}" + fi + dnl Look for the DC1394 library, which is required on some systems. AC_MSG_CHECKING([for libdc1394 library]) if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then From MAILER-DAEMON Thu Jun 07 18:13:54 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwQEs-0006lC-Qv for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 18:13:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwQEr-0006l3-01 for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:13:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwQEp-0006kr-JH for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:13:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwQEp-0006ko-F1 for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:13:51 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwQEp-00012X-5c for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:13:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwQEn-0006lb-VV for gnash-commit@gnu.org; Thu, 07 Jun 2007 22:13:50 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwQEn-0006lV-J4 for gnash-commit@gnu.org; Thu, 07 Jun 2007 22:13:49 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Thu, 07 Jun 2007 22:13:49 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 22:13:53 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/07 22:13:49 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp server/swf : tag_loaders.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. * server/swf/tag_loaders.cpp: Adjust size of audio after decoding. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3494&r2=1.3495 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.112&r2=1.113 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3494 retrieving revision 1.3495 diff -u -b -r1.3494 -r1.3495 --- ChangeLog 7 Jun 2007 18:59:50 -0000 1.3494 +++ ChangeLog 7 Jun 2007 22:13:46 -0000 1.3495 @@ -1,3 +1,8 @@ +2007-06-07 Tomas Groth Christensen + + * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. + * server/swf/tag_loaders.cpp: Adjust size of audio after decoding. + 2007-06-07 Sandro Santilli * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 12:10:21 -0000 1.15 +++ libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 22:13:47 -0000 1.16 @@ -222,6 +222,7 @@ } } + av_free(frame); ret_image->update(decodedFrame->m_data); return ret_image; } Index: server/swf/tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.112 retrieving revision 1.113 diff -u -b -r1.112 -r1.113 --- server/swf/tag_loaders.cpp 6 Jun 2007 17:49:01 -0000 1.112 +++ server/swf/tag_loaders.cpp 7 Jun 2007 22:13:47 -0000 1.113 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.112 2007/06/06 17:49:01 strk Exp $ */ +/* $Id: tag_loaders.cpp,v 1.113 2007/06/07 22:13:47 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1311,6 +1311,7 @@ // Uncompress the ADPCM before handing data to host. unsigned sample_count = data_bytes / (stereo ? 4 : 2); adpcm_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * (sample_16bit ? 2 : 1); format = sound_handler::FORMAT_NATIVE16; break; } @@ -1326,6 +1327,7 @@ // Allocate as many shorts as there are samples unsigned sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * 2; } format = sound_handler::FORMAT_NATIVE16; break; @@ -1339,6 +1341,8 @@ // Allocate as many shorts as there are 8-bit samples unsigned sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * 2; + } else { // Read 16-bit data into buffer data = new unsigned char[data_bytes]; From MAILER-DAEMON Thu Jun 07 18:15:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwQGl-000732-JK for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 18:15:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwQGk-00072i-Lv for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:15:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwQGk-00072G-8D for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:15:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwQGj-00072A-Sj for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:15:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwQGj-0001fJ-DF for gnash-commit@gnu.org; Thu, 07 Jun 2007 18:15:49 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwQGi-0006uV-O1 for gnash-commit@gnu.org; Thu, 07 Jun 2007 22:15:48 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwQGi-0006uQ-3Q for gnash-commit@gnu.org; Thu, 07 Jun 2007 22:15:48 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Thu, 07 Jun 2007 22:15:48 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 22:15:51 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/07 22:15:47 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp server/swf : tag_loaders.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. * server/swf/tag_loaders.cpp: Adjust size of audio after decoding. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.45&r2=1.3451.2.46 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.2&r2=1.13.4.3 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.111&r2=1.111.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.45 retrieving revision 1.3451.2.46 diff -u -b -r1.3451.2.45 -r1.3451.2.46 --- ChangeLog 7 Jun 2007 18:22:22 -0000 1.3451.2.45 +++ ChangeLog 7 Jun 2007 22:15:45 -0000 1.3451.2.46 @@ -1,3 +1,8 @@ +2007-06-07 Tomas Groth Christensen + + * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. + * server/swf/tag_loaders.cpp: Adjust size of audio after decoding. + 2007-06-07 Sandro Santilli * macros/ffmpeg.m4: check for libgsm and add to FFMPEG_LIBS if Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13.4.2 retrieving revision 1.13.4.3 diff -u -b -r1.13.4.2 -r1.13.4.3 --- libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 12:12:35 -0000 1.13.4.2 +++ libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 22:15:47 -0000 1.13.4.3 @@ -222,6 +222,7 @@ } } + av_free(frame); ret_image->update(decodedFrame->m_data); return ret_image; } Index: server/swf/tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.111 retrieving revision 1.111.4.1 diff -u -b -r1.111 -r1.111.4.1 --- server/swf/tag_loaders.cpp 25 May 2007 12:41:48 -0000 1.111 +++ server/swf/tag_loaders.cpp 7 Jun 2007 22:15:47 -0000 1.111.4.1 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.111 2007/05/25 12:41:48 bjacques Exp $ */ +/* $Id: tag_loaders.cpp,v 1.111.4.1 2007/06/07 22:15:47 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1305,6 +1305,7 @@ // Uncompress the ADPCM before handing data to host. unsigned sample_count = data_bytes / (stereo ? 4 : 2); adpcm_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * (sample_16bit ? 2 : 1); format = sound_handler::FORMAT_NATIVE16; break; } @@ -1320,6 +1321,7 @@ // Allocate as many shorts as there are samples unsigned sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * 2; } format = sound_handler::FORMAT_NATIVE16; break; @@ -1333,6 +1335,8 @@ // Allocate as many shorts as there are 8-bit samples unsigned sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); + data_bytes = sample_count * (stereo ? 4 : 2) * 2; + } else { // Read 16-bit data into buffer data = new unsigned char[data_bytes]; From MAILER-DAEMON Thu Jun 07 20:44:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwSac-0001w8-O4 for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 20:44:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwSaa-0001vj-Rm for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:44:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwSaa-0001vX-5R for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:44:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwSaa-0001vU-2x for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:44:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwSaZ-0006Re-OZ for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:44:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwSaZ-0002eB-46 for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:44:27 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwSaY-0002e8-UB for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:44:27 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 00:44:26 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server/swf tag_loaders.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 00:44:29 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 00:44:26 Modified files: server/swf : tag_loaders.cpp Log message: Another attempt at getting adpcm-stream decoding working - not quite there yet. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.113&r2=1.114 Patches: Index: tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.113 retrieving revision 1.114 diff -u -b -r1.113 -r1.114 --- tag_loaders.cpp 7 Jun 2007 22:13:47 -0000 1.113 +++ tag_loaders.cpp 8 Jun 2007 00:44:26 -0000 1.114 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.113 2007/06/07 22:13:47 tgc Exp $ */ +/* $Id: tag_loaders.cpp,v 1.114 2007/06/08 00:44:26 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1036,7 +1036,7 @@ // Forward declaration static void sound_expand(stream *in, sound_handler::format_type &format, - bool sample_16bit, bool stereo, + bool sample_16bit, bool stereo, unsigned int &sample_count, unsigned char* &data, unsigned &data_bytes); // Common data @@ -1059,7 +1059,7 @@ int sample_rate = in->read_uint(2); // multiples of 5512.5 bool sample_16bit = in->read_uint(1) ? true : false; bool stereo = in->read_uint(1) ? true : false; - int sample_count = in->read_u32(); + unsigned int sample_count = in->read_u32(); IF_VERBOSE_PARSE ( @@ -1089,7 +1089,7 @@ // sound_expand allocates storage for data[]. // and modifies 3 parameters: format, data and data_bytes. - sound_expand(in, format, sample_16bit, stereo, data, data_bytes); + sound_expand(in, format, sample_16bit, stereo, sample_count, data, data_bytes); int handler_id = handler->create_sound( data, @@ -1157,6 +1157,7 @@ static sound_handler::format_type stream_input_format; static bool stream_input_is16bit; static bool stream_input_stereo; +static unsigned int stream_input_sample_count; // Load a SoundStreamHead(2) tag. void @@ -1187,8 +1188,12 @@ // checks if this is a new streams header or just one in the row if (format == 0 && sample_rate == 0 && !sample_16bit && !stereo) return; - int sample_count = in->read_u32(); - if (format == 2) garbage = in->read_uint(16); + unsigned int sample_count = in->read_u16(); + int latency = 0; + if (format == sound_handler::FORMAT_MP3) { + latency = in->read_s16(); + garbage = in->read_uint(16); + } IF_VERBOSE_PARSE ( @@ -1215,6 +1220,7 @@ stream_input_format = format; stream_input_is16bit = sample_16bit; stream_input_stereo = stereo; + stream_input_sample_count = sample_count; // Tell create_sound what format it will be receiving, in case it cares // at this stage. @@ -1265,12 +1271,10 @@ // The format in the input file is in stream_input_* sound_handler::format_type format = stream_input_format; - unsigned sample_count = data_bytes; - if (stream_input_stereo) sample_count /= 2; - if (stream_input_is16bit) sample_count /= 2; + unsigned int sample_count = stream_input_sample_count; sound_expand(in, format, - stream_input_is16bit, stream_input_stereo, + stream_input_is16bit, stream_input_stereo, sample_count, data, data_bytes); // "format" now reflects what we hand(ed) to the sound drivers. // "data_bytes" now reflects the size of the uncompressed data. @@ -1298,7 +1302,7 @@ // on exit it reflects the number of bytes that "data" now points to. static void sound_expand(stream *in, sound_handler::format_type &format, - bool sample_16bit, bool stereo, + bool sample_16bit, bool stereo, unsigned int &sample_count, unsigned char* &data, unsigned &data_bytes) { // Make sure that an unassigned pointer cannot get through @@ -1309,9 +1313,9 @@ case sound_handler::FORMAT_ADPCM: { // Uncompress the ADPCM before handing data to host. - unsigned sample_count = data_bytes / (stereo ? 4 : 2); + if (sample_count == 0) sample_count = data_bytes / ( stereo ? 4 : 2 ); adpcm_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * (sample_16bit ? 2 : 1); + data_bytes = sample_count * (stereo ? 4 : 2); format = sound_handler::FORMAT_NATIVE16; break; } @@ -1325,9 +1329,9 @@ } else { // Convert 8-bit signed to 16-bit range // Allocate as many shorts as there are samples - unsigned sample_count = data_bytes / (stereo ? 2 : 1); + if (sample_count == 0) sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * 2; + data_bytes = sample_count * (stereo ? 4 : 2); } format = sound_handler::FORMAT_NATIVE16; break; @@ -1339,9 +1343,9 @@ { // Convert 8-bit signed to 16-bit range // Allocate as many shorts as there are 8-bit samples - unsigned sample_count = data_bytes / (stereo ? 2 : 1); + if (sample_count == 0) sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * 2; + data_bytes = sample_count * (stereo ? 4 : 2); } else { // Read 16-bit data into buffer From MAILER-DAEMON Thu Jun 07 20:45:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwSbe-0003mk-0f for mharc-gnash-commit@gnu.org; Thu, 07 Jun 2007 20:45:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwSbc-0003kU-P8 for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:45:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwSbc-0003jV-4K for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:45:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwSbb-0003jP-TK for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:45:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwSbb-0006YA-J9 for gnash-commit@gnu.org; Thu, 07 Jun 2007 20:45:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwSba-0002i9-Sx for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:45:31 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwSba-0002i5-Nc for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:45:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 00:45:30 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/server/swf tag_loaders.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 00:45:33 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/08 00:45:30 Modified files: server/swf : tag_loaders.cpp Log message: Another attempt at getting adpcm-stream decoding working - not quite there yet. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.111.4.1&r2=1.111.4.2 Patches: Index: tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.111.4.1 retrieving revision 1.111.4.2 diff -u -b -r1.111.4.1 -r1.111.4.2 --- tag_loaders.cpp 7 Jun 2007 22:15:47 -0000 1.111.4.1 +++ tag_loaders.cpp 8 Jun 2007 00:45:30 -0000 1.111.4.2 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.111.4.1 2007/06/07 22:15:47 tgc Exp $ */ +/* $Id: tag_loaders.cpp,v 1.111.4.2 2007/06/08 00:45:30 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1030,7 +1030,7 @@ // Forward declaration static void sound_expand(stream *in, sound_handler::format_type &format, - bool sample_16bit, bool stereo, + bool sample_16bit, bool stereo, unsigned int &sample_count, unsigned char* &data, unsigned &data_bytes); // Common data @@ -1053,7 +1053,7 @@ int sample_rate = in->read_uint(2); // multiples of 5512.5 bool sample_16bit = in->read_uint(1) ? true : false; bool stereo = in->read_uint(1) ? true : false; - int sample_count = in->read_u32(); + unsigned int sample_count = in->read_u32(); IF_VERBOSE_PARSE ( @@ -1083,7 +1083,7 @@ // sound_expand allocates storage for data[]. // and modifies 3 parameters: format, data and data_bytes. - sound_expand(in, format, sample_16bit, stereo, data, data_bytes); + sound_expand(in, format, sample_16bit, stereo, sample_count, data, data_bytes); int handler_id = handler->create_sound( data, @@ -1151,6 +1151,7 @@ static sound_handler::format_type stream_input_format; static bool stream_input_is16bit; static bool stream_input_stereo; +static unsigned int stream_input_sample_count; // Load a SoundStreamHead(2) tag. void @@ -1181,8 +1182,12 @@ // checks if this is a new streams header or just one in the row if (format == 0 && sample_rate == 0 && !sample_16bit && !stereo) return; - int sample_count = in->read_u32(); - if (format == 2) garbage = in->read_uint(16); + unsigned int sample_count = in->read_u16(); + int latency = 0; + if (format == sound_handler::FORMAT_MP3) { + latency = in->read_s16(); + garbage = in->read_uint(16); + } IF_VERBOSE_PARSE ( @@ -1209,6 +1214,7 @@ stream_input_format = format; stream_input_is16bit = sample_16bit; stream_input_stereo = stereo; + stream_input_sample_count = sample_count; // Tell create_sound what format it will be receiving, in case it cares // at this stage. @@ -1259,12 +1265,10 @@ // The format in the input file is in stream_input_* sound_handler::format_type format = stream_input_format; - unsigned sample_count = data_bytes; - if (stream_input_stereo) sample_count /= 2; - if (stream_input_is16bit) sample_count /= 2; + unsigned int sample_count = stream_input_sample_count; sound_expand(in, format, - stream_input_is16bit, stream_input_stereo, + stream_input_is16bit, stream_input_stereo, sample_count, data, data_bytes); // "format" now reflects what we hand(ed) to the sound drivers. // "data_bytes" now reflects the size of the uncompressed data. @@ -1292,7 +1296,7 @@ // on exit it reflects the number of bytes that "data" now points to. static void sound_expand(stream *in, sound_handler::format_type &format, - bool sample_16bit, bool stereo, + bool sample_16bit, bool stereo, unsigned int &sample_count, unsigned char* &data, unsigned &data_bytes) { // Make sure that an unassigned pointer cannot get through @@ -1303,9 +1307,9 @@ case sound_handler::FORMAT_ADPCM: { // Uncompress the ADPCM before handing data to host. - unsigned sample_count = data_bytes / (stereo ? 4 : 2); + if (sample_count == 0) sample_count = data_bytes / ( stereo ? 4 : 2 ); adpcm_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * (sample_16bit ? 2 : 1); + data_bytes = sample_count * (stereo ? 4 : 2); format = sound_handler::FORMAT_NATIVE16; break; } @@ -1319,9 +1323,9 @@ } else { // Convert 8-bit signed to 16-bit range // Allocate as many shorts as there are samples - unsigned sample_count = data_bytes / (stereo ? 2 : 1); + if (sample_count == 0) sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * 2; + data_bytes = sample_count * (stereo ? 4 : 2); } format = sound_handler::FORMAT_NATIVE16; break; @@ -1333,9 +1337,9 @@ { // Convert 8-bit signed to 16-bit range // Allocate as many shorts as there are 8-bit samples - unsigned sample_count = data_bytes / (stereo ? 2 : 1); + if (sample_count == 0) sample_count = data_bytes / (stereo ? 2 : 1); u8_expand(data, in, sample_count, stereo); - data_bytes = sample_count * (stereo ? 4 : 2) * 2; + data_bytes = sample_count * (stereo ? 4 : 2); } else { // Read 16-bit data into buffer From MAILER-DAEMON Fri Jun 08 00:31:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwW8c-0007yN-HQ for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 00:31:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwW8a-0007vY-UH for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:31:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwW8Y-0007qQ-7m for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:31:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwW8Y-0007qF-4m for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:31:46 -0400 Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwW8X-00030H-KE for gnash-commit@gnu.org; Fri, 08 Jun 2007 00:31:45 -0400 Received: by wa-out-1112.google.com with SMTP id k34so878370wah for ; Thu, 07 Jun 2007 21:31:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sH/Rj1A3X9/V+GGrDhCADC9AidRyfcGw8QGbe1zSmf+QirwZStMsdQbKJZ07R3QOyK8dfIX63P5AKDjhQw/cnIsT7r6mEnWVkoQuMUHjeT20RuLdi+mjSwBZfbU1OmK4hsfG2olLuE0+HPPUsF/BcxMqv6fzxdc2P5mxuI35iPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q/iuoz16fI+6z3nu30ZpRGZCD4vKwI8wehEptDdrLbSQxOtGHZLloxxdX3EGnZKmpCD/ZHAxqwS4Jv4hUMWZG0ZGTdBbr34xX3HOiM5FxYm/CaJs5LZtZmcWCrgZxc9tqkyHv/xg4Quxh8kEcAwyYtLTb/+4YegQHEk2OrVQ34I= Received: by 10.114.156.1 with SMTP id d1mr2212857wae.1181277104379; Thu, 07 Jun 2007 21:31:44 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Thu, 7 Jun 2007 21:31:44 -0700 (PDT) Message-ID: Date: Fri, 8 Jun 2007 12:31:44 +0800 From: "zou lunkai" To: strk In-Reply-To: <20070607074034.GB83679@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070607071516.GA83679@keybit.net> <20070607074034.GB83679@keybit.net> X-detected-kernel: Linux 2.6 (newer, 2) Cc: gnash-commit@gnu.org Subject: [Gnash-commit] Re: "make check" report X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 04:31:49 -0000 On 6/7/07, strk wrote: > On Thu, Jun 07, 2007 at 03:19:49PM +0800, zou lunkai wrote: > > >On Thu, Jun 07, 2007 at 02:51:34PM +0800, zou lunkai wrote: > > >> "make check" failed again here, can anyone confirm? This blocks my > > >> coming commit. > > > > > >There was a missing dependency of Video-EmbedSquare.swf > > >against testsuite/media/square.swf. Should be fixed now (did you update?). > > > > > > > Upated half an hour ago. maybe need to do "make clean" first, and > > then "make" and "make check". I'll try again later. > > You should just need an ./autogen.sh and a ./configure I guess. > Or simply rm Video-EmbedSquare.swf so it's forcably regenerated. > Updated the source(CVS_HEAD) again this morning, make clean, make and make check, still got the same problem and something more. see tests below: step1: ./configure --with-agg-incl=/usr/local/include/include --with-agg-lib=/usr/local/lib --disable-glext --disable-plugin --disable-cygnal --disable-klash --enable-static --enable-testing --enable-renderer=agg --with-pixelformat=RGB24 "CXXFLAGS=-g -O0 -pg -Wall" make dumpconfig: ... Configurable options are: Media handler: mad Renderer engine: agg GUI: gtk2 Extensions: step2: make step3: cd testsuite/server and make check got: ../../server/.libs/libgnashserver.so: undefined reference to `gnash::sound_handler::convert_raw_data(short**, int*, void*, int, int, int, bool, int, bool)' collect2: ld returned 1 exit status make[1]: *** [MatrixTest] Error 1 step4: cd testsuite/msic-ming.all and make check got(the same as yestoday): # of expected passes 1875 # of unexpected failures 84 # of expected failures 65 # of untested testcases 2 Change the configure options: step1: ./configure --with-agg-incl=/usr/local/include/include --with-agg-lib=/usr/local/lib --disable-glext --disable-plugin --disable-cygnal --disable-klash --enable-static --enable-testing --enable-gui=sdl --enable-media=none --enable-renderer=agg --with-pixelformat=RGB24 --without-ffmpeg "CXXFLAGS=-g -O0 -pg -Wall" Configurable options are: Media handler: Renderer engine: agg GUI: sdl Extensions: step2: make step3 cd testsuite/server; make check everything is fine; step4: cd testsuite/misc-ming.all; make check still got: # of expected passes 1875 # of unexpected failures 84 # of expected failures 65 # of untested testcases 2 Those results are reproducible here. From MAILER-DAEMON Fri Jun 08 02:16:47 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwXmB-0007TA-92 for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 02:16:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwXm9-0007Sv-Bm for gnash-commit@gnu.org; Fri, 08 Jun 2007 02:16:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwXm6-0007S2-G2 for gnash-commit@gnu.org; Fri, 08 Jun 2007 02:16:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwXm6-0007Rr-9t for gnash-commit@gnu.org; Fri, 08 Jun 2007 02:16:42 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwXm5-0006sN-Kk for gnash-commit@gnu.org; Fri, 08 Jun 2007 02:16:42 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l586GXN08534; Fri, 8 Jun 2007 08:16:33 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Fri, 8 Jun 2007 08:16:33 +0200 To: Tomas Groth Subject: Re: [Gnash-commit] gnash/server/swf tag_loaders.cpp [release-0-8-0] Message-ID: <20070608061633.GA99775@keybit.net> Mail-Followup-To: Tomas Groth , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 06:16:45 -0000 On Fri, Jun 08, 2007 at 12:45:30AM +0000, Tomas Groth wrote: > CVSROOT: /sources/gnash > Module name: gnash > Branch: release-0-8-0 > Changes by: Tomas Groth 07/06/08 00:45:30 > > Modified files: > server/swf : tag_loaders.cpp > > Log message: > Another attempt at getting adpcm-stream decoding working - not quite there yet. Can't reproduce the segfault, and valgind doesnt' report any error with that run ! :D --strk svn co https://tu-testbed.svn.sourceforge.net/svnroot/tu-testbed tu-testbed; From MAILER-DAEMON Fri Jun 08 03:55:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwZK8-0004W0-Gx for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 03:55:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwZK4-0004VC-Fg for gnash-commit@gnu.org; Fri, 08 Jun 2007 03:55:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwZK3-0004Uo-9m for gnash-commit@gnu.org; Fri, 08 Jun 2007 03:55:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwZK3-0004Ul-4s for gnash-commit@gnu.org; Fri, 08 Jun 2007 03:55:51 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HwZK2-0001QS-D5 for gnash-commit@gnu.org; Fri, 08 Jun 2007 03:55:50 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l587tYS09897; Fri, 8 Jun 2007 09:55:34 +0200 (CEST) (envelope-from strk@keybit.net) Date: Fri, 8 Jun 2007 09:55:34 +0200 From: strk To: zou lunkai Subject: Re: [Gnash-commit] Re: "make check" report Message-ID: <20070608075534.GB99775@keybit.net> Mail-Followup-To: zou lunkai , gnash-commit@gnu.org References: <20070607071516.GA83679@keybit.net> <20070607074034.GB83679@keybit.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 07:55:52 -0000 On Fri, Jun 08, 2007 at 12:31:44PM +0800, zou lunkai wrote: > Updated the source(CVS_HEAD) again this morning, make clean, make and > make check, still got the same problem and something more. see tests Do you see failures visually ? > got: > ../../server/.libs/libgnashserver.so: undefined reference to > `gnash::sound_handler::convert_raw_data(short**, int*, void*, int, > int, int, bool, int, bool)' > collect2: ld returned 1 exit status This was fixed recently, please update again, and clean build. --strk; From MAILER-DAEMON Fri Jun 08 04:15:28 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwZd2-0007u9-5E for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 04:15:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwZd0-0007rs-FX for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:15:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwZd0-0007rP-4F for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:15:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwZcz-0007rC-Oy for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:15:25 -0400 Received: from wr-out-0506.google.com ([64.233.184.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwZcz-0003qb-G8 for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:15:25 -0400 Received: by wr-out-0506.google.com with SMTP id 68so669858wri for ; Fri, 08 Jun 2007 01:15:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ipUQ8Mxb17YCI2pl7WiKLU1APck9E86Rktav/dRuog9Q6mHG45/pI/7ydJa0KF1iFoYvXsPJsdAs83RjhiZ2HGg9TtQG+Zyh4UuYtC/kL/QKjhbmn9ZelNiiwQUUIS5P/mzGokaHISaNawD5ljIoDzfrvQCaul4Lt83tB0ac+9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fVNMmLoO+z/VtnFBJe/547KvdoY+V84+ca0q4Jlh2gO+wB1smyH8x5wdLgMxF3InO/UqqAjPs67nr/QFpiQ3W/5dqF4mbgG6BcWSWftNqKPjN3PR/2iEgtYDt2QKTZPWk0jfplgNB4NHKHHTfNS+YcyMHvozBtSBUmUI02Lvb7Y= Received: by 10.114.149.2 with SMTP id w2mr2417262wad.1181290524297; Fri, 08 Jun 2007 01:15:24 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Fri, 8 Jun 2007 01:15:24 -0700 (PDT) Message-ID: Date: Fri, 8 Jun 2007 16:15:24 +0800 From: "zou lunkai" To: "zou lunkai" , gnash-commit@gnu.org Subject: Re: [Gnash-commit] Re: "make check" report In-Reply-To: <20070608075534.GB99775@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070607071516.GA83679@keybit.net> <20070607074034.GB83679@keybit.net> <20070608075534.GB99775@keybit.net> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 08:15:26 -0000 On 6/8/07, strk wrote: > On Fri, Jun 08, 2007 at 12:31:44PM +0800, zou lunkai wrote: > > > Updated the source(CVS_HEAD) again this morning, make clean, make and > > make check, still got the same problem and something more. see tests > > Do you see failures visually ? > > > got: > > ../../server/.libs/libgnashserver.so: undefined reference to > > `gnash::sound_handler::convert_raw_data(short**, int*, void*, int, > > int, int, bool, int, bool)' > > collect2: ld returned 1 exit status > > This was fixed recently, please update again, and clean build. > Please don't just ask me to do it again and expect everything would be fine after that:) I *did* update the source and I tried *many* times with "make clean" and "make check" . more reports: (1) cd testsuite/samples ./gotoFrameOnKeyEvent.swf got: Neigher SOUND_SDL nor SOUND_GST defined 26281] 16:06:03: framebuffer pixel format is RGB555 26281] 16:06:03: ERROR: Unknown pixelformat: RGB555 Renderer AGG_RGB555 not supported 26281] 16:06:03: framebuffer pixel format is RGB565 26281] 16:06:03: ERROR: Unknown pixelformat: RGB565 Renderer AGG_RGB565 not supported 26281] 16:06:03: framebuffer pixel format is RGBA16 26281] 16:06:03: ERROR: Unknown pixelformat: RGBA16 Renderer AGG_RGBA16 not supported 26281] 16:06:03: framebuffer pixel format is RGB24 Renderer AGG_RGB24 initialized 26281] 16:06:03: initialized AGG buffer <0xb7e9b008>, 540000 bytes, 450x400, rowsize is 1350 bytes 26281] 16:06:03: framebuffer pixel format is BGR24 26281] 16:06:03: ERROR: Unknown pixelformat: BGR24 Renderer AGG_BGR24 not supported 26281] 16:06:03: framebuffer pixel format is RGBA32 26281] 16:06:03: ERROR: Unknown pixelformat: RGBA32 Renderer AGG_RGBA32 not supported 26281] 16:06:03: framebuffer pixel format is BGRA32 26281] 16:06:03: ERROR: Unknown pixelformat: BGRA32 Renderer AGG_BGRA32 not supported Segmentation fault (2) cd testsuite/misc-ming.all ./replace_buttons1test_runner Neigher SOUND_SDL nor SOUND_GST defined Renderer AGG_RGB555 not supported Renderer AGG_RGB565 not supported Renderer AGG_RGBA16 not supported Renderer AGG_RGB24 initialized Renderer AGG_BGR24 not supported Renderer AGG_RGBA32 not supported Renderer AGG_BGRA32 not supported frame 0) Invalidated bounds Finite range (-40,-40 16040,12040) PASSED: root->get_frame_count() == 4 [replace_buttons1test_runner.cpp:64] PASSED: root->get_play_state() == 0 [replace_buttons1test_runner.cpp:65] PASSED: root->get_current_frame() == 0 [replace_buttons1test_runner.cpp:66] PASSED: root->getDisplayList().size() == 1 [replace_buttons1test_runner.cpp:67] PASSED: invalidated.contains(76, 4) [replace_buttons1test_runner.cpp:69] Segmentation fault From MAILER-DAEMON Fri Jun 08 04:18:10 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwZfe-0001CC-4N for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 04:18:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwZfd-0001Bz-3W for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:18:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwZfc-0001Bm-Ds for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:18:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwZfc-0001Bj-7a for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:18:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwZfb-0004BI-9k for gnash-commit@gnu.org; Fri, 08 Jun 2007 04:18:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwZfX-0006Vn-RO for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:18:03 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwZfX-0006Vj-J1 for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:18:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Fri, 08 Jun 2007 08:18:03 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 08:18:09 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Branch: release-0-8-0 Changes by: Udo Giacomozzi 07/06/08 08:18:03 Modified files: . : ChangeLog server : edit_text_character.cpp Log message: server/edit_text_character.cpp: replace WIDTH_FUDGE with PADDING_TWIPS and correct some border issues (backport) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.46&r2=1.3451.2.47 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.62&r2=1.62.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.46 retrieving revision 1.3451.2.47 diff -u -b -r1.3451.2.46 -r1.3451.2.47 --- ChangeLog 7 Jun 2007 22:15:45 -0000 1.3451.2.46 +++ ChangeLog 8 Jun 2007 08:18:00 -0000 1.3451.2.47 @@ -1,3 +1,8 @@ +2007-06-07 Udo Giacomozzi + + * server/edit_text_character.cpp: replace WIDTH_FUDGE with PADDING_TWIPS + and correct some border issues (backport) + 2007-06-07 Tomas Groth Christensen * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. Index: server/edit_text_character.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.62 retrieving revision 1.62.4.1 diff -u -b -r1.62 -r1.62.4.1 --- server/edit_text_character.cpp 26 Apr 2007 10:56:50 -0000 1.62 +++ server/edit_text_character.cpp 8 Jun 2007 08:18:02 -0000 1.62.4.1 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.62 2007/04/26 10:56:50 zoulunkai Exp $ */ +/* $Id: edit_text_character.cpp,v 1.62.4.1 2007/06/08 08:18:02 udog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -42,6 +42,10 @@ #include #include +// Text fields have a fixed 2 pixel padding for each side (regardless of border) +#define PADDING_TWIPS 40.0f + + namespace gnash { // Forward declarations @@ -451,10 +455,13 @@ // m_x_offset and m_y_offset memebers in glyph records. // Anyway, see bug #17954 for a testcase. matrix m; + if ( ! def_bounds.is_null() && ! def_bounds.is_world() ) { - m.set_translation(def_bounds.get_x_min(), def_bounds.get_y_min()); + m.concatenate_translation(def_bounds.get_x_min(), def_bounds.get_y_min()); } + + display_glyph_records(m, this, m_text_glyph_records, m_def->get_root_def()); @@ -828,10 +835,6 @@ return get_member_default(name, val); } -// @@ WIDTH_FUDGE is a total fudge to make it match the Flash player! Maybe -// we have a bug? -#define WIDTH_FUDGE 80.0f - float edit_text_character::align_line( @@ -842,7 +845,7 @@ assert(m_def); float extra_space = (m_def->width() - - m_def->get_right_margin()) - x - WIDTH_FUDGE; + m_def->get_right_margin()) - x - PADDING_TWIPS; //assert(extra_space >= 0.0f); if (extra_space <= 0.0f) @@ -956,8 +959,8 @@ text_glyph_record rec; // one to work on rec.m_style.m_font = _font; rec.m_style.m_color = m_def->get_text_color(); - rec.m_style.m_x_offset = std::max(0, m_def->get_left_margin() + m_def->get_indent()); - rec.m_style.m_y_offset = m_def->get_font_height() + rec.m_style.m_x_offset = PADDING_TWIPS + std::max(0, m_def->get_left_margin() + m_def->get_indent()); + rec.m_style.m_y_offset = PADDING_TWIPS + m_def->get_font_height() + (_font->get_leading() - _font->get_descent()) * scale; rec.m_style.m_text_height = m_def->get_font_height(); rec.m_style.m_has_x_offset = true; @@ -1018,7 +1021,8 @@ align_line(m_def->get_alignment(), last_line_start_record, x); // new paragraphs get the indent. - x = std::max(0, m_def->get_left_margin() + m_def->get_indent()); + x = std::max(0, m_def->get_left_margin() + m_def->get_indent()) + + PADDING_TWIPS; y += m_def->get_font_height() + leading; // Start a new record on the next line. @@ -1132,7 +1136,7 @@ after_x_advance: - if (x >= m_def->width() - m_def->get_right_margin() - WIDTH_FUDGE) + if (x >= m_def->width() - m_def->get_right_margin() - PADDING_TWIPS) { // Whoops, we just exceeded the box width. // Do word-wrap if requested to do so. @@ -1152,8 +1156,7 @@ // Close out this stretch of glyphs. m_text_glyph_records.push_back(rec); float previous_x = x; - - x = m_def->get_left_margin(); + x = m_def->get_left_margin() + PADDING_TWIPS; y += m_def->get_font_height() + leading; // Start a new record on the next line. From MAILER-DAEMON Fri Jun 08 07:30:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwcg9-0004ja-GR for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 07:30:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwcg8-0004iL-0m for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:30:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwcg6-0004h8-Qi for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:30:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwcg6-0004gv-NZ for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:30:50 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hwcg6-0000hu-Ci for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:30:50 -0400 Received: by wa-out-1112.google.com with SMTP id k34so1025962wah for ; Fri, 08 Jun 2007 04:30:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MNzXd6+W0SOpadGCUn6JTOD2IXvVshyV4XpPST6obik6utyCcwyfFwQSgbM4SRMzH20Inrbdtrlcz9BigGYvWSbCEatfEzgmiAMEVr1MmeTMaZMuslczoy49bDuS19cxYAF1JVj27MH2dQuNzZKZ1FAU3004yMup2eLtDw6GJGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rn632a6FdUtlijvmoWr//5B71ZgEDea63C+Bv5ClupgY59n6kY+10a4SkKvDE8VVeME4Q/QzTxpDUHRzzdCRyd+xgCmw16uQlu3ijMMuWyYlClZ9ABmoBRTkleU+Cxo63XpjCuYLFhOcUb4Da0QU75JrPrKMI04ZOHxwYoXH7Rw= Received: by 10.114.14.1 with SMTP id 1mr2484526wan.1181302248184; Fri, 08 Jun 2007 04:30:48 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Fri, 8 Jun 2007 04:30:48 -0700 (PDT) Message-ID: Date: Fri, 8 Jun 2007 19:30:48 +0800 From: "zou lunkai" To: strk , gnash-commit@gnu.org Subject: Re: [Gnash-commit] Re: "make check" report In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070607071516.GA83679@keybit.net> <20070607074034.GB83679@keybit.net> <20070608075534.GB99775@keybit.net> X-detected-kernel: Linux 2.6 (newer, 2) Cc: X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 11:30:52 -0000 On 6/8/07, zou lunkai wrote: > On 6/8/07, strk wrote: > > On Fri, Jun 08, 2007 at 12:31:44PM +0800, zou lunkai wrote: > > > > > Updated the source(CVS_HEAD) again this morning, make clean, make and > > > make check, still got the same problem and something more. see tests > > > > Do you see failures visually ? > > yes, could see just a white blank window with Video-EmbedSquareTest.swf. Other failures are solved by setting pixel format to default (16bit). From MAILER-DAEMON Fri Jun 08 07:38:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwcnO-0007Iw-68 for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 07:38:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwcnN-0007Ij-1g for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:38:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwcnK-0007IP-OZ for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:38:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwcnK-0007IM-LN for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:38:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwcnK-0001aM-Em for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:38:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwcnJ-0007Eq-Qt for gnash-commit@gnu.org; Fri, 08 Jun 2007 11:38:17 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwcnJ-0007En-Kx for gnash-commit@gnu.org; Fri, 08 Jun 2007 11:38:17 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 11:38:17 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/sound_handler_sdl.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 11:38:21 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 11:38:17 Modified files: . : ChangeLog backend : sound_handler_sdl.cpp Log message: * backend/sound_handler_sdl.cpp: Fixed an assertion fault when non-mp3 audio was looping. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3495&r2=1.3496 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_sdl.cpp?cvsroot=gnash&r1=1.68&r2=1.69 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3495 retrieving revision 1.3496 diff -u -b -r1.3495 -r1.3496 --- ChangeLog 7 Jun 2007 22:13:46 -0000 1.3495 +++ ChangeLog 8 Jun 2007 11:38:16 -0000 1.3496 @@ -1,3 +1,8 @@ +2007-06-08 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed an assertion fault + when non-mp3 audio was looping. + 2007-06-07 Tomas Groth Christensen * libbase/embedVideoDecoderFfmpeg.cpp: Free the av_frame after use. Index: backend/sound_handler_sdl.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_sdl.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -u -b -r1.68 -r1.69 --- backend/sound_handler_sdl.cpp 31 May 2007 16:42:06 -0000 1.68 +++ backend/sound_handler_sdl.cpp 8 Jun 2007 11:38:17 -0000 1.69 @@ -18,7 +18,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -// $Id: sound_handler_sdl.cpp,v 1.68 2007/05/31 16:42:06 strk Exp $ +// $Id: sound_handler_sdl.cpp,v 1.69 2007/06/08 11:38:17 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -155,7 +155,7 @@ // @@ does a negative handle_id have any meaning ? // should we change it to unsigned instead ? if (handle_id < 0 || (unsigned int) handle_id+1 > m_sound_data.size()) { - return 1; + return -1; } int start_size = 0; sound_data* sounddata = m_sound_data[handle_id]; @@ -187,11 +187,10 @@ sounddata->data_size += adjusted_size; std::vector asounds = sounddata->m_active_sounds; + // If playback has already started, we also update the active sounds for(uint32_t i=0; i < asounds.size(); i++) { active_sound* sound = asounds[i]; - sound->set_data(sounddata->data); - sound->data_size = sounddata->data_size; - sound->position = sounddata->data_size; + sound->raw_data_size = sounddata->data_size; sound->set_raw_data(sounddata->data); } } @@ -312,7 +311,8 @@ sound->raw_data_size = sounddata->data_size; sound->set_raw_data(sounddata->data); sound->raw_position = 0; - sound->position = sounddata->data_size; + sound->position = 0; + sound->data_size = 0; } @@ -766,6 +766,19 @@ } + // If this isn't MP3 (which means its NATIVE16) there is nothing to decode, + // reusing the available data is the only option. + if (sounddata->format != 2) { + if (index < buffer_length) { + sound->loop_count--; + sound->raw_position = 0; + unsigned int mix_length = ((buffer_length - index) > sound->raw_data_size ? sound->raw_data_size : (buffer_length - index)); + do_mixing(stream+index, sound, sound->get_raw_data_ptr(sound->raw_position), + mix_length, sounddata->volume); + } + continue; + } + // Then we decode some data // We loop until the size of the decoded sound is greater than the buffer size, // or there is no more to decode. From MAILER-DAEMON Fri Jun 08 07:40:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwcpi-0007e7-1W for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 07:40:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwcpg-0007dW-6Z for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:40:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwcpf-0007d2-Au for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:40:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwcpf-0007cy-7j for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:40:43 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwcpe-0001qc-U7 for gnash-commit@gnu.org; Fri, 08 Jun 2007 07:40:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwcpe-0007PZ-4g for gnash-commit@gnu.org; Fri, 08 Jun 2007 11:40:42 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwcpe-0007PW-0B for gnash-commit@gnu.org; Fri, 08 Jun 2007 11:40:42 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 11:40:42 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog backend/sound_handler_sdl.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 11:40:44 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/08 11:40:41 Modified files: . : ChangeLog backend : sound_handler_sdl.cpp Log message: * backend/sound_handler_sdl.cpp: Fixed an assertion fault when non-mp3 audio was looping. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.47&r2=1.3451.2.48 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_sdl.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.68&r2=1.68.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.47 retrieving revision 1.3451.2.48 diff -u -b -r1.3451.2.47 -r1.3451.2.48 --- ChangeLog 8 Jun 2007 08:18:00 -0000 1.3451.2.47 +++ ChangeLog 8 Jun 2007 11:40:40 -0000 1.3451.2.48 @@ -1,3 +1,8 @@ +2007-06-08 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed an assertion fault + when non-mp3 audio was looping. + 2007-06-07 Udo Giacomozzi * server/edit_text_character.cpp: replace WIDTH_FUDGE with PADDING_TWIPS Index: backend/sound_handler_sdl.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_sdl.cpp,v retrieving revision 1.68 retrieving revision 1.68.4.1 diff -u -b -r1.68 -r1.68.4.1 --- backend/sound_handler_sdl.cpp 31 May 2007 16:42:06 -0000 1.68 +++ backend/sound_handler_sdl.cpp 8 Jun 2007 11:40:41 -0000 1.68.4.1 @@ -18,7 +18,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -// $Id: sound_handler_sdl.cpp,v 1.68 2007/05/31 16:42:06 strk Exp $ +// $Id: sound_handler_sdl.cpp,v 1.68.4.1 2007/06/08 11:40:41 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -155,7 +155,7 @@ // @@ does a negative handle_id have any meaning ? // should we change it to unsigned instead ? if (handle_id < 0 || (unsigned int) handle_id+1 > m_sound_data.size()) { - return 1; + return -1; } int start_size = 0; sound_data* sounddata = m_sound_data[handle_id]; @@ -187,11 +187,10 @@ sounddata->data_size += adjusted_size; std::vector asounds = sounddata->m_active_sounds; + // If playback has already started, we also update the active sounds for(uint32_t i=0; i < asounds.size(); i++) { active_sound* sound = asounds[i]; - sound->set_data(sounddata->data); - sound->data_size = sounddata->data_size; - sound->position = sounddata->data_size; + sound->raw_data_size = sounddata->data_size; sound->set_raw_data(sounddata->data); } } @@ -312,7 +311,8 @@ sound->raw_data_size = sounddata->data_size; sound->set_raw_data(sounddata->data); sound->raw_position = 0; - sound->position = sounddata->data_size; + sound->position = 0; + sound->data_size = 0; } @@ -766,6 +766,19 @@ } + // If this isn't MP3 (which means its NATIVE16) there is nothing to decode, + // reusing the available data is the only option. + if (sounddata->format != 2) { + if (index < buffer_length) { + sound->loop_count--; + sound->raw_position = 0; + unsigned int mix_length = ((buffer_length - index) > sound->raw_data_size ? sound->raw_data_size : (buffer_length - index)); + do_mixing(stream+index, sound, sound->get_raw_data_ptr(sound->raw_position), + mix_length, sounddata->volume); + } + continue; + } + // Then we decode some data // We loop until the size of the decoded sound is greater than the buffer size, // or there is no more to decode. From MAILER-DAEMON Fri Jun 08 08:11:55 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwdJr-0005Bo-9X for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 08:11:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwdJp-00059r-E5 for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:11:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwdJo-00059E-SM for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:11:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwdJo-000595-IP for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:11:52 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwdJo-0005s1-3l for gnash-commit@gnu.org; Fri, 08 Jun 2007 08:11:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwdJn-00013y-5W for gnash-commit@gnu.org; Fri, 08 Jun 2007 12:11:51 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwdJm-00013v-V5 for gnash-commit@gnu.org; Fri, 08 Jun 2007 12:11:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Fri, 08 Jun 2007 12:11:50 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/as_object.cpp server/as_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 12:11:53 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/08 12:11:50 Modified files: . : ChangeLog server : as_object.cpp as_object.h button_character_instance.cpp character.h edit_text_character.cpp movie_root.cpp movie_root.h sprite_instance.cpp server/asobj : Key.cpp Key.h Log message: merged two key listener lists into one, for better management of key events CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3496&r2=1.3497 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.cpp?cvsroot=gnash&r1=1.51&r2=1.52 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.h?cvsroot=gnash&r1=1.57&r2=1.58 http://cvs.savannah.gnu.org/viewcvs/gnash/server/button_character_instance.cpp?cvsroot=gnash&r1=1.48&r2=1.49 http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.h?cvsroot=gnash&r1=1.80&r2=1.81 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.64&r2=1.65 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.62&r2=1.63 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.h?cvsroot=gnash&r1=1.55&r2=1.56 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.284&r2=1.285 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Key.cpp?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Key.h?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3496 retrieving revision 1.3497 diff -u -b -r1.3496 -r1.3497 --- ChangeLog 8 Jun 2007 11:38:16 -0000 1.3496 +++ ChangeLog 8 Jun 2007 12:11:49 -0000 1.3497 @@ -1,3 +1,12 @@ +2007-06-08 Zou Lunkai + + * server/as_object.{h,cpp}: add a virtual on_event() for event handler. + * movie_root.{h,cpp}: add a new KeyListener class. + * server/asobj/Key.{h ,cpp}, sprite_instance.cpp, edit_text_character.cpp, + button_character_instance.cpp: adopt new KeyListener interface. + * server/character.h: change getUserDefinedEventHandler() from private to public. + all in all, merged two listener lists into one. + 2007-06-08 Tomas Groth Christensen * backend/sound_handler_sdl.cpp: Fixed an assertion fault Index: server/as_object.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_object.cpp,v retrieving revision 1.51 retrieving revision 1.52 diff -u -b -r1.51 -r1.52 --- server/as_object.cpp 2 Jun 2007 08:56:22 -0000 1.51 +++ server/as_object.cpp 8 Jun 2007 12:11:49 -0000 1.52 @@ -30,7 +30,9 @@ #include "GnashException.h" #include "fn_call.h" // for generic methods #include "Object.h" // for getObjectInterface - +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + #include "action.h" // for call_method +#endif #include #include #include @@ -616,4 +618,27 @@ return getObjectInterface(); } +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +bool +as_object::on_event(const event_id& id ) +{ + as_value event_handler; + + std::string handler_name = id.get_function_name(); + + if ( _vm.getSWFVersion() < 7 ) + { + boost::to_lower(handler_name, _vm.getLocale()); + } + + if (get_member(handler_name, &event_handler) ) + { + call_method(event_handler, NULL, this, 0, 0); + return true; + } + + return false; +} +#endif + } // end of gnash namespace Index: server/as_object.h =================================================================== RCS file: /sources/gnash/gnash/server/as_object.h,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- server/as_object.h 5 Jun 2007 06:07:29 -0000 1.57 +++ server/as_object.h 8 Jun 2007 12:11:49 -0000 1.58 @@ -31,6 +31,10 @@ #include "smart_ptr.h" #include "as_prop_flags.h" // for enum #include "GnashException.h" +#define NEW_KEY_LISTENER_LIST_DESIGN +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + #include "event_id.h" // for event_id +#endif #include #if defined(__GNUC__) && __GNUC__ > 2 @@ -166,7 +170,9 @@ { return set_member_default(name, val); } - +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + virtual bool on_event(const event_id& id ); +#endif /// Initialize a member value // /// This method has to be used by built-in classes initialization Index: server/button_character_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/button_character_instance.cpp,v retrieving revision 1.48 retrieving revision 1.49 diff -u -b -r1.48 -r1.49 --- server/button_character_instance.cpp 24 May 2007 11:41:00 -0000 1.48 +++ server/button_character_instance.cpp 8 Jun 2007 12:11:49 -0000 1.49 @@ -268,7 +268,11 @@ { if (m_def->m_button_actions[i].m_conditions & 0xFE00) // check up on CondKeyPress: UB[7] { +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + _vm.getRoot().add_key_listener(KeyListener(this)); +#else _vm.getRoot().add_key_listener(this); +#endif break; } } @@ -277,7 +281,11 @@ button_character_instance::~button_character_instance() { +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + _vm.getRoot().remove_key_listener(KeyListener(this)); +#else _vm.getRoot().remove_key_listener(this); +#endif } Index: server/character.h =================================================================== RCS file: /sources/gnash/gnash/server/character.h,v retrieving revision 1.80 retrieving revision 1.81 diff -u -b -r1.80 -r1.81 --- server/character.h 28 May 2007 15:41:05 -0000 1.80 +++ server/character.h 8 Jun 2007 12:11:50 -0000 1.81 @@ -19,7 +19,7 @@ // // -/* $Id: character.h,v 1.80 2007/05/28 15:41:05 ann Exp $ */ +/* $Id: character.h,v 1.81 2007/06/08 12:11:50 zoulunkai Exp $ */ #ifndef GNASH_CHARACTER_H #define GNASH_CHARACTER_H @@ -158,7 +158,7 @@ { return _event_handlers; } - +#ifndef NEW_KEY_LISTENER_LIST_DESIGN /// Return a user defined event handler, if any // /// @param name @@ -171,7 +171,7 @@ /// casts to an as_function. A NULL pointer otherwise. /// boost::intrusive_ptr getUserDefinedEventHandler(const std::string& name) const; - +#endif void set_event_handlers(const Events& copyfrom); /// Used to assign a name to unnamed instances @@ -1000,6 +1000,9 @@ // override from as_object virtual std::string get_text_value() const; +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + boost::intrusive_ptr getUserDefinedEventHandler(const std::string& name) const; +#endif }; Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.64 retrieving revision 1.65 diff -u -b -r1.64 -r1.65 --- server/edit_text_character.cpp 7 Jun 2007 11:59:56 -0000 1.64 +++ server/edit_text_character.cpp 8 Jun 2007 12:11:50 -0000 1.65 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.64 2007/06/07 11:59:56 udog Exp $ */ +/* $Id: edit_text_character.cpp,v 1.65 2007/06/08 12:11:50 zoulunkai Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -505,7 +505,11 @@ { if (m_has_focus == false) { +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + _vm.getRoot().add_key_listener(KeyListener(this)); +#else _vm.getRoot().add_key_listener(this); +#endif m_has_focus = true; m_cursor = _text.size(); format_text(); @@ -519,7 +523,11 @@ { movie_root& root = _vm.getRoot(); root.set_active_entity(NULL); +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + root.remove_key_listener(KeyListener(this)); +#else root.remove_key_listener(this); +#endif m_has_focus = false; format_text(); } Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -u -b -r1.62 -r1.63 --- server/movie_root.cpp 29 May 2007 05:19:05 -0000 1.62 +++ server/movie_root.cpp 8 Jun 2007 12:11:50 -0000 1.63 @@ -30,7 +30,9 @@ #include "tu_random.h" #include "ExecutableCode.h" #include "Stage.h" - +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + #include "Action.h" +#endif #include #include #include @@ -218,6 +220,7 @@ // Notify character key listeners. notify_key_listeners(k, down); +#ifndef NEW_KEY_LISTENER_LIST_DESIGN // Notify both character and non-character Key listeners // for user defined handerlers. // FIXME: this may violates the event order @@ -231,7 +234,7 @@ else global_key->notify_listeners(event_id::KEY_UP); } - +#endif processActionQueue(); return false; // should return true if needs update ... @@ -569,12 +572,12 @@ timer(); } } - +#ifndef NEW_KEY_LISTENER_LIST_DESIGN // Cleanup key listeners (remove unloaded characters) // FIXME: not all key listeners could be cleaned here! // (eg. characters unloaded by loop-back won't be cleared until next advancement) cleanup_key_listeners(); - +#endif // random should go continuously that: // 1. after restart of the player the situation has not repeated // 2. by different machines the random gave different numbers @@ -595,7 +598,9 @@ boost::intrusive_ptr keepMovieAlive(_movie.get()); _movie->advance(delta_time); - +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + cleanup_key_listeners(); +#endif processActionQueue(); #ifdef GNASH_DEBUG @@ -672,6 +677,138 @@ return _movie->call_method_args(method_name, method_arg_fmt, args); } +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +void movie_root::cleanup_key_listeners() +{ +#ifdef KEY_LISTENERS_DEBUG + size_t prevsize = m_key_listeners.size(); + log_msg("Cleaning up %u key listeners", m_key_listeners.size()); +#endif + + for (std::vector::iterator iter = _keyListners.begin(); + iter != _keyListners.end(); ) + { + + character* ch = dynamic_cast(iter->get()); + // remove character listener + if ( ch && ch->isUnloaded() ) + { + iter = _keyListners.erase(iter); + } + // remove non-character listener + else if(!ch && !iter->isRegistered()) + { + iter = _keyListners.erase(iter); + } + else + ++iter; + } + + +#ifdef KEY_LISTENERS_DEBUG + size_t currsize = m_key_listeners.size(); + log_msg("Cleaned up %u listeners (from %u to %u)", prevsize-currsize, prevsize, currsize); +#endif +} + +void movie_root::notify_key_listeners(key::code k, bool down) +{ + log_msg("Notifying " SIZET_FMT " keypress listeners", _keyListners.size()); + + for (std::vector::iterator iter = _keyListners.begin(); + iter != _keyListners.end(); ++iter) + { + character* ch = dynamic_cast(iter->get()); + // notify character listeners + if ( ch && ! ch->isUnloaded() ) + { + if(down) + { + // invoke onClipKeyDown handler + ch->on_event(event_id(event_id::KEY_DOWN, key::INVALID)); + + if(iter->isRegistered()) + // invoke onKeyDown handler + { + boost::intrusive_ptr + method = ch->getUserDefinedEventHandler("onKeyDown"); + if ( method ) + { + call_method0(as_value(method.get()), &(_movie->get_environment()), _movie.get()); + } + } + // invoke onClipKeyPress handler + ch->on_event(event_id(event_id::KEY_PRESS, k)); + } + else + { + //invoke onClipKeyUp handler + ch->on_event(event_id(event_id::KEY_UP, key::INVALID)); + + if(iter->isRegistered()) + // invoke onKeyUp handler + { + boost::intrusive_ptr + method = ch->getUserDefinedEventHandler("onKeyUp"); + if ( method ) + { + call_method0(as_value(method.get()), &(_movie->get_environment()), _movie.get()); + } + } + } + } + // notify non-character listeners + else + { + if(down) + { + iter->get()->on_event(event_id(event_id::KEY_DOWN, key::INVALID)); + } + else + { + iter->get()->on_event(event_id(event_id::KEY_UP, key::INVALID)); + } + } + } + + assert(testInvariant()); +} + +void movie_root::add_key_listener(const KeyListener & listener) +{ + std::vector::iterator end = _keyListners.end(); + for (std::vector::iterator iter = _keyListners.begin(); + iter != end; ++iter) + { + if ((*iter) == listener) { + // Already in the list. + iter->registerUserHandler(); + return; + } + } + + _keyListners.push_back(listener); + + assert(testInvariant()); +} + +void movie_root::remove_key_listener(const KeyListener& listener) +{ + std::vector::iterator end = _keyListners.end(); + for (std::vector::iterator iter = _keyListners.begin(); + iter != end; ++iter) + { + if ((*iter) == listener) { + // Found it + iter->unregisterUserHandler(); + return; + } + } + assert(testInvariant()); +} + +#else + void movie_root::cleanup_key_listeners() { #ifdef KEY_LISTENERS_DEBUG @@ -750,6 +887,7 @@ //log_msg("After removing key listener %p, %u listeners are left", (void*)listener, m_key_listeners.size()); assert(testInvariant()); } +#endif void movie_root::add_mouse_listener(as_object* listener) { Index: server/movie_root.h =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.h,v retrieving revision 1.55 retrieving revision 1.56 diff -u -b -r1.55 -r1.56 --- server/movie_root.h 28 May 2007 15:41:06 -0000 1.55 +++ server/movie_root.h 8 Jun 2007 12:11:50 -0000 1.56 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: movie_root.h,v 1.55 2007/05/28 15:41:06 ann Exp $ */ +/* $Id: movie_root.h,v 1.56 2007/06/08 12:11:50 zoulunkai Exp $ */ /// \page events_handling Handling of user events /// @@ -91,6 +91,28 @@ namespace gnash { + #ifdef NEW_KEY_LISTENER_LIST_DESIGN +class KeyListener{ + public: + KeyListener(boost::intrusive_ptr obj, bool flag=false) + : _listener(obj), _user_defined_handler_added(flag) + {} + + as_object * get() const { return _listener.get(); } + + bool operator == (const KeyListener & rhs ) const { return _listener.get() == rhs.get(); } + bool operator != (const KeyListener & rhs ) const { return _listener.get() != rhs.get(); } + + bool isRegistered() const { return _user_defined_handler_added; } + void unregisterUserHandler() { _user_defined_handler_added = false; } + void registerUserHandler() { _user_defined_handler_added = true; } + + private: + boost::intrusive_ptr _listener; + bool _user_defined_handler_added; + }; +#endif + /// The absolute top level movie // /// This is a wrapper around the top-level movie_instance that is being played. @@ -372,8 +394,13 @@ void set_userdata(void * ud ) { m_userdata = ud; } DSOEXPORT void notify_key_listeners(key::code k, bool down); +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + void add_key_listener(const KeyListener& listener); + void remove_key_listener(const KeyListener& listener); +#else void add_key_listener(as_object* listener); void remove_key_listener(as_object* listener); +#endif DSOEXPORT void notify_mouse_listeners(const event_id& event); void add_mouse_listener(as_object* listener); @@ -473,8 +500,11 @@ typedef std::set< boost::intrusive_ptr > ListenerSet; /// Objects listening for key events +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + std::vector _keyListners; +#else ListenerSet m_key_listeners; - +#endif /// Objects listening for mouse events (down,up,move) ListenerSet m_mouse_listeners; Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.284 retrieving revision 1.285 diff -u -b -r1.284 -r1.285 --- server/sprite_instance.cpp 7 Jun 2007 07:28:23 -0000 1.284 +++ server/sprite_instance.cpp 8 Jun 2007 12:11:50 -0000 1.285 @@ -1785,7 +1785,11 @@ if (m_has_key_event) { +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + _vm.getRoot().remove_key_listener(KeyListener(this)); +#else _vm.getRoot().remove_key_listener(this); +#endif } if (m_has_mouse_event) @@ -2443,7 +2447,11 @@ if (m_has_key_event) { +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + _vm.getRoot().add_key_listener(KeyListener(this)); +#else _vm.getRoot().add_key_listener(this); +#endif } // Mouse events listening is done in has_mouse_event directly. // This shows to work better for attachMovieTest.swf, Index: server/asobj/Key.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Key.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- server/asobj/Key.cpp 28 May 2007 15:41:07 -0000 1.24 +++ server/asobj/Key.cpp 8 Jun 2007 12:11:50 -0000 1.25 @@ -177,6 +177,19 @@ } } +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +void +key_as_object::add_listener(const KeyListener& listener) +{ + _vm.getRoot().add_key_listener(listener); +} + +void +key_as_object::remove_listener(const KeyListener& listener) +{ + _vm.getRoot().remove_key_listener(listener); +} +#else void key_as_object::add_listener(boost::intrusive_ptr listener) { @@ -209,14 +222,36 @@ iter++; } } - +#endif int key_as_object::get_last_key_pressed() const { return m_last_key_pressed; } +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +as_value +key_add_listener(const fn_call& fn) +{ + if (fn.nargs < 1) + { + log_error(_("key_add_listener needs one argument (the listener object)")); + return as_value(); + } + + boost::intrusive_ptr toadd = fn.arg(0).to_object(); + if (toadd == NULL) + { + log_error(_("key_add_listener passed a NULL object; ignored")); + return as_value(); + } + boost::intrusive_ptr ko = ensureType(fn.this_ptr); + + ko->add_listener(KeyListener(toadd, true)); + return as_value(); +} +#else as_value key_add_listener(const fn_call& fn) { @@ -238,7 +273,7 @@ ko->add_listener(listener); return as_value(); } - +#endif as_value key_get_ascii(const fn_call& fn) // Return the ascii value of the last key pressed. /// FIXME: return the ascii number(not string) of the last pressed key! @@ -289,7 +324,30 @@ // @@ TODO return as_value(false); } +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +as_value +key_remove_listener(const fn_call& fn) +// Remove a previously-added listener. +{ + if (fn.nargs < 1) + { + log_error(_("key_remove_listener needs one argument (the listener object)")); + return as_value(); + } + boost::intrusive_ptr toremove = fn.arg(0).to_object(); + if (toremove == NULL) + { + log_error(_("key_remove_listener passed a NULL object; ignored")); + return as_value(); + } + + boost::intrusive_ptr ko = ensureType(fn.this_ptr); + + ko->remove_listener(KeyListener(toremove)); + return as_value(); +} +#else as_value key_remove_listener(const fn_call& fn) // Remove a previously-added listener. { @@ -311,7 +369,7 @@ ko->remove_listener(listener); return as_value(); } - +#endif void key_class_init(as_object& global) { Index: server/asobj/Key.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Key.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- server/asobj/Key.h 28 May 2007 15:41:07 -0000 1.18 +++ server/asobj/Key.h 8 Jun 2007 12:11:50 -0000 1.19 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: Key.h,v 1.18 2007/05/28 15:41:07 ann Exp $ */ +/* $Id: Key.h,v 1.19 2007/06/08 12:11:50 zoulunkai Exp $ */ #ifndef __KEY_H__ #define __KEY_H__ @@ -38,7 +38,9 @@ #endif namespace gnash { - +#ifdef NEW_KEY_LISTENER_LIST_DESIGN +class KeyListener; //forward declaration +#endif class DSOEXPORT Key { public: Key(); @@ -115,9 +117,15 @@ /// take over both characters and non-characters object. void notify_listeners(const event_id key_event_type); +#ifdef NEW_KEY_LISTENER_LIST_DESIGN + void add_listener(const KeyListener& listener); + + void remove_listener(const KeyListener& listener); +#else void add_listener(boost::intrusive_ptr listener); void remove_listener(boost::intrusive_ptr listener); +#endif int get_last_key_pressed() const; }; From MAILER-DAEMON Fri Jun 08 09:02:11 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwe6U-0004My-Vw for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 09:02:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwe6S-0004ME-TZ for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:02:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwe6S-0004Lt-8z for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:02:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwe6S-0004Ln-1F for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:02:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwe6R-0004tO-Gz for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:02:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwe6Q-00054o-MW for gnash-commit@gnu.org; Fri, 08 Jun 2007 13:02:06 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwe6Q-00054j-I8 for gnash-commit@gnu.org; Fri, 08 Jun 2007 13:02:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 13:02:06 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStreamFfmpeg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 13:02:09 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 13:02:06 Modified files: . : ChangeLog server/asobj : NetStreamFfmpeg.cpp Log message: * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding loop/thread until the queues are empty, or the media left in the queues wont get played. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3497&r2=1.3498 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&r1=1.86&r2=1.87 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3497 retrieving revision 1.3498 diff -u -b -r1.3497 -r1.3498 --- ChangeLog 8 Jun 2007 12:11:49 -0000 1.3497 +++ ChangeLog 8 Jun 2007 13:02:05 -0000 1.3498 @@ -1,3 +1,9 @@ +2007-06-08 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding + loop/thread until the queues are empty, or the media left + in the queues wont get played. + 2007-06-08 Zou Lunkai * server/as_object.{h,cpp}: add a virtual on_event() for event handler. Index: server/asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.86 retrieving revision 1.87 diff -u -b -r1.86 -r1.87 --- server/asobj/NetStreamFfmpeg.cpp 4 Jun 2007 14:31:31 -0000 1.86 +++ server/asobj/NetStreamFfmpeg.cpp 8 Jun 2007 13:02:06 -0000 1.87 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.86 2007/06/04 14:31:31 strk Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.87 2007/06/08 13:02:06 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -730,7 +730,7 @@ log_debug("decodeFLVFrame: load completed, stopping"); #endif // Stop! - m_go = false; + //m_go = false; } else { pausePlayback(); setStatus(bufferEmpty); From MAILER-DAEMON Fri Jun 08 09:03:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwe88-0004W4-4h for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 09:03:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwe86-0004Vz-Qp for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:03:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwe85-0004Vn-CS for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:03:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwe85-0004Vk-2Z for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:03:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwe84-00054m-Kt for gnash-commit@gnu.org; Fri, 08 Jun 2007 09:03:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwe83-0005BC-Te for gnash-commit@gnu.org; Fri, 08 Jun 2007 13:03:48 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwe83-0005B4-F8 for gnash-commit@gnu.org; Fri, 08 Jun 2007 13:03:47 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 13:03:47 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStreamFfmpeg.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 13:03:51 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/08 13:03:47 Modified files: . : ChangeLog server/asobj : NetStreamFfmpeg.cpp Log message: * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding loop/thread until the queues are empty, or the media left in the queues wont get played. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.48&r2=1.3451.2.49 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.86&r2=1.86.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.48 retrieving revision 1.3451.2.49 diff -u -b -r1.3451.2.48 -r1.3451.2.49 --- ChangeLog 8 Jun 2007 11:40:40 -0000 1.3451.2.48 +++ ChangeLog 8 Jun 2007 13:03:45 -0000 1.3451.2.49 @@ -2,6 +2,9 @@ * backend/sound_handler_sdl.cpp: Fixed an assertion fault when non-mp3 audio was looping. + * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding + loop/thread until the queues are empty, or the media left + in the queues wont get played. 2007-06-07 Udo Giacomozzi Index: server/asobj/NetStreamFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamFfmpeg.cpp,v retrieving revision 1.86 retrieving revision 1.86.4.1 diff -u -b -r1.86 -r1.86.4.1 --- server/asobj/NetStreamFfmpeg.cpp 4 Jun 2007 14:31:31 -0000 1.86 +++ server/asobj/NetStreamFfmpeg.cpp 8 Jun 2007 13:03:46 -0000 1.86.4.1 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamFfmpeg.cpp,v 1.86 2007/06/04 14:31:31 strk Exp $ */ +/* $Id: NetStreamFfmpeg.cpp,v 1.86.4.1 2007/06/08 13:03:46 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -730,7 +730,7 @@ log_debug("decodeFLVFrame: load completed, stopping"); #endif // Stop! - m_go = false; + //m_go = false; } else { pausePlayback(); setStatus(bufferEmpty); From MAILER-DAEMON Fri Jun 08 10:57:47 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwfuM-0007oZ-Tb for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 10:57:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwfuK-0007lf-V8 for gnash-commit@gnu.org; Fri, 08 Jun 2007 10:57:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwfuK-0007jn-7z for gnash-commit@gnu.org; Fri, 08 Jun 2007 10:57:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwfuK-0007jS-3u for gnash-commit@gnu.org; Fri, 08 Jun 2007 10:57:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwfuJ-0005KD-EH for gnash-commit@gnu.org; Fri, 08 Jun 2007 10:57:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwfuI-0008Gt-F1 for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:57:42 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwfuI-0008Gq-6U for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:57:42 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 14:57:42 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/movie_root.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 14:57:45 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 14:57:41 Modified files: . : ChangeLog server : movie_root.cpp Log message: * server/movie_root.cpp: Include action.h, not Action.h. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3498&r2=1.3499 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.63&r2=1.64 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3498 retrieving revision 1.3499 diff -u -b -r1.3498 -r1.3499 --- ChangeLog 8 Jun 2007 13:02:05 -0000 1.3498 +++ ChangeLog 8 Jun 2007 14:57:41 -0000 1.3499 @@ -3,6 +3,7 @@ * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding loop/thread until the queues are empty, or the media left in the queues wont get played. + * server/movie_root.cpp: Include action.h, not Action.h. 2007-06-08 Zou Lunkai Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -u -b -r1.63 -r1.64 --- server/movie_root.cpp 8 Jun 2007 12:11:50 -0000 1.63 +++ server/movie_root.cpp 8 Jun 2007 14:57:41 -0000 1.64 @@ -31,7 +31,7 @@ #include "ExecutableCode.h" #include "Stage.h" #ifdef NEW_KEY_LISTENER_LIST_DESIGN - #include "Action.h" + #include "action.h" #endif #include #include From MAILER-DAEMON Fri Jun 08 14:10:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwiuy-0006xM-Qx for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 14:10:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwiux-0006uk-6P for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:10:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwiuv-0006sF-Qp for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:10:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwiuv-0006sA-P6 for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:10:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwiuv-0007S2-Oe for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:10:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwiuv-00036Q-6i for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:10:33 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwiuv-00036N-2x for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:10:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 18:10:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 18:10:35 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 18:10:32 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp: Changed the image copying, and check if the decoded videoframe is bigger than expected. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3499&r2=1.3500 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.16&r2=1.17 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3499 retrieving revision 1.3500 diff -u -b -r1.3499 -r1.3500 --- ChangeLog 8 Jun 2007 14:57:41 -0000 1.3499 +++ ChangeLog 8 Jun 2007 18:10:32 -0000 1.3500 @@ -4,6 +4,9 @@ loop/thread until the queues are empty, or the media left in the queues wont get played. * server/movie_root.cpp: Include action.h, not Action.h. + * libbase/embedVideoDecoderFfmpeg.cpp: Changed the image copying, + and check if the decoded videoframe is bigger than expected. + 2007-06-08 Zou Lunkai Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 22:13:47 -0000 1.16 +++ libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 18:10:32 -0000 1.17 @@ -174,6 +174,22 @@ int got = 0; avcodec_decode_video(cc, frame, &got, data, size); + // If the size of the video frame changed, adjust. + // This could happen if the decoded video frame is + // bigger than the defined SWF videoframe. + if (cc->width != width || cc->height != height) { + width = cc->width; + height = cc->height; + delete decodedFrame; + if (outputFormat == YUV) { + decodedFrame = new image::yuv(width, height); + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + decodedFrame = new image::rgb(width, height); + ret_image.reset(new image::rgb(width, height)); + } + } + if (got) { boost::scoped_array buffer; @@ -212,13 +228,18 @@ } yuvframe->m_size = copied; } else if (outputFormat == RGB) { - for(int line = 0; line < cc->height; line++) - { - for(int byte = 0; byte < (cc->width*3); byte++) - { - decodedFrame->m_data[byte + (line*cc->width*3)] = (unsigned char) *(frame->data[0]+(line*frame->linesize[0])+byte); - } + + uint8_t* srcptr = frame->data[0]; + uint8_t* srcend = frame->data[0] + frame->linesize[0] * cc->height; + uint8_t* dstptr = decodedFrame->m_data; + unsigned int srcwidth = cc->width * 3; + + while (srcptr < srcend) { + memcpy(dstptr, srcptr, srcwidth); + srcptr += frame->linesize[0]; + dstptr += srcwidth; } + } } From MAILER-DAEMON Fri Jun 08 14:12:28 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwiwm-0007Or-IK for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 14:12:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwiwl-0007Ok-83 for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:12:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwiwj-0007Na-Tw for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:12:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwiwj-0007NX-Pb for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:12:25 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwiwj-0007hv-NH for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:12:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwiwj-0003CD-5Z for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:12:25 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwiwj-0003CA-1H for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:12:25 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 18:12:25 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 18:12:27 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/08 18:12:24 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp: Changed the image copying, and check if the decoded videoframe is bigger than expected. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.49&r2=1.3451.2.50 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.3&r2=1.13.4.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.49 retrieving revision 1.3451.2.50 diff -u -b -r1.3451.2.49 -r1.3451.2.50 --- ChangeLog 8 Jun 2007 13:03:45 -0000 1.3451.2.49 +++ ChangeLog 8 Jun 2007 18:12:23 -0000 1.3451.2.50 @@ -5,6 +5,8 @@ * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding loop/thread until the queues are empty, or the media left in the queues wont get played. + * libbase/embedVideoDecoderFfmpeg.cpp: Changed the image copying, + and check if the decoded videoframe is bigger than expected. 2007-06-07 Udo Giacomozzi Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13.4.3 retrieving revision 1.13.4.4 diff -u -b -r1.13.4.3 -r1.13.4.4 --- libbase/embedVideoDecoderFfmpeg.cpp 7 Jun 2007 22:15:47 -0000 1.13.4.3 +++ libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 18:12:24 -0000 1.13.4.4 @@ -174,6 +174,22 @@ int got = 0; avcodec_decode_video(cc, frame, &got, data, size); + // If the size of the video frame changed, adjust. + // This could happen if the decoded video frame is + // bigger than the defined SWF videoframe. + if (cc->width != width || cc->height != height) { + width = cc->width; + height = cc->height; + delete decodedFrame; + if (outputFormat == YUV) { + decodedFrame = new image::yuv(width, height); + ret_image.reset(new image::yuv(width, height)); + } else if (outputFormat == RGB) { + decodedFrame = new image::rgb(width, height); + ret_image.reset(new image::rgb(width, height)); + } + } + if (got) { boost::scoped_array buffer; @@ -212,13 +228,18 @@ } yuvframe->m_size = copied; } else if (outputFormat == RGB) { - for(int line = 0; line < cc->height; line++) - { - for(int byte = 0; byte < (cc->width*3); byte++) - { - decodedFrame->m_data[byte + (line*cc->width*3)] = (unsigned char) *(frame->data[0]+(line*frame->linesize[0])+byte); - } + + uint8_t* srcptr = frame->data[0]; + uint8_t* srcend = frame->data[0] + frame->linesize[0] * cc->height; + uint8_t* dstptr = decodedFrame->m_data; + unsigned int srcwidth = cc->width * 3; + + while (srcptr < srcend) { + memcpy(dstptr, srcptr, srcwidth); + srcptr += frame->linesize[0]; + dstptr += srcwidth; } + } } From MAILER-DAEMON Fri Jun 08 14:34:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwjHd-00044s-6v for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 14:34:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwjHb-00044Z-BM for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:33:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwjHZ-00044N-TH for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:33:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwjHZ-00044K-Oh for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:33:57 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwjHZ-0001wd-JI for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:33:57 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwjHH-0004qP-4I for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:33:39 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwjHG-0004qG-VY for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:33:39 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Fri, 08 Jun 2007 18:33:38 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C gnash.xml usermanual/revisions.xml [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 18:33:59 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Ann Barcomb 07/06/08 18:33:38 Modified files: doc/C : gnash.xml doc/C/usermanual: revisions.xml Log message: Corrected the date to June (was May). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnash.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.43.4.1&r2=1.43.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/revisions.xml?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.1.4.1&r2=1.1.4.2 Patches: Index: gnash.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/gnash.xml,v retrieving revision 1.43.4.1 retrieving revision 1.43.4.2 diff -u -b -r1.43.4.1 -r1.43.4.2 --- gnash.xml 7 Jun 2007 13:45:40 -0000 1.43.4.1 +++ gnash.xml 8 Jun 2007 18:33:38 -0000 1.43.4.2 @@ -6,7 +6,7 @@ - + Gnash"> Index: usermanual/revisions.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/revisions.xml,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -u -b -r1.1.4.1 -r1.1.4.2 --- usermanual/revisions.xml 5 Jun 2007 12:15:38 -0000 1.1.4.1 +++ usermanual/revisions.xml 8 Jun 2007 18:33:38 -0000 1.1.4.2 @@ -2,7 +2,7 @@ &appname; Manual version 0.4.0 - May 2007 + June 2007 Ann Barcomb kudra@domaintje.com From MAILER-DAEMON Fri Jun 08 14:46:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwjU1-0002Br-PF for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 14:46:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwjU0-0002BC-Kx for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:46:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwjTz-000296-3b for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:46:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwjTy-00028o-Uw for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:46:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwjTy-00045J-QM for gnash-commit@gnu.org; Fri, 08 Jun 2007 14:46:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwjTy-00060R-9a for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:46:46 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwjTy-00060O-40 for gnash-commit@gnu.org; Fri, 08 Jun 2007 18:46:46 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Fri, 08 Jun 2007 18:46:46 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/doc/C gnash.xml usermanual/revisions.xml X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 18:46:49 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/08 18:46:46 Modified files: doc/C : gnash.xml doc/C/usermanual: revisions.xml Log message: Corrected the date to June (was May). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/gnash.xml?cvsroot=gnash&r1=1.44&r2=1.45 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/revisions.xml?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: gnash.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/gnash.xml,v retrieving revision 1.44 retrieving revision 1.45 diff -u -b -r1.44 -r1.45 --- gnash.xml 7 Jun 2007 14:11:26 -0000 1.44 +++ gnash.xml 8 Jun 2007 18:46:45 -0000 1.45 @@ -6,7 +6,7 @@ - + Gnash"> Index: usermanual/revisions.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/revisions.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- usermanual/revisions.xml 5 Jun 2007 12:09:30 -0000 1.2 +++ usermanual/revisions.xml 8 Jun 2007 18:46:45 -0000 1.3 @@ -2,7 +2,7 @@ &appname; Manual version 0.4.0 - May 2007 + June 2007 Ann Barcomb kudra@domaintje.com From MAILER-DAEMON Fri Jun 08 17:10:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwljO-0005JB-JH for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 17:10:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwljN-0005Fn-5U for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:10:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwljL-0005BQ-SM for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:10:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwljL-0005As-Jw for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:10:47 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwljL-0005UJ-A1 for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:10:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwljI-0008HV-5O for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:10:44 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwljI-0008HS-1D for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:10:44 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 08 Jun 2007 21:10:44 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderGst.cp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 21:10:49 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/08 21:10:43 Modified files: . : ChangeLog libbase : embedVideoDecoderGst.cpp embedVideoDecoderGst.h Log message: * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame in an auto_ptr to avoid leaks. Fix the case in which there's NO decoded frame (ie: no gst-ffmpeg installed) previously segfaulting by simply running Video-EmbedSquareTestRunner. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3500&r2=1.3501 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.h?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3500 retrieving revision 1.3501 diff -u -b -r1.3500 -r1.3501 --- ChangeLog 8 Jun 2007 18:10:32 -0000 1.3500 +++ ChangeLog 8 Jun 2007 21:10:43 -0000 1.3501 @@ -1,3 +1,11 @@ +2007-06-08 Sandro Santilli + + * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame + in an auto_ptr to avoid leaks. Fix the case in which + there's NO decoded frame (ie: no gst-ffmpeg installed) + previously segfaulting by simply running + Video-EmbedSquareTestRunner. + 2007-06-08 Tomas Groth Christensen * server/asobj/NetStreamFfmpeg.cpp: Don't leave the decoding Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- libbase/embedVideoDecoderGst.cpp 7 Jun 2007 12:10:21 -0000 1.6 +++ libbase/embedVideoDecoderGst.cpp 8 Jun 2007 21:10:43 -0000 1.7 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.6 2007/06/07 12:10:21 tgc Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.7 2007/06/08 21:10:43 strk Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,7 +43,6 @@ embedVideoDecoderGst::~embedVideoDecoderGst() { - delete decodedFrame; if (pipeline) { stop = true; @@ -161,9 +160,9 @@ // Determine required buffer size and allocate buffer if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); } // Start "playing" @@ -189,7 +188,15 @@ // If there is nothing to decode in the new frame // we just return the lastest. - if (data == NULL || size == 0 || !decoder) { + if (data == NULL || size == 0 || !decoder) + { + // If we never decoded any frame return a NULL + // auto pointer .. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; } @@ -201,6 +208,13 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); + // If we never decoded any frame return a NULL + // auto pointer .. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; @@ -229,7 +243,8 @@ if (decoder->stop) return; - if (decoder->decodedFrame) { + if (decoder->decodedFrame.get()) + { if (decoder->outputFormat == YUV) { assert(0); Index: libbase/embedVideoDecoderGst.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- libbase/embedVideoDecoderGst.h 6 Jun 2007 15:41:12 -0000 1.3 +++ libbase/embedVideoDecoderGst.h 8 Jun 2007 21:10:43 -0000 1.4 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.h,v 1.3 2007/06/06 15:41:12 tgc Exp $ +// $Id: embedVideoDecoderGst.h,v 1.4 2007/06/08 21:10:43 strk Exp $ #ifndef __EMBEDVIDEODECODERGST_H__ #define __EMBEDVIDEODECODERGST_H__ @@ -90,7 +90,7 @@ int frameSize; /// Last decoded frame - image::image_base* decodedFrame; + std::auto_ptr decodedFrame; /// If we should stop this will be true volatile bool stop; From MAILER-DAEMON Fri Jun 08 17:12:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwllR-0001IS-1B for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 17:12:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwllO-0001G8-Si for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:12:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwllN-0001E8-Be for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:12:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwllN-0001DN-1v for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:12:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwllK-0005mC-N1 for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:12:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwllI-0008La-DX for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:12:48 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwllI-0008LW-8Y for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:12:48 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 08 Jun 2007 21:12:48 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderGst.cp... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 21:12:55 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/08 21:12:48 Modified files: . : ChangeLog libbase : embedVideoDecoderGst.cpp embedVideoDecoderGst.h Log message: * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame in an auto_ptr to avoid leaks. Fix the case in which there's NO decoded frame (ie: no gst-ffmpeg installed) previously segfaulting by simply running Video-EmbedSquareTestRunner. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.50&r2=1.3451.2.51 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4.4.2&r2=1.4.4.3 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderGst.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.2.4.1&r2=1.2.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.50 retrieving revision 1.3451.2.51 diff -u -b -r1.3451.2.50 -r1.3451.2.51 --- ChangeLog 8 Jun 2007 18:12:23 -0000 1.3451.2.50 +++ ChangeLog 8 Jun 2007 21:12:46 -0000 1.3451.2.51 @@ -1,3 +1,11 @@ +2007-06-08 Sandro Santilli + + * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame + in an auto_ptr to avoid leaks. Fix the case in which + there's NO decoded frame (ie: no gst-ffmpeg installed) + previously segfaulting by simply running + Video-EmbedSquareTestRunner. + 2007-06-08 Tomas Groth Christensen * backend/sound_handler_sdl.cpp: Fixed an assertion fault Index: libbase/embedVideoDecoderGst.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.cpp,v retrieving revision 1.4.4.2 retrieving revision 1.4.4.3 diff -u -b -r1.4.4.2 -r1.4.4.3 --- libbase/embedVideoDecoderGst.cpp 7 Jun 2007 12:12:36 -0000 1.4.4.2 +++ libbase/embedVideoDecoderGst.cpp 8 Jun 2007 21:12:47 -0000 1.4.4.3 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.cpp,v 1.4.4.2 2007/06/07 12:12:36 tgc Exp $ +// $Id: embedVideoDecoderGst.cpp,v 1.4.4.3 2007/06/08 21:12:47 strk Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,7 +43,6 @@ embedVideoDecoderGst::~embedVideoDecoderGst() { - delete decodedFrame; if (pipeline) { stop = true; @@ -161,9 +160,9 @@ // Determine required buffer size and allocate buffer if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); } // Start "playing" @@ -189,7 +188,15 @@ // If there is nothing to decode in the new frame // we just return the lastest. - if (data == NULL || size == 0 || !decoder) { + if (data == NULL || size == 0 || !decoder) + { + // If we never decoded any frame return a NULL + // auto pointer .. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; } @@ -201,6 +208,13 @@ output_lock = new boost::mutex::scoped_lock(output_mutex); + // If we never decoded any frame return a NULL + // auto pointer .. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; @@ -229,7 +243,8 @@ if (decoder->stop) return; - if (decoder->decodedFrame) { + if (decoder->decodedFrame.get()) + { if (decoder->outputFormat == YUV) { assert(0); Index: libbase/embedVideoDecoderGst.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderGst.h,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -u -b -r1.2.4.1 -r1.2.4.2 --- libbase/embedVideoDecoderGst.h 6 Jun 2007 15:44:13 -0000 1.2.4.1 +++ libbase/embedVideoDecoderGst.h 8 Jun 2007 21:12:47 -0000 1.2.4.2 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderGst.h,v 1.2.4.1 2007/06/06 15:44:13 tgc Exp $ +// $Id: embedVideoDecoderGst.h,v 1.2.4.2 2007/06/08 21:12:47 strk Exp $ #ifndef __EMBEDVIDEODECODERGST_H__ #define __EMBEDVIDEODECODERGST_H__ @@ -90,7 +90,7 @@ int frameSize; /// Last decoded frame - image::image_base* decodedFrame; + std::auto_ptr decodedFrame; /// If we should stop this will be true volatile bool stop; From MAILER-DAEMON Fri Jun 08 17:40:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwmCJ-0000kF-KI for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 17:40:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwmCI-0000kA-93 for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:40:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwmCH-0000jy-EZ for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:40:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwmCH-0000jv-Cf for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:40:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwmCG-0000xN-VT for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:40:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwmCF-0002qD-Tz for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:40:40 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwmCF-0002qA-PU for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:40:39 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 08 Jun 2007 21:40:39 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp s... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 21:40:42 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/08 21:40:39 Modified files: . : ChangeLog Added files: server : FreetypeRasterizer.cpp FreetypeRasterizer.h Log message: * server/FreetypeRasterizer.{cpp,h}: Ported truetype rasterizer from gameswf, cleaned up and documented (as far as understood). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3501&r2=1.3502 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3501 retrieving revision 1.3502 diff -u -b -r1.3501 -r1.3502 --- ChangeLog 8 Jun 2007 21:10:43 -0000 1.3501 +++ ChangeLog 8 Jun 2007 21:40:38 -0000 1.3502 @@ -1,5 +1,11 @@ 2007-06-08 Sandro Santilli + * server/FreetypeRasterizer.{cpp,h}: Ported truetype + rasterizer from gameswf, cleaned up and documented + (as far as understood). + +2007-06-08 Sandro Santilli + * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame in an auto_ptr to avoid leaks. Fix the case in which there's NO decoded frame (ie: no gst-ffmpeg installed) Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: server/FreetypeRasterizer.cpp diff -N server/FreetypeRasterizer.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ server/FreetypeRasterizer.cpp 8 Jun 2007 21:40:39 -0000 1.1 @@ -0,0 +1,206 @@ +// gameswf_freetype.cpp -- Vitaly Alexeev 2007 + +// This source code has been donated to the Public Domain. Do +// whatever you want with it. + +// TrueType font rasterizer based on freetype library, +// used code from demos/font_output/font_output.cpp + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "FreetypeRasterizer.h" +#include "log.h" + +#include // for snprintf +#include +#include // for auto_ptr + +#define FREETYPE_MAX_FONTSIZE 96 + +namespace gnash { + +#ifdef HAVE_LIBFREETYPE + +// static +FT_Library FreetypeRasterizer::m_lib; + +// static private +void FreetypeRasterizer::init() +{ + int error = FT_Init_FreeType(&m_lib); + if (error) + { + fprintf(stderr, "can't init FreeType! error = %d\n", error); + exit(1); + } +} + +// static private +void FreetypeRasterizer::close() +{ + int error = FT_Done_FreeType(m_lib); + if (error) + { + fprintf(stderr, "can't close FreeType! error = %d\n", error); + } +} + +// private +std::auto_ptr +FreetypeRasterizer::draw_bitmap(const FT_Bitmap& bitmap) +{ + // You must use power-of-two dimensions!! + int w = 1; while (w < bitmap.pitch) { w <<= 1; } + int h = 1; while (h < bitmap.rows) { h <<= 1; } + + std::auto_ptr alpha ( image::create_alpha(w, h) ); + + memset(alpha->m_data, 0, alpha->m_width * alpha->m_height); + + // copy image to alpha + for (int i = 0; i < bitmap.rows; i++) + { + uint8* src = bitmap.buffer + bitmap.pitch * i; + uint8* dst = alpha->m_data + alpha->m_pitch * i; + int x = bitmap.width; + while (x-- > 0) + { + *dst++ = *src++; + } + } + + return alpha; +} + +// private +float +FreetypeRasterizer::get_advance_x(uint16_t code) +{ + FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); + if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) + { + return 0; + } + return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; +} + +#endif // HAVE_LIBFREETYPE + +#ifdef HAVE_LIBFREETYPE +// static +std::auto_ptr +FreetypeRasterizer::createFace(const std::string& name, bool bold, bool italic) +{ + + std::auto_ptr ret( + + try { + ret.reset( new FreetypeRasterizer(name, bold, italic) ); + } catch (GnashException& ge) { + log_error(ge.what()); + assert(! ret.get()); + } + + return ret; + +} +#else // ndef HAVE_LIBFREETYPE +std::auto_ptr +FreetypeRasterizer::createFace(const std::string&, bool, bool) +{ + log_error("Freetype not supported"); + return std::auto_ptr(NULL); +} +#endif // ndef HAVE_LIBFREETYPE + +#ifdef HAVE_LIBFREETYPE +FreetypeRasterizer::FreetypeRasterizer(const std::string& name, bool bold, bool italic) + : + m_face(NULL) +{ + const unsigned maxerrlen = 64; + char buf[maxerrlen]; + + if (m_lib == NULL) + { + init(); + } + + std::string filename; + if (get_fontfile(name, filename, bold, italic) == false) + { + snprintf(buf, maxerrlen, _("Can't find font file for font '%s'"), name.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf): + } + + int error = FT_New_Face(m_lib, filename.c_str(), 0, &m_face); + switch (error) + { + case 0: + break; + + case FT_Err_Unknown_File_Format: + char buf[64]; + snprintf(buf, maxerrlen, _("Font file '%s' has bad format"), filename.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf): + break; + + default: + // TODO: return a better error message ! + char buf[64]; + snprintf(buf, maxerrlen, _("Some error opening font '%s'"), filename.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf): + break; + } +} +#else // ndef(HAVE_LIBFREETYPE) +FreetypeRasterizer::FreetypeRasterizer(const std::string&, bool, bool) +{ + assert(0); // should never be called +} +#endif // ndef HAVE_LIBFREETYPE + +#ifdef HAVE_LIBFREETYPE +std::auto_ptr +FreetypeRasterizer::getRenderedGlyph(uint16_t code, rect& box, float& advance) +{ + std::auto_ptr bi; + + FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); + if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) + { + return bi; + } + + + std::auto_ptr im ( draw_bitmap(m_face->glyph->bitmap) ); + bi.reset( render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data) ); + + box.m_x_max = float(m_face->glyph->bitmap.width) / float(bi->m_suspended_image->m_width); + box.m_y_max = float(m_face->glyph->bitmap.rows) / float(bi->m_suspended_image->m_height); + + box.m_x_min = float(m_face->glyph->metrics.horiBearingX) / float(m_face->glyph->metrics.width); + box.m_y_min = float(m_face->glyph->metrics.horiBearingY) / float(m_face->glyph->metrics.height); + box.m_x_min *= -box.m_x_max; + box.m_y_min *= box.m_y_max; + + advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; + + return bi; +} +#else // ndef(HAVE_LIBFREETYPE) +std::auto_ptr +FreetypeRasterizer::getRenderedGlyph(uint16_t, rect& , float&) +{ + assert(0); // should never be called... +} +#endif // ndef(HAVE_LIBFREETYPE) + + +} // namespace gnash + Index: server/FreetypeRasterizer.h =================================================================== RCS file: server/FreetypeRasterizer.h diff -N server/FreetypeRasterizer.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ server/FreetypeRasterizer.h 8 Jun 2007 21:40:39 -0000 1.1 @@ -0,0 +1,114 @@ +// freetype.h -- Vitaly Alexeev 2007 + +// This source code has been donated to the Public Domain. Do +// whatever you want with it. + +#ifndef GNASH_FREETYPE_H +#define GNASH_FREETYPE_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "rect.h" + +#include +#include // for auto_ptr + +#ifdef HAVE_LIBFREETYPE +# include +# include +# include +# include FT_GLYPH_H +#endif + +// Forward declarations +namespace gnash { + class bitmap_info; + namespace image { + class alpha; + } +} + + +namespace gnash { + +/// Truetype font rasterizer based on freetype library +// +/// Instances of this class provide rasterized glyphs for a given +/// truetype font face. +/// +/// The rasterized glyphs have a max size of 96 (TODO: make parametrizable) +/// but I think the actual size could change between glyphs (see the 'box' +/// parameter of getRenderedGlyph() method). +/// +class FreetypeRasterizer +{ + /// Named constructor for a face-bound rasterizer. + // + /// @param name + /// Name of the font to get glyphs info from + /// + /// @param bold + /// Whether to use a bold version of the font + /// + /// @param italic + /// Whether to use an italic version of the font + /// + /// @return a rasterizer bound to the given font name, + /// or a NULL auto_ptr if the given truetype font + /// could not be found. + /// + static std::auto_ptr createFace(const std::string& name, bool bold, bool italic); + + /// Return the given character glyph as a bitmap + // + /// @param code + /// Character code. + /// + /// @param box + /// Output parameter... TODO: describe what it is. + /// + /// @param advance + /// Output parameter... TODO: describe what it is. + /// + /// @return A bitmap_info, or a NULL pointer if the given character code + /// doesn't exist in this font. + /// + std::auto_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); + +private: + + /// Use the named constructor to create an instance + // + /// throw a GnashException on error (unkonwn font name or similar). + /// + FreetypeRasterizer(const std::string& fontname, bool bold, bool italic); + +#ifdef HAVE_LIBFREETYPE + + // TODO: drop ? + float get_advance_x(uint16_t code); + + static void init(); + + static void close(); + + /// Used by getRenderedGlyph to get the glyph bitmap. + // + /// NOTE: calls the currently registered renderer (create_alpha) + /// + std::auto_ptr draw_bitmap(const FT_Bitmap& bitmap); + + + static FT_Library m_lib; + FT_Face m_face; + +#endif // HAVE_LIBFREETYPE + +}; + +} // namespace gnash + + +#endif // GNASH_FREETYPE_H From MAILER-DAEMON Fri Jun 08 17:54:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwmPq-0006JB-Uj for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 17:54:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwmPp-0006IB-Sm for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:54:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwmPp-0006Gu-5o for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:54:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwmPp-0006Gk-0K for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:54:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwmPo-0002s8-Aw for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:54:40 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwmPn-0003kH-GK for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:54:39 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwmPn-0003kE-CA for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:54:39 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 21:54:39 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 21:54:42 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Tomas Groth 07/06/08 21:54:39 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp embedVideoDecoderFfmpeg.h Log message: * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame in an auto_ptr to avoid possible leaks. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.51&r2=1.3451.2.52 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.4&r2=1.13.4.5 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4.4.1&r2=1.4.4.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.51 retrieving revision 1.3451.2.52 diff -u -b -r1.3451.2.51 -r1.3451.2.52 --- ChangeLog 8 Jun 2007 21:12:46 -0000 1.3451.2.51 +++ ChangeLog 8 Jun 2007 21:54:38 -0000 1.3451.2.52 @@ -1,3 +1,8 @@ +2007-06-08 Tomas Groth Christensen + + * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame + in an auto_ptr to avoid possible leaks. + 2007-06-08 Sandro Santilli * libbase/embedVideoDecoderGst.{cpp,h}: Store decodedFrame Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13.4.4 retrieving revision 1.13.4.5 diff -u -b -r1.13.4.4 -r1.13.4.5 --- libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 18:12:24 -0000 1.13.4.4 +++ libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 21:54:38 -0000 1.13.4.5 @@ -44,8 +44,6 @@ { if (cc) avcodec_close(cc); - delete decodedFrame; - } void @@ -89,9 +87,9 @@ // Determine required buffer size and allocate buffer if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); } } @@ -177,15 +175,14 @@ // If the size of the video frame changed, adjust. // This could happen if the decoded video frame is // bigger than the defined SWF videoframe. - if (cc->width != width || cc->height != height) { + if (static_cast(cc->width) != width || static_cast(cc->height) != height) { width = cc->width; height = cc->height; - delete decodedFrame; if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); ret_image.reset(new image::rgb(width, height)); } } @@ -208,7 +205,7 @@ } if (outputFormat == YUV) { - image::yuv* yuvframe = static_cast(decodedFrame); + image::yuv* yuvframe = static_cast(decodedFrame.get()); int copied = 0; uint8_t* ptr = yuvframe->m_data; for (int i = 0; i < 3 ; i++) Index: libbase/embedVideoDecoderFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.h,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -u -b -r1.4.4.1 -r1.4.4.2 --- libbase/embedVideoDecoderFfmpeg.h 6 Jun 2007 15:44:13 -0000 1.4.4.1 +++ libbase/embedVideoDecoderFfmpeg.h 8 Jun 2007 21:54:38 -0000 1.4.4.2 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderFfmpeg.h,v 1.4.4.1 2007/06/06 15:44:13 tgc Exp $ +// $Id: embedVideoDecoderFfmpeg.h,v 1.4.4.2 2007/06/08 21:54:38 tgc Exp $ #ifndef __EMBEDVIDEODECODERFFMPEG_H__ #define __EMBEDVIDEODECODERFFMPEG_H__ @@ -76,7 +76,7 @@ int outputFormat; /// Last decoded frame - image::image_base* decodedFrame; + std::auto_ptr decodedFrame; }; From MAILER-DAEMON Fri Jun 08 17:58:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwmTB-0000b6-Ky for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 17:58:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwmTA-0000av-QZ for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:58:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwmT9-0000aj-RD for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:58:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwmT9-0000ag-Mb for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:58:07 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwmT9-0003Kj-6z for gnash-commit@gnu.org; Fri, 08 Jun 2007 17:58:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwmT8-0004HO-JJ for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:58:06 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwmT8-0004HK-EV for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:58:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Fri, 08 Jun 2007 21:58:06 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 21:58:09 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/08 21:58:06 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp embedVideoDecoderFfmpeg.h Log message: * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame in an auto_ptr to avoid possible leaks. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3502&r2=1.3503 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.h?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3502 retrieving revision 1.3503 diff -u -b -r1.3502 -r1.3503 --- ChangeLog 8 Jun 2007 21:40:38 -0000 1.3502 +++ ChangeLog 8 Jun 2007 21:58:04 -0000 1.3503 @@ -1,3 +1,8 @@ +2007-06-08 Tomas Groth Christensen + + * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame + in an auto_ptr to avoid possible leaks. + 2007-06-08 Sandro Santilli * server/FreetypeRasterizer.{cpp,h}: Ported truetype Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 18:10:32 -0000 1.17 +++ libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 21:58:06 -0000 1.18 @@ -44,8 +44,6 @@ { if (cc) avcodec_close(cc); - delete decodedFrame; - } void @@ -89,9 +87,9 @@ // Determine required buffer size and allocate buffer if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); } } @@ -177,15 +175,14 @@ // If the size of the video frame changed, adjust. // This could happen if the decoded video frame is // bigger than the defined SWF videoframe. - if (cc->width != width || cc->height != height) { + if (static_cast(cc->width) != width || static_cast(cc->height) != height) { width = cc->width; height = cc->height; - delete decodedFrame; if (outputFormat == YUV) { - decodedFrame = new image::yuv(width, height); + decodedFrame.reset(new image::yuv(width, height)); ret_image.reset(new image::yuv(width, height)); } else if (outputFormat == RGB) { - decodedFrame = new image::rgb(width, height); + decodedFrame.reset(new image::rgb(width, height)); ret_image.reset(new image::rgb(width, height)); } } @@ -208,7 +205,7 @@ } if (outputFormat == YUV) { - image::yuv* yuvframe = static_cast(decodedFrame); + image::yuv* yuvframe = static_cast(decodedFrame.get()); int copied = 0; uint8_t* ptr = yuvframe->m_data; for (int i = 0; i < 3 ; i++) Index: libbase/embedVideoDecoderFfmpeg.h =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- libbase/embedVideoDecoderFfmpeg.h 6 Jun 2007 15:41:12 -0000 1.5 +++ libbase/embedVideoDecoderFfmpeg.h 8 Jun 2007 21:58:06 -0000 1.6 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: embedVideoDecoderFfmpeg.h,v 1.5 2007/06/06 15:41:12 tgc Exp $ +// $Id: embedVideoDecoderFfmpeg.h,v 1.6 2007/06/08 21:58:06 tgc Exp $ #ifndef __EMBEDVIDEODECODERFFMPEG_H__ #define __EMBEDVIDEODECODERFFMPEG_H__ @@ -76,7 +76,7 @@ int outputFormat; /// Last decoded frame - image::image_base* decodedFrame; + std::auto_ptr decodedFrame; }; From MAILER-DAEMON Fri Jun 08 20:48:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hwp7r-0007BW-PA for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 20:48:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hwp7q-00078A-8F for gnash-commit@gnu.org; Fri, 08 Jun 2007 20:48:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hwp7p-00077V-NP for gnash-commit@gnu.org; Fri, 08 Jun 2007 20:48:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hwp7p-00077G-H5 for gnash-commit@gnu.org; Fri, 08 Jun 2007 20:48:17 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hwp7p-0005Lg-7C for gnash-commit@gnu.org; Fri, 08 Jun 2007 20:48:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hwp7o-0005vo-Ii for gnash-commit@gnu.org; Sat, 09 Jun 2007 00:48:16 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hwp7o-0005vl-Cz for gnash-commit@gnu.org; Sat, 09 Jun 2007 00:48:16 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 00:48:16 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog configure.ac [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 00:48:18 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 00:48:16 Modified files: . : ChangeLog configure.ac Log message: Change version to 0.8.0 from cvs$BUILDDATE. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.52&r2=1.3451.2.53 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.331.4.6&r2=1.331.4.7 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.52 retrieving revision 1.3451.2.53 diff -u -b -r1.3451.2.52 -r1.3451.2.53 --- ChangeLog 8 Jun 2007 21:54:38 -0000 1.3451.2.52 +++ ChangeLog 9 Jun 2007 00:48:14 -0000 1.3451.2.53 @@ -1,3 +1,7 @@ +2007-06-08 Rob Savoye + + * configure.ac: Set version to 0.8.0. + 2007-06-08 Tomas Groth Christensen * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.331.4.6 retrieving revision 1.331.4.7 diff -u -b -r1.331.4.6 -r1.331.4.7 --- configure.ac 7 Jun 2007 15:42:26 -0000 1.331.4.6 +++ configure.ac 9 Jun 2007 00:48:15 -0000 1.331.4.7 @@ -15,10 +15,10 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.331.4.6 2007/06/07 15:42:26 strk Exp $ +dnl $Id: configure.ac,v 1.331.4.7 2007/06/09 00:48:15 rsavoye Exp $ AC_PREREQ(2.50) -AC_INIT(gnash, cvs) +AC_INIT(gnash, 0.8.0) AC_CONFIG_SRCDIR(server/gnash.h) AM_CONFIG_HEADER(config.h) @@ -49,7 +49,7 @@ BUILDDATE="`date +%Y%m%d`" dnl These are required by automake -AM_INIT_AUTOMAKE(gnash, "cvs$BUILDDATE") +AM_INIT_AUTOMAKE(gnash, "0.8.0") AM_MAINTAINER_MODE AC_PROG_MAKE_SET From MAILER-DAEMON Fri Jun 08 21:26:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwpjE-0001CY-Mv for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 21:26:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwpjD-00019S-4I for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:26:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwpjC-000182-Al for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:26:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwpjC-00017s-8I for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:26:54 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwpjC-0000VI-0o for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:26:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwpjA-0000wx-UF for gnash-commit@gnu.org; Sat, 09 Jun 2007 01:26:53 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwpjA-0000wt-OV for gnash-commit@gnu.org; Sat, 09 Jun 2007 01:26:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 01:26:52 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash macros/ffmpeg.m4 ChangeLog [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 01:26:55 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 01:26:52 Modified files: macros : ffmpeg.m4 . : ChangeLog Log message: * macros/ffmpeg.m4: Define HAVE_FFMPEG_AVCODEC_H even if we don't run AC_CHECK_HEADER(). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.43.4.1&r2=1.43.4.2 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.53&r2=1.3451.2.54 Patches: Index: macros/ffmpeg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v retrieving revision 1.43.4.1 retrieving revision 1.43.4.2 diff -u -b -r1.43.4.1 -r1.43.4.2 --- macros/ffmpeg.m4 7 Jun 2007 18:22:24 -0000 1.43.4.1 +++ macros/ffmpeg.m4 9 Jun 2007 01:26:51 -0000 1.43.4.2 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: ffmpeg.m4,v 1.43.4.1 2007/06/07 18:22:24 strk Exp $ +dnl $Id: ffmpeg.m4,v 1.43.4.2 2007/06/09 01:26:51 rsavoye Exp $ AC_DEFUN([GNASH_PATH_FFMPEG], [ @@ -75,6 +75,8 @@ if test x${cross_compiling} = xno; then AC_CHECK_HEADERS(ffmpeg/avcodec.h, [ac_cv_path_ffmpeg_incl=""]) fi + else + AC_DEFINE(HAVE_FFMPEG_AVCODEC_H, 1, [Define if you have avcodec.h installed.]) fi dnl We need LIBAVCODEC VERSION of at least 51.29.0 to get avcodec_decode_audio2 Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.53 retrieving revision 1.3451.2.54 diff -u -b -r1.3451.2.53 -r1.3451.2.54 --- ChangeLog 9 Jun 2007 00:48:14 -0000 1.3451.2.53 +++ ChangeLog 9 Jun 2007 01:26:51 -0000 1.3451.2.54 @@ -1,6 +1,8 @@ 2007-06-08 Rob Savoye * configure.ac: Set version to 0.8.0. + * macros/ffmpeg.m4: Define HAVE_FFMPEG_AVCODEC_H even if we don't + run AC_CHECK_HEADER(). 2007-06-08 Tomas Groth Christensen From MAILER-DAEMON Fri Jun 08 21:39:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwpvT-0003zC-Or for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 21:39:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwpvR-0003x0-SB for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:39:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwpvR-0003w1-2Y for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:39:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwpvQ-0003vp-Pi for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:39:32 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwpvQ-0001n5-BJ for gnash-commit@gnu.org; Fri, 08 Jun 2007 21:39:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwpvP-0003F4-Fb for gnash-commit@gnu.org; Sat, 09 Jun 2007 01:39:31 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwpvP-0003F1-An for gnash-commit@gnu.org; Sat, 09 Jun 2007 01:39:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 01:39:31 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/plugin/klash klash_part.cpp [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 01:39:34 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 01:39:31 Modified files: plugin/klash : klash_part.cpp Log message: Remove extraneous empty comment lines. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/klash_part.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.2&r2=1.13.4.3 Patches: Index: klash_part.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/klash/klash_part.cpp,v retrieving revision 1.13.4.2 retrieving revision 1.13.4.3 diff -u -b -r1.13.4.2 -r1.13.4.3 --- klash_part.cpp 6 Jun 2007 09:07:57 -0000 1.13.4.2 +++ klash_part.cpp 9 Jun 2007 01:39:31 -0000 1.13.4.3 @@ -16,8 +16,6 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// -// // Written by Koos Vriezen #ifdef KDE_USE_FINAL From MAILER-DAEMON Fri Jun 08 22:11:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwqQG-0000Y7-RH for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 22:11:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwqQF-0000Y2-9C for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:11:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwqQD-0000Xp-TY for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:11:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwqQD-0000Xm-OP for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:11:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwqQD-00051f-CT for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:11:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwqQC-0005VD-KW for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:11:20 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwqQB-0005V3-TN for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:11:19 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 02:11:19 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash/packaging/redhat gnash.spec [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 02:11:23 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 02:11:19 Modified files: packaging/redhat: gnash.spec Log message: Build the right version number, don't cross package. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/packaging/redhat/gnash.spec?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.16&r2=1.16.4.1 Patches: Index: gnash.spec =================================================================== RCS file: /sources/gnash/gnash/packaging/redhat/gnash.spec,v retrieving revision 1.16 retrieving revision 1.16.4.1 diff -u -b -r1.16 -r1.16.4.1 --- gnash.spec 7 Apr 2007 11:55:50 -0000 1.16 +++ gnash.spec 9 Jun 2007 02:11:19 -0000 1.16.4.1 @@ -1,6 +1,8 @@ -%define version 20070328 +%define version 0.8.0 +#%define version 20070328 Name: gnash -Version: cvs%{version} +#Version: cvs%{version} +Version: %{version} Release: 1%{?dist} Summary: GNU flash movie player @@ -88,8 +90,8 @@ # FIXME: this ia a bad hack! Although all this does work correctly and # build an RPM, it's set for an geode-olpc, so the actual hardware # won't let us install it. -%define cross_compile 1 -%define olpc 1 +# %define cross_compile 1 +# %define olpc 1 # Build rpms for an ARM based processor, in our case the Nokia 770/800 # tablet. From MAILER-DAEMON Fri Jun 08 22:12:47 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwqRb-0000cb-4t for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 22:12:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwqRZ-0000cP-Do for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:12:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwqRY-0000c2-ET for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:12:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwqRY-0000by-71 for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:12:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwqRX-00057g-VM for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:12:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwqRX-0005cy-JK for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:12:43 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwqRX-0005cu-EY for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:12:43 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 02:12:43 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash .cvsignore [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 02:12:46 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 02:12:43 Modified files: . : .cvsignore Log message: Ignore libltdl too. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/.cvsignore?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.7&r2=1.7.4.1 Patches: Index: .cvsignore =================================================================== RCS file: /sources/gnash/gnash/.cvsignore,v retrieving revision 1.7 retrieving revision 1.7.4.1 diff -u -b -r1.7 -r1.7.4.1 --- .cvsignore 12 Apr 2007 09:53:08 -0000 1.7 +++ .cvsignore 9 Jun 2007 02:12:43 -0000 1.7.4.1 @@ -16,3 +16,4 @@ config.guess config.sub gnash-dbg.log +libltdl From MAILER-DAEMON Fri Jun 08 22:25:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HwqeK-0004qu-O3 for mharc-gnash-commit@gnu.org; Fri, 08 Jun 2007 22:25:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwqeJ-0004p1-6q for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:25:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwqeI-0004nZ-6b for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:25:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwqeH-0004nP-PH for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:25:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HwqeH-0006Zw-GL for gnash-commit@gnu.org; Fri, 08 Jun 2007 22:25:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HwqeH-0006iE-4B for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:25:53 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HwqeG-0006iB-Vn for gnash-commit@gnu.org; Sat, 09 Jun 2007 02:25:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 09 Jun 2007 02:25:52 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash NEWS README [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 02:25:55 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Rob Savoye 07/06/09 02:25:52 Modified files: . : NEWS README Log message: Minor tweaks for the release. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/NEWS?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.4&r2=1.4.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/README?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.28&r2=1.28.2.1 Patches: Index: NEWS =================================================================== RCS file: /sources/gnash/gnash/NEWS,v retrieving revision 1.4 retrieving revision 1.4.4.1 diff -u -b -r1.4 -r1.4.4.1 --- NEWS 4 Jun 2007 18:00:08 -0000 1.4 +++ NEWS 9 Jun 2007 02:25:52 -0000 1.4.4.1 @@ -1,23 +1,23 @@ -2007-06-XX Rob Savoye +2007-06-08 Rob Savoye -The third alpha release of Gnash. Improvements since the 0.7.2 release -are: +The third alpha release of Gnash, version 0.8.0. Improvements since +the 0.7.2 release are: * Streaming video works with YouTube and Lulu.tv! This has been the -focus for the majority of the time since the last release. + focus for the majority of the time since the last release. * Many core improvments in the VM as our understanding of Flash -improves. These all improve both the correctness of a movie that is -being played, but enebles more movies to play that used to not work. + improves. These all improve both the correctness of a movie that is + being played, but enebles more movies to play that used to not work. * New FLTK2 gui. * Simple Flash debugger added. * Improved Darwin support that can use the system OpenGL. * Flash extensions, direct support for file handling, MySQL access, -etc.. through plugins to the Gnash VM. Wrappers for any C/C++ API -libraries can be exported into ActionScript, and used as native -commands in a Flash movie. + etc.. through plugins to the Gnash VM. Wrappers for any C/C++ API + libraries can be exported into ActionScript, and used as native + commands in a Flash movie. * Updated manuals. * Many new testcases! Support for testing with ming, swfmill, amd -mtasc compilers. + mtasc compilers. * New drawing API for MovieClips.. 2006-09-10 Rob Savoye @@ -27,11 +27,11 @@ * Polling main loop replaced with event driven framework. * New GUI abstraction layer supporting GTK2, KDE, SDL, and just a -framebuffer. + framebuffer. * Movies are parsed by a background thread, so they start playing -while still loading. + while still loading. * Plugin supports web navigation and starts playing while the stream -is loading. + is loading. * New AntiGrain (AGG) 2D backend added for framebuffer devices. * Sound now works. * Supports cross configuration and cross compiling for embedded targets. Index: README =================================================================== RCS file: /sources/gnash/gnash/README,v retrieving revision 1.28 retrieving revision 1.28.2.1 diff -u -b -r1.28 -r1.28.2.1 --- README 4 Jun 2007 18:00:08 -0000 1.28 +++ README 9 Jun 2007 02:25:52 -0000 1.28.2.1 @@ -1,4 +1,4 @@ -$Id: README,v 1.28 2007/06/04 18:00:08 rsavoye Exp $ +$Id: README,v 1.28.2.1 2007/06/09 02:25:52 rsavoye Exp $ Gnash: the GNU Flash Player @@ -7,7 +7,7 @@ plugin, or as a library used by other programs. It is not yet complete; it does not correctly handle every .swf file. -This is the README file for the Gnash-0.8XXXXXX release (or CVS snapshot). +This is the README file for the Gnash-0.8.0 release (or CVS snapshot). Gnash is originally based on the code of GameSWF, by Thatcher Ulrich. GameSWF was the most advanced among free flash movie players; it @@ -40,17 +40,17 @@ Currently implemented ActionScript classes are: Array, Boolean, Date, Key, Math, Mouse, Number, Object, Sound, String, XML, XMLNode, -XMLSocket, NetStream, NetConnection, +XMLSocket, NetStream, NetConnection, Stage, Button. Partially implemented classes are: MovieClipLoader, LocalConnection, -MovieClip, TextField, TextFormat, System, Function, LoadVars, +MovieClip, TextField, TextFormat, System, Function, LoadVars, Video. Unimplemented classes are: Accessibility, Error, Microphone, -Selection, SharedObject, Stage, Button, Camera, Color, ContextMenu, -CustomActions, Video. +Selection, SharedObject, Camera, Color, ContextMenu, +CustomActions. -Unimplemented Opcodes are: Throw, Implements, Extends, EnumObject, Try, -NewMethod, MDLength, MDSubstring, MDChr, Delete, GetTarget. +Unimplemented Opcodes are: Throw, Implements, Try, +MDLength, MDSubstring, MDChr. Currently streaming video for some video sharing sites like Lulu.tv, or YouTube.com, does work. Your mileage with other sites may vary, but @@ -172,7 +172,7 @@ As of ffmpeg version 51.40.4, the swscale implementation will be used instead of img_convert. Note that using when using ffmpeg version -51.40.4, Gnash won't link. +51.40.4 from ffmpeg svn, Gnash won't link. The Gnash Community: -------------------- @@ -196,6 +196,10 @@ http://mail.gnu.org/mailman/listinfo/gnash-commit Volume is sporadic, but typically low. +Many of the Gnash developers hang out on the #gnash channel on +irc.freenode.net. This is a good place to volunteer help, or ask +questions. + If you would like a new feature to be included in future versions of Gnash, please send a request to . You can also submit patches at https://savannah.gnu.org/patch/?group=gnash. From MAILER-DAEMON Sat Jun 09 08:43:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hx0II-00057v-Pc for mharc-gnash-commit@gnu.org; Sat, 09 Jun 2007 08:43:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hx0IH-00053c-45 for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:43:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hx0IF-00050n-NQ for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:43:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hx0IF-00050N-De for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:43:47 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hx0IF-0000a3-3j for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:43:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hx0I6-0008KJ-Tq for gnash-commit@gnu.org; Sat, 09 Jun 2007 12:43:39 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hx0I6-0008KG-Nd for gnash-commit@gnu.org; Sat, 09 Jun 2007 12:43:38 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 09 Jun 2007 12:43:38 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 12:43:49 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/09 12:43:38 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not access a null decodedFrame (tgc: please check). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3503&r2=1.3504 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3503 retrieving revision 1.3504 diff -u -b -r1.3503 -r1.3504 --- ChangeLog 8 Jun 2007 21:58:04 -0000 1.3503 +++ ChangeLog 9 Jun 2007 12:43:37 -0000 1.3504 @@ -1,3 +1,8 @@ +2007-06-09 Sandro Santilli + + * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not + access a null decodedFrame (tgc: please check). + 2007-06-08 Tomas Groth Christensen * libbase/embedVideoDecoderFfmpeg.{cpp,h}: Store decodedFrame Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 21:58:06 -0000 1.18 +++ libbase/embedVideoDecoderFfmpeg.cpp 9 Jun 2007 12:43:38 -0000 1.19 @@ -160,7 +160,16 @@ // If there is nothing to decode in the new frame // we just return the lastest. - if (data == NULL || codec == NULL || size == 0) { + if (data == NULL || codec == NULL || size == 0) + { + // If haven't decoded any frame yet, return + // the null pointer. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } + ret_image->update(decodedFrame->m_data); return ret_image; } @@ -241,6 +250,13 @@ } av_free(frame); + // If haven't decoded any frame yet, return + // the null pointer. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; } From MAILER-DAEMON Sat Jun 09 08:46:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hx0L0-0007P9-Ay for mharc-gnash-commit@gnu.org; Sat, 09 Jun 2007 08:46:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hx0Kx-0007MM-Sq for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:46:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hx0Kx-0007LZ-CJ for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:46:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hx0Kw-0007LK-Vp for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:46:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hx0Kw-0000y9-MZ for gnash-commit@gnu.org; Sat, 09 Jun 2007 08:46:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hx0Kv-00005f-Vx for gnash-commit@gnu.org; Sat, 09 Jun 2007 12:46:34 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hx0Kv-00005b-Nq for gnash-commit@gnu.org; Sat, 09 Jun 2007 12:46:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 09 Jun 2007 12:46:33 +0000 X-detected-kernel: Linux 2.6 (newer, 1) Subject: [Gnash-commit] gnash ChangeLog libbase/embedVideoDecoderFfmpeg... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 12:46:36 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/09 12:46:33 Modified files: . : ChangeLog libbase : embedVideoDecoderFfmpeg.cpp Log message: * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not access a null decodedFrame (tgc: please check). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.54&r2=1.3451.2.55 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/embedVideoDecoderFfmpeg.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.13.4.5&r2=1.13.4.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.54 retrieving revision 1.3451.2.55 diff -u -b -r1.3451.2.54 -r1.3451.2.55 --- ChangeLog 9 Jun 2007 01:26:51 -0000 1.3451.2.54 +++ ChangeLog 9 Jun 2007 12:46:32 -0000 1.3451.2.55 @@ -1,3 +1,8 @@ +2007-06-09 Sandro Santilli + + * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not + access a null decodedFrame (tgc: please check). + 2007-06-08 Rob Savoye * configure.ac: Set version to 0.8.0. Index: libbase/embedVideoDecoderFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/embedVideoDecoderFfmpeg.cpp,v retrieving revision 1.13.4.5 retrieving revision 1.13.4.6 diff -u -b -r1.13.4.5 -r1.13.4.6 --- libbase/embedVideoDecoderFfmpeg.cpp 8 Jun 2007 21:54:38 -0000 1.13.4.5 +++ libbase/embedVideoDecoderFfmpeg.cpp 9 Jun 2007 12:46:33 -0000 1.13.4.6 @@ -160,7 +160,16 @@ // If there is nothing to decode in the new frame // we just return the lastest. - if (data == NULL || codec == NULL || size == 0) { + if (data == NULL || codec == NULL || size == 0) + { + // If haven't decoded any frame yet, return + // the null pointer. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } + ret_image->update(decodedFrame->m_data); return ret_image; } @@ -241,6 +250,13 @@ } av_free(frame); + // If haven't decoded any frame yet, return + // the null pointer. + if ( ! decodedFrame.get() ) + { + ret_image.reset(NULL); + return ret_image; + } ret_image->update(decodedFrame->m_data); return ret_image; } From MAILER-DAEMON Sat Jun 09 15:42:16 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hx6pE-000235-Em for mharc-gnash-commit@gnu.org; Sat, 09 Jun 2007 15:42:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hx6pD-000230-0n for gnash-commit@gnu.org; Sat, 09 Jun 2007 15:42:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hx6pC-00022o-5p for gnash-commit@gnu.org; Sat, 09 Jun 2007 15:42:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hx6pC-00022l-0U for gnash-commit@gnu.org; Sat, 09 Jun 2007 15:42:14 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hx6pB-0000db-JA for gnash-commit@gnu.org; Sat, 09 Jun 2007 15:42:13 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hx6p4-0002j4-6f for gnash-commit@gnu.org; Sat, 09 Jun 2007 19:42:06 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hx6p4-0002j1-16 for gnash-commit@gnu.org; Sat, 09 Jun 2007 19:42:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Sat, 09 Jun 2007 19:42:06 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog configure.ac gui/Makefile.am gu... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 19:42:15 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/09 19:42:05 Modified files: . : ChangeLog configure.ac gui : Makefile.am kde.cpp kde_glue.h kde_glue_opengl.cpp kdesup.h Added files: gui : kde_glue_agg.cpp kde_glue_agg.h Log message: * configure.ac: Allow the KDE GUI to be compiled against AGG. * gui/Makefile.am: Compile KDE/AGG files when requested. * gui/kde.cpp: Make the KDE GUI compatible with AGG by moving OpenGL-specific code into its respective glue. Also fix mouse movement in combination with scaling. * gui/kde_glue.h: Add stubs for AGG compatibility. * gui/kde_glue_opengl.cpp: run makeCurrent in the glue. * gui/kdesup.h: Allow the AGG glue to be used. * gui/kde_glue_agg{.cpp, .h}: Initial implementation of AGG glue for QT/KDE. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3504&r2=1.3505 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.336&r2=1.337 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.76&r2=1.77 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue.h?cvsroot=gnash&r1=1.11&r2=1.12 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_opengl.cpp?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kdesup.h?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_agg.cpp?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_agg.h?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3504 retrieving revision 1.3505 diff -u -b -r1.3504 -r1.3505 --- ChangeLog 9 Jun 2007 12:43:37 -0000 1.3504 +++ ChangeLog 9 Jun 2007 19:42:04 -0000 1.3505 @@ -1,3 +1,16 @@ +2007-06-09 Bastiaan Jacques + + * configure.ac: Allow the KDE GUI to be compiled against AGG. + * gui/Makefile.am: Compile KDE/AGG files when requested. + * gui/kde.cpp: Make the KDE GUI compatible with AGG by moving + OpenGL-specific code into its respective glue. Also fix mouse + movement in combination with scaling. + * gui/kde_glue.h: Add stubs for AGG compatibility. + * gui/kde_glue_opengl.cpp: run makeCurrent in the glue. + * gui/kdesup.h: Allow the AGG glue to be used. + * gui/kde_glue_agg{.cpp, .h}: Initial implementation of AGG + glue for QT/KDE. + 2007-06-09 Sandro Santilli * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.336 retrieving revision 1.337 diff -u -b -r1.336 -r1.337 --- configure.ac 7 Jun 2007 15:42:19 -0000 1.336 +++ configure.ac 9 Jun 2007 19:42:05 -0000 1.337 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.336 2007/06/07 15:42:19 strk Exp $ +dnl $Id: configure.ac,v 1.337 2007/06/09 19:42:05 bjacques Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -252,8 +252,9 @@ AM_CONDITIONAL(USE_RENDERER_CAIRO, test x$renderer = xcairo) if test x$renderer = xagg; then - if test x"$gui" != xfb -a x"$gui" != xgtk -a x"$gui" != xsdl -a x"$gui" != xriscos -a x"$gui" != xfltk; then - AC_MSG_ERROR([agg renderer is only supported by fb, gtk, riscos, sdl and fltk GUIs]); + if test x"$gui" != xfb -a x"$gui" != xgtk -a x"$gui" != xsdl -a x"$gui" != xriscos -a x"$gui" != xfltk + -a x"$gui" != xkde; then + AC_MSG_ERROR([agg renderer is only supported by fb, gtk, riscos, sdl, fltk and kde GUIs]); fi AC_DEFINE([RENDERER_AGG], [], [Use AntiGrain renderer]) fi Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.76 retrieving revision 1.77 diff -u -b -r1.76 -r1.77 --- gui/Makefile.am 7 Jun 2007 15:42:19 -0000 1.76 +++ gui/Makefile.am 9 Jun 2007 19:42:05 -0000 1.77 @@ -17,7 +17,7 @@ # -# $Id: Makefile.am,v 1.76 2007/06/07 15:42:19 strk Exp $ +# $Id: Makefile.am,v 1.77 2007/06/09 19:42:05 bjacques Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -121,11 +121,13 @@ RISCOS_AGG_SRCS = riscos_glue_agg.cpp riscos_glue_agg.h SDL_AGG_SRCS = sdl_agg_glue.cpp sdl_agg_glue.h FLTK_AGG_SRCS = fltk_glue_agg.cpp fltk_glue_agg.h + KDE_AGG_SRCS = kde_glue_agg.cpp kde_glue_agg.h else GTK_AGG_SRCS = RISCOS_AGG_SRCS = SDL_AGG_SRCS = FLTK_AGG_SRCS = + KDE_AGG_SRCS = endif if USE_GUI_GTK @@ -157,8 +159,9 @@ endif if USE_GUI_KDE - KDE_SRCS = kde.cpp kdesup.h kde_glue.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) - AM_CPPFLAGS += -I$(kde_includes)/kio $(all_includes) + KDE_SRCS = kde.cpp kdesup.h kde_glue.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) $(KDE_AGG_SRCS) + AM_CPPFLAGS += $(KDE_CFLAGS) $(QT_CFLAGS) + AM_LDFLAGS += $(KDE_LIBS) $(QT_LIBS) else KDE_SRCS = endif Index: gui/kde.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- gui/kde.cpp 14 May 2007 09:44:21 -0000 1.14 +++ gui/kde.cpp 9 Jun 2007 19:42:05 -0000 1.15 @@ -22,12 +22,14 @@ #endif -#include #include #include #include #include #include +#include + +#include "Range2d.h" #include "gnash.h" #include "movie_definition.h" @@ -77,20 +79,22 @@ } bool -KdeGui::createWindow(const char* /*windowtitle*/, int width, int height) +KdeGui::createWindow(const char* windowtitle, int width, int height) { GNASH_REPORT_FUNCTION; - _qwidget->makeCurrent(); _qwidget->setGeometry(0, 0, width, height); + _qwidget->setCaption(windowtitle); + _qapp->setMainWidget(_qwidget); _qwidget->show(); _glue.prepDrawingArea(_qwidget); + _renderer = _glue.createRenderHandler(); + _glue.initBuffer(width, height); _width = width; _height = height; - _renderer = _glue.createRenderHandler(); set_render_handler(_renderer); return true; @@ -103,6 +107,13 @@ _glue.render(); } + +void +KdeGui::setInvalidatedRegions(const InvalidatedRanges& ranges) +{ + _glue.setInvalidatedRegions(ranges); +} + void KdeGui::setTimeout(unsigned int timeout) { @@ -241,6 +252,13 @@ notify_key_event(c, mod, down); } +void +KdeGui::resize(int width, int height) +{ + _glue.resize(width, height); + resize_view(width, height); +} + /// \brief restart the movie from the beginning void @@ -332,11 +350,13 @@ assert(_godfather); QPoint position = event->pos(); - _godfather->notify_mouse_moved(position.x(), position.y()); + float xscale = _godfather->getXScale(); + float yscale = _godfather->getYScale(); + + _godfather->notify_mouse_moved(position.x() / xscale, position.y() / yscale); } qwidget::qwidget(KdeGui* godfather) - : QGLWidget(0, "hi") { _qmenu.insertItem(_("Play Movie"), this, SLOT(menuitem_play_callback())); _qmenu.insertItem(_("Pause Movie"), this, SLOT(menuitem_pause_callback())); @@ -400,8 +420,25 @@ void qwidget::resizeEvent(QResizeEvent *event) { - _godfather->resize_view(int(event->size().width()), int(event->size().height())); + _godfather->resize(event->size().width(), event->size().height()); +} + +void +qwidget::paintEvent(QPaintEvent *event) +{ + const QRegion& region = event->region(); + QRect rect = region.boundingRect(); + + geometry::Range2d range(PIXELS_TO_TWIPS(rect.x()-1), + PIXELS_TO_TWIPS(rect.y()-1), + PIXELS_TO_TWIPS(rect.right()+1), + PIXELS_TO_TWIPS(rect.bottom()+1)); + InvalidatedRanges ranges; + ranges.add(range); + + _godfather->setInvalidatedRegions(ranges); + _godfather->renderBuffer(); } // end of namespace gnash Index: gui/kde_glue.h =================================================================== RCS file: /sources/gnash/gnash/gui/kde_glue.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- gui/kde_glue.h 28 May 2007 15:41:00 -0000 1.11 +++ gui/kde_glue.h 9 Jun 2007 19:42:05 -0000 1.12 @@ -19,11 +19,12 @@ // -/* $Id: kde_glue.h,v 1.11 2007/05/28 15:41:00 ann Exp $ */ +/* $Id: kde_glue.h,v 1.12 2007/06/09 19:42:05 bjacques Exp $ */ #include "gnash.h" #include +#include "snappingrange.h" namespace gnash { @@ -31,12 +32,16 @@ class KdeGlue { public: - virtual ~KdeGlue() { }; + KdeGlue() : _drawing_area(NULL) {} + virtual ~KdeGlue() { } virtual bool init(int argc, char **argv[]) = 0; virtual void prepDrawingArea(QWidget *drawing_area) = 0; virtual render_handler* createRenderHandler() = 0; virtual void render() = 0; + virtual void setInvalidatedRegions(const InvalidatedRanges& /* ranges */) {} + virtual void resize(int, int) {} + virtual void initBuffer(int, int) {} protected: QWidget *_drawing_area; }; Index: gui/kde_glue_opengl.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde_glue_opengl.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- gui/kde_glue_opengl.cpp 28 May 2007 15:41:00 -0000 1.10 +++ gui/kde_glue_opengl.cpp 9 Jun 2007 19:42:05 -0000 1.11 @@ -18,7 +18,7 @@ // // -/* $Id: kde_glue_opengl.cpp,v 1.10 2007/05/28 15:41:00 ann Exp $ */ +/* $Id: kde_glue_opengl.cpp,v 1.11 2007/06/09 19:42:05 bjacques Exp $ */ #include "kde_glue_opengl.h" #include "tu_opengl_includes.h" @@ -58,6 +58,7 @@ KdeOpenGLGlue::prepDrawingArea(QWidget *drawing_area) { // GNASH_REPORT_FUNCTION; + static_cast(drawing_area)->makeCurrent(); _drawing_area = drawing_area; } Index: gui/kdesup.h =================================================================== RCS file: /sources/gnash/gnash/gui/kdesup.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- gui/kdesup.h 28 May 2007 15:41:00 -0000 1.17 +++ gui/kdesup.h 9 Jun 2007 19:42:05 -0000 1.18 @@ -52,15 +52,27 @@ // #include // #include "kde_glue_cairo.h" # error "Cairo not supported yet for KDE!" +#elif defined(RENDERER_AGG) +# include "kde_glue_agg.h" #endif + +#ifdef RENDERER_OPENGL +#define WIDGETCLASS QGLWidget +#define GLUE KdeOpenGLGlue +#else +#define WIDGETCLASS QWidget +#define GLUE KdeAggGlue +#endif + + namespace gnash { class KdeGui; -class DSOEXPORT qwidget : public QGLWidget +class DSOEXPORT qwidget : public WIDGETCLASS { Q_OBJECT public: @@ -75,6 +87,7 @@ void keyReleaseEvent(QKeyEvent *event); void timerEvent(QTimerEvent *); void resizeEvent(QResizeEvent *event); + void paintEvent (QPaintEvent *event); public slots: void menuitem_restart_callback(); void menuitem_quit_callback(); @@ -106,10 +119,12 @@ virtual void setInterval(unsigned int interval); virtual void setTimeout(unsigned int timeout); virtual void handleKeyEvent(QKeyEvent *event, bool down); + void setInvalidatedRegions(const InvalidatedRanges& ranges); + void resize(int width, int height); private: QApplication* _qapp; qwidget* _qwidget; - KdeOpenGLGlue _glue; + GLUE _glue; QTimer *_timer; Index: gui/kde_glue_agg.cpp =================================================================== RCS file: gui/kde_glue_agg.cpp diff -N gui/kde_glue_agg.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gui/kde_glue_agg.cpp 9 Jun 2007 19:42:05 -0000 1.1 @@ -0,0 +1,158 @@ +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +/* $Id: kde_glue_agg.cpp,v 1.1 2007/06/09 19:42:05 bjacques Exp $ */ + +#include "kde_glue_agg.h" +#include "render_handler.h" +#include "render_handler_agg.h" +#include +#include + +namespace gnash +{ + +KdeAggGlue::KdeAggGlue() +: _offscreenbuf(NULL), + _renderer(NULL), + _width(0), + _height(0) +{ +} + +KdeAggGlue::~KdeAggGlue() +{ +} + +bool +KdeAggGlue::init(int /* argc */, char *** /* argv */) +{ +// GNASH_REPORT_FUNCTION; + + return true; +} + + +void +KdeAggGlue::prepDrawingArea(QWidget *drawing_area) +{ +// GNASH_REPORT_FUNCTION; + _drawing_area = drawing_area; +} + + +void +KdeAggGlue::initBuffer(int width, int height) +{ + assert(_renderer); + + int _bpp = 32; + int depth_bytes = _bpp / 8; + + assert(_bpp % 8 == 0); + +#define CHUNK_SIZE (100 * 100 * depth_bytes) + + int bufsize = (width * height * depth_bytes / CHUNK_SIZE + 1) * CHUNK_SIZE; + + _offscreenbuf = new unsigned char[bufsize]; + + // Only the AGG renderer has the function init_buffer, which is *not* part of + // the renderer api. It allows us to change the renderers movie size (and buffer + // address) during run-time. + render_handler_agg_base * renderer = + static_cast(_renderer); + renderer->init_buffer(_offscreenbuf, bufsize, width, height); + + _width = width; + _height = height; + + _validbounds.setTo(0, 0, _width, _height); + _drawbounds.push_back(_validbounds); + + _qimage.reset(new QImage(_offscreenbuf, _width, _height, 32 /* bits per pixel */, + 0 , 0, QImage::IgnoreEndian)); +} + +void +KdeAggGlue::render() +{ + // In order to use our buffer in QT, we must copy it into a pixmap. This is + // an expensive operation, but, as far as I can see, the only way to do it. + QPixmap qpixmap(*_qimage); + + for (unsigned bno=0; bno < _drawbounds.size(); bno++) { + geometry::Range2d& bounds = _drawbounds[bno]; + + assert ( bounds.isFinite() ); + + QPoint dest_point(bounds.getMinX(), bounds.getMinY()) ; + QRect src_rect(bounds.getMinX(), bounds.getMinY(), bounds.width(), + bounds.height()); + + bitBlt (_drawing_area, dest_point, &qpixmap, src_rect, Qt::CopyROP, + true /* ignore mask */ ); + } +} + +void +KdeAggGlue::setInvalidatedRegions(const InvalidatedRanges& ranges) +{ + _renderer->set_invalidated_regions(ranges); + + _drawbounds.clear(); + + for (size_t rno=0; rno bounds = Intersection( + _renderer->world_to_pixel(ranges.getRange(rno)), + _validbounds); + + // it may happen that a particular range is out of the screen, which + // will lead to bounds==null. + if (bounds.isNull()) continue; + + assert(bounds.isFinite()); + + _drawbounds.push_back(bounds); + + } +} + + +render_handler* +KdeAggGlue::createRenderHandler() +{ + // QT requires the use of this pixel format... + _renderer = create_render_handler_agg("BGRA32"); + return _renderer; +} + +void +KdeAggGlue::resize(int width, int height) +{ + if (!_offscreenbuf) { + // If initialisation has not taken place yet, we don't want to touch this. + return; + } + + delete [] _offscreenbuf; + initBuffer(width, height); +} + +// end of namespace gnash +} Index: gui/kde_glue_agg.h =================================================================== RCS file: gui/kde_glue_agg.h diff -N gui/kde_glue_agg.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gui/kde_glue_agg.h 9 Jun 2007 19:42:05 -0000 1.1 @@ -0,0 +1,52 @@ +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +#include "kde_glue.h" +#include + + +namespace gnash +{ + +class KdeAggGlue : public KdeGlue +{ + public: + KdeAggGlue(); + ~KdeAggGlue(); + + bool init(int argc, char **argv[]); + void prepDrawingArea(QWidget *drawing_area); + render_handler* createRenderHandler(); + void initBuffer(int width, int height); + void resize(int width, int height); + void render(); + void setInvalidatedRegions(const InvalidatedRanges& ranges); + + private: + int _width; + int _height; + unsigned char* _offscreenbuf; + render_handler* _renderer; + geometry::Range2d _validbounds; + std::vector< geometry::Range2d > _drawbounds; + std::auto_ptr _qimage; +}; + + + + +} From MAILER-DAEMON Sun Jun 10 03:36:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxHyI-0002uI-9d for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 03:36:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxHyF-0002u1-IS for gnash-commit@gnu.org; Sun, 10 Jun 2007 03:36:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxHyD-0002tk-Ds for gnash-commit@gnu.org; Sun, 10 Jun 2007 03:36:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxHyD-0002th-8y for gnash-commit@gnu.org; Sun, 10 Jun 2007 03:36:17 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxHyD-0004wU-Ar for gnash-commit@gnu.org; Sun, 10 Jun 2007 03:36:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxHyB-0001If-EO for gnash-commit@gnu.org; Sun, 10 Jun 2007 07:36:15 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxHyA-0001IR-Oh for gnash-commit@gnu.org; Sun, 10 Jun 2007 07:36:14 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 10 Jun 2007 07:36:14 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 07:36:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/10 07:36:14 Modified files: . : ChangeLog gui : Makefile.am Log message: * gui/Makefile.am: klash.moc is a source file for the kde gui. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3505&r2=1.3506 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.77&r2=1.78 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3505 retrieving revision 1.3506 diff -u -b -r1.3505 -r1.3506 --- ChangeLog 9 Jun 2007 19:42:04 -0000 1.3505 +++ ChangeLog 10 Jun 2007 07:36:13 -0000 1.3506 @@ -1,3 +1,8 @@ +2007-06-10 Sandro Santilli + + * gui/Makefile.am: klash.moc is a source file for the kde + gui. + 2007-06-09 Bastiaan Jacques * configure.ac: Allow the KDE GUI to be compiled against AGG. Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.77 retrieving revision 1.78 diff -u -b -r1.77 -r1.78 --- gui/Makefile.am 9 Jun 2007 19:42:05 -0000 1.77 +++ gui/Makefile.am 10 Jun 2007 07:36:13 -0000 1.78 @@ -17,7 +17,7 @@ # -# $Id: Makefile.am,v 1.77 2007/06/09 19:42:05 bjacques Exp $ +# $Id: Makefile.am,v 1.78 2007/06/10 07:36:13 strk Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -159,7 +159,7 @@ endif if USE_GUI_KDE - KDE_SRCS = kde.cpp kdesup.h kde_glue.h $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) $(KDE_AGG_SRCS) + KDE_SRCS = kde.cpp kdesup.h kde_glue.h klash.moc $(KDE_CAIRO_SRCS) $(KDE_OPENGL_SRCS) $(KDE_AGG_SRCS) AM_CPPFLAGS += $(KDE_CFLAGS) $(QT_CFLAGS) AM_LDFLAGS += $(KDE_LIBS) $(QT_LIBS) else From MAILER-DAEMON Sun Jun 10 10:46:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxOgs-00037H-3l for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 10:46:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxOgq-00035i-El for gnash-commit@gnu.org; Sun, 10 Jun 2007 10:46:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxOgo-00034O-JP for gnash-commit@gnu.org; Sun, 10 Jun 2007 10:46:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxOgo-00034I-Fu for gnash-commit@gnu.org; Sun, 10 Jun 2007 10:46:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxOgn-0006T7-Ut for gnash-commit@gnu.org; Sun, 10 Jun 2007 10:46:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxOgn-0004MT-FD for gnash-commit@gnu.org; Sun, 10 Jun 2007 14:46:45 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxOgn-0004MQ-Ap for gnash-commit@gnu.org; Sun, 10 Jun 2007 14:46:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Sun, 10 Jun 2007 14:46:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/kde.cpp gui/kde_glue_agg.cp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 14:46:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/10 14:46:45 Modified files: . : ChangeLog gui : kde.cpp kde_glue_agg.cpp kde_glue_agg.h kdesup.h Log message: * gui/kde{sup.h, .cpp}: Comment out debugging statements. Make setTimeout work. Quit KdeGui gracefully rather than calling exit(0). Avoid conversion compiler warnings. Switch class pointers to auto_ptr. Small code cleanups. * gui/kde_glue_agg{.cpp, .h}: Contain the rendering buffer in a scoped_array. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3506&r2=1.3507 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde.cpp?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_agg.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_agg.h?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kdesup.h?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3506 retrieving revision 1.3507 diff -u -b -r1.3506 -r1.3507 --- ChangeLog 10 Jun 2007 07:36:13 -0000 1.3506 +++ ChangeLog 10 Jun 2007 14:46:44 -0000 1.3507 @@ -1,3 +1,12 @@ +2007-06-10 Bastiaan Jacques + + * gui/kde{sup.h, .cpp}: Comment out debugging statements. Make + setTimeout work. Quit KdeGui gracefully rather than calling + exit(0). Avoid conversion compiler warnings. Switch class + pointers to auto_ptr. Small code cleanups. + * gui/kde_glue_agg{.cpp, .h}: Contain the rendering buffer in + a scoped_array. + 2007-06-10 Sandro Santilli * gui/Makefile.am: klash.moc is a source file for the kde Index: gui/kde.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- gui/kde.cpp 9 Jun 2007 19:42:05 -0000 1.15 +++ gui/kde.cpp 10 Jun 2007 14:46:44 -0000 1.16 @@ -22,12 +22,13 @@ #endif -#include #include #include #include #include #include +#include +#include #include "Range2d.h" @@ -39,9 +40,6 @@ #include "kdesup.h" #include "klash.moc" -//#include -#include - using namespace std; namespace gnash @@ -50,29 +48,25 @@ KdeGui::~KdeGui() { // GNASH_REPORT_FUNCTION; - delete _qwidget; } KdeGui::KdeGui(unsigned long xid, float scale, bool loop, unsigned int depth) : Gui(xid, scale, loop, depth) { - GNASH_REPORT_FUNCTION; - - } bool KdeGui::init(int argc, char **argv[]) { - _qapp = new QApplication(argc, *argv); - _qwidget = new qwidget(this); +// GNASH_REPORT_FUNCTION; + _qapp.reset(new QApplication(argc, *argv)); + _qwidget.reset(new qwidget(this)); if (_xid) { QXEmbed::initialize(); - QXEmbed::embedClientIntoWindow(_qwidget, _xid); + QXEmbed::embedClientIntoWindow(_qwidget.get(), _xid); } -// GNASH_REPORT_FUNCTION; _glue.init (argc, argv); return true; @@ -81,15 +75,15 @@ bool KdeGui::createWindow(const char* windowtitle, int width, int height) { - GNASH_REPORT_FUNCTION; +// GNASH_REPORT_FUNCTION; _qwidget->setGeometry(0, 0, width, height); _qwidget->setCaption(windowtitle); - _qapp->setMainWidget(_qwidget); + _qapp->setMainWidget(_qwidget.get()); _qwidget->show(); - _glue.prepDrawingArea(_qwidget); + _glue.prepDrawingArea(_qwidget.get()); _renderer = _glue.createRenderHandler(); _glue.initBuffer(width, height); @@ -118,13 +112,13 @@ KdeGui::setTimeout(unsigned int timeout) { // GNASH_REPORT_FUNCTION; -// _timeout = timeout; + QTimer::singleShot(timeout, _qapp.get(), SLOT(quit())); } void KdeGui::setInterval(unsigned int interval) { - GNASH_REPORT_FUNCTION; +// GNASH_REPORT_FUNCTION; _qwidget->setInterval(interval); } @@ -132,9 +126,7 @@ bool KdeGui::run() { - GNASH_REPORT_FUNCTION; - // _qwidget->connect(&_qapp, SIGNAL(lastWindowClosed()), &_qapp, SLOT(quit())); - +// GNASH_REPORT_FUNCTION; _qapp->exec(); return true; @@ -259,6 +251,12 @@ resize_view(width, height); } +void +KdeGui::quit() +{ + _qapp->eventLoop()->exit(); +} + /// \brief restart the movie from the beginning void @@ -273,12 +271,7 @@ qwidget::menuitem_quit_callback() { // GNASH_REPORT_FUNCTION; -#if 0 - _qapp->closeAllWindows(); - _qapp->quit(); - #endif - - exit(0); + _godfather->quit(); } /// \brief Start the movie playing from the current frame. @@ -346,14 +339,14 @@ void qwidget::mouseMoveEvent(QMouseEvent *event) { - GNASH_REPORT_FUNCTION; +// GNASH_REPORT_FUNCTION; assert(_godfather); QPoint position = event->pos(); - float xscale = _godfather->getXScale(); - float yscale = _godfather->getYScale(); + int newX = static_cast (position.x() / _godfather->getXScale()); + int newY = static_cast (position.y() / _godfather->getYScale()); - _godfather->notify_mouse_moved(position.x() / xscale, position.y() / yscale); + _godfather->notify_mouse_moved(newX, newY); } qwidget::qwidget(KdeGui* godfather) @@ -394,13 +387,13 @@ } void -qwidget::mousePressEvent(QMouseEvent *event) +qwidget::mousePressEvent(QMouseEvent* /* event */) { _godfather->notify_mouse_clicked(true, 1); } void -qwidget::mouseReleaseEvent(QMouseEvent *event) +qwidget::mouseReleaseEvent(QMouseEvent* /* event */) { _godfather->notify_mouse_clicked(false, 1); } @@ -429,10 +422,12 @@ const QRegion& region = event->region(); QRect rect = region.boundingRect(); - geometry::Range2d range(PIXELS_TO_TWIPS(rect.x()-1), - PIXELS_TO_TWIPS(rect.y()-1), - PIXELS_TO_TWIPS(rect.right()+1), - PIXELS_TO_TWIPS(rect.bottom()+1)); + int xmin = static_cast (PIXELS_TO_TWIPS(rect.x()-1)), + ymin = static_cast (PIXELS_TO_TWIPS(rect.y()-1)), + xmax = static_cast (PIXELS_TO_TWIPS(rect.right()+1)), + ymax = static_cast (PIXELS_TO_TWIPS(rect.bottom()+1)); + + geometry::Range2d range(xmin, ymin, xmax, ymax); InvalidatedRanges ranges; ranges.add(range); Index: gui/kde_glue_agg.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde_glue_agg.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- gui/kde_glue_agg.cpp 9 Jun 2007 19:42:05 -0000 1.1 +++ gui/kde_glue_agg.cpp 10 Jun 2007 14:46:44 -0000 1.2 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: kde_glue_agg.cpp,v 1.1 2007/06/09 19:42:05 bjacques Exp $ */ +/* $Id: kde_glue_agg.cpp,v 1.2 2007/06/10 14:46:44 bjacques Exp $ */ #include "kde_glue_agg.h" #include "render_handler.h" @@ -27,8 +27,7 @@ { KdeAggGlue::KdeAggGlue() -: _offscreenbuf(NULL), - _renderer(NULL), +: _renderer(NULL), _width(0), _height(0) { @@ -69,14 +68,14 @@ int bufsize = (width * height * depth_bytes / CHUNK_SIZE + 1) * CHUNK_SIZE; - _offscreenbuf = new unsigned char[bufsize]; + _offscreenbuf.reset(new unsigned char[bufsize]); // Only the AGG renderer has the function init_buffer, which is *not* part of // the renderer api. It allows us to change the renderers movie size (and buffer // address) during run-time. render_handler_agg_base * renderer = static_cast(_renderer); - renderer->init_buffer(_offscreenbuf, bufsize, width, height); + renderer->init_buffer(_offscreenbuf.get(), bufsize, width, height); _width = width; _height = height; @@ -84,7 +83,7 @@ _validbounds.setTo(0, 0, _width, _height); _drawbounds.push_back(_validbounds); - _qimage.reset(new QImage(_offscreenbuf, _width, _height, 32 /* bits per pixel */, + _qimage.reset(new QImage(_offscreenbuf.get(), _width, _height, 32 /* bits per pixel */, 0 , 0, QImage::IgnoreEndian)); } @@ -145,12 +144,6 @@ void KdeAggGlue::resize(int width, int height) { - if (!_offscreenbuf) { - // If initialisation has not taken place yet, we don't want to touch this. - return; - } - - delete [] _offscreenbuf; initBuffer(width, height); } Index: gui/kde_glue_agg.h =================================================================== RCS file: /sources/gnash/gnash/gui/kde_glue_agg.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- gui/kde_glue_agg.h 9 Jun 2007 19:42:05 -0000 1.1 +++ gui/kde_glue_agg.h 10 Jun 2007 14:46:44 -0000 1.2 @@ -17,6 +17,7 @@ #include "kde_glue.h" #include +#include namespace gnash @@ -39,8 +40,8 @@ private: int _width; int _height; - unsigned char* _offscreenbuf; - render_handler* _renderer; + boost::scoped_array _offscreenbuf; + render_handler* _renderer; // We don't own this pointer. geometry::Range2d _validbounds; std::vector< geometry::Range2d > _drawbounds; std::auto_ptr _qimage; Index: gui/kdesup.h =================================================================== RCS file: /sources/gnash/gnash/gui/kdesup.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- gui/kdesup.h 9 Jun 2007 19:42:05 -0000 1.18 +++ gui/kdesup.h 10 Jun 2007 14:46:45 -0000 1.19 @@ -28,41 +28,22 @@ #include "tu_config.h" #include "gui.h" -#if 0 -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#endif - #include #include #ifdef RENDERER_OPENGL # include # include "kde_glue_opengl.h" +# define WIDGETCLASS QGLWidget +# define GLUE KdeOpenGLGlue #elif defined(RENDERER_CAIRO) // #include // #include "kde_glue_cairo.h" # error "Cairo not supported yet for KDE!" #elif defined(RENDERER_AGG) # include "kde_glue_agg.h" -#endif - - -#ifdef RENDERER_OPENGL -#define WIDGETCLASS QGLWidget -#define GLUE KdeOpenGLGlue -#else -#define WIDGETCLASS QWidget -#define GLUE KdeAggGlue +# define WIDGETCLASS QWidget +# define GLUE KdeAggGlue #endif @@ -121,13 +102,12 @@ virtual void handleKeyEvent(QKeyEvent *event, bool down); void setInvalidatedRegions(const InvalidatedRanges& ranges); void resize(int width, int height); + void quit(); private: - QApplication* _qapp; - qwidget* _qwidget; + std::auto_ptr _qapp; + std::auto_ptr _qwidget; GLUE _glue; - QTimer *_timer; - gnash::key::code qtToGnashKey(QKeyEvent *event); int qtToGnashModifier(Qt::ButtonState state); }; From MAILER-DAEMON Sun Jun 10 11:26:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxPJS-0004Ts-Q1 for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 11:26:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxPJP-0004R5-NA for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:26:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxPJM-0004OU-CC for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:26:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxPJL-0004O6-36 for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:26:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxPJJ-0001yU-Ne for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:26:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxPJH-0006Wu-Tg for gnash-commit@gnu.org; Sun, 10 Jun 2007 15:26:32 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxPJH-0006Wr-P2 for gnash-commit@gnu.org; Sun, 10 Jun 2007 15:26:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Sun, 10 Jun 2007 15:26:31 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/po sv.po X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 15:26:40 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/10 15:26:31 Added files: po : sv.po Log message: Rename CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/po/sv.po?cvsroot=gnash&rev=1.1 Patches: Index: sv.po =================================================================== RCS file: sv.po diff -N sv.po --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sv.po 10 Jun 2007 15:26:31 -0000 1.1 @@ -0,0 +1,4507 @@ +# Swedishß translation of GNU Gnash. +# Copyright (C) 2007 Free Software Foundation, Inc. +# This file is distributed under the same license as the gnash package. +# <>, 2007. +# +# +msgid "" +msgstr "" +"Project-Id-Version: Gnash\n" +"Report-Msgid-Bugs-To: bug-gnash@gnu.org\n" +"POT-Creation-Date: 2007-05-15 08:44+0200\n" +"PO-Revision-Date: 2007-05-15 08:44+0200\n" +"Last-Translator: Markus Gothe \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit" + +#: backend/sound_handler_sdl.cpp:76 +msgid "could not allocate memory for sound data" +msgstr "kan inte allokera minne för ljud-data " + +#: backend/sound_handler_sdl.cpp:99 +msgid "Some kind of error occurred with raw sound data" +msgstr "Fel uppstod med rått ljud-datat" + +#: backend/sound_handler_sdl.cpp:112 +msgid "Some kind of error occurred with adpcm sound data" +msgstr "Fel uppstod med ADPCM-ljud" + +#: backend/sound_handler_sdl.cpp:123 +msgid "gnash has not been compiled to handle mp3 audio" +msgstr "gnash har inte byggts med mp3-stöd" + +#: backend/sound_handler_sdl.cpp:129 +msgid "could not allocate space for data in sound handler" +msgstr "kan inte allokera utrymme för data i ljudhanteraren" + +#: backend/sound_handler_sdl.cpp:138 +#, c-format +msgid "unknown sound format %d requested; gnash does not handle it" +msgstr "okänkt ljudformat % begärt. gnash hanterar det inte" + +#: backend/sound_handler_sdl.cpp:170 +msgid "Some kind of error with resampling sound data" +msgstr "Fell uppstod under resampling av ljud" + +#: backend/sound_handler_sdl.cpp:215 +#, c-format +msgid "" +"Behavior for this audio codec %d is unknown. Please send this SWF to the " +"developers" +msgstr "Detta ljud-codec, %d, är okänt. Sänd SWF-filen till " +"en utvecklare" + +#: backend/sound_handler_sdl.cpp:276 +msgid "Your FFMPEG can't decode MP3?!" +msgstr "FFMPEG byggt utan mp3-stöd?" + +#: backend/sound_handler_sdl.cpp:304 +#, c-format +msgid "Unable to start SDL sound: %s" +msgstr "Kann SDL-Audioausgabe nicht starten: %s" + +#: backend/sound_handler_sdl.cpp:496 +#, c-format +msgid "Unable to start aux SDL sound: %s" +msgstr "Kann Aux-SDL-Audioausgabe nicht starten: %s" + +#: backend/sound_handler_sdl.cpp:717 +#, c-format +msgid "Negative buffer length in sdl_audio_callback (%d)" +msgstr "Negative Pufferlänge in sdl_audio_callback (%d)" + +#: backend/sound_handler_sdl.cpp:834 +msgid "" +"Error while decoding MP3-stream. Upgrading ffmpeg/libavcodec might fix this " +"issue." +msgstr "Fehler beim Dekodieren des MP3-Streams. Eine Aktualisierung von " +"ffmpeg/libavcodec könnte dieses Problem beheben." + +#: backend/sound_handler_sdl.cpp:864 +#, c-format +msgid "Recoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Behebbarer Fehler beim Dekodieren des MP3-Streams, MAD-Fehler: %s" + +#: backend/sound_handler_sdl.cpp:872 +#, c-format +msgid "Unrecoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Nicht behebbarer Fehler beim Dekodieren des MP3-Streams, MAD-Fehler: %s" + +#: backend/sound_handler_sdl.cpp:929 +msgid "Error in sound sample conversion" +msgstr "Fehler bei Audio-Sample-Umwandlung" + +#: extensions/mysql/mysql_db.cpp:186 +msgid "Couldn't initialize database" +msgstr "Konnte Datenbank nicht initialisieren" + +#: extensions/mysql/mysql_db.cpp:191 +msgid "Couldn't connect to database" +msgstr "Konnte mit Datenbank nicht verbinden" + +#: extensions/mysql/mysql_db.cpp:217 extensions/mysql/mysql_db.cpp:244 +#, c-format +msgid "MySQL connection error: %s" +msgstr "MySQL-Verbindungsfehler: %s" + +#: extensions/mysql/mysql_db.cpp:224 extensions/mysql/mysql_db.cpp:251 +#, c-format +msgid "" +"MySQL error on query for:\n" +"\t%s\n" +"Query was: %s" +msgstr "" +"MySQL-Fehler bei Abfrage nach:\n" +"\t%s\n" +"Abfrage war: %s" + +#: extensions/mysql/mysql_db.cpp:265 +#, c-format +msgid "Field name is: %s: " +msgstr "Feldname ist: %s: " + +#: gui/gnash.cpp:73 +msgid "" +"usage: gnash [options] movie_file.swf\n" +"\n" +"Plays a SWF (Shockwave Flash) movie\n" +"options:\n" +"\n" +msgstr "" +"Verwendung: gnash [Optionen] Film_Datei.swf\n" +"\n" +"Wiedergabe eines SWF (Shockwave Flash) Films\n" +"Optionen:\n" +"\n" + +#: gui/gnash.cpp:78 +#, Not sure about the above... +msgid "" +" -h, --help Print this info.\n" +" -s Scale the movie up/down by the specified factor\n" +" -c Produce a core file instead of letting SDL trap it\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Be verbose; i.e. print log messages to stdout\n" +msgstr "" +" -h, --help Diese Hilfe anzeigen.\n" +" -s Film um den angegebenen Faktor skalieren\n" +" -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" + +#: gui/gnash.cpp:85 +msgid " -va Be verbose about movie Actions\n" +msgstr " -va Ausführlicher Modus für Film-Aktionen\n" + +#: gui/gnash.cpp:90 +msgid " -vp Be verbose about parsing the movie\n" +msgstr " -vp Ausführlicher Modus beim Parsen des Films\n" + +#: gui/gnash.cpp:95 +msgid "" +" -m Specify the texture LOD bias (float, default is -1.0)\n" +" -x X11 Window ID for display\n" +" -w Produce the disk based debug log\n" +" -j Set window width\n" +" -k Set window height\n" +" -1 Play once; exit when/if movie reaches the last frame\n" +msgstr "" + +#: gui/gnash.cpp:102 +msgid "" +" -g Turn on the Flash debugger\n" +" -r <0|1|2|3>\n" +" 0 disables both rendering & sound (good for batch tests)\n" +" 1 enables rendering & disables sound\n" +" 2 enables sound & disables rendering\n" +" 3 enables both rendering & sound (default)\n" +msgstr "" +" -g Flash-Debugger einschalten\n" +" -r <0|1|2|3>\n" +" 0 Rendering und Audio deaktiviert (good for batch tests)\n" +" 1 Rendering aktiviert, Audio deaktiviert\n" +" 2 Audio aktiviert, Rendering deaktiviert\n" +" 3 Rendering und Audio aktiviert (Standard)\n" + +#: gui/gnash.cpp:109 +msgid "" +" -t Timeout and exit after the specified number of seconds\n" +" -b Bit depth of output window (16 or 32, default is 16)\n" +" -u Set \"real\" url of the movie\n" +" (useful for downloaded movies)\n" +" -U Set \"base\" url for this run\n" +" (used to resolve relative urls, defaults to movie url)\n" +" -P Set parameter (ie. \"FlashVars=A=1&b=2\")\n" +" --version Print gnash's version number and exit\n" +msgstr "" + +#: gui/gnash.cpp:118 +msgid "" +"\n" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Quit/Exit\n" +" CTRL-P Toggle Pause\n" +" CTRL-R Restart the movie\n" +" CTRL-[ or kp- Step back one frame\n" +" CTRL-] or kp+ Step forward one frame\n" +" CTRL-B Toggle background color\n" +" CTRL-A Toggle antialiasing (doesn't work)\n" +" CTRL-T Debug. Test the set_variable() function\n" +" CTRL-G Debug. Test the get_variable() function\n" +" CTRL-M Debug. Test the call_method() function\n" +msgstr "\n" +"Tastenkombinationen:\n" +" Strg-Q, Strg-W, ESC Beenden\n" +" Strg-P Pause\n" +" Strg-R Film neu starten\n" +" Strg-[ or kp- Ein Bild zurück\n" +" Strg-] or kp+ Ein Bild vorwärts\n" +" Strg-B Hintergrundfarbe ändern\n" +" Strg-A Toggle antialiasing (doesn't work)\n" +" Strg-T Debug. Test the set_variable() function\n" +" Strg-G Debug. Test the get_variable() function\n" +" Strg-M Debug. Test the call_method() function\n" + +#: gui/gnash.cpp:138 plugin/klash/klash.cpp:660 +#, c-format +msgid "Gnash " +msgstr "Gnash " + +#: gui/gnash.cpp:138 +#, c-format +msgid "" +"\n" +"Copyright (C) 2005-2007 Free Software Foundation, Inc.\n" +"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" +"You may redistribute copies of Gnash under the terms of the GNU General\n" +"Public License. For more information, see the file named COPYING.\n" +msgstr "" + +#: gui/gnash.cpp:149 +#, c-format +msgid "" +"Build options %s\n" +" Target: %s\n" +" Renderer: %s GUI: %s Media handler: %s\n" +msgstr "" +"Build-Optionen %s\n" +" Ziel: %s\n" +" Renderer: %s GUI: %s Medienhandler: %s\n" + +#: gui/gnash.cpp:190 plugin/klash/klash.cpp:319 +msgid "Verbose output turned on" +msgstr "Ausführliche Ausgabe eingeschaltet" + +#: gui/gnash.cpp:194 +msgid "Logging to disk enabled" +msgstr "Logging auf Festplatte aktiviert" + +#: gui/gnash.cpp:200 +msgid "No verbose actions; disabled at compile time" +msgstr "Kein ausführlicher Modus für Aktionen. Bei der Kompilierung deaktiviert" + +#: gui/gnash.cpp:207 +msgid "No verbose parsing; disabled at compile time" +msgstr "Kein ausführlicher Modus beim Parsen. Bei der Kompilierung deaktiviert" + +#: gui/gnash.cpp:218 +#, c-format +msgid "Setting root URL to %s" +msgstr "Setze Root-URL auf %s" + +#: gui/gnash.cpp:224 +#, c-format +msgid "Setting base URL to %s" +msgstr "Setze Basis-URL auf %s" + +#: gui/gnash.cpp:229 +#, c-format +msgid "Setting width to %d" +msgstr "Setze Breite auf %d" + +#: gui/gnash.cpp:233 +msgid "Setting debugger ON" +msgstr "Schalte Debugging EIN" + +#: gui/gnash.cpp:238 +msgid "No debugger; disabled at compile time" +msgstr "Kein Debugging. Bei der Kompilierung deaktiviert" + +#: gui/gnash.cpp:243 +#, c-format +msgid "Setting height to %d" +msgstr "Setze Höhe auf %d" + +#: gui/gnash.cpp:279 +#, c-format +msgid "-r must be followed by 0, 1, 2 or 3 (%ld is invalid)" +msgstr "-r erfordert 0, 1, 2, oder 3 (%ld ist ungültig)" + +#: gui/gnash.cpp:314 +msgid "No rendering flags specified, using rcfile" +msgstr "" + +#: gui/gnash.cpp:328 +#, c-format +msgid "Got variable option (%s) on command line" +msgstr "" + +#: gui/gui.cpp:460 +#, c-format +msgid "Frame %d" +msgstr "Bild %d" + +#: gui/Player.cpp:187 +msgid "Sound requested but no sound support compiled in" +msgstr "Audio erfordert, jedoch keine Audiounterstützung bei der Kompilierung aktiviert" + +#: gui/Player.cpp:364 +#, c-format +msgid "fs_callback(%p): %s %s" +msgstr "" + +#: libamf/amf.cpp:179 +#, c-format +msgid "Type is %s" +msgstr "Typ ist %s" + +#: libamf/amf.cpp:185 +msgid "Number is " +msgstr "Zahl ist " + +#: libamf/amf.cpp:189 +#, c-format +msgid "Boolean is %d" +msgstr "Boolean ist %d" + +#: libamf/amf.cpp:202 libamf/amf.cpp:241 +#, c-format +msgid "String is %s" +msgstr "String ist %s" + +#: libamf/amf.cpp:218 +msgid "Undefined element" +msgstr "Undefiniertes Element" + +#: libamf/amf.cpp:234 +msgid "Date is " +msgstr "Datum ist " + +#: libamf/amf.cpp:234 +msgid " nanoseconds" +msgstr " Nanosekunden" + +#: libamf/amf.cpp:884 +#, c-format +msgid "AMF Header size bits (0x%X) out of range" +msgstr "" + +#: libamf/amf.cpp:901 +#, c-format +msgid "AMF header byte is: 0x%X" +msgstr "" + +#: libamf/amf.cpp:904 +#, c-format +msgid "The AMF channel index is %d" +msgstr "" + +#: libamf/amf.cpp:907 +#, c-format +msgid "The header size is %d" +msgstr "" + +#: libamf/amf.cpp:911 +#, c-format +msgid "The packet head is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:918 +#, c-format +msgid "The mystery word is: %d or 0x%s" +msgstr "" + +#: libamf/amf.cpp:927 +#, c-format +msgid "The body size is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:937 +#, c-format +msgid "The type is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:956 +#, c-format +msgid "ERROR: Unidentified AMF header data type %d" +msgstr "" + +#: libamf/amf.cpp:964 +#, c-format +msgid "The source/destination is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:1007 +msgid "AMF body input data is NULL" +msgstr "" + +#: libamf/amf.cpp:1017 +#, c-format +msgid "The packet body is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1046 +#, c-format +msgid "AMF String length is: %d" +msgstr "" + +#: libamf/amf.cpp:1052 +#, c-format +msgid "AMF String is: %s" +msgstr "" + +#: libamf/amf.cpp:1108 libamf/amf.cpp:1193 +msgid "End of Object definition" +msgstr "" + +#: libamf/amf.cpp:1119 +#, c-format +msgid "The element is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1124 +#, c-format +msgid "AMF element length is: %d" +msgstr "" + +#: libamf/amf.cpp:1134 +#, c-format +msgid "AMF type is: %s" +msgstr "" + +#: libamf/amf.cpp:1151 +#, c-format +msgid "Number \"%s\" is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1162 +#, c-format +msgid "Boolean \"%s\" is: %s" +msgstr "" + +#: libamf/amf.cpp:1171 libamf/amf.cpp:1184 +#, c-format +msgid "Variable \"%s\" is: %s" +msgstr "" + +#: libamf/amf.cpp:1181 +msgid "Undefined type" +msgstr "" + +#: libamf/amf.cpp:1207 +#, c-format +msgid "astype_e of value: %d" +msgstr "" + +#: libbase/curl_adapter.cpp:277 libbase/curl_adapter.cpp:529 +#, c-format +msgid "404 response from url %s" +msgstr "404-Antwort von URL %s" + +#: libbase/extension.cpp:124 +#, c-format +msgid "Loading module: %s" +msgstr "Lade Modul: %s" + +#: libbase/extension.cpp:140 +#, c-format +msgid "Initializing module: \"%s\"" +msgstr "Initialisiere Modul: \"%s\"" + +#: libbase/extension.cpp:157 +msgid "Couldn't get class_init symbol" +msgstr "Konnte class_init-Symbol nicht ermitteln" + +#: libbase/extension.cpp:192 +#, c-format +msgid "Scanning directory \"%s\" for plugins" +msgstr "Scanne Ordner \"%s\" für Plugins" + +#: libbase/extension.cpp:196 +#, c-format +msgid "Can't open directory %s" +msgstr "Kann Ordner %s nicht öffnen" + +#: libbase/extension.cpp:218 +#, c-format +msgid "Gnash Plugin name: %s" +msgstr "Gnash-Plugin-Name: %s" + +#: libbase/log.cpp:188 +msgid "TRACE: " +msgstr "TRACE: " + +#: libbase/log.cpp:210 libbase/log.cpp:625 +msgid "DEBUG: " +msgstr "DEBUG: " + +#: libbase/log.cpp:276 +msgid "ERROR: " +msgstr "FEHLER: " + +#: libbase/log.cpp:293 +msgid "ERROR: Unimplemented: " +msgstr "FEHLER: Nicht implementiert" + +#: libbase/log.cpp:310 +msgid "SECURITY: " +msgstr "SICHERHEIT: " + +#: libbase/log.cpp:327 +msgid "MALFORMED SWF: " +msgstr "" + +#: libbase/log.cpp:344 +msgid "ACTIONSCRIPT ERROR: " +msgstr "ACTIONSCRIPT FEHLER: " + +#: libbase/network.cpp:85 +msgid "Could not find a usable WinSock DLL" +msgstr "Konnte keine verwendbare WinSock-DLL finden" + +#: libbase/network.cpp:127 +#, c-format +msgid "Can't connect to privileged port #%d" +msgstr "Kann mit privilegiertem Port %d nicht verbinden" + +#: libbase/network.cpp:149 +#, c-format +msgid "unable to get protocol entry for %s" +msgstr "Erfassen des Protokolleintrags für %s nicht möglich!" + +#: libbase/network.cpp:166 +#, c-format +msgid "unable to create socket: %s" +msgstr "konnte Sockel nicht erstellen: %s" + +#: libbase/network.cpp:173 +msgid "setsockopt SO_REUSEADDR failed" +msgstr "setsockopt SO_REUSEADDR fehlgeschlagen" + +#: libbase/network.cpp:183 +#, c-format +msgid "unable to bind to port %hd: %s" +msgstr "Binden an Port %hd unmöglich: %s" + +#: libbase/network.cpp:192 +#, c-format +msgid "Server bound to service on %s, port %hd, using fd %d" +msgstr "" + +#: libbase/network.cpp:198 +#, c-format +msgid "unable to listen on port: %hd: %s " +msgstr "" + +#: libbase/network.cpp:235 +#, c-format +msgid "Trying to accept net traffic on fd %d" +msgstr "" + +#: libbase/network.cpp:264 +msgid "There is data at the console for stdin" +msgstr "" + +#: libbase/network.cpp:270 +#, c-format +msgid "The accept() socket for fd %d was interupted by a system call" +msgstr "" + +#: libbase/network.cpp:274 +#, c-format +msgid "The accept() socket for fd %d never was available for writing" +msgstr "" + +#: libbase/network.cpp:281 +#, c-format +msgid "The accept() socket for fd %d timed out waiting to write" +msgstr "" + +#: libbase/network.cpp:293 +#, c-format +msgid "unable to accept: %s" +msgstr "Nicht annehmbar: %s" + +#: libbase/network.cpp:298 +#, c-format +msgid "Accepting tcp/ip connection on fd %d" +msgstr "Nehme TCP/IP-Verbindung an fd %d an" + +#: libbase/network.cpp:344 +#, c-format +msgid "Can't connect to privileged port %hd" +msgstr "Verbindung mit privilegiertem Port %hd unmöglich" + +#: libbase/network.cpp:349 +#, c-format +msgid "%s: to host %s at port %d" +msgstr "" + +#: libbase/network.cpp:355 +#, c-format +msgid "The hostname for this machine is %s" +msgstr "Der Hostname für diesen Rechner ist %s" + +#: libbase/network.cpp:357 +msgid "Couldn't get the hostname for this machine" +msgstr "Konnte Hostnamen für diesen Rechner nicht ermitteln" + +#: libbase/network.cpp:371 +#, c-format +msgid "The IP address for this client socket is %s" +msgstr "Die IP-Adresse für diesen Client-Sockel ist %s" + +#: libbase/network.cpp:379 +#, c-format +msgid "unable to create socket : %s" +msgstr "Kann Sockel nicht erstellen: %s" + +#: libbase/network.cpp:401 +#, c-format +msgid "The connect() socket for fd %d was interupted by a system call" +msgstr "Der connect()-Sockel für fd %d wurde durch einen Systemaufruf unterbrochen" + +#: libbase/network.cpp:408 libbase/network.cpp:436 +#, c-format +msgid "The connect() socket for fd %d never was available for writing" +msgstr "" + +#: libbase/network.cpp:419 +#, c-format +msgid "The connect() socket for fd %d timed out waiting to write" +msgstr "" + +#: libbase/network.cpp:429 +#, c-format +msgid "\tport %d at IP %s for fd %d" +msgstr "" + +#: libbase/network.cpp:505 +#, c-format +msgid "Unable to close the socket for fd %d: %s" +msgstr "Kann Sockel für fd %d nicht schließen: %s" + +#: libbase/network.cpp:512 +#, c-format +msgid "Closed the socket on fd %d" +msgstr "Sockel auf fd %d geschlossen" + +#: plugin/klash/klash.cpp:101 +msgid "Play Movie" +msgstr "Wiedergabe" + +#: plugin/klash/klash.cpp:102 +msgid "Pause Movie" +msgstr "Pause" + +#: plugin/klash/klash.cpp:103 +msgid "Stop Movie" +msgstr "Anhalten" + +#: plugin/klash/klash.cpp:104 +msgid "Restart Movie" +msgstr "Film neu starten" + +#: plugin/klash/klash.cpp:105 +msgid "Step Forward" +msgstr "Vorspulen" + +#: plugin/klash/klash.cpp:106 +msgid "Step Backward" +msgstr "Zurückspulen" + +#: plugin/klash/klash.cpp:107 +msgid "Jump Forward" +msgstr "Vorwärts springen" + +#: plugin/klash/klash.cpp:108 +msgid "Jump Backward" +msgstr "Zurück springen" + +#: plugin/klash/klash.cpp:109 +msgid "Quit Gnash" +msgstr "Gnash beenden" + +#: plugin/klash/klash.cpp:147 +msgid "Klash" +msgstr "Klash" + +#: plugin/klash/klash.cpp:148 +msgid "The Gnash Flash player for KDE.\n" +msgstr "Der Gnash-Flash-Player für KDE.\n" + +#: plugin/klash/klash.cpp:309 +#, c-format +msgid "Timer delay set to %d milliseconds" +msgstr "Timer-Verzögerung auf %d Millisekunden gesetzt" + +#: plugin/klash/klash.cpp:323 +msgid "Logging to disk enabled." +msgstr "Logging auf Festplatte aktiviert." + +#: plugin/klash/klash.cpp:342 +#, c-format +msgid "Setting root URL to: %s" +msgstr "Setze Root-URL auf: %s" + +#: plugin/klash/klash.cpp:346 +#, c-format +msgid "Setting width to: %d" +msgstr "Setze Breite auf: %d" + +#: plugin/klash/klash.cpp:350 +#, c-format +msgid "Setting height to: %d" +msgstr "Setze Höhe auf: %d" + +#: plugin/klash/klash.cpp:381 +#, c-format +msgid "-r must be followed by 0, 1 or 2 (%d is invalid)" +msgstr "-r erfordert 0, 1, 2 (%d ist ungültig)" + +#: plugin/klash/klash.cpp:399 +msgid "Got variable option on command line!" +msgstr "" + +#: plugin/klash/klash.cpp:414 +#, c-format +msgid "No input files" +msgstr "Keine Eingabedateien" + +#: plugin/klash/klash.cpp:448 +#, c-format +msgid "error: can't get info about %s\n" +msgstr "Fehler: Kann keine Informationen über %s ermitteln\n" + +#: plugin/klash/klash.cpp:508 +#, c-format +msgid "error: can't create a movie from '%s'\n" +msgstr "Fehler: Kann keinen Film aus '%s' erstellen\n" + +#: plugin/klash/klash.cpp:513 +#, c-format +msgid "error: can't create movie instance\n" +msgstr "" + +#: plugin/klash/klash.cpp:660 +#, c-format +msgid "" +"\n" +"Copyright (C) 2006, 2007 Free Software Foundation, Inc.\n" +"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" +"You may redistribute copies of Gnash under the terms of the GNU General\n" +"Public License. For more information, see the file named COPYING.\n" +msgstr "" + +#: plugin/klash/klash.cpp:673 +msgid "" +"usage: gnash [options] movie_file.swf\n" +"\n" +"Plays a SWF (Shockwave Flash) movie\n" +"options:\n" +"\n" +" -h, --help Print this info.\n" +" -s Scale the movie up/down by the specified factor\n" +" -c Produce a core file instead of letting SDL trap it\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Be verbose; i.e. print log messages to stdout\n" +" -va Be verbose about movie Actions\n" +" -vp Be verbose about parsing the movie\n" +msgstr "" +"Verwendung: gnash [Optionen] Film_Datei.swf\n" +"\n" +"Wiedergabe eines SWF (Shockwave Flash) Films\n" +"Optionen:\n" +"\n" +" -h, --help Diese Hilfe anziegen.\n" +" -s Film um den angegebenen Faktor skalieren\n" +" -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" +" -va Ausführlicher Modus für Film-Aktionen\n" +" -vp Ausführlicher Modus beim Parsen des Films\n" +"" + +#: plugin/klash/klash.cpp:685 +msgid "" +" -m Specify the texture LOD bias (float, default is -1)\n" +" -x X11 Window ID for display\n" +" -w Produce the disk based debug log\n" +" -1 Play once; exit when/if movie reaches the last frame\n" +" -r <0|1|2> 0 disables rendering & sound (good for batch tests)\n" +" 1 enables rendering & sound (default setting)\n" +" 2 enables rendering & disables sound\n" +" -t Timeout and exit after the specified number of seconds\n" +" -b Bit depth of output window (16 or 32, default is 16)\n" +" --version Print gnash's version number and exit\n" +"\n" +msgstr "" + +#: plugin/klash/klash.cpp:696 +msgid "" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Quit/Exit\n" +" CTRL-P Toggle Pause\n" +" CTRL-R Restart the movie\n" +" CTRL-[ or kp- Step back one frame\n" +" CTRL-] or kp+ Step forward one frame\n" +" CTRL-B Toggle background color\n" +msgstr "" +"Tastenkombinationen:\n" +" Strg-Q, Strg-W, ESC Beenden\n" +" Strg-P Pause\n" +" Strg-R Film neu starten\n" +" Strg-[ or kp- Ein Bild zurück\n" +" Strg-] or kp+ Ein Bild vorwärts\n" +" Strg-B Hintergrundfarbe ändern\n" + +#: plugin/win32/plugin.cpp:259 +#, c-format +msgid "can't get info about %s" +msgstr "" + +#: plugin/win32/plugin.cpp:262 +#, c-format +msgid "Movie %s: width is %d, height is %d, version is %d\n" +msgstr "Film %s: Breite ist %d, Höhe ist %d, Version ist %d\n" + +#: plugin/win32/plugin.cpp:272 +#, c-format +msgid "can't create a movie from %s" +msgstr "kann keinen Film aus %s erstellen" + +#: plugin/win32/plugin.cpp:280 +msgid "can't create movie instance" +msgstr "" + +#: plugin/win32/plugin.cpp:348 +msgid "player: Shutting down as requested..." +msgstr "Player: Beende wie erfordert..." + +#: server/array.cpp:203 +msgid "tried to pop element from back of empty array, returning undef" +msgstr "" + +#: server/array.cpp:219 +msgid "tried to shift element from front of empty array, returning undef" +msgstr "" + +#: server/array.cpp:313 +#, c-format +msgid "Array.slice(%u, %u) called" +msgstr "" + +#: server/array.cpp:343 +#, c-format +msgid "Current array is %s" +msgstr "" + +#: server/array.cpp:476 +#, c-format +msgid "Unhandled sort flags: %d (0x%X)" +msgstr "" + +#: server/array.cpp:486 +msgid "array.sort with unique flag" +msgstr "" + +#: server/array.cpp:512 +#, c-format +msgid "Array(%s).splice(%s) called" +msgstr "" + +#: server/array.cpp:518 +msgid "Array.splice() needs at least 1 argument, call ignored" +msgstr "" + +#: server/array.cpp:534 +#, c-format +msgid "Array.splice: start:%d became %u" +msgstr "" + +#: server/array.cpp:547 +#, c-format +msgid "Array.splice(%d,%d): negative length given, call ignored" +msgstr "" + +#: server/array.cpp:614 +#, c-format +msgid "calling array push, pushing %d values onto back of array" +msgstr "" + +#: server/array.cpp:630 +#, c-format +msgid "calling array unshift, pushing %d values onto front of array" +msgstr "" + +#: server/array.cpp:649 +#, c-format +msgid "calling array pop, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:665 +#, c-format +msgid "calling array shift, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:682 +#, c-format +msgid "called array reverse, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:723 +#, c-format +msgid "array_to_string called, nargs = %d, this_ptr = %p" +msgstr "" + +#: server/array.cpp:726 +#, c-format +msgid "to_string result is: %s" +msgstr "" + +#: server/array.cpp:775 +msgid "" +"More than 2 arguments to Array.slice, and I don't know what to do with " +"them. Ignoring them" +msgstr "" + +#: server/array.cpp:845 +#, c-format +msgid "array_new called, nargs = %d" +msgstr "" + +#: server/array.cpp:878 +#, c-format +msgid "array_new setting object %p in result" +msgstr "" + +#: server/as_environment.cpp:68 +#, c-format +msgid "find_object%s(\"%s\") [ varname = '%s' - current target = '%s' ] failed" +msgstr "" + +#: server/as_environment.cpp:80 +#, c-format +msgid "...but get_variable_raw(%s, ) succeeded!" +msgstr "" + +#: server/as_environment.cpp:157 +#, c-format +msgid "get_variable_raw(\"%s\") failed, returning UNDEFINED" +msgstr "" + +#: server/as_environment.cpp:247 +#, c-format +msgid "Path target '%s' not found while setting %s=%s" +msgstr "" + +#: server/as_environment.cpp:455 +#, c-format +msgid "" +"as_environment::find_target: '%s': invalid path; neither string nor object" +msgstr "" + +#: server/as_environment.cpp:511 +#, c-format +msgid "find_target(%s) called" +msgstr "" + +#: server/as_environment.cpp:516 server/as_environment.cpp:593 +#: server/as_environment.cpp:703 +msgid "Returning m_target (empty path)" +msgstr "" + +#: server/as_environment.cpp:533 server/as_environment.cpp:721 +#, c-format +msgid "Absolute path, start at the root (%p)" +msgstr "" + +#: server/as_environment.cpp:540 server/as_environment.cpp:606 +#: server/as_environment.cpp:728 +msgid "Null path, returning m_target" +msgstr "" + +#: server/as_environment.cpp:551 server/as_environment.cpp:619 +#: server/as_environment.cpp:740 +#, c-format +msgid "invalid path '%s'" +msgstr "" + +#: server/as_environment.cpp:564 server/as_environment.cpp:636 +#: server/as_environment.cpp:757 +#, c-format +msgid "No more subparts, env is %p" +msgstr "" + +#: server/as_environment.cpp:570 +#, c-format +msgid "Invoking get_relative_target(%s) on object %p (%s)" +msgstr "" + +#: server/as_environment.cpp:588 +#, c-format +msgid "find_object_dotsyntax(%s) called" +msgstr "" + +#: server/as_environment.cpp:629 server/as_environment.cpp:750 +#, c-format +msgid "Subpart == %s" +msgstr "" + +#: server/as_environment.cpp:642 server/as_environment.cpp:787 +#, c-format +msgid "Invoking get_member(%s) on object %p" +msgstr "" + +#: server/as_environment.cpp:652 +#, c-format +msgid "Member %s for object %p not found (dotsyntax). Path was %s" +msgstr "" + +#: server/as_environment.cpp:661 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(dotsyntax)" +msgstr "" + +#: server/as_environment.cpp:671 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (dotsyntax)" +msgstr "" + +#: server/as_environment.cpp:698 +#, c-format +msgid "find_object_slashsyntax(%s) called" +msgstr "" + +#: server/as_environment.cpp:767 +#, c-format +msgid "'..' element in path '%s' follows a non-character object %p" +msgstr "" + +#: server/as_environment.cpp:776 +#, c-format +msgid "" +"'..' in path '%s' follows a character with no parent (%s : %p) (root is %p)" +msgstr "" + +#: server/as_environment.cpp:797 +#, c-format +msgid "Member %s for object %p not found (slashsyntax). Path was %s" +msgstr "" + +#: server/as_environment.cpp:806 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(slashsyntax)" +msgstr "" + +#: server/as_environment.cpp:816 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (slashsyntax)" +msgstr "" + +#: server/as_environment.cpp:1041 +#, c-format +msgid "Max stack count reached (%u) - should abort execution" +msgstr "" + +#: server/as_function.cpp:148 +#, c-format +msgid "Exported interface of function %p has been overwritten (from %p to %p)" +msgstr "" + +#: server/as_function.cpp:197 +msgid "Function.apply() called with no args" +msgstr "" + +#: server/as_function.cpp:217 +#, c-format +msgid "" +"Function.apply() got %d args, expected at most 2 -- discarding the ones in " +"excess" +msgstr "" + +#: server/as_function.cpp:229 +#, c-format +msgid "" +"Second arg of Function.apply is %s (expected array) - considering as call " +"with no args" +msgstr "" + +#: server/as_function.cpp:243 +#, c-format +msgid "" +"Second arg of Function.apply is of type %s, with value %s (expected array) - " +"considering as call with no args" +msgstr "" + +#: server/as_function.cpp:331 +msgid "it's a built-in class" +msgstr "" + +#: server/as_function.cpp:364 +#, c-format +msgid "constructor prototype is %s" +msgstr "" + +#: server/asobj/Date.cpp:416 +msgid "Date constructor called with more than 7 arguments" +msgstr "" + +#: server/asobj/Date.cpp:443 +msgid "Date() failed to initialise from arguments" +msgstr "" + +#: server/asobj/Date.cpp:648 +msgid "Date.setTime needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:655 +msgid "Date.setTime was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:705 +msgid "Failed to set a date." +msgstr "Konnte kein Datum setzen" + +#: server/asobj/Date.cpp:742 +msgid "utc_tm_msec_to_date failed to convert a date" +msgstr "" + +#: server/asobj/Date.cpp:816 +msgid "Date.setFullYear needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:832 +msgid "Date.setFullYear was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:861 +msgid "Date.setYear needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:881 +msgid "Date.setYear was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:909 +msgid "Date.setMonth needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:938 +msgid "Date.setMonth was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:957 +msgid "Date.setDate needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:971 +msgid "Date.setDate was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:995 +msgid "Date.setHours needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1013 +msgid "Date.setHours was called with more than four arguments" +msgstr "" + +#: server/asobj/Date.cpp:1035 +msgid "Date.setMinutes needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1052 server/asobj/Date.cpp:1090 +msgid "Date.setMinutes was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:1072 +msgid "Date.setSeconds needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1106 +msgid "Date.setMilliseconds needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1116 +msgid "Date.setMilliseconds was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:1240 +msgid "Date.UTC needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1260 +msgid "Date.UTC was called with more than 7 arguments" +msgstr "" + +#: server/as_object.cpp:121 +#, c-format +msgid "Caught exception: %s" +msgstr "" + +#: server/as_object.cpp:205 +#, c-format +msgid "Attempt to set read-only property '%s'" +msgstr "" + +#: server/as_object.cpp:216 +#, c-format +msgid "%s: Exception %s. Will create a new member" +msgstr "" + +#: server/as_object.cpp:226 +#, c-format +msgid "Attempt to set read-only property ``%s'' on object ``%p''" +msgstr "" + +#: server/as_object.cpp:249 +#, c-format +msgid "Attempt to initialize read-only property ``%s'' (%s) on object ``%p''" +msgstr "" + +#: server/as_object.cpp:263 +#, c-format +msgid "Attempt to initialize read-only property ``%s'' on object ``%p''" +msgstr "" + +#: server/as_object.cpp:362 +msgid "Circular inheritance chain detected during instanceOf call" +msgstr "" + +#: server/as_object.cpp:383 +msgid "Circular inheritance chain detected during isPrototypeOf call" +msgstr "" + +#: server/as_object.cpp:392 +#, c-format +msgid " members of object %p follow" +msgstr "" + +#: server/as_object.cpp:420 +#, c-format +msgid "" +"Can't set propflags on object property %s (either not found or protected)" +msgstr "" + +#: server/asobj/Global.cpp:80 server/asobj/string.cpp:39 +#, c-format +msgid "%s needs one argument" +msgstr "" + +#: server/asobj/Global.cpp:86 server/asobj/string.cpp:45 +#, c-format +msgid "%s has more than one argument" +msgstr "" + +#: server/asobj/Global.cpp:193 +#, c-format +msgid "%s needs at least one argument" +msgstr "" + +#: server/asobj/Global.cpp:199 +#, c-format +msgid "%s has more than two arguments" +msgstr "" + +#: server/asobj/Global.cpp:311 +#, c-format +msgid "%s needs at least three arguments" +msgstr "" + +#: server/asobj/Global.cpp:317 +#, c-format +msgid "%s has more than four arguments" +msgstr "" + +#: server/asobj/Global.cpp:319 +#, c-format +msgid "%s has four arguments in a SWF version 5 movie" +msgstr "" + +#: server/asobj/Global.cpp:328 +#, c-format +msgid "Invalid call to ASSetPropFlags: object argument is not an object: %s" +msgstr "" + +#: server/asobj/Key.cpp:231 +msgid "key_add_listener needs one argument (the listener object)" +msgstr "" + +#: server/asobj/Key.cpp:238 +msgid "key_add_listener passed a NULL object; ignored" +msgstr "" + +#: server/asobj/Key.cpp:279 +msgid "key_is_down needs one argument (the key code)" +msgstr "" + +#: server/asobj/Key.cpp:303 +msgid "key_remove_listener needs one argument (the listener object)" +msgstr "" + +#: server/asobj/Key.cpp:310 +msgid "key_remove_listener passed a NULL object; ignored" +msgstr "" + +#: server/asobj/LoadVars.cpp:528 +msgid "LoadVars.load() requires at least one argument" +msgstr "" + +#: server/asobj/LoadVars.cpp:537 +msgid "LoadVars.load(): invalid empty url" +msgstr "" + +#: server/asobj/LoadVars.cpp:564 +msgid "LoadVars.sendAndLoad() requires at least two arguments" +msgstr "" + +#: server/asobj/LoadVars.cpp:573 +msgid "LoadVars.sendAndLoad(): invalid empty url" +msgstr "" + +#: server/asobj/LoadVars.cpp:582 +msgid "LoadVars.sendAndLoad(): invalid target (must be a LoadVars object)" +msgstr "" + +#: server/asobj/LocalConnection.cpp:143 +msgid "No connection name specified to LocalConnection.connect()" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:182 +#, c-format +msgid " resolved url: %s" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:221 +msgid "" +"FIXME: MovieClipLoader calling onLoadComplete *before* movie has actually " +"been fully loaded (cheating)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:261 +#, c-format +msgid "Dispatching %s event to " +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:261 +msgid " listeners" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:274 +#, c-format +msgid "Listener %p doesn't have an %s event to listen for, skipped" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:283 +#, c-format +msgid "Testing call to listener's %s function" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:308 +#, c-format +msgid "MovieClipLoader.loadClip() first argument is not a string (%s)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:318 +#, c-format +msgid "Could not find target %s" +msgstr "Konnte Ziel '%s' nicht finden" + +#: server/asobj/MovieClipLoader.cpp:324 +#, c-format +msgid "Target is not a sprite instance (%s)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:330 +#, c-format +msgid "load clip: %s, target is: %p\n" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:344 +#, c-format +msgid "%s: %s" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:388 +msgid "Listener given to MovieClipLoader.addListener() is not an object" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:406 +msgid "Listener given to MovieClipLoader.removeListener() is not an object" +msgstr "" + +#: server/asobj/NetConnection.cpp:97 +#, c-format +msgid "Gnash is not allowed to open this url: %s" +msgstr "Gnash darf diese URL nicht öffnen: %s" + +#: server/asobj/NetConnection.cpp:104 +#, c-format +msgid "Gnash could not open this url: %s" +msgstr "Gnash konnte diese URL nicht öffnen: %s" + +#: server/asobj/NetConnection.cpp:110 +#, c-format +msgid "Connection etablished to movie: %s" +msgstr "" + +#: server/asobj/NetStream.cpp:85 +#, c-format +msgid "" +"First argument to NetStream constructor doesn't cast to a NetConnection (%s)" +msgstr "" + +#: server/asobj/NetStream.cpp:124 +msgid "NetStream play needs args" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:230 server/asobj/NetStreamGst.cpp:170 +msgid "No NetConnection associated with this NetStream, won't play" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:261 +msgid "libavcodec couldn't find decoder" +msgstr "libavcodec konnte Decoder nicht finden" + +#: server/asobj/NetStreamFfmpeg.cpp:267 +msgid "libavcodec couldn't allocate context" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:274 +msgid "libavcodec failed to initialize codec" +msgstr "libavcodec konnte Codec nicht initialisieren" + +#: server/asobj/NetStreamFfmpeg.cpp:311 server/asobj/NetStreamGst.cpp:491 +#, c-format +msgid "Unsupported video codec %d" +msgstr "Video-Codec %d nicht unterstützt" + +#: server/asobj/NetStreamFfmpeg.cpp:342 server/asobj/NetStreamGst.cpp:530 +#, c-format +msgid "Unsupported audio codec %d" +msgstr "Audio-Codec %d nicht unterstützt" + +#: server/asobj/NetStreamFfmpeg.cpp:367 +msgid "Gnash could not read from movie url" +msgstr "Gnash konnte von Film-URL nicht lesen" + +#: server/asobj/NetStreamFfmpeg.cpp:384 server/asobj/NetStreamGst.cpp:346 +#: server/asobj/NetStreamGst.cpp:363 +#, c-format +msgid "Gnash could not open movie: %s" +msgstr "Gnash konnte Film nicht öffnen: %s" + +#: server/asobj/NetStreamFfmpeg.cpp:403 +#, c-format +msgid "Gnash could not open FLV movie: %s" +msgstr "Gnash konnte FLV-Film nicht öffnen: %s" + +#: server/asobj/NetStreamFfmpeg.cpp:414 +msgid "Failed to initialize FLV video codec" +msgstr "Initialisierung des FLV-Video-Codecs fehlgeschlagen" + +#: server/asobj/NetStreamFfmpeg.cpp:420 +msgid "Failed to initialize FLV audio codec" +msgstr "Initialisierung des FLV-Audio-Codecs fehlgeschlagen" + +#: server/asobj/NetStreamFfmpeg.cpp:450 +#, c-format +msgid "Couldn't determine stream input format from URL %s" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:466 server/asobj/SoundFfmpeg.cpp:136 +#, c-format +msgid "Couldn't open file '%s' for decoding" +msgstr "Konnte Datei '%s' für Dekodierung nicht öffnen" + +#: server/asobj/NetStreamFfmpeg.cpp:476 server/asobj/SoundFfmpeg.cpp:146 +#, c-format +msgid "Couldn't find stream information from '%s', error code: %d" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:515 +#, c-format +msgid "Didn't find a video stream from '%s'" +msgstr "Keinen Video-Stream von '%s' gefunden" + +#: server/asobj/NetStreamFfmpeg.cpp:527 +#, c-format +msgid "Video decoder %d not found" +msgstr "Video-Decoder %d nicht gefunden" + +#: server/asobj/NetStreamFfmpeg.cpp:535 +#, c-format +msgid "Could not open codec %d" +msgstr "Konnte Codec %d nicht öffnen" + +#: server/asobj/NetStreamFfmpeg.cpp:561 +#, c-format +msgid "No available audio decoder %d to process MPEG file: '%s'" +msgstr "Kein verfügbarer Audio-Decoder %d, um MPEG-Datei '%s' zu verarbeiten" + +#: server/asobj/NetStreamFfmpeg.cpp:569 server/asobj/SoundFfmpeg.cpp:201 +#, c-format +msgid "Could not open audio codec %d for %s" +msgstr "Konnte Audio-Codec %d für %s nicht öffnen" + +#: server/asobj/NetStreamFfmpeg.cpp:744 +msgid "read_frame: not audio & video stream" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:944 +msgid "Problems decoding frame" +msgstr "Probleme bei Dekodierung des Bildes" + +#: server/asobj/NetStreamFfmpeg.cpp:988 +#, c-format +msgid "%s: seeking failed" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:380 +msgid "The gstreamer pipeline element could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:399 +msgid "The gstreamer audiosink element could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:413 +msgid "Gstreamer audio element(s) for movie handling could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:458 +msgid "" +"A gstreamer flashvideo (h.263) decoder element could not be created. You " +"probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:472 +msgid "" +"A gstreamer flashvideo (VP6) decoder element could not be created! You " +"probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:486 +msgid "" +"A gstreamer flashvideo (ScreenVideo) decoder element could not be created! " +"You probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:509 +msgid "" +"This version of Fluendo's mp3 plugin does not support flash streaming " +"sounds, please upgrade to version 0.10.4 or higher." +msgstr "Diese Version des Fluendo-mp3-Plugins unterstützt kein Flash-Audio-Streaming." +"Bitte auf Version 0.10.4 oder höher aktualisieren." + +#: server/asobj/NetStreamGst.cpp:516 +msgid "" +"A gstreamer mp3-decoder element could not be created! You probably need to " +"install a mp3-decoder plugin like gstreamer0.10-mad or gstreamer0.10-fluendo-" +"mp3." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:566 +msgid "" +"Gstreamer source element(s) for video movie handling could not be created, " +"you probably need to install gstreamer0.10-core for fakesrc and capsfilter " +"support." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:571 +msgid "" +"Gstreamer element(s) for video movie handling could not be created, you " +"probably need to install gstreamer0.10-base for decodebin support." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:577 +msgid "" +"Gstreamer element(s) for video movie handling could not be created, you " +"probably need to install gstreamer0.10-base for ffmpegcolorspace and " +"videorate support." +msgstr "" + +#: server/asobj/Number.cpp:221 +#, c-format +msgid "Internal error: Cannot find \".0\" in %s for %.15g" +msgstr "" + +#: server/asobj/Object.cpp:125 +msgid "Too many args to Object constructor" +msgstr "" + +#: server/asobj/Object.cpp:171 +#, c-format +msgid "" +"Invalid call to Object.addProperty(%s) - expected 3 arguments (, " +", )" +msgstr "" + +#: server/asobj/Object.cpp:188 +msgid "Invalid call to Object.addProperty() - empty property name" +msgstr "" + +#: server/asobj/Object.cpp:198 +msgid "Invalid call to Object.addProperty() - getter is not an AS function" +msgstr "" + +#: server/asobj/Object.cpp:208 +msgid "Invalid call to Object.addProperty() - setter is not an AS function" +msgstr "" + +#: server/asobj/Object.cpp:235 +#, c-format +msgid "" +"Invalid call to Object.registerClass(%s) - expected 2 arguments (, " +")" +msgstr "" + +#: server/asobj/Object.cpp:252 +msgid "Invalid call to Object.registerClass() - empty symbol id" +msgstr "" + +#: server/asobj/Object.cpp:262 +msgid "Invalid call to Object.registerClass() - class is not a function" +msgstr "" + +#: server/asobj/Object.cpp:277 +#, c-format +msgid "Object.registerClass(%s, %s): can't find exported symbol" +msgstr "" + +#: server/asobj/Object.cpp:295 +#, c-format +msgid "" +"Object.registerClass(%s, %s): exported symbol is not a MovieClip symbol " +"(sprite_definition), but a %s" +msgstr "" + +#: server/asobj/Object.cpp:316 +msgid "Object.hasOwnProperty() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:325 +#, c-format +msgid "Invalid call to Object.hasOwnProperty('%s')" +msgstr "" + +#: server/asobj/Object.cpp:339 +msgid "Object.isPropertyEnumerable() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:348 +#, c-format +msgid "Invalid call to Object.isPropertyEnumerable('%s')" +msgstr "" + +#: server/asobj/Object.cpp:369 +msgid "Object.isPrototypeOf() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:378 +#, c-format +msgid "First arg to Object.isPrototypeOf(%s) is not an object" +msgstr "" + +#: server/asobj/Sound.cpp:140 +#, c-format +msgid "%s is still testing!" +msgstr "%s testet noch!" + +#: server/asobj/Sound.cpp:143 server/asobj/SoundGst.cpp:229 +#, c-format +msgid "" +"%s: This sound already has a connection? (We try to handle this by deleting " +"the old one...)" +msgstr "" + +#: server/asobj/Sound.cpp:217 server/asobj/Sound.cpp:229 +#, c-format +msgid "%s: only works when ffmpeg, gstreamer or libmad is enabled" +msgstr "%s: funktioniert nur wenn ffmpeg, gstreamer oder libmad aktiviert ist" + +#: server/asobj/Sound.cpp:257 +msgid "-- start sound" +msgstr "" + +#: server/asobj/Sound.cpp:282 +msgid "-- stop sound " +msgstr "" + +#: server/asobj/Sound.cpp:298 server/asobj/Sound.cpp:352 +#, c-format +msgid "import error: resource '%s' is not exported" +msgstr "" + +#: server/asobj/Sound.cpp:312 server/asobj/Sound.cpp:366 +msgid "sound sample is NULL (doesn't cast to sound_sample)" +msgstr "" + +#: server/asobj/Sound.cpp:325 +msgid "-- attach sound" +msgstr "" + +#: server/asobj/Sound.cpp:330 +msgid "attach sound needs one argument" +msgstr "" + +#: server/asobj/Sound.cpp:340 +msgid "attachSound needs a non-empty string" +msgstr "" + +#: server/asobj/Sound.cpp:441 +msgid "loadSound needs 2 arguments" +msgstr "" + +#: server/asobj/Sound.cpp:482 +msgid "set volume of sound needs one argument" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:92 +#, c-format +msgid "%s could not open audio url: %s" +msgstr "%s konnte Audio-URL nicht öffnen: %s" + +#: server/asobj/SoundFfmpeg.cpp:115 +#, c-format +msgid "%s: could not read from audio url: %s" +msgstr "%s: Konnte von Audio-URL nicht lesen: %s" + +#: server/asobj/SoundFfmpeg.cpp:172 +#, c-format +msgid "Non-audio data (type %d) found in file %s" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:181 +#, c-format +msgid "Didn't find a audio stream from '%s'" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:192 +#, c-format +msgid "No available audio decoder %d to process file: '%s'" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:320 +msgid "seeking to start of file (for looping) failed" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:372 +msgid "" +"This sound already has a connection. (We try to handle this by deleting the " +"old one...)" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:402 server/asobj/SoundGst.cpp:257 +#, c-format +msgid "%s: seeking to offset failed" +msgstr "" + +#: server/asobj/SoundGst.cpp:108 +#, c-format +msgid "%s: new pad found" +msgstr "" + +#: server/asobj/SoundGst.cpp:122 +#, c-format +msgid "%s: new pad connected" +msgstr "" + +#: server/asobj/SoundGst.cpp:125 +#, c-format +msgid "%s: Non-audio data found in file %s" +msgstr "%s: Nichtaudiodaten in Datei %s gefunden" + +#: server/asobj/SoundGst.cpp:142 +#, c-format +msgid "could not open audio url: %s" +msgstr "konnte Audio-URL nicht öffnen: %s" + +#: server/asobj/SoundGst.cpp:171 +msgid "Could not create gstreamer pipeline element" +msgstr "" + +#: server/asobj/SoundGst.cpp:175 +msgid "Could not create gstreamer audiosink element" +msgstr "" + +#: server/asobj/SoundGst.cpp:198 +msgid "Could not create Gstreamer element(s) for movie handling" +msgstr "Konnte Gstreamer-Element(e) für Film-Verarbeitung nicht erstellen" + +#: server/asobj/SoundMad.cpp:83 +#, c-format +msgid "Gnash could not open audio url: %s" +msgstr "Gnash konnte Audio-URL nicht öffnen: %s" + +#: server/asobj/SoundMad.cpp:120 server/asobj/SoundMad.cpp:207 +#, c-format +msgid "Recoverable error while decoding MP3, MAD error: %s" +msgstr "" + +#: server/asobj/SoundMad.cpp:215 +#, c-format +msgid "Unrecoverable error while decoding MP3, MAD error: %s" +msgstr "" + +#: server/asobj/SoundMad.cpp:272 +msgid "Error in sound sample convertion" +msgstr "" + +#: server/asobj/SoundMad.cpp:351 +msgid "" +"This sound already has a connection? (We try to handle this by deleting the " +"old one...)" +msgstr "" + +#: server/asobj/Stage.cpp:161 +msgid "Stage.addListener() needs one argument" +msgstr "" + +#: server/asobj/Stage.cpp:172 +#, c-format +msgid "" +"Invalid call to Stage.addListener(%s) : first arg doesn't cast to an object" +msgstr "" + +#: server/asobj/Stage.cpp:189 +msgid "Stage.removeListener() needs one argument" +msgstr "" + +#: server/asobj/Stage.cpp:200 +#, c-format +msgid "" +"Invalid call to Stage.removeListener(%s) : first arg doesn't cast to an " +"object" +msgstr "" + +#: server/asobj/string.cpp:364 +msgid "string.slice() called with end < start" +msgstr "" + +#: server/asobj/string.cpp:427 +msgid "string.charCodeAt needs one argument" +msgstr "" + +#: server/asobj/string.cpp:436 +msgid "string.charCodeAt has more than one argument" +msgstr "" + +#: server/asobj/xml.cpp:97 server/asobj/xml.cpp:115 +#, c-format +msgid "Creating XML data at %p" +msgstr "" + +#: server/asobj/xml.cpp:130 +#, c-format +msgid "\tCreating XML data at %p" +msgstr "" + +#: server/asobj/xml.cpp:164 +#, c-format +msgid "set_member 'loaded' (%s) became boolean %d" +msgstr "" + +#: server/asobj/xml.cpp:178 +#, c-format +msgid "\tDeleting XML top level node at %p" +msgstr "" + +#: server/asobj/xml.cpp:311 +msgid "Can't load XML file" +msgstr "" + +#: server/asobj/xml.cpp:338 +msgid "XML data is empty" +msgstr "" + +#: server/asobj/xml.cpp:353 +msgid "Can't parse XML data" +msgstr "" + +#: server/asobj/xml.cpp:381 +#, c-format +msgid "Can't load XML file: %s (security?)" +msgstr "" + +#: server/asobj/xml.cpp:386 +#, c-format +msgid "Loading XML file from url: '%s'" +msgstr "Lade XML-Datei von URL: '%s'" + +#: server/asobj/xml.cpp:397 +#, c-format +msgid "Can't read XML file %s (stream error %d)" +msgstr "Kann XML-Datei %s nicht lesen (Stream-Fehler %d)" + +#: server/asobj/xml.cpp:408 +#, c-format +msgid "Can't read XML file %s (%s)" +msgstr "Kann XML-Datei %s nicht lesen (%s)" + +#: server/asobj/xml.cpp:431 +#, c-format +msgid "%s: FIXME: onLoad Default event handler" +msgstr "" + +#: server/asobj/xml.cpp:569 +#, c-format +msgid "\tCloned the XML object at %p" +msgstr "" + +#: server/asobj/xml.cpp:578 +#, c-format +msgid "First arg given to XML constructor (%s) evaluates to the empty string" +msgstr "" + +#: server/asobj/xml.cpp:603 +#, c-format +msgid "%s: %d args" +msgstr "" + +#: server/asobj/xml.cpp:636 +msgid "no text for element creation" +msgstr "" + +#: server/asobj/xml.cpp:665 +msgid "no text for text node creation" +msgstr "" + +#: server/asobj/xml.cpp:791 +#, c-format +msgid "XML parser: %s" +msgstr "XML-Parser: %s" + +#: server/asobj/xmlnode.cpp:83 server/asobj/xmlnode.cpp:95 +#, c-format +msgid "\tCreating XMLNode data at %p" +msgstr "" + +#: server/asobj/xmlnode.cpp:123 +#, c-format +msgid "\tDeleting XMLNode data %s at %p" +msgstr "" + +#: server/asobj/xmlnode.cpp:151 +#, c-format +msgid "XMLNode %p has no children" +msgstr "" + +#: server/asobj/xmlnode.cpp:192 +msgid "" +"XMLNode.insertBefore(): positional parameter is not a child of this node" +msgstr "" + +#: server/asobj/xmlnode.cpp:295 +#, c-format +msgid "" +"Stringifying node %p with name %s, value %s, %u attributes and %u children" +msgstr "" + +#: server/asobj/xmlnode.cpp:443 +msgid "XMLNode::appendChild() needs at least one argument" +msgstr "" + +#: server/asobj/xmlnode.cpp:452 +msgid "First argument to XMLNode::appendChild() is not an XMLNode" +msgstr "" + +#: server/asobj/xmlnode.cpp:486 +#, c-format +msgid "XMLNode.insertBefore(%s) needs at least two argument" +msgstr "" + +#: server/asobj/xmlnode.cpp:496 +#, c-format +msgid "First argument to XMLNode.insertBefore(%s) is not an XMLNode" +msgstr "" + +#: server/asobj/xmlnode.cpp:507 +#, c-format +msgid "Second argument to XMLNode.insertBefore(%s) is not an XMLNode" +msgstr "" + +#: server/asobj/xmlsocket.cpp:207 +#, c-format +msgid "" +"%s: fd <= 0, returning false (timer not unregistered while socket " +"disconnected?" +msgstr "" + +#: server/asobj/xmlsocket.cpp:222 +#, c-format +msgid "The socket for fd #%d was interupted by a system call" +msgstr "" + +#: server/asobj/xmlsocket.cpp:227 server/asobj/xmlsocket.cpp:403 +#, c-format +msgid "%s: The socket for fd #%d never was available" +msgstr "" + +#: server/asobj/xmlsocket.cpp:243 +#, c-format +msgid "%s: read %d bytes, first msg terminates at %d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:251 +#, c-format +msgid "Packet size is %d at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:259 +#, c-format +msgid "%d: Pushing Packet of size " +msgstr "" + +#: server/asobj/xmlsocket.cpp:259 +#, c-format +msgid " at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:302 +#, c-format +msgid "Throwing out partial packet %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:317 +#, c-format +msgid "%s: Returning %d messages" +msgstr "" + +#: server/asobj/xmlsocket.cpp:332 +#, c-format +msgid "%s: socket not initialized" +msgstr "" + +#: server/asobj/xmlsocket.cpp:339 +#, c-format +msgid "%s: sent %d bytes, data was %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:399 +#, c-format +msgid "" +"%s: The socket for fd #%d was interupted by a system call in this thread" +msgstr "" + +#: server/asobj/xmlsocket.cpp:407 +#, c-format +msgid "%s: There is no data in the socket for fd #%d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:411 +#, c-format +msgid "%s: There is data in the socket for fd #%d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:429 +#, c-format +msgid "XMLSocket.connect(%s) called" +msgstr "" + +#: server/asobj/xmlsocket.cpp:436 +msgid "XMLSocket.connect() called while already connected, ignored" +msgstr "" + +#: server/asobj/xmlsocket.cpp:455 +msgid "XMLSocket.connect(): calling onConnect" +msgstr "" + +#: server/asobj/xmlsocket.cpp:463 +msgid "Setting up timer for calling XMLSocket.onData()" +msgstr "" + +#: server/asobj/xmlsocket.cpp:471 +msgid "Timer set" +msgstr "" + +#: server/asobj/xmlsocket.cpp:512 +#, c-format +msgid "new XMLSocket(%s) called - created object at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:532 +#, c-format +msgid "%s: not connected" +msgstr "%s: Nicht verbunden" + +#: server/asobj/xmlsocket.cpp:554 +#, c-format +msgid "" +"Builtin XMLSocket.onData doing nothing as no onXML event is defined on " +"XMLSocket %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:563 +msgid "Builtin XMLSocket.onData() needs an argument" +msgstr "" + +#: server/asobj/xmlsocket.cpp:573 +#, c-format +msgid "" +"Builtin XMLSocket.onData() called with an argument that resolves to the " +"empty string: %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:654 +msgid "Still processing data" +msgstr "" + +#: server/asobj/xmlsocket.cpp:664 +msgid "Got " +msgstr "" + +#: server/asobj/xmlsocket.cpp:664 +msgid " messages: " +msgstr "" + +#: server/asobj/xmlsocket.cpp:667 +msgid " Message " +msgstr "" + +#: server/asobj/xmlsocket.cpp:667 +#, c-format +msgid " : %s " +msgstr "" + +#: server/asobj/xmlsocket.cpp:695 +#, c-format +msgid "%s: Couldn't find onData" +msgstr "" + +#: server/as_value.cpp:172 +#, c-format +msgid "[object %p].%s() did not return a string: %s" +msgstr "" + +#: server/as_value.cpp:179 server/as_value.cpp:339 +#, c-format +msgid "get_member(%s) returned false" +msgstr "" + +#: server/as_value.cpp:324 +#, c-format +msgid "[object %p].%s() did not return a number: %s" +msgstr "" + +#: server/as_value.cpp:504 +#, c-format +msgid "" +"MovieClip value is a dangling reference: target '%s' not found (should set " +"to NULL?)" +msgstr "" + +#: server/button_character_instance.cpp:328 +#, c-format +msgid "Unsupported event for button instance: %s" +msgstr "" + +#: server/button_character_instance.cpp:533 +#, c-format +msgid "Unhandled button event %s" +msgstr "" + +#: server/button_character_instance.cpp:623 +#, c-format +msgid "Executing actions for button condition %d" +msgstr "" + +#: server/character.cpp:99 +msgid "Relative drag" +msgstr "" + +#: server/character.cpp:163 +msgid "" +"ActionScript code trying to reference a nonexistent parent with '..' (a " +"nonexistent parent probably only occurs in the root MovieClip). Returning a " +"reference to top parent (probably the root clip)." +msgstr "" + +#: server/character.cpp:305 +#, c-format +msgid "Attempt to set _xscale to %g, refused" +msgstr "" + +#: server/character.cpp:313 +#, c-format +msgid "Attempt to set _xscale to %g, use 0" +msgstr "" + +#: server/character.cpp:349 +#, c-format +msgid "Attempt to set _yscale to %g, refused" +msgstr "" + +#: server/character.cpp:357 +#, c-format +msgid "Attempt to set _yscale to %g, use 0" +msgstr "" + +#: server/character.cpp:475 +msgid "FIXME: can't set _width on character with null or world bounds" +msgstr "" + +#: server/character.cpp:486 +#, c-format +msgid "Setting _width=%g" +msgstr "" + +#: server/character.cpp:520 +msgid "FIXME: can't set _height on character with null or world bounds" +msgstr "" + +#: server/character.cpp:531 +#, c-format +msgid "Setting _height=%g" +msgstr "" + +#: server/dlist.cpp:332 +#, c-format +msgid "move_display_object() -- can't find object at depth %d" +msgstr "" + +#: server/dlist.cpp:688 +#, c-format +msgid "Item %d at depth %d (char id %d, name %s, type %s" +msgstr "" + +#: server/edit_text_character.cpp:850 +#, c-format +msgid "TextField text doesn't fit in its boundaries: width %g, margin %d" +msgstr "" + +#: server/edit_text_character.cpp:909 +#, c-format +msgid "No font for edit_text_character! [%s:%d]" +msgstr "Keine Schriftart für edit_text_character! [%s:%d]" + +#: server/edit_text_character.cpp:937 +#, c-format +msgid "substituting font! font '%s' has no glyphs, using font '%s'" +msgstr "" + +#: server/edit_text_character.cpp:947 +msgid "" +"Current font has no glyphs and I couldn't find another font with glyphs... :(" +msgstr "" + +#: server/edit_text_character.cpp:1072 +#, c-format +msgid "" +"%s -- missing glyph for space char (needed for TAB). Make sure character " +"shapes for font %s are being exported into your SWF file." +msgstr "" + +#: server/edit_text_character.cpp:1111 +#, c-format +msgid "" +"%s -- missing glyph for char %d. Make sure character shapes for font %s are " +"being exported into your SWF file" +msgstr "" + +#: server/edit_text_character.cpp:1230 +msgid "registerTextVariable() no-op call (already registered)" +msgstr "" + +#: server/edit_text_character.cpp:1238 +msgid "string is empty, consider as registered" +msgstr "" + +#: server/edit_text_character.cpp:1254 +#, c-format +msgid "VariableName: %s" +msgstr "" + +#: server/edit_text_character.cpp:1269 +#, c-format +msgid "Variable text Path: %s, Var: %s" +msgstr "" + +#: server/edit_text_character.cpp:1282 +#, c-format +msgid "" +"VariableName associated to text field refer to an unknown target (%s). It is " +"possible that the character will be instantiated later in the SWF stream. " +"Gnash will try to register again on next access." +msgstr "" + +#: server/edit_text_character.cpp:1297 +#, c-format +msgid "target sprite (%p) does have a member named %s" +msgstr "" + +#: server/edit_text_character.cpp:1304 +#, c-format +msgid "" +"target sprite (%p) does NOT have a member named %s (no problem, we'll add it)" +msgstr "" + +#: server/fill_style.cpp:132 +msgid "num gradients 0" +msgstr "" + +#: server/fill_style.cpp:141 +#, c-format +msgid "Unexpected num gradients (%d), expected 1 to 8" +msgstr "" + +#: server/fill_style.cpp:190 +#, c-format +msgid "" +"Bitmap fill specifies '%d' as associated bitmap character id, but that " +"character is not found in the Characters Dictionary. It seems common to find " +"such malformed SWF, so we'll only warn once about this." +msgstr "" + +#: server/fill_style.cpp:246 +#, c-format +msgid "Unknown fill style %d" +msgstr "" + +#: server/fill_style.cpp:282 +#, c-format +msgid "" +"First gradient in a fill_style have position==%d (expected 0). This seems to " +"be common, so will warn only once." +msgstr "" + +#: server/fill_style.cpp:318 +#, c-format +msgid "two gradients in a fill_style have the same position/ratio: %d" +msgstr "" + +#: server/font.cpp:139 +msgid "reading DefineFont" +msgstr "" + +#: server/font.cpp:189 +msgid "reading DefineFont2 or DefineFont3" +msgstr "" + +#: server/font.cpp:224 server/font.cpp:239 +#, c-format +msgid "Glyph %d at offset %u" +msgstr "" + +#: server/font.cpp:275 +msgid "Bad offset in DefineFont2" +msgstr "" + +#: server/font.cpp:342 +msgid "Repeated kerning pair found - ignoring" +msgstr "" + +#: server/font.cpp:364 +msgid "DefineFontInfo2 partially implemented" +msgstr "" + +#: server/font.cpp:395 +#, c-format +msgid "reading code table at offset %lu" +msgstr "" + +#: server/font.cpp:429 +#, c-format +msgid "get_glyph_index(%u) returning %d" +msgstr "" + +#: server/font.cpp:436 +#, c-format +msgid "get_glyph_index(%u) returning -1" +msgstr "" + +#: server/font.cpp:456 +#, c-format +msgid "empty advance table in font %s" +msgstr "" + +#: server/font.cpp:523 +msgid "" +"error reading cache file in font::input_cached_data(): glyph count mismatch" +msgstr "" + +#: server/impl.cpp:89 +#, c-format +msgid "Base url set to: %s" +msgstr "Setze Basis-URL auf: %s" + +#: server/impl.cpp:254 +#, c-format +msgid "get_movie_info(): can't open '%s'" +msgstr "get_movie_info(): kann '%s' nicht öffnen" + +#: server/impl.cpp:269 +#, c-format +msgid "get_movie_info(): file '%s' does not start with a SWF header" +msgstr "" + +#: server/impl.cpp:279 +msgid "" +"get_movie_info(): can't read zipped SWF data; TU_CONFIG_LINK_TO_ZLIB is 0" +msgstr "" + +#: server/impl.cpp:339 +msgid "Can't read jpeg" +msgstr "Kann jpeg nicht lesen!" + +#: server/impl.cpp:364 +msgid "Can't read file header" +msgstr "Kann Kopfteil der Datei nicht lesen!" + +#: server/impl.cpp:441 +msgid "" +"Requested to keep from completely loading a movie, but the movie in question " +"is a jpeg, for which we don't yet have the concept of a 'loading thread'" +msgstr "" + +#: server/impl.cpp:450 +#, c-format +msgid "unknown file type (%s)" +msgstr "unbekannter Dateityp (%s)" + +#: server/impl.cpp:466 +#, c-format +msgid "failed to open '%s'; can't create movie" +msgstr "Konnte '%s' nicht öffnen. Kann Film nicht erstellen" + +#: server/impl.cpp:471 +#, c-format +msgid "streamProvider opener can't open '%s'" +msgstr "streamProvider opener kann '%s' nicht öffnen" + +#: server/impl.cpp:490 +#, c-format +msgid "note: couldn't open cache file '%s'" +msgstr "Bemerkung: Konnte Cache-Datei '%s' nicht öffnen" + +#: server/impl.cpp:499 +#, c-format +msgid "Loading cache file %s" +msgstr "Lade Cache-Datei %s" + +#: server/impl.cpp:627 +msgid "extern movie deleted" +msgstr "" + +#: server/impl.cpp:677 +#, c-format +msgid "Movie %s already in library" +msgstr "Film %s bereits in der Bibliothek" + +#: server/impl.cpp:693 +#, c-format +msgid "Couldn't load library movie '%s'" +msgstr "" + +#: server/impl.cpp:700 +#, c-format +msgid "Movie %s (SWF%d) added to library" +msgstr "" + +#: server/impl.cpp:739 +#, c-format +msgid "%s: couldn't create instance" +msgstr "" + +#: server/impl.cpp:791 +msgid "precompute_cached_data can't create instance of movie" +msgstr "" + +#: server/impl.cpp:840 +msgid "loop back; jumping to frame " +msgstr "" + +#: server/parser/action_buffer.cpp:105 +msgid "process_decl_dict(" +msgstr "" + +#: server/parser/action_buffer.cpp:105 +msgid ", " +msgstr "" + +#: server/parser/action_buffer.cpp:105 +#, c-format +msgid "" +"): decl_dict was already processed at %d. Skipping (or maybe we should " +"append, or replace?)." +msgstr "" + +#: server/parser/action_buffer.cpp:133 +msgid "action buffer dict length exceeded" +msgstr "" + +#: server/parser/BitmapMovieDefinition.cpp:64 +#, c-format +msgid "Creating a shape_definition wrapping a %g x %g bitmap" +msgstr "" + +#: server/parser/button_character_def.cpp:58 +msgid "-- actions in button\n" +msgstr "" + +#: server/parser/button_character_def.cpp:99 +#, c-format +msgid "" +"button record refer to character with id %d, which is not found in the chars " +"dictionary" +msgstr "" + +#: server/parser/button_character_def.cpp:225 +msgid "button sound options: " +msgstr "" + +#: server/parser/button_character_def.cpp:275 +#, c-format +msgid "Next Button2 actionOffset (%u) points past the end of tag" +msgstr "" + +#: server/parser/button_character_def.cpp:301 +#, c-format +msgid "" +"Next action offset (%u) in Button2ActionConditions points past the end of tag" +msgstr "" + +#: server/parser/edit_text_character_def.cpp:120 +#, c-format +msgid "error: text style with undefined font; font_id = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:243 +#, c-format +msgid "morph fill style type = 0x%X" +msgstr "" + +#: server/parser/morph2_character_def.cpp:253 +msgid "morph fill style begin color: " +msgstr "" + +#: server/parser/morph2_character_def.cpp:255 +msgid "morph fill style end color: " +msgstr "" + +#: server/parser/morph2_character_def.cpp:303 +#, c-format +msgid "morph fsr: num_gradients = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:319 +#, c-format +msgid "morph fsr bitmap_char = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:387 +msgid "Different number of paths in start (" +msgstr "" + +#: server/parser/morph2_character_def.cpp:388 +msgid ") and end (" +msgstr "" + +#: server/parser/morph2_character_def.cpp:389 +msgid ") shapes of a morph" +msgstr "" + +#: server/parser/morph2_character_def.cpp:395 +#, c-format +msgid "Different number of edges in start (%u) and end (%u) shapes of a morph" +msgstr "" + +#: server/parser/movie_def_impl.cpp:280 +#, c-format +msgid "import error: resource '%s' is not exported from movie '%s'" +msgstr "" + +#: server/parser/movie_def_impl.cpp:297 server/swf/tag_loaders.cpp:1081 +#, c-format +msgid "import error: resource '%s' from movie '%s' has unknown type" +msgstr "" + +#: server/parser/movie_def_impl.cpp:326 +#, c-format +msgid "get_character_def(): character_id %d is still waiting to be imported" +msgstr "" + +#: server/parser/movie_def_impl.cpp:348 +#, c-format +msgid "get_font(): font_id %d is still waiting to be imported" +msgstr "" + +#: server/parser/movie_def_impl.cpp:395 +#, c-format +msgid "Add sound sample %d" +msgstr "" + +#: server/parser/movie_def_impl.cpp:423 +msgid "gnash::movie_def_impl::read() -- file does not start with a SWF header" +msgstr "" + +#: server/parser/movie_def_impl.cpp:430 +#, c-format +msgid "version = %d, file_length = %d" +msgstr "" + +#: server/parser/movie_def_impl.cpp:436 +#, c-format +msgid "SWF%d is not fully supported, trying anyway but don't expect it to work" +msgstr "" + +#: server/parser/movie_def_impl.cpp:443 +msgid "" +"movie_def_impl::read(): unable to read zipped SWF data; " +"TU_CONFIG_LINK_TO_ZLIB is 0" +msgstr "" + +#: server/parser/movie_def_impl.cpp:449 +msgid "file is compressed" +msgstr "" + +#: server/parser/movie_def_impl.cpp:477 +#, c-format +msgid "frame rate = %f, frames = " +msgstr "" + +#: server/parser/movie_def_impl.cpp:505 +msgid "Could not start loading thread" +msgstr "" + +#: server/parser/movie_def_impl.cpp:657 +msgid "cache file does not have the correct format; skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:663 +#, c-format +msgid "cached data is version %d, but we require version %d; skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:678 +msgid "error reading cache file (characters); skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:683 +msgid "unexpected eof reading cache file (characters); skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:698 +msgid "" +"sync error in cache file (reading characters). Skipping rest of cache data." +msgstr "" + +#: server/parser/movie_def_impl.cpp:732 +#, c-format +msgid "Character %d @ %p" +msgstr "" + +#: server/parser/movie_def_impl.cpp:744 +#, c-format +msgid "Could not find char %d, dump is:" +msgstr "" + +#: server/parser/movie_def_impl.cpp:782 +#, c-format +msgid "Ensure load of frame %u/%u (last loaded is: %u)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:787 +msgid "Could not advance to frame " +msgstr "" + +#: server/parser/movie_def_impl.cpp:796 +#, c-format +msgid "" +"No more frames to load. Framecount: %u, Lastloaded: %u, next to load: %u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:852 +#, c-format +msgid "" +"last expected SHOWFRAME in SWF stream '%s' isn't followed by an END (%d)." +msgstr "" + +#: server/parser/movie_def_impl.cpp:871 +#, c-format +msgid "*** no tag loader for type %d (movie)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:889 +msgid "" +"Hit stream-end tag, but not at the advertised SWF end; stopping for safety." +msgstr "" + +#: server/parser/movie_def_impl.cpp:905 +#, c-format +msgid "Parsing exception: %s" +msgstr "" + +#: server/parser/movie_def_impl.cpp:911 +msgid " action blocks and " +msgstr "" + +#: server/parser/movie_def_impl.cpp:911 +msgid " init action blocks are NOT followed by a SHOWFRAME tag" +msgstr "" + +#: server/parser/movie_def_impl.cpp:921 +msgid " frames advertised in header, but only " +msgstr "" + +#: server/parser/movie_def_impl.cpp:921 +msgid " SHOWFRAME tags found in stream. Updating total frames count" +msgstr "" + +#: server/parser/movie_def_impl.cpp:947 +#, c-format +msgid "number of SHOWFRAME tags in SWF stream '%s' (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:949 +msgid ") exceeds the advertised number in header (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:951 +msgid ")." +msgstr "" + +#: server/parser/movie_def_impl.cpp:960 +#, c-format +msgid "Loaded frame %u/%u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:990 +#, c-format +msgid "get_exported_resource called, frame count=%u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1026 +msgid "frame load advancement (from " +msgstr "" + +#: server/parser/movie_def_impl.cpp:1027 +msgid " to " +msgstr "" + +#: server/parser/movie_def_impl.cpp:1027 server/parser/sprite_definition.h:314 +msgid ")" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1036 +#, c-format +msgid "" +"No frame progress in movie %s after %lu milliseconds (%lu microseconds = %lu " +"iterations), giving up on get_exported_resource(%s): circular IMPORTS?" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1050 +#, c-format +msgid "no frame progress at iteration %lu" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1057 +#, c-format +msgid "At end of stream, still no '%s' symbol found in m_exports (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1058 +msgid " entries in it, follow)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1064 +#, c-format +msgid "" +"We haven't finished loading (loading frame %u), and m_exports.get returned " +"no entries, sleeping a bit and trying again" +msgstr "" + +#: server/parser/shape_character_def.cpp:85 +#, c-format +msgid " read_fill_styles: count = %u" +msgstr "" + +#: server/parser/shape_character_def.cpp:120 +#, c-format +msgid " read_line_styles: count = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:130 +#, c-format +msgid " read_line_styles: count2 = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:180 +#, c-format +msgid " bound rect: %s" +msgstr "" + +#: server/parser/shape_character_def.cpp:192 +#, c-format +msgid " shape_character_def read: nfillbits = %d, nlinebits = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:249 +#, c-format +msgid " shape_character read: moveto %4g %4g" +msgstr "" + +#: server/parser/shape_character_def.cpp:268 +#, c-format +msgid " shape_character read: fill0 (left) = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:288 +#, c-format +msgid " shape_character read: fill1 (right) = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:308 +#, c-format +msgid " shape_character_read: line = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:319 +msgid " shape_character read: more fill styles" +msgstr "" + +#: server/parser/shape_character_def.cpp:355 +#, c-format +msgid " shape_character read: curved edge = %4g %4g - %4g %4g - %4g %4g" +msgstr "" + +#: server/parser/shape_character_def.cpp:386 +#, c-format +msgid " shape_character_read: straight edge = %4g %4g - %4g %4g" +msgstr "" + +#: server/parser/sprite_definition.cpp:42 +#, c-format +msgid "Instantiating sprite_def %p" +msgstr "" + +#: server/parser/sprite_definition.cpp:81 +msgid " frames = " +msgstr "" + +#: server/parser/sprite_definition.cpp:95 +msgid "DefineSprite tag inside sprite definition" +msgstr "" + +#: server/parser/sprite_definition.cpp:106 +msgid " show_frame " +msgstr "" + +#: server/parser/sprite_definition.cpp:107 +#: server/parser/sprite_definition.h:314 server/sprite_instance.cpp:1665 +#: server/sprite_instance.cpp:2293 server/sprite_instance.cpp:2317 +#: server/vm/ActionExec.cpp:429 +msgid "/" +msgstr "" + +#: server/parser/sprite_definition.cpp:108 +msgid " (sprite)" +msgstr "" + +#: server/parser/sprite_definition.cpp:121 +msgid "" +"last SHOWFRAME of a DEFINESPRITE tag isn't followed by an END. Seeking to " +"next END tag." +msgstr "" + +#: server/parser/sprite_definition.cpp:142 +#, c-format +msgid "*** no tag loader for type %d (sprite)" +msgstr "" + +#: server/parser/sprite_definition.cpp:150 +msgid " -- sprite END --" +msgstr "" + +#: server/parser/sprite_definition.cpp:208 +#, c-format +msgid "Registered class %p for sprite_def %p" +msgstr "" + +#: server/parser/sprite_definition.cpp:210 +msgid " Exported interface: " +msgstr "" + +#: server/parser/sprite_definition.h:159 +msgid "add_font tag appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:180 +msgid "add_bitmap_character_def appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:194 +msgid "add sam appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:217 +msgid "Can't export from sprite" +msgstr "" + +#: server/parser/sprite_definition.h:246 +msgid "add_character tag appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:276 +msgid "sprite_definition::add_init_action called! Ignored" +msgstr "" + +#: server/parser/sprite_definition.h:312 +msgid "sprite_definition: loading of frame " +msgstr "" + +#: server/parser/sprite_definition.h:313 +msgid " requested (we are at " +msgstr "" + +#: server/parser/text_character_def.cpp:29 +msgid "begin text records" +msgstr "" + +#: server/parser/text_character_def.cpp:43 +msgid "end text records" +msgstr "" + +#: server/parser/text_character_def.cpp:62 +msgid " text style change" +msgstr "" + +#: server/parser/text_character_def.cpp:71 +#, c-format +msgid " has_font: font id = %d" +msgstr "" + +#: server/parser/text_character_def.cpp:86 +msgid " has_color" +msgstr "" + +#: server/parser/text_character_def.cpp:94 +#, c-format +msgid " has_x_offset = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:107 +#, c-format +msgid " has_y_offset = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:119 +#, c-format +msgid " text_height = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:142 +#, c-format +msgid " glyph_records: count = %d" +msgstr "" + +#: server/PropertyList.cpp:93 +#, c-format +msgid "Property %s is read-only, not setting it to %s" +msgstr "" + +#: server/sprite_instance.cpp:138 +#, c-format +msgid "" +"attachMovie called with wrong number of arguments expected 3 to 4, got (%d) " +"- returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:152 +#, c-format +msgid "attachMovie: '%s': no such exported resource - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:162 +#, c-format +msgid "" +"attachMovie: exported resource '%s' is not a movie definition (%s) -- " +"returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:186 +#, c-format +msgid "Could not attach character at depth %d" +msgstr "" + +#: server/sprite_instance.cpp:205 +#, c-format +msgid "Fourth argument of attachMovie doesn't cast to an object (%s)" +msgstr "" + +#: server/sprite_instance.cpp:240 +#, c-format +msgid "createEmptyMovieClip needs 2 args, but %d given, returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:250 +#, c-format +msgid "createEmptyMovieClip takes 2 args, but %d given, discarding the excess" +msgstr "" + +#: server/sprite_instance.cpp:288 +#, c-format +msgid "%s.swapDepths() needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:297 +#, c-format +msgid "%s.swapDepths(%s): won't swap a clip below depth %d (%d)" +msgstr "" + +#: server/sprite_instance.cpp:309 +#, c-format +msgid "%s.swapDepths(%s): this sprite has no parent, swapping depth of root?" +msgstr "" + +#: server/sprite_instance.cpp:327 +#, c-format +msgid "%s.swapDepths(%s): invalid call, swapping to self?" +msgstr "" + +#: server/sprite_instance.cpp:337 +#, c-format +msgid "" +"%s.swapDepths(%s): invalid call, the two characters don't have the same " +"parent" +msgstr "" + +#: server/sprite_instance.cpp:354 +#, c-format +msgid "" +"%s.swapDepths(%s): first argument invalid (neither a sprite nor a number)" +msgstr "" + +#: server/sprite_instance.cpp:389 +msgid "MovieClip.duplicateMovieClip() needs 2 or 3 args" +msgstr "" + +#: server/sprite_instance.cpp:420 +msgid "sprite_goto_and_play needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:439 +msgid "sprite_goto_and_stop needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:503 +#, c-format +msgid "" +"MovieClip.loadMovie() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:515 +#, c-format +msgid "" +"First argument of MovieClip.loadMovie(%s) evaluates to an empty string - " +"returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:528 +#, c-format +msgid "" +"second argument of MovieClip.loadMovie(%s, ) will be discarded" +msgstr "" + +#: server/sprite_instance.cpp:551 +#, c-format +msgid "" +"MovieClip.loadVariables() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:563 +#, c-format +msgid "" +"First argument passed to MovieClip.loadVariables(%s) evaluates to an empty " +"string - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:627 +#, c-format +msgid "Can't find hitTest target %s" +msgstr "" + +#: server/sprite_instance.cpp:665 +#, c-format +msgid "hitTest() called with %u args" +msgstr "" + +#: server/sprite_instance.cpp:684 +#, c-format +msgid "createTextField called with %d args, expected 6 - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:693 +msgid "First argument of createTextField is not a string - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:703 +msgid "" +"Second argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:713 +msgid "Third argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:723 +msgid "" +"Fourth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:733 server/sprite_instance.cpp:743 +msgid "Fifth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:798 +#, c-format +msgid "MovieClip.getBounds(%s): invalid call, first arg must be a sprite" +msgstr "" + +#: server/sprite_instance.cpp:879 +msgid "MovieClip.lineTo() takes two args" +msgstr "" + +#: server/sprite_instance.cpp:900 +msgid "MovieClip.moveTo() takes two args" +msgstr "" + +#: server/sprite_instance.cpp:963 +msgid "MovieClip.curveTo() takes four args" +msgstr "" + +#: server/sprite_instance.cpp:1624 +#, c-format +msgid "" +"A sprite member (%s) clashes with the name of an existing character in its " +"display list. The member will hide the character" +msgstr "" + +#: server/sprite_instance.cpp:1664 server/sprite_instance.cpp:2291 +#: server/sprite_instance.cpp:2316 +msgid "Executing " +msgstr "" + +#: server/sprite_instance.cpp:1664 +msgid " actions in frame " +msgstr "" + +#: server/sprite_instance.cpp:1665 server/sprite_instance.cpp:2293 +#: server/sprite_instance.cpp:2317 +#, c-format +msgid " of sprite %s" +msgstr "" + +#: server/sprite_instance.cpp:1714 +#, c-format +msgid "call_frame('%s') -- invalid frame" +msgstr "" + +#: server/sprite_instance.cpp:1828 +msgid "Can't clone root of the movie" +msgstr "" + +#: server/sprite_instance.cpp:1834 +#, c-format +msgid "%s parent is not a sprite, can't clone" +msgstr "" + +#: server/sprite_instance.cpp:1890 +#, c-format +msgid "" +"clone_display_object(%s, %s, %d): could not find a character named %s to " +"clone" +msgstr "" + +#: server/sprite_instance.cpp:1986 +#, c-format +msgid "sprite[%p]::set_member(%s, %s)" +msgstr "" + +#: server/sprite_instance.cpp:2007 +msgid "it's a Text Variable" +msgstr "" + +#: server/sprite_instance.cpp:2015 +msgid "it's NOT a Text Variable" +msgstr "" + +#: server/sprite_instance.cpp:2029 server/sprite_instance.cpp:2055 +msgid "NULL path_to_var passed to set_variable()" +msgstr "" + +#: server/sprite_instance.cpp:2034 server/sprite_instance.cpp:2060 +#, c-format +msgid "NULL passed to set_variable('%s', NULL)" +msgstr "" + +#: server/sprite_instance.cpp:2088 +#, c-format +msgid "" +"sprite '%s' ::advance_sprite is at frame %u/%u - onload called: %d - " +"oldDIsplayList has %d elements" +msgstr "" + +#: server/sprite_instance.cpp:2098 +msgid "sprite_instance::advance_sprite we're in PLAY mode" +msgstr "" + +#: server/sprite_instance.cpp:2106 +msgid "on_event_load called, incrementing" +msgstr "" + +#: server/sprite_instance.cpp:2110 +#, c-format +msgid "after increment we are at frame %u/%u" +msgstr "" + +#: server/sprite_instance.cpp:2124 +msgid "sprite_instance::advance_sprite we're in STOP mode" +msgstr "" + +#: server/sprite_instance.cpp:2191 +msgid "Calling ONLOAD event" +msgstr "" + +#: server/sprite_instance.cpp:2292 +msgid " *init* tags in frame " +msgstr "" + +#: server/sprite_instance.cpp:2316 +msgid " tags in frame " +msgstr "" + +#: server/sprite_instance.cpp:2400 +#, c-format +msgid "sprite %s ::goto_frame(" +msgstr "" + +#: server/sprite_instance.cpp:2400 +msgid ") - current frame is " +msgstr "" + +#: server/sprite_instance.cpp:2440 +msgid "GotoFrame(" +msgstr "" + +#: server/sprite_instance.cpp:2440 +msgid ") targets a yet to be loaded frame (" +msgstr "" + +#: server/sprite_instance.cpp:2441 +msgid "" +") loaded). We'll wait for it but a more correct form is explicitly using " +"WaitForFrame instead" +msgstr "" + +#: server/sprite_instance.cpp:2531 +#, c-format +msgid "sprite_instance::goto_labeled_frame('%s') unknown label" +msgstr "" + +#: server/sprite_instance.cpp:2620 +#, c-format +msgid "sprite_instance::add_display_object(): unknown cid = %d" +msgstr "" + +#: server/sprite_instance.cpp:2706 +#, c-format +msgid "sprite::replace_display_object(): unknown cid = %d" +msgstr "" + +#: server/sprite_instance.cpp:2780 +#, c-format +msgid "Frame %u/%u, bytes %u/%u" +msgstr "" + +#: server/sprite_instance.cpp:3014 +#, c-format +msgid "%s doesn't even check for a char" +msgstr "" + +#: server/sprite_instance.cpp:3155 +#, c-format +msgid "Constructing sprite '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3205 +#, c-format +msgid "Unloading sprite '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3227 server/vm/action.cpp:140 +#, c-format +msgid "can't create movie_definition for %s" +msgstr "" + +#: server/sprite_instance.cpp:3236 +#, c-format +msgid "can't create extern movie_instance for %s" +msgstr "" + +#: server/sprite_instance.cpp:3306 +msgid "MovieClip.loadVariables() with GET/POST won't append vars for now" +msgstr "" + +#: server/sprite_instance.cpp:3331 +#, c-format +msgid "Setting variable '%s' to value '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3374 +#, c-format +msgid "" +"removeMovieClip(%s): sprite depth (%d) out of the 'dynamic' zone " +"[0..1048575], won't remove" +msgstr "" + +#: server/sprite_instance.cpp:3391 +#, c-format +msgid "Can't remove sprite %s as it has no parent" +msgstr "" + +#: server/StreamProvider.cpp:91 server/StreamProvider.cpp:132 +#, c-format +msgid "Unsupported network connection %s" +msgstr "" + +#: server/StreamProvider.cpp:105 +msgid "POST data discarded while getting a stream from file: uri" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:53 +#, c-format +msgid "DefineFontAlignZones tag references an undefined font %d" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:67 +#, c-format +msgid " DefinFontAlignZones: font=%d, flags=%d" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:71 +msgid "FIXME: DefineFontAlignZoneTag unfinished" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:47 +#, c-format +msgid " char_id = %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:48 +#, c-format +msgid " depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:58 server/swf/PlaceObject2Tag.cpp:272 +msgid " cxform:" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:80 +#, c-format +msgid " actions: flags = 0x%X" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:101 +#, c-format +msgid "" +"swf_event::read(), even_length = %u, but only %lu bytes left to the end of " +"current tag. Breaking for safety." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:126 server/swf/PlaceObject2Tag.cpp:138 +#, c-format +msgid "swf_event::read(), event_length = %d, but read " +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:129 +msgid ". Breaking for safety." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:141 +msgid ". Skipping excessive bytes." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:177 +#, c-format +msgid "" +"swf_event::read() -- unknown / unhandled event type received, flags = 0x%x" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:263 +#, c-format +msgid " PLACEOBJECT2: depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:264 +#, c-format +msgid " char id = %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:267 +msgid " mat:" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:275 +#, c-format +msgid " ratio: %f" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:276 +#, c-format +msgid " name = %s" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:277 +#, c-format +msgid " clip_depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:278 +#, c-format +msgid " m_place_type: %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:383 +#, c-format +msgid "reverse REPLACE can't find previous replace or add tag(%d, %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:142 +msgid "anchor-labeled frame not supported" +msgstr "" + +#: server/swf/tag_loaders.cpp:147 +msgid "frame_label_loader end position " +msgstr "" + +#: server/swf/tag_loaders.cpp:147 +msgid ", read up to " +msgstr "" + +#: server/swf/tag_loaders.cpp:182 +#, c-format +msgid " set_background_color: (%d %d %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:211 +msgid " jpeg_tables_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:249 server/swf/tag_loaders.cpp:297 +msgid "gnash is not linked to jpeglib -- can't load jpeg image data" +msgstr "Gnash ist nicht mit jpeglib verlinkt -- kann jpeg-Bilddaten nicht laden" + +#: server/swf/tag_loaders.cpp:261 +#, c-format +msgid "DEFINEBITS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:281 +#, c-format +msgid " define_bits_jpeg2_loader: charid = %d pos = %lx" +msgstr "" + +#: server/swf/tag_loaders.cpp:306 +#, c-format +msgid "DEFINEBITSJPEG2: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:342 +#, c-format +msgid "inflate_wrapper() inflateInit() returned %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:358 +#, c-format +msgid "inflate_wrapper() inflate() returned %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:365 +#, c-format +msgid "inflate_wrapper() inflateEnd() return %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:382 +#, c-format +msgid " define_bits_jpeg3_loader: charid = %d pos = %lx" +msgstr "" + +#: server/swf/tag_loaders.cpp:393 +msgid "" +"gnash is not linked to jpeglib/zlib -- can't load jpeg/zipped image data" +msgstr "Gnash ist nicht mit jpeglib/zlib verlinkt -- kann jpeg/zip Bilddaten nicht laden" + +#: server/swf/tag_loaders.cpp:440 +#, c-format +msgid " defbitslossless2: tag = %d, id = %d, fmt = %d, w = %d, h = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:449 +msgid "gnash is not linked to zlib -- can't load zipped image data" +msgstr "Gnash ist nicht mit zlib verlinkt -- kann zip-Bilddaten nicht laden" + +#: server/swf/tag_loaders.cpp:555 +#, c-format +msgid "" +"DEFINEBITSLOSSLESS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:685 +#, c-format +msgid " FIXME: tagtype = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:697 +#, c-format +msgid " shape_loader: id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:713 +#, c-format +msgid " shape_morph_loader: id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:762 +#, c-format +msgid "define_font_info_loader: can't find font w/ id %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:775 +msgid " place_object_2" +msgstr "" + +#: server/swf/tag_loaders.cpp:795 +#, c-format +msgid " sprite: char id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:803 +msgid "nested DEFINESPRITE tags" +msgstr "" + +#: server/swf/tag_loaders.cpp:870 +#, c-format +msgid "reverse REMOVE can't find previous replace or add tag(%d, %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:889 +#, c-format +msgid " remove_object_2(%d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:920 +#, c-format +msgid " button character loader: char_id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:944 +#, c-format +msgid " export: count = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:954 +#, c-format +msgid " export: id = %d, name = %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:973 +#, c-format +msgid "don't know how to export resource '%s' with id %d (can't find that id)" +msgstr "" + +#: server/swf/tag_loaders.cpp:1010 +#, c-format +msgid " import: version = %u, source_url = %s (%s), count = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1022 +#, c-format +msgid "Exception: %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1028 +#, c-format +msgid "can't import movie from url %s" +msgstr "Kann Film von URL %s nicht importieren" + +#: server/swf/tag_loaders.cpp:1037 +msgid "Movie attempts to import symbols from itself." +msgstr "Der Film versucht, Symbole von sich selbst zu importieren" + +#: server/swf/tag_loaders.cpp:1050 +#, c-format +msgid " import: id = %d, name = %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1066 +#, c-format +msgid "import error: could not find resource '%s' in movie '%s'" +msgstr "Import-Fehler: Konnte Resource '%s' in Film '%s' nicht finden!" + +#: server/swf/tag_loaders.cpp:1102 +#, c-format +msgid "edit_text_char, id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1120 +#, c-format +msgid "text_character, id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1141 +#, c-format +msgid "tag %d: do_action_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:1142 +msgid "-- actions in frame " +msgstr "" + +#: server/swf/tag_loaders.cpp:1165 +#, c-format +msgid " tag %d: do_init_action_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:1166 +#, c-format +msgid " -- init actions for sprite %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1199 +#, c-format +msgid "define sound: ch=%d, format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1215 server/swf/tag_loaders.cpp:1361 +#, c-format +msgid "Bad sound sample rate %d read from SWF header" +msgstr "" + +#: server/swf/tag_loaders.cpp:1274 +#, c-format +msgid "" +"There is no sound handler currently active, so character with id %d will NOT " +"be added to the dictionary" +msgstr "" + +#: server/swf/tag_loaders.cpp:1300 +#, c-format +msgid "start_sound tag: id=%d, stop = %d, loop ct = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1309 +#, c-format +msgid "start_sound_loader: sound_id %d is not defined" +msgstr "" + +#: server/swf/tag_loaders.cpp:1351 +#, c-format +msgid "sound stream head: format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1516 +#, c-format +msgid " file attributes: has_metadata=%s use_network=%s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 +msgid "true" +msgstr "" + +#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 +msgid "false" +msgstr "" + +#: server/swf/tag_loaders.cpp:1523 +msgid "" +"FileAttributes tag in the SWF requests that network access is not granted to " +"this movie (or application?). Anyway Gnash won't care; use white/black " +"listing in your .gnashrc instead" +msgstr "" + +#: server/swf/tag_loaders.cpp:1541 +#, c-format +msgid "" +" metadata = [[\n" +"%s\n" +"]]" +msgstr "" + +#: server/swf/tag_loaders.cpp:1544 +#, c-format +msgid "METADATA tag unused: %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1562 +#, c-format +msgid "" +" serialnumber = [[\n" +"%s\n" +"]]" +msgstr "" + +#: server/swf/tag_loaders.cpp:1565 +#, c-format +msgid "SERIALNUMBER: %s" +msgstr "" + +#: server/text.cpp:50 +#, c-format +msgid "text style references unknown font (id = %d)" +msgstr "" + +#: server/text.cpp:154 +msgid "invalid glyph, render as an empty box" +msgstr "" + +#: server/text.cpp:181 +msgid "render glyph using draw_glyph" +msgstr "" + +#: server/text.cpp:192 +msgid "render glyph using filled outline (?) actually draw_glyph()" +msgstr "" + +#: server/textformat.cpp:124 +#, c-format +msgid "Created New TextFormat object at %p. Not fully implemented yet" +msgstr "" + +#: server/textformat.cpp:150 +msgid "TextFormat.setFormat() needs at least 3 arguments - ...me thinks" +msgstr "" + +#: server/textformat.cpp:159 +msgid "" +"Argument 3 given to TextFormat.setFormat() is not a TextFormat object - ... " +"should it be?" +msgstr "" + +#: server/textformat.cpp:237 +#, c-format +msgid "%s: args=%d unfinished implementation" +msgstr "" + +#: server/video_stream_instance.cpp:43 +msgid "attachVideo needs 1 arg" +msgstr "" + +#: server/video_stream_instance.cpp:56 +#, c-format +msgid "attachVideo(%s) first arg is not a NetStream instance" +msgstr "" + +#: server/video_stream_instance.cpp:116 +msgid "An error occured while decoding video frame" +msgstr "Fehler beim Dekodieren eines Video-Bildes" + +#: server/vm/action.cpp:152 +#, c-format +msgid "can't create extern root sprite for %s" +msgstr "" + +#: server/vm/action.cpp:169 +#, c-format +msgid "can't create extern sprite for %s" +msgstr "" + +#: server/vm/action.cpp:238 +msgid "" +"Attempt to call a value which is neither a C nor an ActionScript function" +msgstr "" + +#: server/vm/action.cpp:270 +#, c-format +msgid "FIXME(%d): %s" +msgstr "" + +#: server/vm/action.cpp:389 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%l%c'" +msgstr "" + +#: server/vm/action.cpp:398 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%%c'" +msgstr "" + +#: server/vm/action.cpp:414 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid char '%c'" +msgstr "" + +#: server/vm/action.cpp:450 +msgid "-- start movie" +msgstr "" + +#: server/vm/action.cpp:461 +#, c-format +msgid "FIXME: %s" +msgstr "" + +#: server/vm/ActionExec.cpp:136 +msgid "at ActionExec operator() start, pc=" +msgstr "" + +#: server/vm/ActionExec.cpp:137 +msgid ", stop_pc=" +msgstr "" + +#: server/vm/ActionExec.cpp:137 +msgid ", code.size=" +msgstr "" + +#: server/vm/ActionExec.cpp:138 server/vm/ActionExec.cpp:211 +msgid "." +msgstr "" + +#: server/vm/ActionExec.cpp:178 +#, c-format +msgid "Length %u (%d) of action tag id %u at pc " +msgstr "" + +#: server/vm/ActionExec.cpp:180 +msgid " overflows actions buffer size " +msgstr "" + +#: server/vm/ActionExec.cpp:211 +msgid " After execution, PC is " +msgstr "" + +#: server/vm/ActionExec.cpp:249 +msgid "Call stack non-empty at end of ExecutableCode run (limits hit?)" +msgstr "" + +#: server/vm/ActionExec.cpp:255 +msgid "" +"Stack smashed (ActionScript compiler bug?).Fixing by pushing undefined " +"values to the missing slots, but don't expect things to work afterwards" +msgstr "" + +#: server/vm/ActionExec.cpp:265 +msgid " elements left on the stack after block execution. Cleaning up" +msgstr "" + +#: server/vm/ActionExec.cpp:283 +msgid "End of DoAction block hit while skipping " +msgstr "" + +#: server/vm/ActionExec.cpp:284 +msgid " action tags (pc:" +msgstr "" + +#: server/vm/ActionExec.cpp:285 +msgid ", stop_pc:" +msgstr "" + +#: server/vm/ActionExec.cpp:285 +msgid ") (WaitForFrame, probably)" +msgstr "" + +#: server/vm/ActionExec.cpp:319 +msgid "'With' stack depth (" +msgstr "" + +#: server/vm/ActionExec.cpp:319 +msgid ") exceeds the allowed limit for current SWF target version (" +msgstr "" + +#: server/vm/ActionExec.cpp:321 +#, c-format +msgid " for version %d). Don't expect this movie to work with all players." +msgstr "" + +#: server/vm/ActionExec.cpp:428 +msgid "Stack underrun: " +msgstr "" + +#: server/vm/ActionExec.cpp:428 +msgid " elements required, " +msgstr "" + +#: server/vm/ActionExec.cpp:429 +msgid " available. Fixing by inserting " +msgstr "" + +#: server/vm/ActionExec.cpp:430 +msgid " undefined values on the missing slots." +msgstr "" + +#: server/vm/ASHandlers.cpp:101 +#, c-format +msgid "Unsupported action handler invoked, code at pc is %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:182 +msgid "" +"FIXME: VM not initialized at SWFHandlers construction time, can't set action " +"handlers based on SWF version" +msgstr "" + +#: server/vm/ASHandlers.cpp:466 +#, c-format +msgid "%s: CHECKME: was broken" +msgstr "" + +#: server/vm/ASHandlers.cpp:609 +#, c-format +msgid "GetUrl: target=%s url=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:630 +#, c-format +msgid "ActionWaitForFrame (0x%X) tag length == " +msgstr "" + +#: server/vm/ASHandlers.cpp:631 +msgid " (expected 3)" +msgstr "" + +#: server/vm/ASHandlers.cpp:645 server/vm/ASHandlers.cpp:696 +#: server/vm/ASHandlers.cpp:1487 +#, c-format +msgid "%s: environment target is not a sprite_instance" +msgstr "" + +#: server/vm/ASHandlers.cpp:861 +msgid "Undefined or null string passed to ActionSubString, returning undefined" +msgstr "" + +#: server/vm/ASHandlers.cpp:876 +msgid "Negative size passed to ActionSubString, taking as whole length" +msgstr "" + +#: server/vm/ASHandlers.cpp:887 +msgid "Base is less then 1 in ActionSubString, setting to 1." +msgstr "" + +#: server/vm/ASHandlers.cpp:896 +msgid "" +"base goes beyond input string in ActionSubString, returning the empty string." +msgstr "" + +#: server/vm/ASHandlers.cpp:910 +msgid "base+size goes beyond input string in ActionSubString, adjusting size" +msgstr "" + +#: server/vm/ASHandlers.cpp:978 +#, c-format +msgid "-- get var: %s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:982 +#, c-format +msgid "-- get var: %s=%s at %p" +msgstr "" + +#: server/vm/ASHandlers.cpp:1007 +#, c-format +msgid "-- set var: %s = %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1069 +msgid "" +"ActionGetProperty() called, but current target is not a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1092 +#, c-format +msgid "invalid property query, property number %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:1101 +#, c-format +msgid "Could not find GetProperty target (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1133 +#, c-format +msgid "invalid set_property, property number %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:1157 +#, c-format +msgid "Path given to duplicateMovieClip(%s) doesn't point to a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1168 +#, c-format +msgid "Path given to duplicateMovieClip(%s) is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1193 +#, c-format +msgid "Path given to removeMovieClip(%s) doesn't point to a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1203 +#, c-format +msgid "Path given to removeMovieClip(%s) is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1242 +#, c-format +msgid "start_drag of invalid target '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:1266 +msgid "Y values in ActionStartDrag swapped, fixing" +msgstr "" + +#: server/vm/ASHandlers.cpp:1274 +msgid "X values in ActionStartDrag swapped, fixing" +msgstr "" + +#: server/vm/ASHandlers.cpp:1340 +#, c-format +msgid "-- %s cast_to %s (invalid args?)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1360 +msgid "ActionCastOp TESTING" +msgstr "" + +#: server/vm/ASHandlers.cpp:1496 +#, c-format +msgid "" +"Frame spec found on stack at ActionWaitForFrame doesn't evaluate to a valid " +"frame: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1561 +#, c-format +msgid "[push length=%d]" +msgstr "" + +#: server/vm/ASHandlers.cpp:1580 +#, c-format +msgid "" +"Unknown push type %d. Execution will continue but it is likely to fail due " +"to lost sync." +msgstr "" + +#: server/vm/ASHandlers.cpp:1630 +#, c-format +msgid "register %d out of bounds" +msgstr "" + +#: server/vm/ASHandlers.cpp:1676 server/vm/ASHandlers.cpp:1695 +#, c-format +msgid "dict_lookup %d is out of bounds" +msgstr "" + +#: server/vm/ASHandlers.cpp:1707 server/vm/ASHandlers.cpp:1711 +msgid "\t" +msgstr "" + +#: server/vm/ASHandlers.cpp:1707 +#, c-format +msgid ") type=%s (%d), value=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1711 +#, c-format +msgid ") type=%s, value=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1762 +msgid "Bogus empty GetUrl url in SWF file, skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:1777 +msgid "" +"Bogus GetUrl2 send vars method in SWF file (both GET and POST requested), " +"set to 0" +msgstr "" + +#: server/vm/ASHandlers.cpp:1830 +#, c-format +msgid "get url: target=%s, url=%s (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1838 +#, c-format +msgid "get url: target %s not found" +msgstr "" + +#: server/vm/ASHandlers.cpp:1846 +#, c-format +msgid "get url: target %s is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1853 +msgid "getURL2 loadVariable" +msgstr "" + +#: server/vm/ASHandlers.cpp:1860 +msgid "getURL2 target load" +msgstr "" + +#: server/vm/ASHandlers.cpp:1871 +#, c-format +msgid "" +"Unhandled GetUrl2 sendVariableMethod (%d) with loadTargetFlag and ! " +"loadVariablesFlag" +msgstr "" + +#: server/vm/ASHandlers.cpp:1884 +#, c-format +msgid "Unhandled GetUrl2 sendVariableMethod (%d) with no loadTargetFlag" +msgstr "" + +#: server/vm/ASHandlers.cpp:1898 +#, c-format +msgid "Launching URL... %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1923 +#, c-format +msgid "" +"Couldn't find movie \"%s\" to set target to! Not setting target at all..." +msgstr "" + +#: server/vm/ASHandlers.cpp:1951 +msgid "Undefined GetUrl2 url on stack, skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:1988 +msgid "branch to offset " +msgstr "" + +#: server/vm/ASHandlers.cpp:1988 +msgid " -- this section only runs to " +msgstr "" + +#: server/vm/ASHandlers.cpp:2028 +#, c-format +msgid "" +"Couldn't find target_sprite \"%s\" in ActionCallFrame! target frame actions " +"will not be called..." +msgstr "" + +#: server/vm/ASHandlers.cpp:2090 +#, c-format +msgid "" +"Frame spec found on stack at ActionGotoExpression doesn't evaluate to a " +"valid frame: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2104 +#, c-format +msgid "" +"Couldn't find target sprite \"%s\" in ActionGotoExpression. Will not go to " +"target frame..." +msgstr "" + +#: server/vm/ASHandlers.cpp:2125 +msgid "No elements on the stack at ActionDelete (0x3A). Returning FALSE." +msgstr "" + +#: server/vm/ASHandlers.cpp:2164 +#, c-format +msgid "-- set local var: %s = %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2196 +#, c-format +msgid "ActionCallFunction: %s is not an object" +msgstr "" + +#: server/vm/ASHandlers.cpp:2205 +msgid "Object doensn't have a constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2216 +#, c-format +msgid "" +"Attempt to call a function with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2307 +#, c-format +msgid "---new object: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2320 +#, c-format +msgid "ActionNew: '%s' is not a constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2360 +msgid "The 'var whatever' syntax in timeline context is a no-op." +msgstr "" + +#: server/vm/ASHandlers.cpp:2476 +#, c-format +msgid "Argument to TargetPath(%s) doesn't cast to a MovieClip" +msgstr "" + +#: server/vm/ASHandlers.cpp:2514 +#, c-format +msgid "Top of stack not an object (%s) at ActionEnumerate execution" +msgstr "" + +#: server/vm/ASHandlers.cpp:2672 +#, c-format +msgid " ActionGetMember: target: %s (object %p)" +msgstr "" + +#: server/vm/ASHandlers.cpp:2688 +#, c-format +msgid "-- get_member %s.%s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2714 +#, c-format +msgid "-- set_member %s.%s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2726 +#, c-format +msgid "-- set_member %s.%s=%s on invalid object!" +msgstr "" + +#: server/vm/ASHandlers.cpp:2781 +#, c-format +msgid "" +"Attempt to call a method with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2790 +#, c-format +msgid " method name: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2791 +#, c-format +msgid " method object/func: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2792 +#, c-format +msgid " method nargs: %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:2807 +msgid "" +"ActionCallMethod invoked with undefined method_name and non-object object/" +"func" +msgstr "" + +#: server/vm/ASHandlers.cpp:2816 +msgid "" +"Function object given to ActionCallMethod is not a function, will try to use " +"its 'constructor' member" +msgstr "" + +#: server/vm/ASHandlers.cpp:2826 +msgid "ActionCallMethod: object has no constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2835 +msgid "ActionCallMethod: object constructor is not a function" +msgstr "" + +#: server/vm/ASHandlers.cpp:2851 +#, c-format +msgid "ActionCallMethod: Tried to invoke method '%s' on non-object value %s." +msgstr "" + +#: server/vm/ASHandlers.cpp:2864 +#, c-format +msgid "ActionCallMethod: Can't find method %s of object %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2887 +msgid "FIXME: debugger doesn't deal with anonymous function calls" +msgstr "" + +#: server/vm/ASHandlers.cpp:2924 +#, c-format +msgid "" +"Attempt to call a constructor with %u arguments while only %u are available " +"on the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2936 +msgid "On ActionNewMethod: no object found on stack on ActionMethod" +msgstr "" + +#: server/vm/ASHandlers.cpp:2954 +#, c-format +msgid "ActionNewMethod: can't find method %s of object %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2968 +msgid "ActionNewMethod: method name is undefined, and object is not a function" +msgstr "" + +#: server/vm/ASHandlers.cpp:3007 +#, c-format +msgid "-- %s instanceof %s (invalid args?)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3041 +#, c-format +msgid "Top of stack not an object %s at ActionEnum2 execution" +msgstr "" + +#: server/vm/ASHandlers.cpp:3218 +#, c-format +msgid "ActionExtends: Super is not an as_function (%s)" +msgstr "ActionExtends: Super ist keine as_function (%s)" + +#: server/vm/ASHandlers.cpp:3223 +#, c-format +msgid "ActionExtends: Sub is not an as_function (%s)" +msgstr "ActionExtends: Super ist keine as_function (%s)" + +#: server/vm/ASHandlers.cpp:3312 +#, c-format +msgid "" +"function2 code len (%u) overflows DOACTION tag boundaries (DOACTION tag len=" +msgstr "" + +#: server/vm/ASHandlers.cpp:3315 +msgid ", function2 code offset=" +msgstr "" + +#: server/vm/ASHandlers.cpp:3315 +msgid "). Forcing code len to eat the whole buffer (would this work?)." +msgstr "" + +#: server/vm/ASHandlers.cpp:3379 +msgid "-------------- with block start: stack size is " +msgstr "" + +#: server/vm/ASHandlers.cpp:3389 +msgid "ActionWith tag length != 2; skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:3399 +msgid "Empty with() block..." +msgstr "" + +#: server/vm/ASHandlers.cpp:3415 +msgid "With-block skipped (with stack size exceeds limit of " +msgstr "" + +#: server/vm/ASHandlers.cpp:3417 +msgid " elements)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3533 +#, c-format +msgid "-------------- local register[%d] = '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:3542 +#, c-format +msgid "-------------- global register[%d] = '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:3550 +#, c-format +msgid "store_register[%d] -- register out of bounds!" +msgstr "" + +#: server/vm/ASHandlers.cpp:3561 +#, c-format +msgid "at SWFHandlers::action_name(%d) call time, _handlers size is " +msgstr "" + +#: utilities/dumpshm.cpp:206 +msgid "" +"Sorry, we can only list the files on systems with disk based shared memory" +msgstr "Entschuldigung, wir können Dateien nur auf Systemen mit plattenbasiertem geteiltem Speicher auflisten" + +#: utilities/dumpshm.cpp:215 +msgid "No name specified, nuking everything..." +msgstr "" + +#: utilities/dumpshm.cpp:222 +msgid "Removing segment: " +msgstr "" + +#: utilities/dumpshm.cpp:230 +msgid "Nuking the shared memory segment " +msgstr "" + +#: utilities/dumpshm.cpp:256 +msgid "ERROR: couldn't read!" +msgstr "FEHLER: Lesen unmöglich!" + +#: utilities/dumpshm.cpp:287 +msgid "This program dumps the internal data of a shared memory segment" +msgstr "" + +#: utilities/dumpshm.cpp:289 +msgid "Usage: dumpmem [hdsanlif] filename" +msgstr "Verwendung: dumpmem [hdsanlif] Dateiname" + +#: utilities/dumpshm.cpp:290 +msgid "-h\tHelp" +msgstr "-h\tHilfe" + +#: utilities/dumpshm.cpp:291 +msgid "-d\tDump data" +msgstr "Speicherauszug erstellen" + +#: utilities/dumpshm.cpp:292 +msgid "-n [optional name]\tNuke everything" +msgstr "" + +#: utilities/dumpshm.cpp:293 +msgid "-l\tLength of segment" +msgstr "" + +#: utilities/dumpshm.cpp:294 +msgid "-i\tList segments" +msgstr "" + +#: utilities/dumpshm.cpp:295 +msgid "-f\tForce to use builtin names for nuke" +msgstr "" + +#: utilities/dumpshm.cpp:307 +msgid "\tBase address of this segment: " +msgstr "" + +#: utilities/dumpshm.cpp:309 +msgid "\tFilespec: " +msgstr "" + +#: utilities/dumpshm.cpp:310 +msgid "\t# Bytes allocated: " +msgstr "" + +#: utilities/dumpshm.cpp:311 +msgid "\tTotal # of bytes: " +msgstr "" + +#: utilities/parser.cpp:138 +#, c-format +msgid "has_scale = %d, has_rotate = %d\n" +msgstr "has_scale = %d, has_rotate = %d\n" + +#: utilities/parser.cpp:163 +#, c-format +msgid "x_min: %i, x_max: %i,\twidth: %i twips, %4.0f pixels\n" +msgstr "x_min : %i, x_max : %i,\tHöhe : %i twips, %4.0f Pixel\n" + +#: utilities/parser.cpp:164 +#, c-format +msgid "y_min: %i, y_max: %i, height: %i twips, %4.0f pixels\n" +msgstr "y_min : %i, y_max : %i, Höhe : %i twips, %4.0f Pixel\n" + +#: utilities/parser.cpp:185 +#, c-format +msgid "rgb: %d %d %d \n" +msgstr "rgb : %d %d %d \n" + +#: utilities/parser.cpp:206 +#, c-format +msgid "rgba: %d %d %d %d\n" +msgstr "rgba : %d %d %d %d\n" + +#: utilities/parser.cpp:279 +msgid "cxform:\n" +msgstr "cxform:\n" + +#: utilities/parser.cpp:280 +#, c-format +msgid "has_add = %d, has_mult = %d\n" +msgstr "has_add = %d, has_mult = %d\n" + +#: utilities/parser.cpp:298 +msgid "" +"Movie ended\n" +"\n" +msgstr "" +"Film beendet\n" +"\n" + From MAILER-DAEMON Sun Jun 10 11:27:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxPKH-0004lb-I0 for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 11:27:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxPKF-0004lD-US for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:27:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxPKC-0004jo-Ct for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:27:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxPKC-0004jl-7G for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:27:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxPKA-00025F-5S for gnash-commit@gnu.org; Sun, 10 Jun 2007 11:27:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxPK8-0006Yy-A2 for gnash-commit@gnu.org; Sun, 10 Jun 2007 15:27:24 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxPK8-0006Yv-5X for gnash-commit@gnu.org; Sun, 10 Jun 2007 15:27:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Sun, 10 Jun 2007 15:27:24 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/po se.po X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 15:27:32 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/10 15:27:24 Removed files: po : se.po Log message: Rename CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/po/se.po?cvsroot=gnash&r1=1.2&r2=0 Patches: Index: se.po =================================================================== RCS file: se.po diff -N se.po --- se.po 17 May 2007 23:26:33 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,4507 +0,0 @@ -# Swedishß translation of GNU Gnash. -# Copyright (C) 2007 Free Software Foundation, Inc. -# This file is distributed under the same license as the gnash package. -# <>, 2007. -# -# -msgid "" -msgstr "" -"Project-Id-Version: Gnash\n" -"Report-Msgid-Bugs-To: bug-gnash@gnu.org\n" -"POT-Creation-Date: 2007-05-15 08:44+0200\n" -"PO-Revision-Date: 2007-05-15 08:44+0200\n" -"Last-Translator: Markus Gothe \n" -"Language-Team: Swedish \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit" - -#: backend/sound_handler_sdl.cpp:76 -msgid "could not allocate memory for sound data" -msgstr "kan inte allokera minne för ljud-data " - -#: backend/sound_handler_sdl.cpp:99 -msgid "Some kind of error occurred with raw sound data" -msgstr "Fel uppstod med rått ljud-datat" - -#: backend/sound_handler_sdl.cpp:112 -msgid "Some kind of error occurred with adpcm sound data" -msgstr "Fel uppstod med ADPCM-ljud" - -#: backend/sound_handler_sdl.cpp:123 -msgid "gnash has not been compiled to handle mp3 audio" -msgstr "gnash har inte byggts med mp3-stöd" - -#: backend/sound_handler_sdl.cpp:129 -msgid "could not allocate space for data in sound handler" -msgstr "kan inte allokera utrymme för data i ljudhanteraren" - -#: backend/sound_handler_sdl.cpp:138 -#, c-format -msgid "unknown sound format %d requested; gnash does not handle it" -msgstr "okänkt ljudformat % begärt. gnash hanterar det inte" - -#: backend/sound_handler_sdl.cpp:170 -msgid "Some kind of error with resampling sound data" -msgstr "Fell uppstod under resampling av ljud" - -#: backend/sound_handler_sdl.cpp:215 -#, c-format -msgid "" -"Behavior for this audio codec %d is unknown. Please send this SWF to the " -"developers" -msgstr "Detta ljud-codec, %d, är okänt. Sänd SWF-filen till " -"en utvecklare" - -#: backend/sound_handler_sdl.cpp:276 -msgid "Your FFMPEG can't decode MP3?!" -msgstr "FFMPEG byggt utan mp3-stöd?" - -#: backend/sound_handler_sdl.cpp:304 -#, c-format -msgid "Unable to start SDL sound: %s" -msgstr "Kan inte starta SDL audio: %s" - -#: backend/sound_handler_sdl.cpp:496 -#, c-format -msgid "Unable to start aux SDL sound: %s" -msgstr "Kan inte starta SDL audio: %s" - -#: backend/sound_handler_sdl.cpp:717 -#, c-format -msgid "Negative buffer length in sdl_audio_callback (%d)" -msgstr "Bufferlängd mindre än 0 in sdl_audio_callback (%d)" - -#: backend/sound_handler_sdl.cpp:834 -msgid "" -"Error while decoding MP3-stream. Upgrading ffmpeg/libavcodec might fix this " -"issue." -msgstr "Fel under dekodning av MP3-ström. Uppgradering av ffmpeg/libavcdec " -"detta problem" - -#: backend/sound_handler_sdl.cpp:864 -#, c-format -msgid "Recoverable error while decoding MP3-stream, MAD error: %s" -msgstr "Korrigerbart fel under dekodning av MP3-ström, MAD-fel: %s" - -#: backend/sound_handler_sdl.cpp:872 -#, c-format -msgid "Unrecoverable error while decoding MP3-stream, MAD error: %s" -msgstr "Icke korrigerbart fel under dekodning av MP3-ström, MAD-fel: %s" - -#: backend/sound_handler_sdl.cpp:929 -msgid "Error in sound sample conversion" -msgstr "Fel i ljud-resampling" - -#: extensions/mysql/mysql_db.cpp:186 -msgid "Couldn't initialize database" -msgstr "Kan inte initialisera databas" - -#: extensions/mysql/mysql_db.cpp:191 -msgid "Couldn't connect to database" -msgstr "Kan inte ansluta till databas" - -#: extensions/mysql/mysql_db.cpp:217 extensions/mysql/mysql_db.cpp:244 -#, c-format -msgid "MySQL connection error: %s" -msgstr "Fel i MySQL-anslutningen: %s" - -#: extensions/mysql/mysql_db.cpp:224 extensions/mysql/mysql_db.cpp:251 -#, c-format -msgid "" -"MySQL error on query for:\n" -"\t%s\n" -"Query was: %s" -msgstr "" -"MySQL-fel i query för:\n" -"\t%s\n" -"Query var: %s" - -#: extensions/mysql/mysql_db.cpp:265 -#, c-format -msgid "Field name is: %s: " -msgstr "Fältnamnet är: %s: " - -#: gui/gnash.cpp:73 -msgid "" -"usage: gnash [options] movie_file.swf\n" -"\n" -"Plays a SWF (Shockwave Flash) movie\n" -"options:\n" -"\n" -msgstr "" -"Verwendung: gnash [Optionen] Film_Datei.swf\n" -"\n" -"Wiedergabe eines SWF (Shockwave Flash) Films\n" -"Optionen:\n" -"\n" - -#: gui/gnash.cpp:78 -#, Not sure about the above... -msgid "" -" -h, --help Print this info.\n" -" -s Scale the movie up/down by the specified factor\n" -" -c Produce a core file instead of letting SDL trap it\n" -" -d num Number of milliseconds to delay in main loop\n" -" -v Be verbose; i.e. print log messages to stdout\n" -msgstr "" -" -h, --help Diese Hilfe anzeigen.\n" -" -s Film um den angegebenen Faktor skalieren\n" -" -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" -" -d num Number of milliseconds to delay in main loop\n" -" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" - -#: gui/gnash.cpp:85 -msgid " -va Be verbose about movie Actions\n" -msgstr " -va Ausführlicher Modus für Film-Aktionen\n" - -#: gui/gnash.cpp:90 -msgid " -vp Be verbose about parsing the movie\n" -msgstr " -vp Ausführlicher Modus beim Parsen des Films\n" - -#: gui/gnash.cpp:95 -msgid "" -" -m Specify the texture LOD bias (float, default is -1.0)\n" -" -x X11 Window ID for display\n" -" -w Produce the disk based debug log\n" -" -j Set window width\n" -" -k Set window height\n" -" -1 Play once; exit when/if movie reaches the last frame\n" -msgstr "" - -#: gui/gnash.cpp:102 -msgid "" -" -g Turn on the Flash debugger\n" -" -r <0|1|2|3>\n" -" 0 disables both rendering & sound (good for batch tests)\n" -" 1 enables rendering & disables sound\n" -" 2 enables sound & disables rendering\n" -" 3 enables both rendering & sound (default)\n" -msgstr "" -" -g Flash-Debugger einschalten\n" -" -r <0|1|2|3>\n" -" 0 Rendering und Audio deaktiviert (good for batch tests)\n" -" 1 Rendering aktiviert, Audio deaktiviert\n" -" 2 Audio aktiviert, Rendering deaktiviert\n" -" 3 Rendering und Audio aktiviert (Standard)\n" - -#: gui/gnash.cpp:109 -msgid "" -" -t Timeout and exit after the specified number of seconds\n" -" -b Bit depth of output window (16 or 32, default is 16)\n" -" -u Set \"real\" url of the movie\n" -" (useful for downloaded movies)\n" -" -U Set \"base\" url for this run\n" -" (used to resolve relative urls, defaults to movie url)\n" -" -P Set parameter (ie. \"FlashVars=A=1&b=2\")\n" -" --version Print gnash's version number and exit\n" -msgstr "" - -#: gui/gnash.cpp:118 -msgid "" -"\n" -"keys:\n" -" CTRL-Q, CTRL-W, ESC Quit/Exit\n" -" CTRL-P Toggle Pause\n" -" CTRL-R Restart the movie\n" -" CTRL-[ or kp- Step back one frame\n" -" CTRL-] or kp+ Step forward one frame\n" -" CTRL-B Toggle background color\n" -" CTRL-A Toggle antialiasing (doesn't work)\n" -" CTRL-T Debug. Test the set_variable() function\n" -" CTRL-G Debug. Test the get_variable() function\n" -" CTRL-M Debug. Test the call_method() function\n" -msgstr "\n" -"Tastenkombinationen:\n" -" Strg-Q, Strg-W, ESC Beenden\n" -" Strg-P Pause\n" -" Strg-R Film neu starten\n" -" Strg-[ or kp- Ein Bild zurück\n" -" Strg-] or kp+ Ein Bild vorwärts\n" -" Strg-B Hintergrundfarbe ändern\n" -" Strg-A Toggle antialiasing (doesn't work)\n" -" Strg-T Debug. Test the set_variable() function\n" -" Strg-G Debug. Test the get_variable() function\n" -" Strg-M Debug. Test the call_method() function\n" - -#: gui/gnash.cpp:138 plugin/klash/klash.cpp:660 -#, c-format -msgid "Gnash " -msgstr "Gnash " - -#: gui/gnash.cpp:138 -#, c-format -msgid "" -"\n" -"Copyright (C) 2005-2007 Free Software Foundation, Inc.\n" -"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" -"You may redistribute copies of Gnash under the terms of the GNU General\n" -"Public License. For more information, see the file named COPYING.\n" -msgstr "" - -#: gui/gnash.cpp:149 -#, c-format -msgid "" -"Build options %s\n" -" Target: %s\n" -" Renderer: %s GUI: %s Media handler: %s\n" -msgstr "" -"Build-Optionen %s\n" -" Ziel: %s\n" -" Renderer: %s GUI: %s Medienhandler: %s\n" - -#: gui/gnash.cpp:190 plugin/klash/klash.cpp:319 -msgid "Verbose output turned on" -msgstr "Ausführliche Ausgabe eingeschaltet" - -#: gui/gnash.cpp:194 -msgid "Logging to disk enabled" -msgstr "Logging auf Festplatte aktiviert" - -#: gui/gnash.cpp:200 -msgid "No verbose actions; disabled at compile time" -msgstr "Kein ausführlicher Modus für Aktionen. Bei der Kompilierung deaktiviert" - -#: gui/gnash.cpp:207 -msgid "No verbose parsing; disabled at compile time" -msgstr "Kein ausführlicher Modus beim Parsen. Bei der Kompilierung deaktiviert" - -#: gui/gnash.cpp:218 -#, c-format -msgid "Setting root URL to %s" -msgstr "Setze Root-URL auf %s" - -#: gui/gnash.cpp:224 -#, c-format -msgid "Setting base URL to %s" -msgstr "Setze Basis-URL auf %s" - -#: gui/gnash.cpp:229 -#, c-format -msgid "Setting width to %d" -msgstr "Setze Breite auf %d" - -#: gui/gnash.cpp:233 -msgid "Setting debugger ON" -msgstr "Schalte Debugging EIN" - -#: gui/gnash.cpp:238 -msgid "No debugger; disabled at compile time" -msgstr "Kein Debugging. Bei der Kompilierung deaktiviert" - -#: gui/gnash.cpp:243 -#, c-format -msgid "Setting height to %d" -msgstr "Setze Höhe auf %d" - -#: gui/gnash.cpp:279 -#, c-format -msgid "-r must be followed by 0, 1, 2 or 3 (%ld is invalid)" -msgstr "-r erfordert 0, 1, 2, oder 3 (%ld ist ungültig)" - -#: gui/gnash.cpp:314 -msgid "No rendering flags specified, using rcfile" -msgstr "" - -#: gui/gnash.cpp:328 -#, c-format -msgid "Got variable option (%s) on command line" -msgstr "" - -#: gui/gui.cpp:460 -#, c-format -msgid "Frame %d" -msgstr "Bild %d" - -#: gui/Player.cpp:187 -msgid "Sound requested but no sound support compiled in" -msgstr "Audio erfordert, jedoch keine Audiounterstützung bei der Kompilierung aktiviert" - -#: gui/Player.cpp:364 -#, c-format -msgid "fs_callback(%p): %s %s" -msgstr "" - -#: libamf/amf.cpp:179 -#, c-format -msgid "Type is %s" -msgstr "Typ ist %s" - -#: libamf/amf.cpp:185 -msgid "Number is " -msgstr "Zahl ist " - -#: libamf/amf.cpp:189 -#, c-format -msgid "Boolean is %d" -msgstr "Boolean ist %d" - -#: libamf/amf.cpp:202 libamf/amf.cpp:241 -#, c-format -msgid "String is %s" -msgstr "String ist %s" - -#: libamf/amf.cpp:218 -msgid "Undefined element" -msgstr "Undefiniertes Element" - -#: libamf/amf.cpp:234 -msgid "Date is " -msgstr "Datum ist " - -#: libamf/amf.cpp:234 -msgid " nanoseconds" -msgstr " Nanosekunden" - -#: libamf/amf.cpp:884 -#, c-format -msgid "AMF Header size bits (0x%X) out of range" -msgstr "" - -#: libamf/amf.cpp:901 -#, c-format -msgid "AMF header byte is: 0x%X" -msgstr "" - -#: libamf/amf.cpp:904 -#, c-format -msgid "The AMF channel index is %d" -msgstr "" - -#: libamf/amf.cpp:907 -#, c-format -msgid "The header size is %d" -msgstr "" - -#: libamf/amf.cpp:911 -#, c-format -msgid "The packet head is: 0x%s" -msgstr "" - -#: libamf/amf.cpp:918 -#, c-format -msgid "The mystery word is: %d or 0x%s" -msgstr "" - -#: libamf/amf.cpp:927 -#, c-format -msgid "The body size is: %d, or 0x%s" -msgstr "" - -#: libamf/amf.cpp:937 -#, c-format -msgid "The type is: %d, or 0x%s" -msgstr "" - -#: libamf/amf.cpp:956 -#, c-format -msgid "ERROR: Unidentified AMF header data type %d" -msgstr "" - -#: libamf/amf.cpp:964 -#, c-format -msgid "The source/destination is: %d, or 0x%s" -msgstr "" - -#: libamf/amf.cpp:1007 -msgid "AMF body input data is NULL" -msgstr "" - -#: libamf/amf.cpp:1017 -#, c-format -msgid "The packet body is: 0x%s" -msgstr "" - -#: libamf/amf.cpp:1046 -#, c-format -msgid "AMF String length is: %d" -msgstr "" - -#: libamf/amf.cpp:1052 -#, c-format -msgid "AMF String is: %s" -msgstr "" - -#: libamf/amf.cpp:1108 libamf/amf.cpp:1193 -msgid "End of Object definition" -msgstr "" - -#: libamf/amf.cpp:1119 -#, c-format -msgid "The element is: 0x%s" -msgstr "" - -#: libamf/amf.cpp:1124 -#, c-format -msgid "AMF element length is: %d" -msgstr "" - -#: libamf/amf.cpp:1134 -#, c-format -msgid "AMF type is: %s" -msgstr "" - -#: libamf/amf.cpp:1151 -#, c-format -msgid "Number \"%s\" is: 0x%s" -msgstr "" - -#: libamf/amf.cpp:1162 -#, c-format -msgid "Boolean \"%s\" is: %s" -msgstr "" - -#: libamf/amf.cpp:1171 libamf/amf.cpp:1184 -#, c-format -msgid "Variable \"%s\" is: %s" -msgstr "" - -#: libamf/amf.cpp:1181 -msgid "Undefined type" -msgstr "" - -#: libamf/amf.cpp:1207 -#, c-format -msgid "astype_e of value: %d" -msgstr "" - -#: libbase/curl_adapter.cpp:277 libbase/curl_adapter.cpp:529 -#, c-format -msgid "404 response from url %s" -msgstr "404-Antwort von URL %s" - -#: libbase/extension.cpp:124 -#, c-format -msgid "Loading module: %s" -msgstr "Lade Modul: %s" - -#: libbase/extension.cpp:140 -#, c-format -msgid "Initializing module: \"%s\"" -msgstr "Initialisiere Modul: \"%s\"" - -#: libbase/extension.cpp:157 -msgid "Couldn't get class_init symbol" -msgstr "Konnte class_init-Symbol nicht ermitteln" - -#: libbase/extension.cpp:192 -#, c-format -msgid "Scanning directory \"%s\" for plugins" -msgstr "Scanne Ordner \"%s\" für Plugins" - -#: libbase/extension.cpp:196 -#, c-format -msgid "Can't open directory %s" -msgstr "Kann Ordner %s nicht öffnen" - -#: libbase/extension.cpp:218 -#, c-format -msgid "Gnash Plugin name: %s" -msgstr "Gnash-Plugin-Name: %s" - -#: libbase/log.cpp:188 -msgid "TRACE: " -msgstr "TRACE: " - -#: libbase/log.cpp:210 libbase/log.cpp:625 -msgid "DEBUG: " -msgstr "DEBUG: " - -#: libbase/log.cpp:276 -msgid "ERROR: " -msgstr "FEHLER: " - -#: libbase/log.cpp:293 -msgid "ERROR: Unimplemented: " -msgstr "FEHLER: Nicht implementiert" - -#: libbase/log.cpp:310 -msgid "SECURITY: " -msgstr "SICHERHEIT: " - -#: libbase/log.cpp:327 -msgid "MALFORMED SWF: " -msgstr "" - -#: libbase/log.cpp:344 -msgid "ACTIONSCRIPT ERROR: " -msgstr "ACTIONSCRIPT FEHLER: " - -#: libbase/network.cpp:85 -msgid "Could not find a usable WinSock DLL" -msgstr "Konnte keine verwendbare WinSock-DLL finden" - -#: libbase/network.cpp:127 -#, c-format -msgid "Can't connect to privileged port #%d" -msgstr "Kann mit privilegiertem Port %d nicht verbinden" - -#: libbase/network.cpp:149 -#, c-format -msgid "unable to get protocol entry for %s" -msgstr "Erfassen des Protokolleintrags für %s nicht möglich!" - -#: libbase/network.cpp:166 -#, c-format -msgid "unable to create socket: %s" -msgstr "konnte Sockel nicht erstellen: %s" - -#: libbase/network.cpp:173 -msgid "setsockopt SO_REUSEADDR failed" -msgstr "setsockopt SO_REUSEADDR fehlgeschlagen" - -#: libbase/network.cpp:183 -#, c-format -msgid "unable to bind to port %hd: %s" -msgstr "Binden an Port %hd unmöglich: %s" - -#: libbase/network.cpp:192 -#, c-format -msgid "Server bound to service on %s, port %hd, using fd %d" -msgstr "" - -#: libbase/network.cpp:198 -#, c-format -msgid "unable to listen on port: %hd: %s " -msgstr "" - -#: libbase/network.cpp:235 -#, c-format -msgid "Trying to accept net traffic on fd %d" -msgstr "" - -#: libbase/network.cpp:264 -msgid "There is data at the console for stdin" -msgstr "" - -#: libbase/network.cpp:270 -#, c-format -msgid "The accept() socket for fd %d was interupted by a system call" -msgstr "" - -#: libbase/network.cpp:274 -#, c-format -msgid "The accept() socket for fd %d never was available for writing" -msgstr "" - -#: libbase/network.cpp:281 -#, c-format -msgid "The accept() socket for fd %d timed out waiting to write" -msgstr "" - -#: libbase/network.cpp:293 -#, c-format -msgid "unable to accept: %s" -msgstr "Nicht annehmbar: %s" - -#: libbase/network.cpp:298 -#, c-format -msgid "Accepting tcp/ip connection on fd %d" -msgstr "Nehme TCP/IP-Verbindung an fd %d an" - -#: libbase/network.cpp:344 -#, c-format -msgid "Can't connect to privileged port %hd" -msgstr "Verbindung mit privilegiertem Port %hd unmöglich" - -#: libbase/network.cpp:349 -#, c-format -msgid "%s: to host %s at port %d" -msgstr "" - -#: libbase/network.cpp:355 -#, c-format -msgid "The hostname for this machine is %s" -msgstr "Der Hostname für diesen Rechner ist %s" - -#: libbase/network.cpp:357 -msgid "Couldn't get the hostname for this machine" -msgstr "Konnte Hostnamen für diesen Rechner nicht ermitteln" - -#: libbase/network.cpp:371 -#, c-format -msgid "The IP address for this client socket is %s" -msgstr "Die IP-Adresse für diesen Client-Sockel ist %s" - -#: libbase/network.cpp:379 -#, c-format -msgid "unable to create socket : %s" -msgstr "Kann Sockel nicht erstellen: %s" - -#: libbase/network.cpp:401 -#, c-format -msgid "The connect() socket for fd %d was interupted by a system call" -msgstr "Der connect()-Sockel für fd %d wurde durch einen Systemaufruf unterbrochen" - -#: libbase/network.cpp:408 libbase/network.cpp:436 -#, c-format -msgid "The connect() socket for fd %d never was available for writing" -msgstr "" - -#: libbase/network.cpp:419 -#, c-format -msgid "The connect() socket for fd %d timed out waiting to write" -msgstr "" - -#: libbase/network.cpp:429 -#, c-format -msgid "\tport %d at IP %s for fd %d" -msgstr "" - -#: libbase/network.cpp:505 -#, c-format -msgid "Unable to close the socket for fd %d: %s" -msgstr "Kann Sockel für fd %d nicht schließen: %s" - -#: libbase/network.cpp:512 -#, c-format -msgid "Closed the socket on fd %d" -msgstr "Sockel auf fd %d geschlossen" - -#: plugin/klash/klash.cpp:101 -msgid "Play Movie" -msgstr "Wiedergabe" - -#: plugin/klash/klash.cpp:102 -msgid "Pause Movie" -msgstr "Pause" - -#: plugin/klash/klash.cpp:103 -msgid "Stop Movie" -msgstr "Anhalten" - -#: plugin/klash/klash.cpp:104 -msgid "Restart Movie" -msgstr "Film neu starten" - -#: plugin/klash/klash.cpp:105 -msgid "Step Forward" -msgstr "Vorspulen" - -#: plugin/klash/klash.cpp:106 -msgid "Step Backward" -msgstr "Zurückspulen" - -#: plugin/klash/klash.cpp:107 -msgid "Jump Forward" -msgstr "Vorwärts springen" - -#: plugin/klash/klash.cpp:108 -msgid "Jump Backward" -msgstr "Zurück springen" - -#: plugin/klash/klash.cpp:109 -msgid "Quit Gnash" -msgstr "Gnash beenden" - -#: plugin/klash/klash.cpp:147 -msgid "Klash" -msgstr "Klash" - -#: plugin/klash/klash.cpp:148 -msgid "The Gnash Flash player for KDE.\n" -msgstr "Der Gnash-Flash-Player für KDE.\n" - -#: plugin/klash/klash.cpp:309 -#, c-format -msgid "Timer delay set to %d milliseconds" -msgstr "Timer-Verzögerung auf %d Millisekunden gesetzt" - -#: plugin/klash/klash.cpp:323 -msgid "Logging to disk enabled." -msgstr "Logging auf Festplatte aktiviert." - -#: plugin/klash/klash.cpp:342 -#, c-format -msgid "Setting root URL to: %s" -msgstr "Setze Root-URL auf: %s" - -#: plugin/klash/klash.cpp:346 -#, c-format -msgid "Setting width to: %d" -msgstr "Setze Breite auf: %d" - -#: plugin/klash/klash.cpp:350 -#, c-format -msgid "Setting height to: %d" -msgstr "Setze Höhe auf: %d" - -#: plugin/klash/klash.cpp:381 -#, c-format -msgid "-r must be followed by 0, 1 or 2 (%d is invalid)" -msgstr "-r erfordert 0, 1, 2 (%d ist ungültig)" - -#: plugin/klash/klash.cpp:399 -msgid "Got variable option on command line!" -msgstr "" - -#: plugin/klash/klash.cpp:414 -#, c-format -msgid "No input files" -msgstr "Keine Eingabedateien" - -#: plugin/klash/klash.cpp:448 -#, c-format -msgid "error: can't get info about %s\n" -msgstr "Fehler: Kann keine Informationen über %s ermitteln\n" - -#: plugin/klash/klash.cpp:508 -#, c-format -msgid "error: can't create a movie from '%s'\n" -msgstr "Fehler: Kann keinen Film aus '%s' erstellen\n" - -#: plugin/klash/klash.cpp:513 -#, c-format -msgid "error: can't create movie instance\n" -msgstr "" - -#: plugin/klash/klash.cpp:660 -#, c-format -msgid "" -"\n" -"Copyright (C) 2006, 2007 Free Software Foundation, Inc.\n" -"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" -"You may redistribute copies of Gnash under the terms of the GNU General\n" -"Public License. For more information, see the file named COPYING.\n" -msgstr "" - -#: plugin/klash/klash.cpp:673 -msgid "" -"usage: gnash [options] movie_file.swf\n" -"\n" -"Plays a SWF (Shockwave Flash) movie\n" -"options:\n" -"\n" -" -h, --help Print this info.\n" -" -s Scale the movie up/down by the specified factor\n" -" -c Produce a core file instead of letting SDL trap it\n" -" -d num Number of milliseconds to delay in main loop\n" -" -v Be verbose; i.e. print log messages to stdout\n" -" -va Be verbose about movie Actions\n" -" -vp Be verbose about parsing the movie\n" -msgstr "" -"Verwendung: gnash [Optionen] Film_Datei.swf\n" -"\n" -"Wiedergabe eines SWF (Shockwave Flash) Films\n" -"Optionen:\n" -"\n" -" -h, --help Diese Hilfe anziegen.\n" -" -s Film um den angegebenen Faktor skalieren\n" -" -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" -" -d num Number of milliseconds to delay in main loop\n" -" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" -" -va Ausführlicher Modus für Film-Aktionen\n" -" -vp Ausführlicher Modus beim Parsen des Films\n" -"" - -#: plugin/klash/klash.cpp:685 -msgid "" -" -m Specify the texture LOD bias (float, default is -1)\n" -" -x X11 Window ID for display\n" -" -w Produce the disk based debug log\n" -" -1 Play once; exit when/if movie reaches the last frame\n" -" -r <0|1|2> 0 disables rendering & sound (good for batch tests)\n" -" 1 enables rendering & sound (default setting)\n" -" 2 enables rendering & disables sound\n" -" -t Timeout and exit after the specified number of seconds\n" -" -b Bit depth of output window (16 or 32, default is 16)\n" -" --version Print gnash's version number and exit\n" -"\n" -msgstr "" - -#: plugin/klash/klash.cpp:696 -msgid "" -"keys:\n" -" CTRL-Q, CTRL-W, ESC Quit/Exit\n" -" CTRL-P Toggle Pause\n" -" CTRL-R Restart the movie\n" -" CTRL-[ or kp- Step back one frame\n" -" CTRL-] or kp+ Step forward one frame\n" -" CTRL-B Toggle background color\n" -msgstr "" -"Tastenkombinationen:\n" -" Strg-Q, Strg-W, ESC Beenden\n" -" Strg-P Pause\n" -" Strg-R Film neu starten\n" -" Strg-[ or kp- Ein Bild zurück\n" -" Strg-] or kp+ Ein Bild vorwärts\n" -" Strg-B Hintergrundfarbe ändern\n" - -#: plugin/win32/plugin.cpp:259 -#, c-format -msgid "can't get info about %s" -msgstr "" - -#: plugin/win32/plugin.cpp:262 -#, c-format -msgid "Movie %s: width is %d, height is %d, version is %d\n" -msgstr "Film %s: Breite ist %d, Höhe ist %d, Version ist %d\n" - -#: plugin/win32/plugin.cpp:272 -#, c-format -msgid "can't create a movie from %s" -msgstr "kann keinen Film aus %s erstellen" - -#: plugin/win32/plugin.cpp:280 -msgid "can't create movie instance" -msgstr "" - -#: plugin/win32/plugin.cpp:348 -msgid "player: Shutting down as requested..." -msgstr "Player: Beende wie erfordert..." - -#: server/array.cpp:203 -msgid "tried to pop element from back of empty array, returning undef" -msgstr "" - -#: server/array.cpp:219 -msgid "tried to shift element from front of empty array, returning undef" -msgstr "" - -#: server/array.cpp:313 -#, c-format -msgid "Array.slice(%u, %u) called" -msgstr "" - -#: server/array.cpp:343 -#, c-format -msgid "Current array is %s" -msgstr "" - -#: server/array.cpp:476 -#, c-format -msgid "Unhandled sort flags: %d (0x%X)" -msgstr "" - -#: server/array.cpp:486 -msgid "array.sort with unique flag" -msgstr "" - -#: server/array.cpp:512 -#, c-format -msgid "Array(%s).splice(%s) called" -msgstr "" - -#: server/array.cpp:518 -msgid "Array.splice() needs at least 1 argument, call ignored" -msgstr "" - -#: server/array.cpp:534 -#, c-format -msgid "Array.splice: start:%d became %u" -msgstr "" - -#: server/array.cpp:547 -#, c-format -msgid "Array.splice(%d,%d): negative length given, call ignored" -msgstr "" - -#: server/array.cpp:614 -#, c-format -msgid "calling array push, pushing %d values onto back of array" -msgstr "" - -#: server/array.cpp:630 -#, c-format -msgid "calling array unshift, pushing %d values onto front of array" -msgstr "" - -#: server/array.cpp:649 -#, c-format -msgid "calling array pop, result:%s, new array size:%d" -msgstr "" - -#: server/array.cpp:665 -#, c-format -msgid "calling array shift, result:%s, new array size:%d" -msgstr "" - -#: server/array.cpp:682 -#, c-format -msgid "called array reverse, result:%s, new array size:%d" -msgstr "" - -#: server/array.cpp:723 -#, c-format -msgid "array_to_string called, nargs = %d, this_ptr = %p" -msgstr "" - -#: server/array.cpp:726 -#, c-format -msgid "to_string result is: %s" -msgstr "" - -#: server/array.cpp:775 -msgid "" -"More than 2 arguments to Array.slice, and I don't know what to do with " -"them. Ignoring them" -msgstr "" - -#: server/array.cpp:845 -#, c-format -msgid "array_new called, nargs = %d" -msgstr "" - -#: server/array.cpp:878 -#, c-format -msgid "array_new setting object %p in result" -msgstr "" - -#: server/as_environment.cpp:68 -#, c-format -msgid "find_object%s(\"%s\") [ varname = '%s' - current target = '%s' ] failed" -msgstr "" - -#: server/as_environment.cpp:80 -#, c-format -msgid "...but get_variable_raw(%s, ) succeeded!" -msgstr "" - -#: server/as_environment.cpp:157 -#, c-format -msgid "get_variable_raw(\"%s\") failed, returning UNDEFINED" -msgstr "" - -#: server/as_environment.cpp:247 -#, c-format -msgid "Path target '%s' not found while setting %s=%s" -msgstr "" - -#: server/as_environment.cpp:455 -#, c-format -msgid "" -"as_environment::find_target: '%s': invalid path; neither string nor object" -msgstr "" - -#: server/as_environment.cpp:511 -#, c-format -msgid "find_target(%s) called" -msgstr "" - -#: server/as_environment.cpp:516 server/as_environment.cpp:593 -#: server/as_environment.cpp:703 -msgid "Returning m_target (empty path)" -msgstr "" - -#: server/as_environment.cpp:533 server/as_environment.cpp:721 -#, c-format -msgid "Absolute path, start at the root (%p)" -msgstr "" - -#: server/as_environment.cpp:540 server/as_environment.cpp:606 -#: server/as_environment.cpp:728 -msgid "Null path, returning m_target" -msgstr "" - -#: server/as_environment.cpp:551 server/as_environment.cpp:619 -#: server/as_environment.cpp:740 -#, c-format -msgid "invalid path '%s'" -msgstr "" - -#: server/as_environment.cpp:564 server/as_environment.cpp:636 -#: server/as_environment.cpp:757 -#, c-format -msgid "No more subparts, env is %p" -msgstr "" - -#: server/as_environment.cpp:570 -#, c-format -msgid "Invoking get_relative_target(%s) on object %p (%s)" -msgstr "" - -#: server/as_environment.cpp:588 -#, c-format -msgid "find_object_dotsyntax(%s) called" -msgstr "" - -#: server/as_environment.cpp:629 server/as_environment.cpp:750 -#, c-format -msgid "Subpart == %s" -msgstr "" - -#: server/as_environment.cpp:642 server/as_environment.cpp:787 -#, c-format -msgid "Invoking get_member(%s) on object %p" -msgstr "" - -#: server/as_environment.cpp:652 -#, c-format -msgid "Member %s for object %p not found (dotsyntax). Path was %s" -msgstr "" - -#: server/as_environment.cpp:661 -#, c-format -msgid "" -"Element '%s' of variable '%s' not found in object %p nor in _global " -"(dotsyntax)" -msgstr "" - -#: server/as_environment.cpp:671 -#, c-format -msgid "" -"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " -"%s (dotsyntax)" -msgstr "" - -#: server/as_environment.cpp:698 -#, c-format -msgid "find_object_slashsyntax(%s) called" -msgstr "" - -#: server/as_environment.cpp:767 -#, c-format -msgid "'..' element in path '%s' follows a non-character object %p" -msgstr "" - -#: server/as_environment.cpp:776 -#, c-format -msgid "" -"'..' in path '%s' follows a character with no parent (%s : %p) (root is %p)" -msgstr "" - -#: server/as_environment.cpp:797 -#, c-format -msgid "Member %s for object %p not found (slashsyntax). Path was %s" -msgstr "" - -#: server/as_environment.cpp:806 -#, c-format -msgid "" -"Element '%s' of variable '%s' not found in object %p nor in _global " -"(slashsyntax)" -msgstr "" - -#: server/as_environment.cpp:816 -#, c-format -msgid "" -"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " -"%s (slashsyntax)" -msgstr "" - -#: server/as_environment.cpp:1041 -#, c-format -msgid "Max stack count reached (%u) - should abort execution" -msgstr "" - -#: server/as_function.cpp:148 -#, c-format -msgid "Exported interface of function %p has been overwritten (from %p to %p)" -msgstr "" - -#: server/as_function.cpp:197 -msgid "Function.apply() called with no args" -msgstr "" - -#: server/as_function.cpp:217 -#, c-format -msgid "" -"Function.apply() got %d args, expected at most 2 -- discarding the ones in " -"excess" -msgstr "" - -#: server/as_function.cpp:229 -#, c-format -msgid "" -"Second arg of Function.apply is %s (expected array) - considering as call " -"with no args" -msgstr "" - -#: server/as_function.cpp:243 -#, c-format -msgid "" -"Second arg of Function.apply is of type %s, with value %s (expected array) - " -"considering as call with no args" -msgstr "" - -#: server/as_function.cpp:331 -msgid "it's a built-in class" -msgstr "" - -#: server/as_function.cpp:364 -#, c-format -msgid "constructor prototype is %s" -msgstr "" - -#: server/asobj/Date.cpp:416 -msgid "Date constructor called with more than 7 arguments" -msgstr "" - -#: server/asobj/Date.cpp:443 -msgid "Date() failed to initialise from arguments" -msgstr "" - -#: server/asobj/Date.cpp:648 -msgid "Date.setTime needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:655 -msgid "Date.setTime was called with more than one argument" -msgstr "" - -#: server/asobj/Date.cpp:705 -msgid "Failed to set a date." -msgstr "Konnte kein Datum setzen" - -#: server/asobj/Date.cpp:742 -msgid "utc_tm_msec_to_date failed to convert a date" -msgstr "" - -#: server/asobj/Date.cpp:816 -msgid "Date.setFullYear needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:832 -msgid "Date.setFullYear was called with more than three arguments" -msgstr "" - -#: server/asobj/Date.cpp:861 -msgid "Date.setYear needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:881 -msgid "Date.setYear was called with more than three arguments" -msgstr "" - -#: server/asobj/Date.cpp:909 -msgid "Date.setMonth needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:938 -msgid "Date.setMonth was called with more than three arguments" -msgstr "" - -#: server/asobj/Date.cpp:957 -msgid "Date.setDate needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:971 -msgid "Date.setDate was called with more than one argument" -msgstr "" - -#: server/asobj/Date.cpp:995 -msgid "Date.setHours needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:1013 -msgid "Date.setHours was called with more than four arguments" -msgstr "" - -#: server/asobj/Date.cpp:1035 -msgid "Date.setMinutes needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:1052 server/asobj/Date.cpp:1090 -msgid "Date.setMinutes was called with more than three arguments" -msgstr "" - -#: server/asobj/Date.cpp:1072 -msgid "Date.setSeconds needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:1106 -msgid "Date.setMilliseconds needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:1116 -msgid "Date.setMilliseconds was called with more than one argument" -msgstr "" - -#: server/asobj/Date.cpp:1240 -msgid "Date.UTC needs one argument" -msgstr "" - -#: server/asobj/Date.cpp:1260 -msgid "Date.UTC was called with more than 7 arguments" -msgstr "" - -#: server/as_object.cpp:121 -#, c-format -msgid "Caught exception: %s" -msgstr "" - -#: server/as_object.cpp:205 -#, c-format -msgid "Attempt to set read-only property '%s'" -msgstr "" - -#: server/as_object.cpp:216 -#, c-format -msgid "%s: Exception %s. Will create a new member" -msgstr "" - -#: server/as_object.cpp:226 -#, c-format -msgid "Attempt to set read-only property ``%s'' on object ``%p''" -msgstr "" - -#: server/as_object.cpp:249 -#, c-format -msgid "Attempt to initialize read-only property ``%s'' (%s) on object ``%p''" -msgstr "" - -#: server/as_object.cpp:263 -#, c-format -msgid "Attempt to initialize read-only property ``%s'' on object ``%p''" -msgstr "" - -#: server/as_object.cpp:362 -msgid "Circular inheritance chain detected during instanceOf call" -msgstr "" - -#: server/as_object.cpp:383 -msgid "Circular inheritance chain detected during isPrototypeOf call" -msgstr "" - -#: server/as_object.cpp:392 -#, c-format -msgid " members of object %p follow" -msgstr "" - -#: server/as_object.cpp:420 -#, c-format -msgid "" -"Can't set propflags on object property %s (either not found or protected)" -msgstr "" - -#: server/asobj/Global.cpp:80 server/asobj/string.cpp:39 -#, c-format -msgid "%s needs one argument" -msgstr "" - -#: server/asobj/Global.cpp:86 server/asobj/string.cpp:45 -#, c-format -msgid "%s has more than one argument" -msgstr "" - -#: server/asobj/Global.cpp:193 -#, c-format -msgid "%s needs at least one argument" -msgstr "" - -#: server/asobj/Global.cpp:199 -#, c-format -msgid "%s has more than two arguments" -msgstr "" - -#: server/asobj/Global.cpp:311 -#, c-format -msgid "%s needs at least three arguments" -msgstr "" - -#: server/asobj/Global.cpp:317 -#, c-format -msgid "%s has more than four arguments" -msgstr "" - -#: server/asobj/Global.cpp:319 -#, c-format -msgid "%s has four arguments in a SWF version 5 movie" -msgstr "" - -#: server/asobj/Global.cpp:328 -#, c-format -msgid "Invalid call to ASSetPropFlags: object argument is not an object: %s" -msgstr "" - -#: server/asobj/Key.cpp:231 -msgid "key_add_listener needs one argument (the listener object)" -msgstr "" - -#: server/asobj/Key.cpp:238 -msgid "key_add_listener passed a NULL object; ignored" -msgstr "" - -#: server/asobj/Key.cpp:279 -msgid "key_is_down needs one argument (the key code)" -msgstr "" - -#: server/asobj/Key.cpp:303 -msgid "key_remove_listener needs one argument (the listener object)" -msgstr "" - -#: server/asobj/Key.cpp:310 -msgid "key_remove_listener passed a NULL object; ignored" -msgstr "" - -#: server/asobj/LoadVars.cpp:528 -msgid "LoadVars.load() requires at least one argument" -msgstr "" - -#: server/asobj/LoadVars.cpp:537 -msgid "LoadVars.load(): invalid empty url" -msgstr "" - -#: server/asobj/LoadVars.cpp:564 -msgid "LoadVars.sendAndLoad() requires at least two arguments" -msgstr "" - -#: server/asobj/LoadVars.cpp:573 -msgid "LoadVars.sendAndLoad(): invalid empty url" -msgstr "" - -#: server/asobj/LoadVars.cpp:582 -msgid "LoadVars.sendAndLoad(): invalid target (must be a LoadVars object)" -msgstr "" - -#: server/asobj/LocalConnection.cpp:143 -msgid "No connection name specified to LocalConnection.connect()" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:182 -#, c-format -msgid " resolved url: %s" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:221 -msgid "" -"FIXME: MovieClipLoader calling onLoadComplete *before* movie has actually " -"been fully loaded (cheating)" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:261 -#, c-format -msgid "Dispatching %s event to " -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:261 -msgid " listeners" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:274 -#, c-format -msgid "Listener %p doesn't have an %s event to listen for, skipped" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:283 -#, c-format -msgid "Testing call to listener's %s function" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:308 -#, c-format -msgid "MovieClipLoader.loadClip() first argument is not a string (%s)" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:318 -#, c-format -msgid "Could not find target %s" -msgstr "Konnte Ziel '%s' nicht finden" - -#: server/asobj/MovieClipLoader.cpp:324 -#, c-format -msgid "Target is not a sprite instance (%s)" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:330 -#, c-format -msgid "load clip: %s, target is: %p\n" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:344 -#, c-format -msgid "%s: %s" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:388 -msgid "Listener given to MovieClipLoader.addListener() is not an object" -msgstr "" - -#: server/asobj/MovieClipLoader.cpp:406 -msgid "Listener given to MovieClipLoader.removeListener() is not an object" -msgstr "" - -#: server/asobj/NetConnection.cpp:97 -#, c-format -msgid "Gnash is not allowed to open this url: %s" -msgstr "Gnash darf diese URL nicht öffnen: %s" - -#: server/asobj/NetConnection.cpp:104 -#, c-format -msgid "Gnash could not open this url: %s" -msgstr "Gnash konnte diese URL nicht öffnen: %s" - -#: server/asobj/NetConnection.cpp:110 -#, c-format -msgid "Connection etablished to movie: %s" -msgstr "" - -#: server/asobj/NetStream.cpp:85 -#, c-format -msgid "" -"First argument to NetStream constructor doesn't cast to a NetConnection (%s)" -msgstr "" - -#: server/asobj/NetStream.cpp:124 -msgid "NetStream play needs args" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:230 server/asobj/NetStreamGst.cpp:170 -msgid "No NetConnection associated with this NetStream, won't play" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:261 -msgid "libavcodec couldn't find decoder" -msgstr "libavcodec konnte Decoder nicht finden" - -#: server/asobj/NetStreamFfmpeg.cpp:267 -msgid "libavcodec couldn't allocate context" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:274 -msgid "libavcodec failed to initialize codec" -msgstr "libavcodec konnte Codec nicht initialisieren" - -#: server/asobj/NetStreamFfmpeg.cpp:311 server/asobj/NetStreamGst.cpp:491 -#, c-format -msgid "Unsupported video codec %d" -msgstr "Video-Codec %d nicht unterstützt" - -#: server/asobj/NetStreamFfmpeg.cpp:342 server/asobj/NetStreamGst.cpp:530 -#, c-format -msgid "Unsupported audio codec %d" -msgstr "Audio-Codec %d nicht unterstützt" - -#: server/asobj/NetStreamFfmpeg.cpp:367 -msgid "Gnash could not read from movie url" -msgstr "Gnash konnte von Film-URL nicht lesen" - -#: server/asobj/NetStreamFfmpeg.cpp:384 server/asobj/NetStreamGst.cpp:346 -#: server/asobj/NetStreamGst.cpp:363 -#, c-format -msgid "Gnash could not open movie: %s" -msgstr "Gnash konnte Film nicht öffnen: %s" - -#: server/asobj/NetStreamFfmpeg.cpp:403 -#, c-format -msgid "Gnash could not open FLV movie: %s" -msgstr "Gnash konnte FLV-Film nicht öffnen: %s" - -#: server/asobj/NetStreamFfmpeg.cpp:414 -msgid "Failed to initialize FLV video codec" -msgstr "Initialisierung des FLV-Video-Codecs fehlgeschlagen" - -#: server/asobj/NetStreamFfmpeg.cpp:420 -msgid "Failed to initialize FLV audio codec" -msgstr "Initialisierung des FLV-Audio-Codecs fehlgeschlagen" - -#: server/asobj/NetStreamFfmpeg.cpp:450 -#, c-format -msgid "Couldn't determine stream input format from URL %s" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:466 server/asobj/SoundFfmpeg.cpp:136 -#, c-format -msgid "Couldn't open file '%s' for decoding" -msgstr "Konnte Datei '%s' für Dekodierung nicht öffnen" - -#: server/asobj/NetStreamFfmpeg.cpp:476 server/asobj/SoundFfmpeg.cpp:146 -#, c-format -msgid "Couldn't find stream information from '%s', error code: %d" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:515 -#, c-format -msgid "Didn't find a video stream from '%s'" -msgstr "Keinen Video-Stream von '%s' gefunden" - -#: server/asobj/NetStreamFfmpeg.cpp:527 -#, c-format -msgid "Video decoder %d not found" -msgstr "Video-Decoder %d nicht gefunden" - -#: server/asobj/NetStreamFfmpeg.cpp:535 -#, c-format -msgid "Could not open codec %d" -msgstr "Konnte Codec %d nicht öffnen" - -#: server/asobj/NetStreamFfmpeg.cpp:561 -#, c-format -msgid "No available audio decoder %d to process MPEG file: '%s'" -msgstr "Kein verfügbarer Audio-Decoder %d, um MPEG-Datei '%s' zu verarbeiten" - -#: server/asobj/NetStreamFfmpeg.cpp:569 server/asobj/SoundFfmpeg.cpp:201 -#, c-format -msgid "Could not open audio codec %d for %s" -msgstr "Konnte Audio-Codec %d für %s nicht öffnen" - -#: server/asobj/NetStreamFfmpeg.cpp:744 -msgid "read_frame: not audio & video stream" -msgstr "" - -#: server/asobj/NetStreamFfmpeg.cpp:944 -msgid "Problems decoding frame" -msgstr "Probleme bei Dekodierung des Bildes" - -#: server/asobj/NetStreamFfmpeg.cpp:988 -#, c-format -msgid "%s: seeking failed" -msgstr "" - -#: server/asobj/NetStreamGst.cpp:380 -msgid "The gstreamer pipeline element could not be created" -msgstr "" - -#: server/asobj/NetStreamGst.cpp:399 -msgid "The gstreamer audiosink element could not be created" -msgstr "" - -#: server/asobj/NetStreamGst.cpp:413 -msgid "Gstreamer audio element(s) for movie handling could not be created" -msgstr "" - -#: server/asobj/NetStreamGst.cpp:458 -msgid "" -"A gstreamer flashvideo (h.263) decoder element could not be created. You " -"probably need to install gst-ffmpeg." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:472 -msgid "" -"A gstreamer flashvideo (VP6) decoder element could not be created! You " -"probably need to install gst-ffmpeg." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:486 -msgid "" -"A gstreamer flashvideo (ScreenVideo) decoder element could not be created! " -"You probably need to install gst-ffmpeg." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:509 -msgid "" -"This version of Fluendo's mp3 plugin does not support flash streaming " -"sounds, please upgrade to version 0.10.4 or higher." -msgstr "Diese Version des Fluendo-mp3-Plugins unterstützt kein Flash-Audio-Streaming." -"Bitte auf Version 0.10.4 oder höher aktualisieren." - -#: server/asobj/NetStreamGst.cpp:516 -msgid "" -"A gstreamer mp3-decoder element could not be created! You probably need to " -"install a mp3-decoder plugin like gstreamer0.10-mad or gstreamer0.10-fluendo-" -"mp3." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:566 -msgid "" -"Gstreamer source element(s) for video movie handling could not be created, " -"you probably need to install gstreamer0.10-core for fakesrc and capsfilter " -"support." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:571 -msgid "" -"Gstreamer element(s) for video movie handling could not be created, you " -"probably need to install gstreamer0.10-base for decodebin support." -msgstr "" - -#: server/asobj/NetStreamGst.cpp:577 -msgid "" -"Gstreamer element(s) for video movie handling could not be created, you " -"probably need to install gstreamer0.10-base for ffmpegcolorspace and " -"videorate support." -msgstr "" - -#: server/asobj/Number.cpp:221 -#, c-format -msgid "Internal error: Cannot find \".0\" in %s for %.15g" -msgstr "" - -#: server/asobj/Object.cpp:125 -msgid "Too many args to Object constructor" -msgstr "" - -#: server/asobj/Object.cpp:171 -#, c-format -msgid "" -"Invalid call to Object.addProperty(%s) - expected 3 arguments (, " -", )" -msgstr "" - -#: server/asobj/Object.cpp:188 -msgid "Invalid call to Object.addProperty() - empty property name" -msgstr "" - -#: server/asobj/Object.cpp:198 -msgid "Invalid call to Object.addProperty() - getter is not an AS function" -msgstr "" - -#: server/asobj/Object.cpp:208 -msgid "Invalid call to Object.addProperty() - setter is not an AS function" -msgstr "" - -#: server/asobj/Object.cpp:235 -#, c-format -msgid "" -"Invalid call to Object.registerClass(%s) - expected 2 arguments (, " -")" -msgstr "" - -#: server/asobj/Object.cpp:252 -msgid "Invalid call to Object.registerClass() - empty symbol id" -msgstr "" - -#: server/asobj/Object.cpp:262 -msgid "Invalid call to Object.registerClass() - class is not a function" -msgstr "" - -#: server/asobj/Object.cpp:277 -#, c-format -msgid "Object.registerClass(%s, %s): can't find exported symbol" -msgstr "" - -#: server/asobj/Object.cpp:295 -#, c-format -msgid "" -"Object.registerClass(%s, %s): exported symbol is not a MovieClip symbol " -"(sprite_definition), but a %s" -msgstr "" - -#: server/asobj/Object.cpp:316 -msgid "Object.hasOwnProperty() requires one arg" -msgstr "" - -#: server/asobj/Object.cpp:325 -#, c-format -msgid "Invalid call to Object.hasOwnProperty('%s')" -msgstr "" - -#: server/asobj/Object.cpp:339 -msgid "Object.isPropertyEnumerable() requires one arg" -msgstr "" - -#: server/asobj/Object.cpp:348 -#, c-format -msgid "Invalid call to Object.isPropertyEnumerable('%s')" -msgstr "" - -#: server/asobj/Object.cpp:369 -msgid "Object.isPrototypeOf() requires one arg" -msgstr "" - -#: server/asobj/Object.cpp:378 -#, c-format -msgid "First arg to Object.isPrototypeOf(%s) is not an object" -msgstr "" - -#: server/asobj/Sound.cpp:140 -#, c-format -msgid "%s is still testing!" -msgstr "%s testet noch!" - -#: server/asobj/Sound.cpp:143 server/asobj/SoundGst.cpp:229 -#, c-format -msgid "" -"%s: This sound already has a connection? (We try to handle this by deleting " -"the old one...)" -msgstr "" - -#: server/asobj/Sound.cpp:217 server/asobj/Sound.cpp:229 -#, c-format -msgid "%s: only works when ffmpeg, gstreamer or libmad is enabled" -msgstr "%s: funktioniert nur wenn ffmpeg, gstreamer oder libmad aktiviert ist" - -#: server/asobj/Sound.cpp:257 -msgid "-- start sound" -msgstr "" - -#: server/asobj/Sound.cpp:282 -msgid "-- stop sound " -msgstr "" - -#: server/asobj/Sound.cpp:298 server/asobj/Sound.cpp:352 -#, c-format -msgid "import error: resource '%s' is not exported" -msgstr "" - -#: server/asobj/Sound.cpp:312 server/asobj/Sound.cpp:366 -msgid "sound sample is NULL (doesn't cast to sound_sample)" -msgstr "" - -#: server/asobj/Sound.cpp:325 -msgid "-- attach sound" -msgstr "" - -#: server/asobj/Sound.cpp:330 -msgid "attach sound needs one argument" -msgstr "" - -#: server/asobj/Sound.cpp:340 -msgid "attachSound needs a non-empty string" -msgstr "" - -#: server/asobj/Sound.cpp:441 -msgid "loadSound needs 2 arguments" -msgstr "" - -#: server/asobj/Sound.cpp:482 -msgid "set volume of sound needs one argument" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:92 -#, c-format -msgid "%s could not open audio url: %s" -msgstr "%s konnte Audio-URL nicht öffnen: %s" - -#: server/asobj/SoundFfmpeg.cpp:115 -#, c-format -msgid "%s: could not read from audio url: %s" -msgstr "%s: Konnte von Audio-URL nicht lesen: %s" - -#: server/asobj/SoundFfmpeg.cpp:172 -#, c-format -msgid "Non-audio data (type %d) found in file %s" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:181 -#, c-format -msgid "Didn't find a audio stream from '%s'" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:192 -#, c-format -msgid "No available audio decoder %d to process file: '%s'" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:320 -msgid "seeking to start of file (for looping) failed" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:372 -msgid "" -"This sound already has a connection. (We try to handle this by deleting the " -"old one...)" -msgstr "" - -#: server/asobj/SoundFfmpeg.cpp:402 server/asobj/SoundGst.cpp:257 -#, c-format -msgid "%s: seeking to offset failed" -msgstr "" - -#: server/asobj/SoundGst.cpp:108 -#, c-format -msgid "%s: new pad found" -msgstr "" - -#: server/asobj/SoundGst.cpp:122 -#, c-format -msgid "%s: new pad connected" -msgstr "" - -#: server/asobj/SoundGst.cpp:125 -#, c-format -msgid "%s: Non-audio data found in file %s" -msgstr "%s: Nichtaudiodaten in Datei %s gefunden" - -#: server/asobj/SoundGst.cpp:142 -#, c-format -msgid "could not open audio url: %s" -msgstr "konnte Audio-URL nicht öffnen: %s" - -#: server/asobj/SoundGst.cpp:171 -msgid "Could not create gstreamer pipeline element" -msgstr "" - -#: server/asobj/SoundGst.cpp:175 -msgid "Could not create gstreamer audiosink element" -msgstr "" - -#: server/asobj/SoundGst.cpp:198 -msgid "Could not create Gstreamer element(s) for movie handling" -msgstr "Konnte Gstreamer-Element(e) für Film-Verarbeitung nicht erstellen" - -#: server/asobj/SoundMad.cpp:83 -#, c-format -msgid "Gnash could not open audio url: %s" -msgstr "Gnash konnte Audio-URL nicht öffnen: %s" - -#: server/asobj/SoundMad.cpp:120 server/asobj/SoundMad.cpp:207 -#, c-format -msgid "Recoverable error while decoding MP3, MAD error: %s" -msgstr "" - -#: server/asobj/SoundMad.cpp:215 -#, c-format -msgid "Unrecoverable error while decoding MP3, MAD error: %s" -msgstr "" - -#: server/asobj/SoundMad.cpp:272 -msgid "Error in sound sample convertion" -msgstr "" - -#: server/asobj/SoundMad.cpp:351 -msgid "" -"This sound already has a connection? (We try to handle this by deleting the " -"old one...)" -msgstr "" - -#: server/asobj/Stage.cpp:161 -msgid "Stage.addListener() needs one argument" -msgstr "" - -#: server/asobj/Stage.cpp:172 -#, c-format -msgid "" -"Invalid call to Stage.addListener(%s) : first arg doesn't cast to an object" -msgstr "" - -#: server/asobj/Stage.cpp:189 -msgid "Stage.removeListener() needs one argument" -msgstr "" - -#: server/asobj/Stage.cpp:200 -#, c-format -msgid "" -"Invalid call to Stage.removeListener(%s) : first arg doesn't cast to an " -"object" -msgstr "" - -#: server/asobj/string.cpp:364 -msgid "string.slice() called with end < start" -msgstr "" - -#: server/asobj/string.cpp:427 -msgid "string.charCodeAt needs one argument" -msgstr "" - -#: server/asobj/string.cpp:436 -msgid "string.charCodeAt has more than one argument" -msgstr "" - -#: server/asobj/xml.cpp:97 server/asobj/xml.cpp:115 -#, c-format -msgid "Creating XML data at %p" -msgstr "" - -#: server/asobj/xml.cpp:130 -#, c-format -msgid "\tCreating XML data at %p" -msgstr "" - -#: server/asobj/xml.cpp:164 -#, c-format -msgid "set_member 'loaded' (%s) became boolean %d" -msgstr "" - -#: server/asobj/xml.cpp:178 -#, c-format -msgid "\tDeleting XML top level node at %p" -msgstr "" - -#: server/asobj/xml.cpp:311 -msgid "Can't load XML file" -msgstr "" - -#: server/asobj/xml.cpp:338 -msgid "XML data is empty" -msgstr "" - -#: server/asobj/xml.cpp:353 -msgid "Can't parse XML data" -msgstr "" - -#: server/asobj/xml.cpp:381 -#, c-format -msgid "Can't load XML file: %s (security?)" -msgstr "" - -#: server/asobj/xml.cpp:386 -#, c-format -msgid "Loading XML file from url: '%s'" -msgstr "Lade XML-Datei von URL: '%s'" - -#: server/asobj/xml.cpp:397 -#, c-format -msgid "Can't read XML file %s (stream error %d)" -msgstr "Kann XML-Datei %s nicht lesen (Stream-Fehler %d)" - -#: server/asobj/xml.cpp:408 -#, c-format -msgid "Can't read XML file %s (%s)" -msgstr "Kann XML-Datei %s nicht lesen (%s)" - -#: server/asobj/xml.cpp:431 -#, c-format -msgid "%s: FIXME: onLoad Default event handler" -msgstr "" - -#: server/asobj/xml.cpp:569 -#, c-format -msgid "\tCloned the XML object at %p" -msgstr "" - -#: server/asobj/xml.cpp:578 -#, c-format -msgid "First arg given to XML constructor (%s) evaluates to the empty string" -msgstr "" - -#: server/asobj/xml.cpp:603 -#, c-format -msgid "%s: %d args" -msgstr "" - -#: server/asobj/xml.cpp:636 -msgid "no text for element creation" -msgstr "" - -#: server/asobj/xml.cpp:665 -msgid "no text for text node creation" -msgstr "" - -#: server/asobj/xml.cpp:791 -#, c-format -msgid "XML parser: %s" -msgstr "XML-Parser: %s" - -#: server/asobj/xmlnode.cpp:83 server/asobj/xmlnode.cpp:95 -#, c-format -msgid "\tCreating XMLNode data at %p" -msgstr "" - -#: server/asobj/xmlnode.cpp:123 -#, c-format -msgid "\tDeleting XMLNode data %s at %p" -msgstr "" - -#: server/asobj/xmlnode.cpp:151 -#, c-format -msgid "XMLNode %p has no children" -msgstr "" - -#: server/asobj/xmlnode.cpp:192 -msgid "" -"XMLNode.insertBefore(): positional parameter is not a child of this node" -msgstr "" - -#: server/asobj/xmlnode.cpp:295 -#, c-format -msgid "" -"Stringifying node %p with name %s, value %s, %u attributes and %u children" -msgstr "" - -#: server/asobj/xmlnode.cpp:443 -msgid "XMLNode::appendChild() needs at least one argument" -msgstr "" - -#: server/asobj/xmlnode.cpp:452 -msgid "First argument to XMLNode::appendChild() is not an XMLNode" -msgstr "" - -#: server/asobj/xmlnode.cpp:486 -#, c-format -msgid "XMLNode.insertBefore(%s) needs at least two argument" -msgstr "" - -#: server/asobj/xmlnode.cpp:496 -#, c-format -msgid "First argument to XMLNode.insertBefore(%s) is not an XMLNode" -msgstr "" - -#: server/asobj/xmlnode.cpp:507 -#, c-format -msgid "Second argument to XMLNode.insertBefore(%s) is not an XMLNode" -msgstr "" - -#: server/asobj/xmlsocket.cpp:207 -#, c-format -msgid "" -"%s: fd <= 0, returning false (timer not unregistered while socket " -"disconnected?" -msgstr "" - -#: server/asobj/xmlsocket.cpp:222 -#, c-format -msgid "The socket for fd #%d was interupted by a system call" -msgstr "" - -#: server/asobj/xmlsocket.cpp:227 server/asobj/xmlsocket.cpp:403 -#, c-format -msgid "%s: The socket for fd #%d never was available" -msgstr "" - -#: server/asobj/xmlsocket.cpp:243 -#, c-format -msgid "%s: read %d bytes, first msg terminates at %d" -msgstr "" - -#: server/asobj/xmlsocket.cpp:251 -#, c-format -msgid "Packet size is %d at %p" -msgstr "" - -#: server/asobj/xmlsocket.cpp:259 -#, c-format -msgid "%d: Pushing Packet of size " -msgstr "" - -#: server/asobj/xmlsocket.cpp:259 -#, c-format -msgid " at %p" -msgstr "" - -#: server/asobj/xmlsocket.cpp:302 -#, c-format -msgid "Throwing out partial packet %s" -msgstr "" - -#: server/asobj/xmlsocket.cpp:317 -#, c-format -msgid "%s: Returning %d messages" -msgstr "" - -#: server/asobj/xmlsocket.cpp:332 -#, c-format -msgid "%s: socket not initialized" -msgstr "" - -#: server/asobj/xmlsocket.cpp:339 -#, c-format -msgid "%s: sent %d bytes, data was %s" -msgstr "" - -#: server/asobj/xmlsocket.cpp:399 -#, c-format -msgid "" -"%s: The socket for fd #%d was interupted by a system call in this thread" -msgstr "" - -#: server/asobj/xmlsocket.cpp:407 -#, c-format -msgid "%s: There is no data in the socket for fd #%d" -msgstr "" - -#: server/asobj/xmlsocket.cpp:411 -#, c-format -msgid "%s: There is data in the socket for fd #%d" -msgstr "" - -#: server/asobj/xmlsocket.cpp:429 -#, c-format -msgid "XMLSocket.connect(%s) called" -msgstr "" - -#: server/asobj/xmlsocket.cpp:436 -msgid "XMLSocket.connect() called while already connected, ignored" -msgstr "" - -#: server/asobj/xmlsocket.cpp:455 -msgid "XMLSocket.connect(): calling onConnect" -msgstr "" - -#: server/asobj/xmlsocket.cpp:463 -msgid "Setting up timer for calling XMLSocket.onData()" -msgstr "" - -#: server/asobj/xmlsocket.cpp:471 -msgid "Timer set" -msgstr "" - -#: server/asobj/xmlsocket.cpp:512 -#, c-format -msgid "new XMLSocket(%s) called - created object at %p" -msgstr "" - -#: server/asobj/xmlsocket.cpp:532 -#, c-format -msgid "%s: not connected" -msgstr "%s: Nicht verbunden" - -#: server/asobj/xmlsocket.cpp:554 -#, c-format -msgid "" -"Builtin XMLSocket.onData doing nothing as no onXML event is defined on " -"XMLSocket %p" -msgstr "" - -#: server/asobj/xmlsocket.cpp:563 -msgid "Builtin XMLSocket.onData() needs an argument" -msgstr "" - -#: server/asobj/xmlsocket.cpp:573 -#, c-format -msgid "" -"Builtin XMLSocket.onData() called with an argument that resolves to the " -"empty string: %s" -msgstr "" - -#: server/asobj/xmlsocket.cpp:654 -msgid "Still processing data" -msgstr "" - -#: server/asobj/xmlsocket.cpp:664 -msgid "Got " -msgstr "" - -#: server/asobj/xmlsocket.cpp:664 -msgid " messages: " -msgstr "" - -#: server/asobj/xmlsocket.cpp:667 -msgid " Message " -msgstr "" - -#: server/asobj/xmlsocket.cpp:667 -#, c-format -msgid " : %s " -msgstr "" - -#: server/asobj/xmlsocket.cpp:695 -#, c-format -msgid "%s: Couldn't find onData" -msgstr "" - -#: server/as_value.cpp:172 -#, c-format -msgid "[object %p].%s() did not return a string: %s" -msgstr "" - -#: server/as_value.cpp:179 server/as_value.cpp:339 -#, c-format -msgid "get_member(%s) returned false" -msgstr "" - -#: server/as_value.cpp:324 -#, c-format -msgid "[object %p].%s() did not return a number: %s" -msgstr "" - -#: server/as_value.cpp:504 -#, c-format -msgid "" -"MovieClip value is a dangling reference: target '%s' not found (should set " -"to NULL?)" -msgstr "" - -#: server/button_character_instance.cpp:328 -#, c-format -msgid "Unsupported event for button instance: %s" -msgstr "" - -#: server/button_character_instance.cpp:533 -#, c-format -msgid "Unhandled button event %s" -msgstr "" - -#: server/button_character_instance.cpp:623 -#, c-format -msgid "Executing actions for button condition %d" -msgstr "" - -#: server/character.cpp:99 -msgid "Relative drag" -msgstr "" - -#: server/character.cpp:163 -msgid "" -"ActionScript code trying to reference a nonexistent parent with '..' (a " -"nonexistent parent probably only occurs in the root MovieClip). Returning a " -"reference to top parent (probably the root clip)." -msgstr "" - -#: server/character.cpp:305 -#, c-format -msgid "Attempt to set _xscale to %g, refused" -msgstr "" - -#: server/character.cpp:313 -#, c-format -msgid "Attempt to set _xscale to %g, use 0" -msgstr "" - -#: server/character.cpp:349 -#, c-format -msgid "Attempt to set _yscale to %g, refused" -msgstr "" - -#: server/character.cpp:357 -#, c-format -msgid "Attempt to set _yscale to %g, use 0" -msgstr "" - -#: server/character.cpp:475 -msgid "FIXME: can't set _width on character with null or world bounds" -msgstr "" - -#: server/character.cpp:486 -#, c-format -msgid "Setting _width=%g" -msgstr "" - -#: server/character.cpp:520 -msgid "FIXME: can't set _height on character with null or world bounds" -msgstr "" - -#: server/character.cpp:531 -#, c-format -msgid "Setting _height=%g" -msgstr "" - -#: server/dlist.cpp:332 -#, c-format -msgid "move_display_object() -- can't find object at depth %d" -msgstr "" - -#: server/dlist.cpp:688 -#, c-format -msgid "Item %d at depth %d (char id %d, name %s, type %s" -msgstr "" - -#: server/edit_text_character.cpp:850 -#, c-format -msgid "TextField text doesn't fit in its boundaries: width %g, margin %d" -msgstr "" - -#: server/edit_text_character.cpp:909 -#, c-format -msgid "No font for edit_text_character! [%s:%d]" -msgstr "Keine Schriftart für edit_text_character! [%s:%d]" - -#: server/edit_text_character.cpp:937 -#, c-format -msgid "substituting font! font '%s' has no glyphs, using font '%s'" -msgstr "" - -#: server/edit_text_character.cpp:947 -msgid "" -"Current font has no glyphs and I couldn't find another font with glyphs... :(" -msgstr "" - -#: server/edit_text_character.cpp:1072 -#, c-format -msgid "" -"%s -- missing glyph for space char (needed for TAB). Make sure character " -"shapes for font %s are being exported into your SWF file." -msgstr "" - -#: server/edit_text_character.cpp:1111 -#, c-format -msgid "" -"%s -- missing glyph for char %d. Make sure character shapes for font %s are " -"being exported into your SWF file" -msgstr "" - -#: server/edit_text_character.cpp:1230 -msgid "registerTextVariable() no-op call (already registered)" -msgstr "" - -#: server/edit_text_character.cpp:1238 -msgid "string is empty, consider as registered" -msgstr "" - -#: server/edit_text_character.cpp:1254 -#, c-format -msgid "VariableName: %s" -msgstr "" - -#: server/edit_text_character.cpp:1269 -#, c-format -msgid "Variable text Path: %s, Var: %s" -msgstr "" - -#: server/edit_text_character.cpp:1282 -#, c-format -msgid "" -"VariableName associated to text field refer to an unknown target (%s). It is " -"possible that the character will be instantiated later in the SWF stream. " -"Gnash will try to register again on next access." -msgstr "" - -#: server/edit_text_character.cpp:1297 -#, c-format -msgid "target sprite (%p) does have a member named %s" -msgstr "" - -#: server/edit_text_character.cpp:1304 -#, c-format -msgid "" -"target sprite (%p) does NOT have a member named %s (no problem, we'll add it)" -msgstr "" - -#: server/fill_style.cpp:132 -msgid "num gradients 0" -msgstr "" - -#: server/fill_style.cpp:141 -#, c-format -msgid "Unexpected num gradients (%d), expected 1 to 8" -msgstr "" - -#: server/fill_style.cpp:190 -#, c-format -msgid "" -"Bitmap fill specifies '%d' as associated bitmap character id, but that " -"character is not found in the Characters Dictionary. It seems common to find " -"such malformed SWF, so we'll only warn once about this." -msgstr "" - -#: server/fill_style.cpp:246 -#, c-format -msgid "Unknown fill style %d" -msgstr "" - -#: server/fill_style.cpp:282 -#, c-format -msgid "" -"First gradient in a fill_style have position==%d (expected 0). This seems to " -"be common, so will warn only once." -msgstr "" - -#: server/fill_style.cpp:318 -#, c-format -msgid "two gradients in a fill_style have the same position/ratio: %d" -msgstr "" - -#: server/font.cpp:139 -msgid "reading DefineFont" -msgstr "" - -#: server/font.cpp:189 -msgid "reading DefineFont2 or DefineFont3" -msgstr "" - -#: server/font.cpp:224 server/font.cpp:239 -#, c-format -msgid "Glyph %d at offset %u" -msgstr "" - -#: server/font.cpp:275 -msgid "Bad offset in DefineFont2" -msgstr "" - -#: server/font.cpp:342 -msgid "Repeated kerning pair found - ignoring" -msgstr "" - -#: server/font.cpp:364 -msgid "DefineFontInfo2 partially implemented" -msgstr "" - -#: server/font.cpp:395 -#, c-format -msgid "reading code table at offset %lu" -msgstr "" - -#: server/font.cpp:429 -#, c-format -msgid "get_glyph_index(%u) returning %d" -msgstr "" - -#: server/font.cpp:436 -#, c-format -msgid "get_glyph_index(%u) returning -1" -msgstr "" - -#: server/font.cpp:456 -#, c-format -msgid "empty advance table in font %s" -msgstr "" - -#: server/font.cpp:523 -msgid "" -"error reading cache file in font::input_cached_data(): glyph count mismatch" -msgstr "" - -#: server/impl.cpp:89 -#, c-format -msgid "Base url set to: %s" -msgstr "Setze Basis-URL auf: %s" - -#: server/impl.cpp:254 -#, c-format -msgid "get_movie_info(): can't open '%s'" -msgstr "get_movie_info(): kann '%s' nicht öffnen" - -#: server/impl.cpp:269 -#, c-format -msgid "get_movie_info(): file '%s' does not start with a SWF header" -msgstr "" - -#: server/impl.cpp:279 -msgid "" -"get_movie_info(): can't read zipped SWF data; TU_CONFIG_LINK_TO_ZLIB is 0" -msgstr "" - -#: server/impl.cpp:339 -msgid "Can't read jpeg" -msgstr "Kann jpeg nicht lesen!" - -#: server/impl.cpp:364 -msgid "Can't read file header" -msgstr "Kann Kopfteil der Datei nicht lesen!" - -#: server/impl.cpp:441 -msgid "" -"Requested to keep from completely loading a movie, but the movie in question " -"is a jpeg, for which we don't yet have the concept of a 'loading thread'" -msgstr "" - -#: server/impl.cpp:450 -#, c-format -msgid "unknown file type (%s)" -msgstr "unbekannter Dateityp (%s)" - -#: server/impl.cpp:466 -#, c-format -msgid "failed to open '%s'; can't create movie" -msgstr "Konnte '%s' nicht öffnen. Kann Film nicht erstellen" - -#: server/impl.cpp:471 -#, c-format -msgid "streamProvider opener can't open '%s'" -msgstr "streamProvider opener kann '%s' nicht öffnen" - -#: server/impl.cpp:490 -#, c-format -msgid "note: couldn't open cache file '%s'" -msgstr "Bemerkung: Konnte Cache-Datei '%s' nicht öffnen" - -#: server/impl.cpp:499 -#, c-format -msgid "Loading cache file %s" -msgstr "Lade Cache-Datei %s" - -#: server/impl.cpp:627 -msgid "extern movie deleted" -msgstr "" - -#: server/impl.cpp:677 -#, c-format -msgid "Movie %s already in library" -msgstr "Film %s bereits in der Bibliothek" - -#: server/impl.cpp:693 -#, c-format -msgid "Couldn't load library movie '%s'" -msgstr "" - -#: server/impl.cpp:700 -#, c-format -msgid "Movie %s (SWF%d) added to library" -msgstr "" - -#: server/impl.cpp:739 -#, c-format -msgid "%s: couldn't create instance" -msgstr "" - -#: server/impl.cpp:791 -msgid "precompute_cached_data can't create instance of movie" -msgstr "" - -#: server/impl.cpp:840 -msgid "loop back; jumping to frame " -msgstr "" - -#: server/parser/action_buffer.cpp:105 -msgid "process_decl_dict(" -msgstr "" - -#: server/parser/action_buffer.cpp:105 -msgid ", " -msgstr "" - -#: server/parser/action_buffer.cpp:105 -#, c-format -msgid "" -"): decl_dict was already processed at %d. Skipping (or maybe we should " -"append, or replace?)." -msgstr "" - -#: server/parser/action_buffer.cpp:133 -msgid "action buffer dict length exceeded" -msgstr "" - -#: server/parser/BitmapMovieDefinition.cpp:64 -#, c-format -msgid "Creating a shape_definition wrapping a %g x %g bitmap" -msgstr "" - -#: server/parser/button_character_def.cpp:58 -msgid "-- actions in button\n" -msgstr "" - -#: server/parser/button_character_def.cpp:99 -#, c-format -msgid "" -"button record refer to character with id %d, which is not found in the chars " -"dictionary" -msgstr "" - -#: server/parser/button_character_def.cpp:225 -msgid "button sound options: " -msgstr "" - -#: server/parser/button_character_def.cpp:275 -#, c-format -msgid "Next Button2 actionOffset (%u) points past the end of tag" -msgstr "" - -#: server/parser/button_character_def.cpp:301 -#, c-format -msgid "" -"Next action offset (%u) in Button2ActionConditions points past the end of tag" -msgstr "" - -#: server/parser/edit_text_character_def.cpp:120 -#, c-format -msgid "error: text style with undefined font; font_id = %d" -msgstr "" - -#: server/parser/morph2_character_def.cpp:243 -#, c-format -msgid "morph fill style type = 0x%X" -msgstr "" - -#: server/parser/morph2_character_def.cpp:253 -msgid "morph fill style begin color: " -msgstr "" - -#: server/parser/morph2_character_def.cpp:255 -msgid "morph fill style end color: " -msgstr "" - -#: server/parser/morph2_character_def.cpp:303 -#, c-format -msgid "morph fsr: num_gradients = %d" -msgstr "" - -#: server/parser/morph2_character_def.cpp:319 -#, c-format -msgid "morph fsr bitmap_char = %d" -msgstr "" - -#: server/parser/morph2_character_def.cpp:387 -msgid "Different number of paths in start (" -msgstr "" - -#: server/parser/morph2_character_def.cpp:388 -msgid ") and end (" -msgstr "" - -#: server/parser/morph2_character_def.cpp:389 -msgid ") shapes of a morph" -msgstr "" - -#: server/parser/morph2_character_def.cpp:395 -#, c-format -msgid "Different number of edges in start (%u) and end (%u) shapes of a morph" -msgstr "" - -#: server/parser/movie_def_impl.cpp:280 -#, c-format -msgid "import error: resource '%s' is not exported from movie '%s'" -msgstr "" - -#: server/parser/movie_def_impl.cpp:297 server/swf/tag_loaders.cpp:1081 -#, c-format -msgid "import error: resource '%s' from movie '%s' has unknown type" -msgstr "" - -#: server/parser/movie_def_impl.cpp:326 -#, c-format -msgid "get_character_def(): character_id %d is still waiting to be imported" -msgstr "" - -#: server/parser/movie_def_impl.cpp:348 -#, c-format -msgid "get_font(): font_id %d is still waiting to be imported" -msgstr "" - -#: server/parser/movie_def_impl.cpp:395 -#, c-format -msgid "Add sound sample %d" -msgstr "" - -#: server/parser/movie_def_impl.cpp:423 -msgid "gnash::movie_def_impl::read() -- file does not start with a SWF header" -msgstr "" - -#: server/parser/movie_def_impl.cpp:430 -#, c-format -msgid "version = %d, file_length = %d" -msgstr "" - -#: server/parser/movie_def_impl.cpp:436 -#, c-format -msgid "SWF%d is not fully supported, trying anyway but don't expect it to work" -msgstr "" - -#: server/parser/movie_def_impl.cpp:443 -msgid "" -"movie_def_impl::read(): unable to read zipped SWF data; " -"TU_CONFIG_LINK_TO_ZLIB is 0" -msgstr "" - -#: server/parser/movie_def_impl.cpp:449 -msgid "file is compressed" -msgstr "" - -#: server/parser/movie_def_impl.cpp:477 -#, c-format -msgid "frame rate = %f, frames = " -msgstr "" - -#: server/parser/movie_def_impl.cpp:505 -msgid "Could not start loading thread" -msgstr "" - -#: server/parser/movie_def_impl.cpp:657 -msgid "cache file does not have the correct format; skipping" -msgstr "" - -#: server/parser/movie_def_impl.cpp:663 -#, c-format -msgid "cached data is version %d, but we require version %d; skipping" -msgstr "" - -#: server/parser/movie_def_impl.cpp:678 -msgid "error reading cache file (characters); skipping" -msgstr "" - -#: server/parser/movie_def_impl.cpp:683 -msgid "unexpected eof reading cache file (characters); skipping" -msgstr "" - -#: server/parser/movie_def_impl.cpp:698 -msgid "" -"sync error in cache file (reading characters). Skipping rest of cache data." -msgstr "" - -#: server/parser/movie_def_impl.cpp:732 -#, c-format -msgid "Character %d @ %p" -msgstr "" - -#: server/parser/movie_def_impl.cpp:744 -#, c-format -msgid "Could not find char %d, dump is:" -msgstr "" - -#: server/parser/movie_def_impl.cpp:782 -#, c-format -msgid "Ensure load of frame %u/%u (last loaded is: %u)" -msgstr "" - -#: server/parser/movie_def_impl.cpp:787 -msgid "Could not advance to frame " -msgstr "" - -#: server/parser/movie_def_impl.cpp:796 -#, c-format -msgid "" -"No more frames to load. Framecount: %u, Lastloaded: %u, next to load: %u" -msgstr "" - -#: server/parser/movie_def_impl.cpp:852 -#, c-format -msgid "" -"last expected SHOWFRAME in SWF stream '%s' isn't followed by an END (%d)." -msgstr "" - -#: server/parser/movie_def_impl.cpp:871 -#, c-format -msgid "*** no tag loader for type %d (movie)" -msgstr "" - -#: server/parser/movie_def_impl.cpp:889 -msgid "" -"Hit stream-end tag, but not at the advertised SWF end; stopping for safety." -msgstr "" - -#: server/parser/movie_def_impl.cpp:905 -#, c-format -msgid "Parsing exception: %s" -msgstr "" - -#: server/parser/movie_def_impl.cpp:911 -msgid " action blocks and " -msgstr "" - -#: server/parser/movie_def_impl.cpp:911 -msgid " init action blocks are NOT followed by a SHOWFRAME tag" -msgstr "" - -#: server/parser/movie_def_impl.cpp:921 -msgid " frames advertised in header, but only " -msgstr "" - -#: server/parser/movie_def_impl.cpp:921 -msgid " SHOWFRAME tags found in stream. Updating total frames count" -msgstr "" - -#: server/parser/movie_def_impl.cpp:947 -#, c-format -msgid "number of SHOWFRAME tags in SWF stream '%s' (" -msgstr "" - -#: server/parser/movie_def_impl.cpp:949 -msgid ") exceeds the advertised number in header (" -msgstr "" - -#: server/parser/movie_def_impl.cpp:951 -msgid ")." -msgstr "" - -#: server/parser/movie_def_impl.cpp:960 -#, c-format -msgid "Loaded frame %u/%u" -msgstr "" - -#: server/parser/movie_def_impl.cpp:990 -#, c-format -msgid "get_exported_resource called, frame count=%u" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1026 -msgid "frame load advancement (from " -msgstr "" - -#: server/parser/movie_def_impl.cpp:1027 -msgid " to " -msgstr "" - -#: server/parser/movie_def_impl.cpp:1027 server/parser/sprite_definition.h:314 -msgid ")" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1036 -#, c-format -msgid "" -"No frame progress in movie %s after %lu milliseconds (%lu microseconds = %lu " -"iterations), giving up on get_exported_resource(%s): circular IMPORTS?" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1050 -#, c-format -msgid "no frame progress at iteration %lu" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1057 -#, c-format -msgid "At end of stream, still no '%s' symbol found in m_exports (" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1058 -msgid " entries in it, follow)" -msgstr "" - -#: server/parser/movie_def_impl.cpp:1064 -#, c-format -msgid "" -"We haven't finished loading (loading frame %u), and m_exports.get returned " -"no entries, sleeping a bit and trying again" -msgstr "" - -#: server/parser/shape_character_def.cpp:85 -#, c-format -msgid " read_fill_styles: count = %u" -msgstr "" - -#: server/parser/shape_character_def.cpp:120 -#, c-format -msgid " read_line_styles: count = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:130 -#, c-format -msgid " read_line_styles: count2 = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:180 -#, c-format -msgid " bound rect: %s" -msgstr "" - -#: server/parser/shape_character_def.cpp:192 -#, c-format -msgid " shape_character_def read: nfillbits = %d, nlinebits = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:249 -#, c-format -msgid " shape_character read: moveto %4g %4g" -msgstr "" - -#: server/parser/shape_character_def.cpp:268 -#, c-format -msgid " shape_character read: fill0 (left) = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:288 -#, c-format -msgid " shape_character read: fill1 (right) = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:308 -#, c-format -msgid " shape_character_read: line = %d" -msgstr "" - -#: server/parser/shape_character_def.cpp:319 -msgid " shape_character read: more fill styles" -msgstr "" - -#: server/parser/shape_character_def.cpp:355 -#, c-format -msgid " shape_character read: curved edge = %4g %4g - %4g %4g - %4g %4g" -msgstr "" - -#: server/parser/shape_character_def.cpp:386 -#, c-format -msgid " shape_character_read: straight edge = %4g %4g - %4g %4g" -msgstr "" - -#: server/parser/sprite_definition.cpp:42 -#, c-format -msgid "Instantiating sprite_def %p" -msgstr "" - -#: server/parser/sprite_definition.cpp:81 -msgid " frames = " -msgstr "" - -#: server/parser/sprite_definition.cpp:95 -msgid "DefineSprite tag inside sprite definition" -msgstr "" - -#: server/parser/sprite_definition.cpp:106 -msgid " show_frame " -msgstr "" - -#: server/parser/sprite_definition.cpp:107 -#: server/parser/sprite_definition.h:314 server/sprite_instance.cpp:1665 -#: server/sprite_instance.cpp:2293 server/sprite_instance.cpp:2317 -#: server/vm/ActionExec.cpp:429 -msgid "/" -msgstr "" - -#: server/parser/sprite_definition.cpp:108 -msgid " (sprite)" -msgstr "" - -#: server/parser/sprite_definition.cpp:121 -msgid "" -"last SHOWFRAME of a DEFINESPRITE tag isn't followed by an END. Seeking to " -"next END tag." -msgstr "" - -#: server/parser/sprite_definition.cpp:142 -#, c-format -msgid "*** no tag loader for type %d (sprite)" -msgstr "" - -#: server/parser/sprite_definition.cpp:150 -msgid " -- sprite END --" -msgstr "" - -#: server/parser/sprite_definition.cpp:208 -#, c-format -msgid "Registered class %p for sprite_def %p" -msgstr "" - -#: server/parser/sprite_definition.cpp:210 -msgid " Exported interface: " -msgstr "" - -#: server/parser/sprite_definition.h:159 -msgid "add_font tag appears in sprite tags" -msgstr "" - -#: server/parser/sprite_definition.h:180 -msgid "add_bitmap_character_def appears in sprite tags" -msgstr "" - -#: server/parser/sprite_definition.h:194 -msgid "add sam appears in sprite tags" -msgstr "" - -#: server/parser/sprite_definition.h:217 -msgid "Can't export from sprite" -msgstr "" - -#: server/parser/sprite_definition.h:246 -msgid "add_character tag appears in sprite tags" -msgstr "" - -#: server/parser/sprite_definition.h:276 -msgid "sprite_definition::add_init_action called! Ignored" -msgstr "" - -#: server/parser/sprite_definition.h:312 -msgid "sprite_definition: loading of frame " -msgstr "" - -#: server/parser/sprite_definition.h:313 -msgid " requested (we are at " -msgstr "" - -#: server/parser/text_character_def.cpp:29 -msgid "begin text records" -msgstr "" - -#: server/parser/text_character_def.cpp:43 -msgid "end text records" -msgstr "" - -#: server/parser/text_character_def.cpp:62 -msgid " text style change" -msgstr "" - -#: server/parser/text_character_def.cpp:71 -#, c-format -msgid " has_font: font id = %d" -msgstr "" - -#: server/parser/text_character_def.cpp:86 -msgid " has_color" -msgstr "" - -#: server/parser/text_character_def.cpp:94 -#, c-format -msgid " has_x_offset = %g" -msgstr "" - -#: server/parser/text_character_def.cpp:107 -#, c-format -msgid " has_y_offset = %g" -msgstr "" - -#: server/parser/text_character_def.cpp:119 -#, c-format -msgid " text_height = %g" -msgstr "" - -#: server/parser/text_character_def.cpp:142 -#, c-format -msgid " glyph_records: count = %d" -msgstr "" - -#: server/PropertyList.cpp:93 -#, c-format -msgid "Property %s is read-only, not setting it to %s" -msgstr "" - -#: server/sprite_instance.cpp:138 -#, c-format -msgid "" -"attachMovie called with wrong number of arguments expected 3 to 4, got (%d) " -"- returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:152 -#, c-format -msgid "attachMovie: '%s': no such exported resource - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:162 -#, c-format -msgid "" -"attachMovie: exported resource '%s' is not a movie definition (%s) -- " -"returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:186 -#, c-format -msgid "Could not attach character at depth %d" -msgstr "" - -#: server/sprite_instance.cpp:205 -#, c-format -msgid "Fourth argument of attachMovie doesn't cast to an object (%s)" -msgstr "" - -#: server/sprite_instance.cpp:240 -#, c-format -msgid "createEmptyMovieClip needs 2 args, but %d given, returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:250 -#, c-format -msgid "createEmptyMovieClip takes 2 args, but %d given, discarding the excess" -msgstr "" - -#: server/sprite_instance.cpp:288 -#, c-format -msgid "%s.swapDepths() needs one arg" -msgstr "" - -#: server/sprite_instance.cpp:297 -#, c-format -msgid "%s.swapDepths(%s): won't swap a clip below depth %d (%d)" -msgstr "" - -#: server/sprite_instance.cpp:309 -#, c-format -msgid "%s.swapDepths(%s): this sprite has no parent, swapping depth of root?" -msgstr "" - -#: server/sprite_instance.cpp:327 -#, c-format -msgid "%s.swapDepths(%s): invalid call, swapping to self?" -msgstr "" - -#: server/sprite_instance.cpp:337 -#, c-format -msgid "" -"%s.swapDepths(%s): invalid call, the two characters don't have the same " -"parent" -msgstr "" - -#: server/sprite_instance.cpp:354 -#, c-format -msgid "" -"%s.swapDepths(%s): first argument invalid (neither a sprite nor a number)" -msgstr "" - -#: server/sprite_instance.cpp:389 -msgid "MovieClip.duplicateMovieClip() needs 2 or 3 args" -msgstr "" - -#: server/sprite_instance.cpp:420 -msgid "sprite_goto_and_play needs one arg" -msgstr "" - -#: server/sprite_instance.cpp:439 -msgid "sprite_goto_and_stop needs one arg" -msgstr "" - -#: server/sprite_instance.cpp:503 -#, c-format -msgid "" -"MovieClip.loadMovie() expected 1 or 2 args, got %d - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:515 -#, c-format -msgid "" -"First argument of MovieClip.loadMovie(%s) evaluates to an empty string - " -"returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:528 -#, c-format -msgid "" -"second argument of MovieClip.loadMovie(%s, ) will be discarded" -msgstr "" - -#: server/sprite_instance.cpp:551 -#, c-format -msgid "" -"MovieClip.loadVariables() expected 1 or 2 args, got %d - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:563 -#, c-format -msgid "" -"First argument passed to MovieClip.loadVariables(%s) evaluates to an empty " -"string - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:627 -#, c-format -msgid "Can't find hitTest target %s" -msgstr "" - -#: server/sprite_instance.cpp:665 -#, c-format -msgid "hitTest() called with %u args" -msgstr "" - -#: server/sprite_instance.cpp:684 -#, c-format -msgid "createTextField called with %d args, expected 6 - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:693 -msgid "First argument of createTextField is not a string - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:703 -msgid "" -"Second argument of createTextField is not a number - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:713 -msgid "Third argument of createTextField is not a number - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:723 -msgid "" -"Fourth argument of createTextField is not a number - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:733 server/sprite_instance.cpp:743 -msgid "Fifth argument of createTextField is not a number - returning undefined" -msgstr "" - -#: server/sprite_instance.cpp:798 -#, c-format -msgid "MovieClip.getBounds(%s): invalid call, first arg must be a sprite" -msgstr "" - -#: server/sprite_instance.cpp:879 -msgid "MovieClip.lineTo() takes two args" -msgstr "" - -#: server/sprite_instance.cpp:900 -msgid "MovieClip.moveTo() takes two args" -msgstr "" - -#: server/sprite_instance.cpp:963 -msgid "MovieClip.curveTo() takes four args" -msgstr "" - -#: server/sprite_instance.cpp:1624 -#, c-format -msgid "" -"A sprite member (%s) clashes with the name of an existing character in its " -"display list. The member will hide the character" -msgstr "" - -#: server/sprite_instance.cpp:1664 server/sprite_instance.cpp:2291 -#: server/sprite_instance.cpp:2316 -msgid "Executing " -msgstr "" - -#: server/sprite_instance.cpp:1664 -msgid " actions in frame " -msgstr "" - -#: server/sprite_instance.cpp:1665 server/sprite_instance.cpp:2293 -#: server/sprite_instance.cpp:2317 -#, c-format -msgid " of sprite %s" -msgstr "" - -#: server/sprite_instance.cpp:1714 -#, c-format -msgid "call_frame('%s') -- invalid frame" -msgstr "" - -#: server/sprite_instance.cpp:1828 -msgid "Can't clone root of the movie" -msgstr "" - -#: server/sprite_instance.cpp:1834 -#, c-format -msgid "%s parent is not a sprite, can't clone" -msgstr "" - -#: server/sprite_instance.cpp:1890 -#, c-format -msgid "" -"clone_display_object(%s, %s, %d): could not find a character named %s to " -"clone" -msgstr "" - -#: server/sprite_instance.cpp:1986 -#, c-format -msgid "sprite[%p]::set_member(%s, %s)" -msgstr "" - -#: server/sprite_instance.cpp:2007 -msgid "it's a Text Variable" -msgstr "" - -#: server/sprite_instance.cpp:2015 -msgid "it's NOT a Text Variable" -msgstr "" - -#: server/sprite_instance.cpp:2029 server/sprite_instance.cpp:2055 -msgid "NULL path_to_var passed to set_variable()" -msgstr "" - -#: server/sprite_instance.cpp:2034 server/sprite_instance.cpp:2060 -#, c-format -msgid "NULL passed to set_variable('%s', NULL)" -msgstr "" - -#: server/sprite_instance.cpp:2088 -#, c-format -msgid "" -"sprite '%s' ::advance_sprite is at frame %u/%u - onload called: %d - " -"oldDIsplayList has %d elements" -msgstr "" - -#: server/sprite_instance.cpp:2098 -msgid "sprite_instance::advance_sprite we're in PLAY mode" -msgstr "" - -#: server/sprite_instance.cpp:2106 -msgid "on_event_load called, incrementing" -msgstr "" - -#: server/sprite_instance.cpp:2110 -#, c-format -msgid "after increment we are at frame %u/%u" -msgstr "" - -#: server/sprite_instance.cpp:2124 -msgid "sprite_instance::advance_sprite we're in STOP mode" -msgstr "" - -#: server/sprite_instance.cpp:2191 -msgid "Calling ONLOAD event" -msgstr "" - -#: server/sprite_instance.cpp:2292 -msgid " *init* tags in frame " -msgstr "" - -#: server/sprite_instance.cpp:2316 -msgid " tags in frame " -msgstr "" - -#: server/sprite_instance.cpp:2400 -#, c-format -msgid "sprite %s ::goto_frame(" -msgstr "" - -#: server/sprite_instance.cpp:2400 -msgid ") - current frame is " -msgstr "" - -#: server/sprite_instance.cpp:2440 -msgid "GotoFrame(" -msgstr "" - -#: server/sprite_instance.cpp:2440 -msgid ") targets a yet to be loaded frame (" -msgstr "" - -#: server/sprite_instance.cpp:2441 -msgid "" -") loaded). We'll wait for it but a more correct form is explicitly using " -"WaitForFrame instead" -msgstr "" - -#: server/sprite_instance.cpp:2531 -#, c-format -msgid "sprite_instance::goto_labeled_frame('%s') unknown label" -msgstr "" - -#: server/sprite_instance.cpp:2620 -#, c-format -msgid "sprite_instance::add_display_object(): unknown cid = %d" -msgstr "" - -#: server/sprite_instance.cpp:2706 -#, c-format -msgid "sprite::replace_display_object(): unknown cid = %d" -msgstr "" - -#: server/sprite_instance.cpp:2780 -#, c-format -msgid "Frame %u/%u, bytes %u/%u" -msgstr "" - -#: server/sprite_instance.cpp:3014 -#, c-format -msgid "%s doesn't even check for a char" -msgstr "" - -#: server/sprite_instance.cpp:3155 -#, c-format -msgid "Constructing sprite '%s'" -msgstr "" - -#: server/sprite_instance.cpp:3205 -#, c-format -msgid "Unloading sprite '%s'" -msgstr "" - -#: server/sprite_instance.cpp:3227 server/vm/action.cpp:140 -#, c-format -msgid "can't create movie_definition for %s" -msgstr "" - -#: server/sprite_instance.cpp:3236 -#, c-format -msgid "can't create extern movie_instance for %s" -msgstr "" - -#: server/sprite_instance.cpp:3306 -msgid "MovieClip.loadVariables() with GET/POST won't append vars for now" -msgstr "" - -#: server/sprite_instance.cpp:3331 -#, c-format -msgid "Setting variable '%s' to value '%s'" -msgstr "" - -#: server/sprite_instance.cpp:3374 -#, c-format -msgid "" -"removeMovieClip(%s): sprite depth (%d) out of the 'dynamic' zone " -"[0..1048575], won't remove" -msgstr "" - -#: server/sprite_instance.cpp:3391 -#, c-format -msgid "Can't remove sprite %s as it has no parent" -msgstr "" - -#: server/StreamProvider.cpp:91 server/StreamProvider.cpp:132 -#, c-format -msgid "Unsupported network connection %s" -msgstr "" - -#: server/StreamProvider.cpp:105 -msgid "POST data discarded while getting a stream from file: uri" -msgstr "" - -#: server/swf/DefineFontAlignZonesTag.cpp:53 -#, c-format -msgid "DefineFontAlignZones tag references an undefined font %d" -msgstr "" - -#: server/swf/DefineFontAlignZonesTag.cpp:67 -#, c-format -msgid " DefinFontAlignZones: font=%d, flags=%d" -msgstr "" - -#: server/swf/DefineFontAlignZonesTag.cpp:71 -msgid "FIXME: DefineFontAlignZoneTag unfinished" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:47 -#, c-format -msgid " char_id = %d" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:48 -#, c-format -msgid " depth = %d (%d)" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:58 server/swf/PlaceObject2Tag.cpp:272 -msgid " cxform:" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:80 -#, c-format -msgid " actions: flags = 0x%X" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:101 -#, c-format -msgid "" -"swf_event::read(), even_length = %u, but only %lu bytes left to the end of " -"current tag. Breaking for safety." -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:126 server/swf/PlaceObject2Tag.cpp:138 -#, c-format -msgid "swf_event::read(), event_length = %d, but read " -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:129 -msgid ". Breaking for safety." -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:141 -msgid ". Skipping excessive bytes." -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:177 -#, c-format -msgid "" -"swf_event::read() -- unknown / unhandled event type received, flags = 0x%x" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:263 -#, c-format -msgid " PLACEOBJECT2: depth = %d (%d)" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:264 -#, c-format -msgid " char id = %d" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:267 -msgid " mat:" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:275 -#, c-format -msgid " ratio: %f" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:276 -#, c-format -msgid " name = %s" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:277 -#, c-format -msgid " clip_depth = %d (%d)" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:278 -#, c-format -msgid " m_place_type: %d" -msgstr "" - -#: server/swf/PlaceObject2Tag.cpp:383 -#, c-format -msgid "reverse REPLACE can't find previous replace or add tag(%d, %d)" -msgstr "" - -#: server/swf/tag_loaders.cpp:142 -msgid "anchor-labeled frame not supported" -msgstr "" - -#: server/swf/tag_loaders.cpp:147 -msgid "frame_label_loader end position " -msgstr "" - -#: server/swf/tag_loaders.cpp:147 -msgid ", read up to " -msgstr "" - -#: server/swf/tag_loaders.cpp:182 -#, c-format -msgid " set_background_color: (%d %d %d)" -msgstr "" - -#: server/swf/tag_loaders.cpp:211 -msgid " jpeg_tables_loader" -msgstr "" - -#: server/swf/tag_loaders.cpp:249 server/swf/tag_loaders.cpp:297 -msgid "gnash is not linked to jpeglib -- can't load jpeg image data" -msgstr "Gnash ist nicht mit jpeglib verlinkt -- kann jpeg-Bilddaten nicht laden" - -#: server/swf/tag_loaders.cpp:261 -#, c-format -msgid "DEFINEBITS: Duplicate id (%d) for bitmap character - discarding it" -msgstr "" - -#: server/swf/tag_loaders.cpp:281 -#, c-format -msgid " define_bits_jpeg2_loader: charid = %d pos = %lx" -msgstr "" - -#: server/swf/tag_loaders.cpp:306 -#, c-format -msgid "DEFINEBITSJPEG2: Duplicate id (%d) for bitmap character - discarding it" -msgstr "" - -#: server/swf/tag_loaders.cpp:342 -#, c-format -msgid "inflate_wrapper() inflateInit() returned %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:358 -#, c-format -msgid "inflate_wrapper() inflate() returned %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:365 -#, c-format -msgid "inflate_wrapper() inflateEnd() return %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:382 -#, c-format -msgid " define_bits_jpeg3_loader: charid = %d pos = %lx" -msgstr "" - -#: server/swf/tag_loaders.cpp:393 -msgid "" -"gnash is not linked to jpeglib/zlib -- can't load jpeg/zipped image data" -msgstr "Gnash ist nicht mit jpeglib/zlib verlinkt -- kann jpeg/zip Bilddaten nicht laden" - -#: server/swf/tag_loaders.cpp:440 -#, c-format -msgid " defbitslossless2: tag = %d, id = %d, fmt = %d, w = %d, h = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:449 -msgid "gnash is not linked to zlib -- can't load zipped image data" -msgstr "Gnash ist nicht mit zlib verlinkt -- kann zip-Bilddaten nicht laden" - -#: server/swf/tag_loaders.cpp:555 -#, c-format -msgid "" -"DEFINEBITSLOSSLESS: Duplicate id (%d) for bitmap character - discarding it" -msgstr "" - -#: server/swf/tag_loaders.cpp:685 -#, c-format -msgid " FIXME: tagtype = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:697 -#, c-format -msgid " shape_loader: id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:713 -#, c-format -msgid " shape_morph_loader: id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:762 -#, c-format -msgid "define_font_info_loader: can't find font w/ id %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:775 -msgid " place_object_2" -msgstr "" - -#: server/swf/tag_loaders.cpp:795 -#, c-format -msgid " sprite: char id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:803 -msgid "nested DEFINESPRITE tags" -msgstr "" - -#: server/swf/tag_loaders.cpp:870 -#, c-format -msgid "reverse REMOVE can't find previous replace or add tag(%d, %d)" -msgstr "" - -#: server/swf/tag_loaders.cpp:889 -#, c-format -msgid " remove_object_2(%d)" -msgstr "" - -#: server/swf/tag_loaders.cpp:920 -#, c-format -msgid " button character loader: char_id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:944 -#, c-format -msgid " export: count = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:954 -#, c-format -msgid " export: id = %d, name = %s" -msgstr "" - -#: server/swf/tag_loaders.cpp:973 -#, c-format -msgid "don't know how to export resource '%s' with id %d (can't find that id)" -msgstr "" - -#: server/swf/tag_loaders.cpp:1010 -#, c-format -msgid " import: version = %u, source_url = %s (%s), count = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1022 -#, c-format -msgid "Exception: %s" -msgstr "" - -#: server/swf/tag_loaders.cpp:1028 -#, c-format -msgid "can't import movie from url %s" -msgstr "Kann Film von URL %s nicht importieren" - -#: server/swf/tag_loaders.cpp:1037 -msgid "Movie attempts to import symbols from itself." -msgstr "Der Film versucht, Symbole von sich selbst zu importieren" - -#: server/swf/tag_loaders.cpp:1050 -#, c-format -msgid " import: id = %d, name = %s" -msgstr "" - -#: server/swf/tag_loaders.cpp:1066 -#, c-format -msgid "import error: could not find resource '%s' in movie '%s'" -msgstr "Import-Fehler: Konnte Resource '%s' in Film '%s' nicht finden!" - -#: server/swf/tag_loaders.cpp:1102 -#, c-format -msgid "edit_text_char, id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1120 -#, c-format -msgid "text_character, id = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1141 -#, c-format -msgid "tag %d: do_action_loader" -msgstr "" - -#: server/swf/tag_loaders.cpp:1142 -msgid "-- actions in frame " -msgstr "" - -#: server/swf/tag_loaders.cpp:1165 -#, c-format -msgid " tag %d: do_init_action_loader" -msgstr "" - -#: server/swf/tag_loaders.cpp:1166 -#, c-format -msgid " -- init actions for sprite %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1199 -#, c-format -msgid "define sound: ch=%d, format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1215 server/swf/tag_loaders.cpp:1361 -#, c-format -msgid "Bad sound sample rate %d read from SWF header" -msgstr "" - -#: server/swf/tag_loaders.cpp:1274 -#, c-format -msgid "" -"There is no sound handler currently active, so character with id %d will NOT " -"be added to the dictionary" -msgstr "" - -#: server/swf/tag_loaders.cpp:1300 -#, c-format -msgid "start_sound tag: id=%d, stop = %d, loop ct = %d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1309 -#, c-format -msgid "start_sound_loader: sound_id %d is not defined" -msgstr "" - -#: server/swf/tag_loaders.cpp:1351 -#, c-format -msgid "sound stream head: format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" -msgstr "" - -#: server/swf/tag_loaders.cpp:1516 -#, c-format -msgid " file attributes: has_metadata=%s use_network=%s" -msgstr "" - -#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 -msgid "true" -msgstr "" - -#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 -msgid "false" -msgstr "" - -#: server/swf/tag_loaders.cpp:1523 -msgid "" -"FileAttributes tag in the SWF requests that network access is not granted to " -"this movie (or application?). Anyway Gnash won't care; use white/black " -"listing in your .gnashrc instead" -msgstr "" - -#: server/swf/tag_loaders.cpp:1541 -#, c-format -msgid "" -" metadata = [[\n" -"%s\n" -"]]" -msgstr "" - -#: server/swf/tag_loaders.cpp:1544 -#, c-format -msgid "METADATA tag unused: %s" -msgstr "" - -#: server/swf/tag_loaders.cpp:1562 -#, c-format -msgid "" -" serialnumber = [[\n" -"%s\n" -"]]" -msgstr "" - -#: server/swf/tag_loaders.cpp:1565 -#, c-format -msgid "SERIALNUMBER: %s" -msgstr "" - -#: server/text.cpp:50 -#, c-format -msgid "text style references unknown font (id = %d)" -msgstr "" - -#: server/text.cpp:154 -msgid "invalid glyph, render as an empty box" -msgstr "" - -#: server/text.cpp:181 -msgid "render glyph using draw_glyph" -msgstr "" - -#: server/text.cpp:192 -msgid "render glyph using filled outline (?) actually draw_glyph()" -msgstr "" - -#: server/textformat.cpp:124 -#, c-format -msgid "Created New TextFormat object at %p. Not fully implemented yet" -msgstr "" - -#: server/textformat.cpp:150 -msgid "TextFormat.setFormat() needs at least 3 arguments - ...me thinks" -msgstr "" - -#: server/textformat.cpp:159 -msgid "" -"Argument 3 given to TextFormat.setFormat() is not a TextFormat object - ... " -"should it be?" -msgstr "" - -#: server/textformat.cpp:237 -#, c-format -msgid "%s: args=%d unfinished implementation" -msgstr "" - -#: server/video_stream_instance.cpp:43 -msgid "attachVideo needs 1 arg" -msgstr "" - -#: server/video_stream_instance.cpp:56 -#, c-format -msgid "attachVideo(%s) first arg is not a NetStream instance" -msgstr "" - -#: server/video_stream_instance.cpp:116 -msgid "An error occured while decoding video frame" -msgstr "Fehler beim Dekodieren eines Video-Bildes" - -#: server/vm/action.cpp:152 -#, c-format -msgid "can't create extern root sprite for %s" -msgstr "" - -#: server/vm/action.cpp:169 -#, c-format -msgid "can't create extern sprite for %s" -msgstr "" - -#: server/vm/action.cpp:238 -msgid "" -"Attempt to call a value which is neither a C nor an ActionScript function" -msgstr "" - -#: server/vm/action.cpp:270 -#, c-format -msgid "FIXME(%d): %s" -msgstr "" - -#: server/vm/action.cpp:389 -#, c-format -msgid "call_method_parsed('%s','%s') -- invalid fmt '%%l%c'" -msgstr "" - -#: server/vm/action.cpp:398 -#, c-format -msgid "call_method_parsed('%s','%s') -- invalid fmt '%%%c'" -msgstr "" - -#: server/vm/action.cpp:414 -#, c-format -msgid "call_method_parsed('%s','%s') -- invalid char '%c'" -msgstr "" - -#: server/vm/action.cpp:450 -msgid "-- start movie" -msgstr "" - -#: server/vm/action.cpp:461 -#, c-format -msgid "FIXME: %s" -msgstr "" - -#: server/vm/ActionExec.cpp:136 -msgid "at ActionExec operator() start, pc=" -msgstr "" - -#: server/vm/ActionExec.cpp:137 -msgid ", stop_pc=" -msgstr "" - -#: server/vm/ActionExec.cpp:137 -msgid ", code.size=" -msgstr "" - -#: server/vm/ActionExec.cpp:138 server/vm/ActionExec.cpp:211 -msgid "." -msgstr "" - -#: server/vm/ActionExec.cpp:178 -#, c-format -msgid "Length %u (%d) of action tag id %u at pc " -msgstr "" - -#: server/vm/ActionExec.cpp:180 -msgid " overflows actions buffer size " -msgstr "" - -#: server/vm/ActionExec.cpp:211 -msgid " After execution, PC is " -msgstr "" - -#: server/vm/ActionExec.cpp:249 -msgid "Call stack non-empty at end of ExecutableCode run (limits hit?)" -msgstr "" - -#: server/vm/ActionExec.cpp:255 -msgid "" -"Stack smashed (ActionScript compiler bug?).Fixing by pushing undefined " -"values to the missing slots, but don't expect things to work afterwards" -msgstr "" - -#: server/vm/ActionExec.cpp:265 -msgid " elements left on the stack after block execution. Cleaning up" -msgstr "" - -#: server/vm/ActionExec.cpp:283 -msgid "End of DoAction block hit while skipping " -msgstr "" - -#: server/vm/ActionExec.cpp:284 -msgid " action tags (pc:" -msgstr "" - -#: server/vm/ActionExec.cpp:285 -msgid ", stop_pc:" -msgstr "" - -#: server/vm/ActionExec.cpp:285 -msgid ") (WaitForFrame, probably)" -msgstr "" - -#: server/vm/ActionExec.cpp:319 -msgid "'With' stack depth (" -msgstr "" - -#: server/vm/ActionExec.cpp:319 -msgid ") exceeds the allowed limit for current SWF target version (" -msgstr "" - -#: server/vm/ActionExec.cpp:321 -#, c-format -msgid " for version %d). Don't expect this movie to work with all players." -msgstr "" - -#: server/vm/ActionExec.cpp:428 -msgid "Stack underrun: " -msgstr "" - -#: server/vm/ActionExec.cpp:428 -msgid " elements required, " -msgstr "" - -#: server/vm/ActionExec.cpp:429 -msgid " available. Fixing by inserting " -msgstr "" - -#: server/vm/ActionExec.cpp:430 -msgid " undefined values on the missing slots." -msgstr "" - -#: server/vm/ASHandlers.cpp:101 -#, c-format -msgid "Unsupported action handler invoked, code at pc is %d" -msgstr "" - -#: server/vm/ASHandlers.cpp:182 -msgid "" -"FIXME: VM not initialized at SWFHandlers construction time, can't set action " -"handlers based on SWF version" -msgstr "" - -#: server/vm/ASHandlers.cpp:466 -#, c-format -msgid "%s: CHECKME: was broken" -msgstr "" - -#: server/vm/ASHandlers.cpp:609 -#, c-format -msgid "GetUrl: target=%s url=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:630 -#, c-format -msgid "ActionWaitForFrame (0x%X) tag length == " -msgstr "" - -#: server/vm/ASHandlers.cpp:631 -msgid " (expected 3)" -msgstr "" - -#: server/vm/ASHandlers.cpp:645 server/vm/ASHandlers.cpp:696 -#: server/vm/ASHandlers.cpp:1487 -#, c-format -msgid "%s: environment target is not a sprite_instance" -msgstr "" - -#: server/vm/ASHandlers.cpp:861 -msgid "Undefined or null string passed to ActionSubString, returning undefined" -msgstr "" - -#: server/vm/ASHandlers.cpp:876 -msgid "Negative size passed to ActionSubString, taking as whole length" -msgstr "" - -#: server/vm/ASHandlers.cpp:887 -msgid "Base is less then 1 in ActionSubString, setting to 1." -msgstr "" - -#: server/vm/ASHandlers.cpp:896 -msgid "" -"base goes beyond input string in ActionSubString, returning the empty string." -msgstr "" - -#: server/vm/ASHandlers.cpp:910 -msgid "base+size goes beyond input string in ActionSubString, adjusting size" -msgstr "" - -#: server/vm/ASHandlers.cpp:978 -#, c-format -msgid "-- get var: %s=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:982 -#, c-format -msgid "-- get var: %s=%s at %p" -msgstr "" - -#: server/vm/ASHandlers.cpp:1007 -#, c-format -msgid "-- set var: %s = %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:1069 -msgid "" -"ActionGetProperty() called, but current target is not a character" -msgstr "" - -#: server/vm/ASHandlers.cpp:1092 -#, c-format -msgid "invalid property query, property number %d" -msgstr "" - -#: server/vm/ASHandlers.cpp:1101 -#, c-format -msgid "Could not find GetProperty target (%s)" -msgstr "" - -#: server/vm/ASHandlers.cpp:1133 -#, c-format -msgid "invalid set_property, property number %d" -msgstr "" - -#: server/vm/ASHandlers.cpp:1157 -#, c-format -msgid "Path given to duplicateMovieClip(%s) doesn't point to a character" -msgstr "" - -#: server/vm/ASHandlers.cpp:1168 -#, c-format -msgid "Path given to duplicateMovieClip(%s) is not a sprite" -msgstr "" - -#: server/vm/ASHandlers.cpp:1193 -#, c-format -msgid "Path given to removeMovieClip(%s) doesn't point to a character" -msgstr "" - -#: server/vm/ASHandlers.cpp:1203 -#, c-format -msgid "Path given to removeMovieClip(%s) is not a sprite" -msgstr "" - -#: server/vm/ASHandlers.cpp:1242 -#, c-format -msgid "start_drag of invalid target '%s'" -msgstr "" - -#: server/vm/ASHandlers.cpp:1266 -msgid "Y values in ActionStartDrag swapped, fixing" -msgstr "" - -#: server/vm/ASHandlers.cpp:1274 -msgid "X values in ActionStartDrag swapped, fixing" -msgstr "" - -#: server/vm/ASHandlers.cpp:1340 -#, c-format -msgid "-- %s cast_to %s (invalid args?)" -msgstr "" - -#: server/vm/ASHandlers.cpp:1360 -msgid "ActionCastOp TESTING" -msgstr "" - -#: server/vm/ASHandlers.cpp:1496 -#, c-format -msgid "" -"Frame spec found on stack at ActionWaitForFrame doesn't evaluate to a valid " -"frame: %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:1561 -#, c-format -msgid "[push length=%d]" -msgstr "" - -#: server/vm/ASHandlers.cpp:1580 -#, c-format -msgid "" -"Unknown push type %d. Execution will continue but it is likely to fail due " -"to lost sync." -msgstr "" - -#: server/vm/ASHandlers.cpp:1630 -#, c-format -msgid "register %d out of bounds" -msgstr "" - -#: server/vm/ASHandlers.cpp:1676 server/vm/ASHandlers.cpp:1695 -#, c-format -msgid "dict_lookup %d is out of bounds" -msgstr "" - -#: server/vm/ASHandlers.cpp:1707 server/vm/ASHandlers.cpp:1711 -msgid "\t" -msgstr "" - -#: server/vm/ASHandlers.cpp:1707 -#, c-format -msgid ") type=%s (%d), value=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:1711 -#, c-format -msgid ") type=%s, value=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:1762 -msgid "Bogus empty GetUrl url in SWF file, skipping" -msgstr "" - -#: server/vm/ASHandlers.cpp:1777 -msgid "" -"Bogus GetUrl2 send vars method in SWF file (both GET and POST requested), " -"set to 0" -msgstr "" - -#: server/vm/ASHandlers.cpp:1830 -#, c-format -msgid "get url: target=%s, url=%s (%s)" -msgstr "" - -#: server/vm/ASHandlers.cpp:1838 -#, c-format -msgid "get url: target %s not found" -msgstr "" - -#: server/vm/ASHandlers.cpp:1846 -#, c-format -msgid "get url: target %s is not a sprite" -msgstr "" - -#: server/vm/ASHandlers.cpp:1853 -msgid "getURL2 loadVariable" -msgstr "" - -#: server/vm/ASHandlers.cpp:1860 -msgid "getURL2 target load" -msgstr "" - -#: server/vm/ASHandlers.cpp:1871 -#, c-format -msgid "" -"Unhandled GetUrl2 sendVariableMethod (%d) with loadTargetFlag and ! " -"loadVariablesFlag" -msgstr "" - -#: server/vm/ASHandlers.cpp:1884 -#, c-format -msgid "Unhandled GetUrl2 sendVariableMethod (%d) with no loadTargetFlag" -msgstr "" - -#: server/vm/ASHandlers.cpp:1898 -#, c-format -msgid "Launching URL... %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:1923 -#, c-format -msgid "" -"Couldn't find movie \"%s\" to set target to! Not setting target at all..." -msgstr "" - -#: server/vm/ASHandlers.cpp:1951 -msgid "Undefined GetUrl2 url on stack, skipping" -msgstr "" - -#: server/vm/ASHandlers.cpp:1988 -msgid "branch to offset " -msgstr "" - -#: server/vm/ASHandlers.cpp:1988 -msgid " -- this section only runs to " -msgstr "" - -#: server/vm/ASHandlers.cpp:2028 -#, c-format -msgid "" -"Couldn't find target_sprite \"%s\" in ActionCallFrame! target frame actions " -"will not be called..." -msgstr "" - -#: server/vm/ASHandlers.cpp:2090 -#, c-format -msgid "" -"Frame spec found on stack at ActionGotoExpression doesn't evaluate to a " -"valid frame: %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2104 -#, c-format -msgid "" -"Couldn't find target sprite \"%s\" in ActionGotoExpression. Will not go to " -"target frame..." -msgstr "" - -#: server/vm/ASHandlers.cpp:2125 -msgid "No elements on the stack at ActionDelete (0x3A). Returning FALSE." -msgstr "" - -#: server/vm/ASHandlers.cpp:2164 -#, c-format -msgid "-- set local var: %s = %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2196 -#, c-format -msgid "ActionCallFunction: %s is not an object" -msgstr "" - -#: server/vm/ASHandlers.cpp:2205 -msgid "Object doensn't have a constructor" -msgstr "" - -#: server/vm/ASHandlers.cpp:2216 -#, c-format -msgid "" -"Attempt to call a function with %u arguments while only %u are available on " -"the stack." -msgstr "" - -#: server/vm/ASHandlers.cpp:2307 -#, c-format -msgid "---new object: %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2320 -#, c-format -msgid "ActionNew: '%s' is not a constructor" -msgstr "" - -#: server/vm/ASHandlers.cpp:2360 -msgid "The 'var whatever' syntax in timeline context is a no-op." -msgstr "" - -#: server/vm/ASHandlers.cpp:2476 -#, c-format -msgid "Argument to TargetPath(%s) doesn't cast to a MovieClip" -msgstr "" - -#: server/vm/ASHandlers.cpp:2514 -#, c-format -msgid "Top of stack not an object (%s) at ActionEnumerate execution" -msgstr "" - -#: server/vm/ASHandlers.cpp:2672 -#, c-format -msgid " ActionGetMember: target: %s (object %p)" -msgstr "" - -#: server/vm/ASHandlers.cpp:2688 -#, c-format -msgid "-- get_member %s.%s=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2714 -#, c-format -msgid "-- set_member %s.%s=%s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2726 -#, c-format -msgid "-- set_member %s.%s=%s on invalid object!" -msgstr "" - -#: server/vm/ASHandlers.cpp:2781 -#, c-format -msgid "" -"Attempt to call a method with %u arguments while only %u are available on " -"the stack." -msgstr "" - -#: server/vm/ASHandlers.cpp:2790 -#, c-format -msgid " method name: %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2791 -#, c-format -msgid " method object/func: %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2792 -#, c-format -msgid " method nargs: %d" -msgstr "" - -#: server/vm/ASHandlers.cpp:2807 -msgid "" -"ActionCallMethod invoked with undefined method_name and non-object object/" -"func" -msgstr "" - -#: server/vm/ASHandlers.cpp:2816 -msgid "" -"Function object given to ActionCallMethod is not a function, will try to use " -"its 'constructor' member" -msgstr "" - -#: server/vm/ASHandlers.cpp:2826 -msgid "ActionCallMethod: object has no constructor" -msgstr "" - -#: server/vm/ASHandlers.cpp:2835 -msgid "ActionCallMethod: object constructor is not a function" -msgstr "" - -#: server/vm/ASHandlers.cpp:2851 -#, c-format -msgid "ActionCallMethod: Tried to invoke method '%s' on non-object value %s." -msgstr "" - -#: server/vm/ASHandlers.cpp:2864 -#, c-format -msgid "ActionCallMethod: Can't find method %s of object %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2887 -msgid "FIXME: debugger doesn't deal with anonymous function calls" -msgstr "" - -#: server/vm/ASHandlers.cpp:2924 -#, c-format -msgid "" -"Attempt to call a constructor with %u arguments while only %u are available " -"on the stack." -msgstr "" - -#: server/vm/ASHandlers.cpp:2936 -msgid "On ActionNewMethod: no object found on stack on ActionMethod" -msgstr "" - -#: server/vm/ASHandlers.cpp:2954 -#, c-format -msgid "ActionNewMethod: can't find method %s of object %s" -msgstr "" - -#: server/vm/ASHandlers.cpp:2968 -msgid "ActionNewMethod: method name is undefined, and object is not a function" -msgstr "" - -#: server/vm/ASHandlers.cpp:3007 -#, c-format -msgid "-- %s instanceof %s (invalid args?)" -msgstr "" - -#: server/vm/ASHandlers.cpp:3041 -#, c-format -msgid "Top of stack not an object %s at ActionEnum2 execution" -msgstr "" - -#: server/vm/ASHandlers.cpp:3218 -#, c-format -msgid "ActionExtends: Super is not an as_function (%s)" -msgstr "ActionExtends: Super ist keine as_function (%s)" - -#: server/vm/ASHandlers.cpp:3223 -#, c-format -msgid "ActionExtends: Sub is not an as_function (%s)" -msgstr "ActionExtends: Super ist keine as_function (%s)" - -#: server/vm/ASHandlers.cpp:3312 -#, c-format -msgid "" -"function2 code len (%u) overflows DOACTION tag boundaries (DOACTION tag len=" -msgstr "" - -#: server/vm/ASHandlers.cpp:3315 -msgid ", function2 code offset=" -msgstr "" - -#: server/vm/ASHandlers.cpp:3315 -msgid "). Forcing code len to eat the whole buffer (would this work?)." -msgstr "" - -#: server/vm/ASHandlers.cpp:3379 -msgid "-------------- with block start: stack size is " -msgstr "" - -#: server/vm/ASHandlers.cpp:3389 -msgid "ActionWith tag length != 2; skipping" -msgstr "" - -#: server/vm/ASHandlers.cpp:3399 -msgid "Empty with() block..." -msgstr "" - -#: server/vm/ASHandlers.cpp:3415 -msgid "With-block skipped (with stack size exceeds limit of " -msgstr "" - -#: server/vm/ASHandlers.cpp:3417 -msgid " elements)" -msgstr "" - -#: server/vm/ASHandlers.cpp:3533 -#, c-format -msgid "-------------- local register[%d] = '%s'" -msgstr "" - -#: server/vm/ASHandlers.cpp:3542 -#, c-format -msgid "-------------- global register[%d] = '%s'" -msgstr "" - -#: server/vm/ASHandlers.cpp:3550 -#, c-format -msgid "store_register[%d] -- register out of bounds!" -msgstr "" - -#: server/vm/ASHandlers.cpp:3561 -#, c-format -msgid "at SWFHandlers::action_name(%d) call time, _handlers size is " -msgstr "" - -#: utilities/dumpshm.cpp:206 -msgid "" -"Sorry, we can only list the files on systems with disk based shared memory" -msgstr "Entschuldigung, wir können Dateien nur auf Systemen mit plattenbasiertem geteiltem Speicher auflisten" - -#: utilities/dumpshm.cpp:215 -msgid "No name specified, nuking everything..." -msgstr "" - -#: utilities/dumpshm.cpp:222 -msgid "Removing segment: " -msgstr "" - -#: utilities/dumpshm.cpp:230 -msgid "Nuking the shared memory segment " -msgstr "" - -#: utilities/dumpshm.cpp:256 -msgid "ERROR: couldn't read!" -msgstr "FEHLER: Lesen unmöglich!" - -#: utilities/dumpshm.cpp:287 -msgid "This program dumps the internal data of a shared memory segment" -msgstr "" - -#: utilities/dumpshm.cpp:289 -msgid "Usage: dumpmem [hdsanlif] filename" -msgstr "Verwendung: dumpmem [hdsanlif] Dateiname" - -#: utilities/dumpshm.cpp:290 -msgid "-h\tHelp" -msgstr "-h\tHilfe" - -#: utilities/dumpshm.cpp:291 -msgid "-d\tDump data" -msgstr "Speicherauszug erstellen" - -#: utilities/dumpshm.cpp:292 -msgid "-n [optional name]\tNuke everything" -msgstr "" - -#: utilities/dumpshm.cpp:293 -msgid "-l\tLength of segment" -msgstr "" - -#: utilities/dumpshm.cpp:294 -msgid "-i\tList segments" -msgstr "" - -#: utilities/dumpshm.cpp:295 -msgid "-f\tForce to use builtin names for nuke" -msgstr "" - -#: utilities/dumpshm.cpp:307 -msgid "\tBase address of this segment: " -msgstr "" - -#: utilities/dumpshm.cpp:309 -msgid "\tFilespec: " -msgstr "" - -#: utilities/dumpshm.cpp:310 -msgid "\t# Bytes allocated: " -msgstr "" - -#: utilities/dumpshm.cpp:311 -msgid "\tTotal # of bytes: " -msgstr "" - -#: utilities/parser.cpp:138 -#, c-format -msgid "has_scale = %d, has_rotate = %d\n" -msgstr "has_scale = %d, has_rotate = %d\n" - -#: utilities/parser.cpp:163 -#, c-format -msgid "x_min: %i, x_max: %i,\twidth: %i twips, %4.0f pixels\n" -msgstr "x_min : %i, x_max : %i,\tHöhe : %i twips, %4.0f Pixel\n" - -#: utilities/parser.cpp:164 -#, c-format -msgid "y_min: %i, y_max: %i, height: %i twips, %4.0f pixels\n" -msgstr "y_min : %i, y_max : %i, Höhe : %i twips, %4.0f Pixel\n" - -#: utilities/parser.cpp:185 -#, c-format -msgid "rgb: %d %d %d \n" -msgstr "rgb : %d %d %d \n" - -#: utilities/parser.cpp:206 -#, c-format -msgid "rgba: %d %d %d %d\n" -msgstr "rgba : %d %d %d %d\n" - -#: utilities/parser.cpp:279 -msgid "cxform:\n" -msgstr "cxform:\n" - -#: utilities/parser.cpp:280 -#, c-format -msgid "has_add = %d, has_mult = %d\n" -msgstr "has_add = %d, has_mult = %d\n" - -#: utilities/parser.cpp:298 -msgid "" -"Movie ended\n" -"\n" -msgstr "" -"Film beendet\n" -"\n" - From MAILER-DAEMON Sun Jun 10 16:13:29 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxTmz-00065h-HF for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 16:13:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxTmx-00064Q-DF for gnash-commit@gnu.org; Sun, 10 Jun 2007 16:13:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxTmv-00064E-D4 for gnash-commit@gnu.org; Sun, 10 Jun 2007 16:13:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxTmv-00064B-7n for gnash-commit@gnu.org; Sun, 10 Jun 2007 16:13:25 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxTmu-00076E-RV for gnash-commit@gnu.org; Sun, 10 Jun 2007 16:13:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxTmt-0004sH-Lt for gnash-commit@gnu.org; Sun, 10 Jun 2007 20:13:23 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxTmt-0004sE-GT for gnash-commit@gnu.org; Sun, 10 Jun 2007 20:13:23 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Sun, 10 Jun 2007 20:13:23 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/po sv.po X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 20:13:27 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/10 20:13:23 Modified files: po : sv.po Log message: Minor fixes CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/po/sv.po?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: sv.po =================================================================== RCS file: /sources/gnash/gnash/po/sv.po,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- sv.po 10 Jun 2007 15:26:31 -0000 1.1 +++ sv.po 10 Jun 2007 20:13:23 -0000 1.2 @@ -1,4 +1,4 @@ -# Swedishß translation of GNU Gnash. +# Swedish translation of GNU Gnash. # Copyright (C) 2007 Free Software Foundation, Inc. # This file is distributed under the same license as the gnash package. # <>, 2007. @@ -11,18 +11,18 @@ "POT-Creation-Date: 2007-05-15 08:44+0200\n" "PO-Revision-Date: 2007-05-15 08:44+0200\n" "Last-Translator: Markus Gothe \n" -"Language-Team: Swedish \n" +"Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit" #: backend/sound_handler_sdl.cpp:76 msgid "could not allocate memory for sound data" -msgstr "kan inte allokera minne för ljud-data " +msgstr "kan inte allokera minne för ljud-data " #: backend/sound_handler_sdl.cpp:99 msgid "Some kind of error occurred with raw sound data" -msgstr "Fel uppstod med rått ljud-datat" +msgstr "Fel uppstod med rått ljud-datat" #: backend/sound_handler_sdl.cpp:112 msgid "Some kind of error occurred with adpcm sound data" @@ -30,16 +30,15 @@ #: backend/sound_handler_sdl.cpp:123 msgid "gnash has not been compiled to handle mp3 audio" -msgstr "gnash har inte byggts med mp3-stöd" +msgstr "gnash har inte byggts med mp3-stöd" #: backend/sound_handler_sdl.cpp:129 msgid "could not allocate space for data in sound handler" -msgstr "kan inte allokera utrymme för data i ljudhanteraren" +msgstr "kan inte allokera utrymme för data i ljudhanteraren" #: backend/sound_handler_sdl.cpp:138 -#, c-format msgid "unknown sound format %d requested; gnash does not handle it" -msgstr "okänkt ljudformat % begärt. gnash hanterar det inte" +msgstr "okänt ljudformat % begärt. gnash hanterar det inte" #: backend/sound_handler_sdl.cpp:170 msgid "Some kind of error with resampling sound data" @@ -50,12 +49,12 @@ msgid "" "Behavior for this audio codec %d is unknown. Please send this SWF to the " "developers" -msgstr "Detta ljud-codec, %d, är okänt. Sänd SWF-filen till " +msgstr "Detta ljud-codec, %d, är okänt. Sänd SWF-filen till " "en utvecklare" #: backend/sound_handler_sdl.cpp:276 msgid "Your FFMPEG can't decode MP3?!" -msgstr "FFMPEG byggt utan mp3-stöd?" +msgstr "FFMPEG byggt utan mp3-stöd?" #: backend/sound_handler_sdl.cpp:304 #, c-format @@ -70,14 +69,14 @@ #: backend/sound_handler_sdl.cpp:717 #, c-format msgid "Negative buffer length in sdl_audio_callback (%d)" -msgstr "Negative Pufferlänge in sdl_audio_callback (%d)" +msgstr "Negative Pufferlänge in sdl_audio_callback (%d)" #: backend/sound_handler_sdl.cpp:834 msgid "" "Error while decoding MP3-stream. Upgrading ffmpeg/libavcodec might fix this " "issue." msgstr "Fehler beim Dekodieren des MP3-Streams. Eine Aktualisierung von " -"ffmpeg/libavcodec könnte dieses Problem beheben." +"ffmpeg/libavcodec könnte dieses Problem beheben." #: backend/sound_handler_sdl.cpp:864 #, c-format @@ -149,15 +148,15 @@ " -s Film um den angegebenen Faktor skalieren\n" " -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" " -d num Number of milliseconds to delay in main loop\n" -" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" +" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" #: gui/gnash.cpp:85 msgid " -va Be verbose about movie Actions\n" -msgstr " -va Ausführlicher Modus für Film-Aktionen\n" +msgstr " -va Ausführlicher Modus für Film-Aktionen\n" #: gui/gnash.cpp:90 msgid " -vp Be verbose about parsing the movie\n" -msgstr " -vp Ausführlicher Modus beim Parsen des Films\n" +msgstr " -vp Ausführlicher Modus beim Parsen des Films\n" #: gui/gnash.cpp:95 msgid "" @@ -216,9 +215,9 @@ " Strg-Q, Strg-W, ESC Beenden\n" " Strg-P Pause\n" " Strg-R Film neu starten\n" -" Strg-[ or kp- Ein Bild zurück\n" -" Strg-] or kp+ Ein Bild vorwärts\n" -" Strg-B Hintergrundfarbe ändern\n" +" Strg-[ or kp- Ein Bild zurück\n" +" Strg-] or kp+ Ein Bild vorwärts\n" +" Strg-B Hintergrundfarbe ändern\n" " Strg-A Toggle antialiasing (doesn't work)\n" " Strg-T Debug. Test the set_variable() function\n" " Strg-G Debug. Test the get_variable() function\n" @@ -252,7 +251,7 @@ #: gui/gnash.cpp:190 plugin/klash/klash.cpp:319 msgid "Verbose output turned on" -msgstr "Ausführliche Ausgabe eingeschaltet" +msgstr "Ausführliche Ausgabe eingeschaltet" #: gui/gnash.cpp:194 msgid "Logging to disk enabled" @@ -260,11 +259,11 @@ #: gui/gnash.cpp:200 msgid "No verbose actions; disabled at compile time" -msgstr "Kein ausführlicher Modus für Aktionen. Bei der Kompilierung deaktiviert" +msgstr "Kein ausführlicher Modus für Aktionen. Bei der Kompilierung deaktiviert" #: gui/gnash.cpp:207 msgid "No verbose parsing; disabled at compile time" -msgstr "Kein ausführlicher Modus beim Parsen. Bei der Kompilierung deaktiviert" +msgstr "Kein ausführlicher Modus beim Parsen. Bei der Kompilierung deaktiviert" #: gui/gnash.cpp:218 #, c-format @@ -292,12 +291,12 @@ #: gui/gnash.cpp:243 #, c-format msgid "Setting height to %d" -msgstr "Setze Höhe auf %d" +msgstr "Setze Höhe auf %d" #: gui/gnash.cpp:279 #, c-format msgid "-r must be followed by 0, 1, 2 or 3 (%ld is invalid)" -msgstr "-r erfordert 0, 1, 2, oder 3 (%ld ist ungültig)" +msgstr "-r erfordert 0, 1, 2, oder 3 (%ld ist ungültig)" #: gui/gnash.cpp:314 msgid "No rendering flags specified, using rcfile" @@ -315,7 +314,7 @@ #: gui/Player.cpp:187 msgid "Sound requested but no sound support compiled in" -msgstr "Audio erfordert, jedoch keine Audiounterstützung bei der Kompilierung aktiviert" +msgstr "Audio erfordert, jedoch keine Audiounterstützung bei der Kompilierung aktiviert" #: gui/Player.cpp:364 #, c-format @@ -487,12 +486,12 @@ #: libbase/extension.cpp:192 #, c-format msgid "Scanning directory \"%s\" for plugins" -msgstr "Scanne Ordner \"%s\" für Plugins" +msgstr "Scanne Ordner \"%s\" für Plugins" #: libbase/extension.cpp:196 #, c-format msgid "Can't open directory %s" -msgstr "Kann Ordner %s nicht öffnen" +msgstr "Kann Ordner %s nicht öffnen" #: libbase/extension.cpp:218 #, c-format @@ -539,7 +538,7 @@ #: libbase/network.cpp:149 #, c-format msgid "unable to get protocol entry for %s" -msgstr "Erfassen des Protokolleintrags für %s nicht möglich!" +msgstr "Erfassen des Protokolleintrags für %s nicht möglich!" #: libbase/network.cpp:166 #, c-format @@ -553,7 +552,7 @@ #: libbase/network.cpp:183 #, c-format msgid "unable to bind to port %hd: %s" -msgstr "Binden an Port %hd unmöglich: %s" +msgstr "Binden an Port %hd unmöglich: %s" #: libbase/network.cpp:192 #, c-format @@ -602,7 +601,7 @@ #: libbase/network.cpp:344 #, c-format msgid "Can't connect to privileged port %hd" -msgstr "Verbindung mit privilegiertem Port %hd unmöglich" +msgstr "Verbindung mit privilegiertem Port %hd unmöglich" #: libbase/network.cpp:349 #, c-format @@ -612,16 +611,16 @@ #: libbase/network.cpp:355 #, c-format msgid "The hostname for this machine is %s" -msgstr "Der Hostname für diesen Rechner ist %s" +msgstr "Der Hostname für diesen Rechner ist %s" #: libbase/network.cpp:357 msgid "Couldn't get the hostname for this machine" -msgstr "Konnte Hostnamen für diesen Rechner nicht ermitteln" +msgstr "Konnte Hostnamen für diesen Rechner nicht ermitteln" #: libbase/network.cpp:371 #, c-format msgid "The IP address for this client socket is %s" -msgstr "Die IP-Adresse für diesen Client-Sockel ist %s" +msgstr "Die IP-Adresse für diesen Client-Sockel ist %s" #: libbase/network.cpp:379 #, c-format @@ -631,7 +630,7 @@ #: libbase/network.cpp:401 #, c-format msgid "The connect() socket for fd %d was interupted by a system call" -msgstr "Der connect()-Sockel für fd %d wurde durch einen Systemaufruf unterbrochen" +msgstr "Der connect()-Sockel für fd %d wurde durch einen Systemaufruf unterbrochen" #: libbase/network.cpp:408 libbase/network.cpp:436 #, c-format @@ -651,7 +650,7 @@ #: libbase/network.cpp:505 #, c-format msgid "Unable to close the socket for fd %d: %s" -msgstr "Kann Sockel für fd %d nicht schließen: %s" +msgstr "Kann Sockel für fd %d nicht schließen: %s" #: libbase/network.cpp:512 #, c-format @@ -680,15 +679,15 @@ #: plugin/klash/klash.cpp:106 msgid "Step Backward" -msgstr "Zurückspulen" +msgstr "Zurückspulen" #: plugin/klash/klash.cpp:107 msgid "Jump Forward" -msgstr "Vorwärts springen" +msgstr "Vorwärts springen" #: plugin/klash/klash.cpp:108 msgid "Jump Backward" -msgstr "Zurück springen" +msgstr "Zurück springen" #: plugin/klash/klash.cpp:109 msgid "Quit Gnash" @@ -700,12 +699,12 @@ #: plugin/klash/klash.cpp:148 msgid "The Gnash Flash player for KDE.\n" -msgstr "Der Gnash-Flash-Player für KDE.\n" +msgstr "Der Gnash-Flash-Player für KDE.\n" #: plugin/klash/klash.cpp:309 #, c-format msgid "Timer delay set to %d milliseconds" -msgstr "Timer-Verzögerung auf %d Millisekunden gesetzt" +msgstr "Timer-Verzögerung auf %d Millisekunden gesetzt" #: plugin/klash/klash.cpp:323 msgid "Logging to disk enabled." @@ -724,12 +723,12 @@ #: plugin/klash/klash.cpp:350 #, c-format msgid "Setting height to: %d" -msgstr "Setze Höhe auf: %d" +msgstr "Setze Höhe auf: %d" #: plugin/klash/klash.cpp:381 #, c-format msgid "-r must be followed by 0, 1 or 2 (%d is invalid)" -msgstr "-r erfordert 0, 1, 2 (%d ist ungültig)" +msgstr "-r erfordert 0, 1, 2 (%d ist ungültig)" #: plugin/klash/klash.cpp:399 msgid "Got variable option on command line!" @@ -743,7 +742,7 @@ #: plugin/klash/klash.cpp:448 #, c-format msgid "error: can't get info about %s\n" -msgstr "Fehler: Kann keine Informationen über %s ermitteln\n" +msgstr "Fehler: Kann keine Informationen über %s ermitteln\n" #: plugin/klash/klash.cpp:508 #, c-format @@ -789,9 +788,9 @@ " -s Film um den angegebenen Faktor skalieren\n" " -c Core-Dump-Datei erstellen anstatt SDL zu erlauben, ihn aufzufangen\n" " -d num Number of milliseconds to delay in main loop\n" -" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" -" -va Ausführlicher Modus für Film-Aktionen\n" -" -vp Ausführlicher Modus beim Parsen des Films\n" +" -v Ausführlicher Modus; d.h. Log-Meldungen nach stdout senden\n" +" -va Ausführlicher Modus für Film-Aktionen\n" +" -vp Ausführlicher Modus beim Parsen des Films\n" "" #: plugin/klash/klash.cpp:685 @@ -823,9 +822,9 @@ " Strg-Q, Strg-W, ESC Beenden\n" " Strg-P Pause\n" " Strg-R Film neu starten\n" -" Strg-[ or kp- Ein Bild zurück\n" -" Strg-] or kp+ Ein Bild vorwärts\n" -" Strg-B Hintergrundfarbe ändern\n" +" Strg-[ or kp- Ein Bild zurück\n" +" Strg-] or kp+ Ein Bild vorwärts\n" +" Strg-B Hintergrundfarbe ändern\n" #: plugin/win32/plugin.cpp:259 #, c-format @@ -835,7 +834,7 @@ #: plugin/win32/plugin.cpp:262 #, c-format msgid "Movie %s: width is %d, height is %d, version is %d\n" -msgstr "Film %s: Breite ist %d, Höhe ist %d, Version ist %d\n" +msgstr "Film %s: Breite ist %d, Höhe ist %d, Version ist %d\n" #: plugin/win32/plugin.cpp:272 #, c-format @@ -1414,12 +1413,12 @@ #: server/asobj/NetConnection.cpp:97 #, c-format msgid "Gnash is not allowed to open this url: %s" -msgstr "Gnash darf diese URL nicht öffnen: %s" +msgstr "Gnash darf diese URL nicht öffnen: %s" #: server/asobj/NetConnection.cpp:104 #, c-format msgid "Gnash could not open this url: %s" -msgstr "Gnash konnte diese URL nicht öffnen: %s" +msgstr "Gnash konnte diese URL nicht öffnen: %s" #: server/asobj/NetConnection.cpp:110 #, c-format @@ -1455,12 +1454,12 @@ #: server/asobj/NetStreamFfmpeg.cpp:311 server/asobj/NetStreamGst.cpp:491 #, c-format msgid "Unsupported video codec %d" -msgstr "Video-Codec %d nicht unterstützt" +msgstr "Video-Codec %d nicht unterstützt" #: server/asobj/NetStreamFfmpeg.cpp:342 server/asobj/NetStreamGst.cpp:530 #, c-format msgid "Unsupported audio codec %d" -msgstr "Audio-Codec %d nicht unterstützt" +msgstr "Audio-Codec %d nicht unterstützt" #: server/asobj/NetStreamFfmpeg.cpp:367 msgid "Gnash could not read from movie url" @@ -1470,12 +1469,12 @@ #: server/asobj/NetStreamGst.cpp:363 #, c-format msgid "Gnash could not open movie: %s" -msgstr "Gnash konnte Film nicht öffnen: %s" +msgstr "Gnash konnte Film nicht öffnen: %s" #: server/asobj/NetStreamFfmpeg.cpp:403 #, c-format msgid "Gnash could not open FLV movie: %s" -msgstr "Gnash konnte FLV-Film nicht öffnen: %s" +msgstr "Gnash konnte FLV-Film nicht öffnen: %s" #: server/asobj/NetStreamFfmpeg.cpp:414 msgid "Failed to initialize FLV video codec" @@ -1493,7 +1492,7 @@ #: server/asobj/NetStreamFfmpeg.cpp:466 server/asobj/SoundFfmpeg.cpp:136 #, c-format msgid "Couldn't open file '%s' for decoding" -msgstr "Konnte Datei '%s' für Dekodierung nicht öffnen" +msgstr "Konnte Datei '%s' für Dekodierung nicht öffnen" #: server/asobj/NetStreamFfmpeg.cpp:476 server/asobj/SoundFfmpeg.cpp:146 #, c-format @@ -1513,17 +1512,17 @@ #: server/asobj/NetStreamFfmpeg.cpp:535 #, c-format msgid "Could not open codec %d" -msgstr "Konnte Codec %d nicht öffnen" +msgstr "Konnte Codec %d nicht öffnen" #: server/asobj/NetStreamFfmpeg.cpp:561 #, c-format msgid "No available audio decoder %d to process MPEG file: '%s'" -msgstr "Kein verfügbarer Audio-Decoder %d, um MPEG-Datei '%s' zu verarbeiten" +msgstr "Kein verfügbarer Audio-Decoder %d, um MPEG-Datei '%s' zu verarbeiten" #: server/asobj/NetStreamFfmpeg.cpp:569 server/asobj/SoundFfmpeg.cpp:201 #, c-format msgid "Could not open audio codec %d for %s" -msgstr "Konnte Audio-Codec %d für %s nicht öffnen" +msgstr "Konnte Audio-Codec %d für %s nicht öffnen" #: server/asobj/NetStreamFfmpeg.cpp:744 msgid "read_frame: not audio & video stream" @@ -1572,8 +1571,8 @@ msgid "" "This version of Fluendo's mp3 plugin does not support flash streaming " "sounds, please upgrade to version 0.10.4 or higher." -msgstr "Diese Version des Fluendo-mp3-Plugins unterstützt kein Flash-Audio-Streaming." -"Bitte auf Version 0.10.4 oder höher aktualisieren." +msgstr "Diese Version des Fluendo-mp3-Plugins unterstützt kein Flash-Audio-Streaming." +"Bitte auf Version 0.10.4 oder höher aktualisieren." #: server/asobj/NetStreamGst.cpp:516 msgid "" @@ -1741,7 +1740,7 @@ #: server/asobj/SoundFfmpeg.cpp:92 #, c-format msgid "%s could not open audio url: %s" -msgstr "%s konnte Audio-URL nicht öffnen: %s" +msgstr "%s konnte Audio-URL nicht öffnen: %s" #: server/asobj/SoundFfmpeg.cpp:115 #, c-format @@ -1796,7 +1795,7 @@ #: server/asobj/SoundGst.cpp:142 #, c-format msgid "could not open audio url: %s" -msgstr "konnte Audio-URL nicht öffnen: %s" +msgstr "konnte Audio-URL nicht öffnen: %s" #: server/asobj/SoundGst.cpp:171 msgid "Could not create gstreamer pipeline element" @@ -1808,12 +1807,12 @@ #: server/asobj/SoundGst.cpp:198 msgid "Could not create Gstreamer element(s) for movie handling" -msgstr "Konnte Gstreamer-Element(e) für Film-Verarbeitung nicht erstellen" +msgstr "Konnte Gstreamer-Element(e) für Film-Verarbeitung nicht erstellen" #: server/asobj/SoundMad.cpp:83 #, c-format msgid "Gnash could not open audio url: %s" -msgstr "Gnash konnte Audio-URL nicht öffnen: %s" +msgstr "Gnash konnte Audio-URL nicht öffnen: %s" #: server/asobj/SoundMad.cpp:120 server/asobj/SoundMad.cpp:207 #, c-format @@ -2254,7 +2253,7 @@ #: server/edit_text_character.cpp:909 #, c-format msgid "No font for edit_text_character! [%s:%d]" -msgstr "Keine Schriftart für edit_text_character! [%s:%d]" +msgstr "Keine Schriftart für edit_text_character! [%s:%d]" #: server/edit_text_character.cpp:937 #, c-format @@ -2409,7 +2408,7 @@ #: server/impl.cpp:254 #, c-format msgid "get_movie_info(): can't open '%s'" -msgstr "get_movie_info(): kann '%s' nicht öffnen" +msgstr "get_movie_info(): kann '%s' nicht öffnen" #: server/impl.cpp:269 #, c-format @@ -2443,17 +2442,17 @@ #: server/impl.cpp:466 #, c-format msgid "failed to open '%s'; can't create movie" -msgstr "Konnte '%s' nicht öffnen. Kann Film nicht erstellen" +msgstr "Konnte '%s' nicht öffnen. Kann Film nicht erstellen" #: server/impl.cpp:471 #, c-format msgid "streamProvider opener can't open '%s'" -msgstr "streamProvider opener kann '%s' nicht öffnen" +msgstr "streamProvider opener kann '%s' nicht öffnen" #: server/impl.cpp:490 #, c-format msgid "note: couldn't open cache file '%s'" -msgstr "Bemerkung: Konnte Cache-Datei '%s' nicht öffnen" +msgstr "Bemerkung: Konnte Cache-Datei '%s' nicht öffnen" #: server/impl.cpp:499 #, c-format @@ -4397,7 +4396,7 @@ #: utilities/dumpshm.cpp:206 msgid "" "Sorry, we can only list the files on systems with disk based shared memory" -msgstr "Entschuldigung, wir können Dateien nur auf Systemen mit plattenbasiertem geteiltem Speicher auflisten" +msgstr "Entschuldigung, wir können Dateien nur auf Systemen mit plattenbasiertem geteiltem Speicher auflisten" #: utilities/dumpshm.cpp:215 msgid "No name specified, nuking everything..." @@ -4413,7 +4412,7 @@ #: utilities/dumpshm.cpp:256 msgid "ERROR: couldn't read!" -msgstr "FEHLER: Lesen unmöglich!" +msgstr "FEHLER: Lesen unmöglich!" #: utilities/dumpshm.cpp:287 msgid "This program dumps the internal data of a shared memory segment" @@ -4471,22 +4470,22 @@ #: utilities/parser.cpp:163 #, c-format msgid "x_min: %i, x_max: %i,\twidth: %i twips, %4.0f pixels\n" -msgstr "x_min : %i, x_max : %i,\tHöhe : %i twips, %4.0f Pixel\n" +msgstr "x_min : %i, x_max : %i,\tHöhe : %i twips, %4.0f Pixel\n" #: utilities/parser.cpp:164 #, c-format msgid "y_min: %i, y_max: %i, height: %i twips, %4.0f pixels\n" -msgstr "y_min : %i, y_max : %i, Höhe : %i twips, %4.0f Pixel\n" +msgstr "y_min : %i, y_max : %i, Höhe : %i twips, %4.0f Pixel\n" #: utilities/parser.cpp:185 #, c-format msgid "rgb: %d %d %d \n" -msgstr "rgb : %d %d %d \n" +msgstr "rgb : %d %d %d \n" #: utilities/parser.cpp:206 #, c-format msgid "rgba: %d %d %d %d\n" -msgstr "rgba : %d %d %d %d\n" +msgstr "rgba : %d %d %d %d\n" #: utilities/parser.cpp:279 msgid "cxform:\n" From MAILER-DAEMON Sun Jun 10 23:24:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxaVj-0005jG-0E for mharc-gnash-commit@gnu.org; Sun, 10 Jun 2007 23:24:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxaVh-0005hG-Gb for gnash-commit@gnu.org; Sun, 10 Jun 2007 23:24:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxaVg-0005eX-9L for gnash-commit@gnu.org; Sun, 10 Jun 2007 23:24:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxaVg-0005eP-6F for gnash-commit@gnu.org; Sun, 10 Jun 2007 23:24:04 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxaVf-0001d9-Ug for gnash-commit@gnu.org; Sun, 10 Jun 2007 23:24:04 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxaVe-0008Fa-Sj for gnash-commit@gnu.org; Mon, 11 Jun 2007 03:24:02 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxaVe-0008FX-OR for gnash-commit@gnu.org; Mon, 11 Jun 2007 03:24:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 11 Jun 2007 03:24:02 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/sdl_agg_glue.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 03:24:05 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/11 03:24:02 Modified files: . : ChangeLog gui : sdl_agg_glue.cpp Log message: initialize member variables at construction time, fix an abortion CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3507&r2=1.3508 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/sdl_agg_glue.cpp?cvsroot=gnash&r1=1.11&r2=1.12 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3507 retrieving revision 1.3508 diff -u -b -r1.3507 -r1.3508 --- ChangeLog 10 Jun 2007 14:46:44 -0000 1.3507 +++ ChangeLog 11 Jun 2007 03:24:01 -0000 1.3508 @@ -1,3 +1,8 @@ +2007-06-11 Zou Lunkai + + * gui/sdl_agg_glue.cpp: initialize member variables at construction, + fix an abortion when loading nonexistent swf files. + 2007-06-10 Bastiaan Jacques * gui/kde{sup.h, .cpp}: Comment out debugging statements. Make Index: gui/sdl_agg_glue.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/sdl_agg_glue.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -b -r1.11 -r1.12 --- gui/sdl_agg_glue.cpp 14 May 2007 09:44:21 -0000 1.11 +++ gui/sdl_agg_glue.cpp 11 Jun 2007 03:24:02 -0000 1.12 @@ -30,6 +30,11 @@ { SdlAggGlue::SdlAggGlue() + : +_sdl_surface(NULL), +_screen(NULL), +_offscreenbuf(NULL), +_agg_renderer(NULL) { // GNASH_REPORT_FUNCTION; } From MAILER-DAEMON Mon Jun 11 09:23:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hxjrr-0001jU-Mf for mharc-gnash-commit@gnu.org; Mon, 11 Jun 2007 09:23:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hxjrp-0001jI-Vw for gnash-commit@gnu.org; Mon, 11 Jun 2007 09:23:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hxjrn-0001iq-Q1 for gnash-commit@gnu.org; Mon, 11 Jun 2007 09:23:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hxjrn-0001in-MW for gnash-commit@gnu.org; Mon, 11 Jun 2007 09:23:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hxjrn-0001az-BU for gnash-commit@gnu.org; Mon, 11 Jun 2007 09:23:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hxjre-0006eP-U7 for gnash-commit@gnu.org; Mon, 11 Jun 2007 13:23:23 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hxjre-0006eM-Ol for gnash-commit@gnu.org; Mon, 11 Jun 2007 13:23:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 11 Jun 2007 13:23:22 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp s... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 13:23:34 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/11 13:23:22 Modified files: . : ChangeLog server : FreetypeRasterizer.cpp FreetypeRasterizer.h Log message: * server/FreetypeRasterizer.{cpp,h}: Add missing stub for font filename finder method. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3508&r2=1.3509 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3508 retrieving revision 1.3509 diff -u -b -r1.3508 -r1.3509 --- ChangeLog 11 Jun 2007 03:24:01 -0000 1.3508 +++ ChangeLog 11 Jun 2007 13:23:21 -0000 1.3509 @@ -1,3 +1,8 @@ +2007-06-11 Sandro Santilli + + * server/FreetypeRasterizer.{cpp,h}: + Add missing stub for font filename finder method. + 2007-06-11 Zou Lunkai * gui/sdl_agg_glue.cpp: initialize member variables at construction, Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- server/FreetypeRasterizer.cpp 8 Jun 2007 21:40:39 -0000 1.1 +++ server/FreetypeRasterizer.cpp 11 Jun 2007 13:23:22 -0000 1.2 @@ -129,7 +129,7 @@ } std::string filename; - if (get_fontfile(name, filename, bold, italic) == false) + if (getFontFilename(name, bold, italic, filename) == false) { snprintf(buf, maxerrlen, _("Can't find font file for font '%s'"), name.c_str()); buf[maxerrlen-1] = '\0'; @@ -201,6 +201,13 @@ } #endif // ndef(HAVE_LIBFREETYPE) +bool +FreetypeRasterizer::getFontFilename(const std::string& name, + bool bold, bool italic, std::string& filename) +{ + // TODO: implement + return false; +} } // namespace gnash Index: server/FreetypeRasterizer.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- server/FreetypeRasterizer.h 8 Jun 2007 21:40:39 -0000 1.1 +++ server/FreetypeRasterizer.h 11 Jun 2007 13:23:22 -0000 1.2 @@ -90,6 +90,28 @@ // TODO: drop ? float get_advance_x(uint16_t code); + /// Get filename containing given font + // + /// @param name + /// Font name + /// + /// @param bold + /// Want bold version + /// + /// @param italic + /// Want italic version + /// + /// @param filename + /// Where to return the filename to + /// + /// @return true if the font was found, false otherwise. + /// Actually, this function should return a default + /// filename in any case, so false should only be + /// returned if not even a default font was found. + /// + bool getFontFilename(const std::string& name, bool bold, bool italic, + std::string& filename); + static void init(); static void close(); From MAILER-DAEMON Mon Jun 11 11:51:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxmAr-0001tm-E3 for mharc-gnash-commit@gnu.org; Mon, 11 Jun 2007 11:51:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxmAp-0001tg-MK for gnash-commit@gnu.org; Mon, 11 Jun 2007 11:51:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxmAp-0001tP-4Z for gnash-commit@gnu.org; Mon, 11 Jun 2007 11:51:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxmAp-0001tM-0Y for gnash-commit@gnu.org; Mon, 11 Jun 2007 11:51:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxmAo-0005Su-Kr for gnash-commit@gnu.org; Mon, 11 Jun 2007 11:51:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxmAo-0004d6-2V for gnash-commit@gnu.org; Mon, 11 Jun 2007 15:51:18 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxmAn-0004d2-TW for gnash-commit@gnu.org; Mon, 11 Jun 2007 15:51:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 11 Jun 2007 15:51:17 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server FreetypeRasterizer.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 15:51:19 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/11 15:51:17 Modified files: server : FreetypeRasterizer.cpp Log message: Implement getFontFilename only when HAVE_LIBFREETYPE is defined (which is when the method is declared) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- FreetypeRasterizer.cpp 11 Jun 2007 13:23:22 -0000 1.2 +++ FreetypeRasterizer.cpp 11 Jun 2007 15:51:17 -0000 1.3 @@ -86,6 +86,15 @@ return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; } +// private +bool +FreetypeRasterizer::getFontFilename(const std::string& name, + bool bold, bool italic, std::string& filename) +{ + // TODO: implement + return false; +} + #endif // HAVE_LIBFREETYPE #ifdef HAVE_LIBFREETYPE @@ -201,13 +210,5 @@ } #endif // ndef(HAVE_LIBFREETYPE) -bool -FreetypeRasterizer::getFontFilename(const std::string& name, - bool bold, bool italic, std::string& filename) -{ - // TODO: implement - return false; -} - } // namespace gnash From MAILER-DAEMON Tue Jun 12 01:11:55 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hxyfb-0000X7-Ca for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 01:11:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxyfZ-0000Ww-LP for gnash-commit@gnu.org; Tue, 12 Jun 2007 01:11:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxyfY-0000W4-OH for gnash-commit@gnu.org; Tue, 12 Jun 2007 01:11:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxyfY-0000VU-A8 for gnash-commit@gnu.org; Tue, 12 Jun 2007 01:11:52 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxyfX-0006Ml-Qw for gnash-commit@gnu.org; Tue, 12 Jun 2007 01:11:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HxyfU-0001s2-Bn for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:11:48 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HxyfU-0001rz-33 for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:11:48 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Tue, 12 Jun 2007 05:11:48 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 05:11:54 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/12 05:11:47 Modified files: . : ChangeLog testsuite/misc-ming.all: Makefile.am Added files: testsuite/misc-ming.all: loop_test8.c Log message: new testcase for timeline control, focus on ratio. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3509&r2=1.3510 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.134&r2=1.135 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3509 retrieving revision 1.3510 diff -u -b -r1.3509 -r1.3510 --- ChangeLog 11 Jun 2007 13:23:21 -0000 1.3509 +++ ChangeLog 12 Jun 2007 05:11:46 -0000 1.3510 @@ -1,3 +1,8 @@ +2007-06-12 Zou Lunkai + + * testsuite/misc-ming.all/loop_test8.c, Makefile.am: + new testcase for timeline control, focus on ratio. + 2007-06-11 Sandro Santilli * server/FreetypeRasterizer.{cpp,h}: Index: testsuite/misc-ming.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v retrieving revision 1.134 retrieving revision 1.135 diff -u -b -r1.134 -r1.135 --- testsuite/misc-ming.all/Makefile.am 6 Jun 2007 10:13:17 -0000 1.134 +++ testsuite/misc-ming.all/Makefile.am 12 Jun 2007 05:11:47 -0000 1.135 @@ -83,6 +83,7 @@ loop_test5 \ loop_test6 \ loop_test7 \ + loop_test8 \ loop_test-Runner \ place_object_test \ move_object_test \ @@ -221,6 +222,7 @@ loop_test5runner \ loop_test6runner \ loop_test7runner \ + loop_test8runner \ shape_testrunner \ $(NULL) @@ -453,6 +455,16 @@ sh $< -f20 $(top_builddir) loop_test7.swf > $@ chmod 755 $@ +loop_test8_SOURCES = loop_test8.c +loop_test8_LDADD = libgnashmingutils.la + +loop_test8.swf: loop_test8 + ./loop_test8 $(top_srcdir)/testsuite/media + +loop_test8runner: $(srcdir)/../generic-testrunner.sh loop_test8.swf + sh $< -f20 $(tsop_builddir) loop_test8.swf > $@ + chmod 755 $@ + shape_test_SOURCES = shape_test.c shape_test_LDADD = libgnashmingutils.la @@ -1524,6 +1536,7 @@ loop_test5runner \ loop_test6runner \ loop_test7runner \ + loop_test8runner \ shape_testrunner \ $(NULL) Index: testsuite/misc-ming.all/loop_test8.c =================================================================== RCS file: testsuite/misc-ming.all/loop_test8.c diff -N testsuite/misc-ming.all/loop_test8.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/loop_test8.c 12 Jun 2007 05:11:47 -0000 1.1 @@ -0,0 +1,243 @@ +/* + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/* + * zou lunkai zoulunkai@gmail.com + * + * Test " Jumping backward to the middle of a character's lifetime after removal and replacement(3)" + * + * Timeline: + * + * Frame | 1 | 2 | 3 | 4 | 5 | 6 | + * --------+---+---+---+---+---+---+ + * Event | |PPP| * | RR|PP | J | + * + * P = Place (by PlaceObject2) + * R = Remove (by RemoveObject) + * J = jump + * * = jump target + * + * Description: + * + * frame2: + * a static movieclip is placed at depth 3 (-16381) with ratio value 0.001 [ a red square ] + * a static movieclip is placed at depth 4 (-16380) with ratio value 0.001 [ a green square ] + * a static movieclip is placed at depth 5 (-16379) with ratio value 0.001 [ a blue square ] + * frame3: do nothing + * frame4: + * remove movieclip at depth 4; + * remove movieclip at depth 5; + * frame5: + * a static movieclip is placed at depth4 again with ratio value 0.001 [a yellow square] + * a static movieclip is placed at depth5 agian with ratio value 0.003 [a black square] + * frame6: gotoAndStop frame3 + * + * Expected behaviour: + * + * A *single* instance of each characters is created in the whole process. + * + * run as ./loop_test8 + */ + +#include +#include +#include +#include + +#include "ming_utils.h" + +#define OUTPUT_VERSION 6 +#define OUTPUT_FILENAME "loop_test8.swf" + + +SWFDisplayItem +add_static_mc(SWFMovie mo, const char* name, const char* color, int depth, float ratio) +{ + SWFShape sh; + SWFMovieClip mc; + SWFDisplayItem it; + + if( strcmp("red", color) == 0 ) + { + // red square + sh = make_fill_square (300, 0, 60, 60, 255, 0, 0, 255, 0, 0); + } + else if( strcmp("green", color) == 0 ) + { + // green square + sh = make_fill_square (300, 100, 60, 60, 0, 255, 0, 0, 255, 0); + } + else if( strcmp("blue", color) == 0 ) + { + // blue square + sh = make_fill_square (300, 200, 60, 60, 0, 0, 255, 0, 0, 255); + } + else if( strcmp("yellow", color) == 0 ) + { + // yellow square + sh = make_fill_square (300, 300, 60, 60, 255, 255, 0, 255, 255, 0); + } + else + { + // black square + sh = make_fill_square (300, 400, 60, 60, 0, 0, 0, 0, 0, 0); + } + + mc = newSWFMovieClip(); + SWFMovieClip_add(mc, (SWFBlock)sh); + SWFMovieClip_nextFrame(mc); + + it = SWFMovie_add(mo, (SWFBlock)mc); + SWFDisplayItem_setDepth(it, depth); + SWFDisplayItem_setName(it, name); + + return it; +} + + +int +main(int argc, char** argv) +{ + SWFMovie mo; + SWFMovieClip dejagnuclip; + SWFDisplayItem it1, it2, it3, it4, it5; + + const char *srcdir="."; + if ( argc>1 ) + srcdir=argv[1]; + else + { + fprintf(stderr, "Usage: %s \n", argv[0]); + return 1; + } + + Ming_init(); + mo = newSWFMovieWithVersion(OUTPUT_VERSION); + SWFMovie_setDimension(mo, 800, 600); + SWFMovie_setRate (mo, 1.0); + + dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); + SWFMovie_add(mo, (SWFBlock)dejagnuclip); + // Frame1: initialize testing variables + add_actions(mo, " mc1Constructed=0; mc2Constructed=0; mc3Constructed=0; " + " mc4Constructed=0; mc5Constructed=0; " + " mc1Unloaded=0; mc2Unloaded=0; mc3Unloaded=0; "); + SWFMovie_nextFrame(mo); // 1st frame + + // Frame2: + // add a static movieclip at depth3 with ratio value 0.001 + // add a static movieclip at depth4 with ratio value 0.001 + // add a static movieclip at depth5 with ratio value 0.001 + it1 = add_static_mc(mo, "mc1", "red", 3, 0.001); + it2 = add_static_mc(mo, "mc2", "green", 4, 0.001); + it3 = add_static_mc(mo, "mc3", "blue", 5, 0.001); + + SWFDisplayItem_addAction(it1, + newSWFAction("_root.note(this+' constructed'); _root.mc1Constructed++;"), + SWFACTION_CONSTRUCT); + SWFDisplayItem_addAction(it1, newSWFAction(""), SWFACTION_ONLOAD); + SWFDisplayItem_addAction(it1, + newSWFAction("_root.note(this + ' unloaded'); _root.mc1Unloaded = 1;"), + SWFACTION_UNLOAD); + + SWFDisplayItem_addAction(it2, + newSWFAction("_root.note(this+' constructed'); _root.mc2Constructed++;"), + SWFACTION_CONSTRUCT); + SWFDisplayItem_addAction(it2, newSWFAction(""), SWFACTION_ONLOAD); + SWFDisplayItem_addAction(it2, + newSWFAction("_root.note(this + ' unloaded'); _root.mc2Unloaded = 1;"), + SWFACTION_UNLOAD); + + SWFDisplayItem_addAction(it3, + newSWFAction("_root.note(this+' constructed'); _root.mc3Constructed++;"), + SWFACTION_CONSTRUCT); + SWFDisplayItem_addAction(it3, newSWFAction(""), SWFACTION_ONLOAD); + SWFDisplayItem_addAction(it3, + newSWFAction("_root.note(this + ' unloaded'); _root.mc3Unloaded = 1;"), + SWFACTION_UNLOAD); + SWFMovie_nextFrame(mo); // 2nd frame + + // Frame3: Do nothing + SWFMovie_nextFrame(mo); // 3rd frame + + // Frame4: Remove mc2(at depth4) and mc3(at depth5) + SWFDisplayItem_remove(it2); + SWFDisplayItem_remove(it3); + SWFMovie_nextFrame(mo); // 4th frame + + // Frame5: + // add mc4 with the same depth and ratio as mc2 + // add mc5 with the same depth but different ratio as mc3 + it4 = add_static_mc(mo, "mc4", "yellow", 4, 0.001); + it5 = add_static_mc(mo, "mc5", "black", 5, 0.003); + + SWFDisplayItem_addAction(it4, + newSWFAction("_root.note(this+' constructed'); _root.mc4Constructed++;"), + SWFACTION_CONSTRUCT); + SWFDisplayItem_addAction(it4, newSWFAction(""), SWFACTION_ONLOAD); + SWFDisplayItem_addAction(it4, newSWFAction("_root.note(this+ 'unloaded');"), SWFACTION_UNLOAD); + + SWFDisplayItem_addAction(it5, + newSWFAction("_root.note(this+' constructed'); _root.mc5Constructed++;"), + SWFACTION_CONSTRUCT); + SWFDisplayItem_addAction(it5, newSWFAction(""), SWFACTION_ONLOAD); + SWFDisplayItem_addAction(it5, newSWFAction("_root.note(this+ 'unloaded');"), SWFACTION_UNLOAD); + SWFMovie_nextFrame(mo); // 5th frame + + // Frame6: Checks, goto frame3 and stop, checks + check_equals(mo, "typeof(mc1)", "'movieclip'"); + check_equals(mo, "typeof(mc2)", "'undefined'"); + check_equals(mo, "typeof(mc3)", "'undefined'"); + check_equals(mo, "typeof(mc4)", "'movieclip'"); + check_equals(mo, "typeof(mc5)", "'movieclip'"); + check_equals(mo, "mc1Constructed", "1"); + check_equals(mo, "mc2Constructed", "1"); + check_equals(mo, "mc3Constructed", "1"); + check_equals(mo, "mc4Constructed", "1"); + check_equals(mo, "mc5Constructed", "1"); + check_equals(mo, "mc1Unloaded", "0"); + check_equals(mo, "mc2Unloaded", "1"); + check_equals(mo, "mc3Unloaded", "1"); + + add_actions(mo, "gotoAndStop(3);"); + + // No differences observed after jump, all checks keep the same. + // all movieclips are constructed only once, + // testing results keep consistent with visual effect(good:). + check_equals(mo, "typeof(mc1)", "'movieclip'"); + xcheck_equals(mo, "typeof(mc2)", "'undefined'"); //Gnash fails by unneeded recreating + xcheck_equals(mo, "typeof(mc3)", "'undefined'"); //Gnash fails by unneeded recreating + xcheck_equals(mo, "typeof(mc4)", "'movieclip'"); //Gnash fails by unneeded recreating + xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); //Gnash fails by unneeded recreating + check_equals(mo, "mc1Constructed", "1"); + check_equals(mo, "mc1Constructed", "1"); + xcheck_equals(mo, "mc2Constructed", "1"); //Gnash fails by unneeded recreating + xcheck_equals(mo, "mc3Constructed", "1"); //Gnash fails by unneeded recreating + check_equals(mo, "mc4Constructed", "1"); + check_equals(mo, "mc5Constructed", "1"); + check_equals(mo, "mc1Unloaded", "0"); + check_equals(mo, "mc2Unloaded", "1"); + check_equals(mo, "mc3Unloaded", "1"); + SWFMovie_nextFrame(mo); // 6th frame + + //Output movie + puts("Saving " OUTPUT_FILENAME ); + SWFMovie_save(mo, OUTPUT_FILENAME); + + return 0; +} From MAILER-DAEMON Tue Jun 12 04:09:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy1R2-00007C-Eh for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 04:09:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy1R0-00006j-FJ for gnash-commit@gnu.org; Tue, 12 Jun 2007 04:09:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy1Qz-00006K-Fr for gnash-commit@gnu.org; Tue, 12 Jun 2007 04:09:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy1Qz-00006A-9f for gnash-commit@gnu.org; Tue, 12 Jun 2007 04:09:01 -0400 Received: from nz-out-0506.google.com ([64.233.162.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hy1Qy-0000hd-Fp for gnash-commit@gnu.org; Tue, 12 Jun 2007 04:09:00 -0400 Received: by nz-out-0506.google.com with SMTP id q3so677807nzb for ; Tue, 12 Jun 2007 01:08:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lcgW2U18m/Yz/AhDHN8+cltae1yiMM/cMFdLTTWnHIhgGGvHWvFohBo/DShb4JNeaBSWuaa8xhBa7h77WxT4Va41F0nSAFzp3KSuVRI5+XXljfwEM2YggYB1cwfOiJ6GwUBu86E7XnI1ohrXPnmALzpP0MHiVNYnO88KmZ4jXwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Cpks4C0OblTAnKSFMNOTT+CiR68tuEd0D22ceWCoDe1MrtrH26iQk2tfuSqiMPURLR1SyxVxZYYTzwgkDOS7TnqUk+psO8NlW7MNaPt6ip8XI9FMMMZZGSXbbx77Ywyc3uXRE4X+DCBPOZ1LYiOc4+TRotuBNAmABmfJlzJkCdk= Received: by 10.114.80.4 with SMTP id d4mr6420152wab.1181635739135; Tue, 12 Jun 2007 01:08:59 -0700 (PDT) Received: by 10.114.12.7 with HTTP; Tue, 12 Jun 2007 01:08:59 -0700 (PDT) Message-ID: Date: Tue, 12 Jun 2007 16:08:59 +0800 From: "zou lunkai" To: gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 08:09:02 -0000 soory, this testcase doesn't do what described above, stop deduction on it now. I'm fixing it now. On 6/12/07, Zou Lunkai wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Zou Lunkai 07/06/12 05:11:47 > > Modified files: > . : ChangeLog > testsuite/misc-ming.all: Makefile.am > Added files: > testsuite/misc-ming.all: loop_test8.c > > Log message: > new testcase for timeline control, focus on ratio. > > CVSWeb URLs: > http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3509&r2=1.3510 > http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.134&r2=1.135 > http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&rev=1.1 > > Patches: > Index: ChangeLog > =================================================================== > RCS file: /sources/gnash/gnash/ChangeLog,v > retrieving revision 1.3509 > retrieving revision 1.3510 > diff -u -b -r1.3509 -r1.3510 > --- ChangeLog 11 Jun 2007 13:23:21 -0000 1.3509 > +++ ChangeLog 12 Jun 2007 05:11:46 -0000 1.3510 > @@ -1,3 +1,8 @@ > +2007-06-12 Zou Lunkai > + > + * testsuite/misc-ming.all/loop_test8.c, Makefile.am: > + new testcase for timeline control, focus on ratio. > + > 2007-06-11 Sandro Santilli > > * server/FreetypeRasterizer.{cpp,h}: > > Index: testsuite/misc-ming.all/Makefile.am > =================================================================== > RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v > retrieving revision 1.134 > retrieving revision 1.135 > diff -u -b -r1.134 -r1.135 > --- testsuite/misc-ming.all/Makefile.am 6 Jun 2007 10:13:17 -0000 1.134 > +++ testsuite/misc-ming.all/Makefile.am 12 Jun 2007 05:11:47 -0000 1.135 > @@ -83,6 +83,7 @@ > loop_test5 \ > loop_test6 \ > loop_test7 \ > + loop_test8 \ > loop_test-Runner \ > place_object_test \ > move_object_test \ > @@ -221,6 +222,7 @@ > loop_test5runner \ > loop_test6runner \ > loop_test7runner \ > + loop_test8runner \ > shape_testrunner \ > $(NULL) > > @@ -453,6 +455,16 @@ > sh $< -f20 $(top_builddir) loop_test7.swf > $@ > chmod 755 $@ > > +loop_test8_SOURCES = loop_test8.c > +loop_test8_LDADD = libgnashmingutils.la > + > +loop_test8.swf: loop_test8 > + ./loop_test8 $(top_srcdir)/testsuite/media > + > +loop_test8runner: $(srcdir)/../generic-testrunner.sh loop_test8.swf > + sh $< -f20 $(tsop_builddir) loop_test8.swf > $@ > + chmod 755 $@ > + > shape_test_SOURCES = shape_test.c > shape_test_LDADD = libgnashmingutils.la > > @@ -1524,6 +1536,7 @@ > loop_test5runner \ > loop_test6runner \ > loop_test7runner \ > + loop_test8runner \ > shape_testrunner \ > $(NULL) > > > Index: testsuite/misc-ming.all/loop_test8.c > =================================================================== > RCS file: testsuite/misc-ming.all/loop_test8.c > diff -N testsuite/misc-ming.all/loop_test8.c > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ testsuite/misc-ming.all/loop_test8.c 12 Jun 2007 05:11:47 -0000 1.1 > @@ -0,0 +1,243 @@ > +/* > + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > + * > + */ > + > +/* > + * zou lunkai zoulunkai@gmail.com > + * > + * Test " Jumping backward to the middle of a character's lifetime after removal and replacement(3)" > + * > + * Timeline: > + * > + * Frame | 1 | 2 | 3 | 4 | 5 | 6 | > + * --------+---+---+---+---+---+---+ > + * Event | |PPP| * | RR|PP | J | > + * > + * P = Place (by PlaceObject2) > + * R = Remove (by RemoveObject) > + * J = jump > + * * = jump target > + * > + * Description: > + * > + * frame2: > + * a static movieclip is placed at depth 3 (-16381) with ratio value 0.001 [ a red square ] > + * a static movieclip is placed at depth 4 (-16380) with ratio value 0.001 [ a green square ] > + * a static movieclip is placed at depth 5 (-16379) with ratio value 0.001 [ a blue square ] > + * frame3: do nothing > + * frame4: > + * remove movieclip at depth 4; > + * remove movieclip at depth 5; > + * frame5: > + * a static movieclip is placed at depth4 again with ratio value 0.001 [a yellow square] > + * a static movieclip is placed at depth5 agian with ratio value 0.003 [a black square] > + * frame6: gotoAndStop frame3 > + * > + * Expected behaviour: > + * > + * A *single* instance of each characters is created in the whole process. > + * > + * run as ./loop_test8 > + */ > + > +#include > +#include > +#include > +#include > + > +#include "ming_utils.h" > + > +#define OUTPUT_VERSION 6 > +#define OUTPUT_FILENAME "loop_test8.swf" > + > + > +SWFDisplayItem > +add_static_mc(SWFMovie mo, const char* name, const char* color, int depth, float ratio) > +{ > + SWFShape sh; > + SWFMovieClip mc; > + SWFDisplayItem it; > + > + if( strcmp("red", color) == 0 ) > + { > + // red square > + sh = make_fill_square (300, 0, 60, 60, 255, 0, 0, 255, 0, 0); > + } > + else if( strcmp("green", color) == 0 ) > + { > + // green square > + sh = make_fill_square (300, 100, 60, 60, 0, 255, 0, 0, 255, 0); > + } > + else if( strcmp("blue", color) == 0 ) > + { > + // blue square > + sh = make_fill_square (300, 200, 60, 60, 0, 0, 255, 0, 0, 255); > + } > + else if( strcmp("yellow", color) == 0 ) > + { > + // yellow square > + sh = make_fill_square (300, 300, 60, 60, 255, 255, 0, 255, 255, 0); > + } > + else > + { > + // black square > + sh = make_fill_square (300, 400, 60, 60, 0, 0, 0, 0, 0, 0); > + } > + > + mc = newSWFMovieClip(); > + SWFMovieClip_add(mc, (SWFBlock)sh); > + SWFMovieClip_nextFrame(mc); > + > + it = SWFMovie_add(mo, (SWFBlock)mc); > + SWFDisplayItem_setDepth(it, depth); > + SWFDisplayItem_setName(it, name); > + > + return it; > +} > + > + > +int > +main(int argc, char** argv) > +{ > + SWFMovie mo; > + SWFMovieClip dejagnuclip; > + SWFDisplayItem it1, it2, it3, it4, it5; > + > + const char *srcdir="."; > + if ( argc>1 ) > + srcdir=argv[1]; > + else > + { > + fprintf(stderr, "Usage: %s \n", argv[0]); > + return 1; > + } > + > + Ming_init(); > + mo = newSWFMovieWithVersion(OUTPUT_VERSION); > + SWFMovie_setDimension(mo, 800, 600); > + SWFMovie_setRate (mo, 1.0); > + > + dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); > + SWFMovie_add(mo, (SWFBlock)dejagnuclip); > + // Frame1: initialize testing variables > + add_actions(mo, " mc1Constructed=0; mc2Constructed=0; mc3Constructed=0; " > + " mc4Constructed=0; mc5Constructed=0; " > + " mc1Unloaded=0; mc2Unloaded=0; mc3Unloaded=0; "); > + SWFMovie_nextFrame(mo); // 1st frame > + > + // Frame2: > + // add a static movieclip at depth3 with ratio value 0.001 > + // add a static movieclip at depth4 with ratio value 0.001 > + // add a static movieclip at depth5 with ratio value 0.001 > + it1 = add_static_mc(mo, "mc1", "red", 3, 0.001); > + it2 = add_static_mc(mo, "mc2", "green", 4, 0.001); > + it3 = add_static_mc(mo, "mc3", "blue", 5, 0.001); > + > + SWFDisplayItem_addAction(it1, > + newSWFAction("_root.note(this+' constructed'); _root.mc1Constructed++;"), > + SWFACTION_CONSTRUCT); > + SWFDisplayItem_addAction(it1, newSWFAction(""), SWFACTION_ONLOAD); > + SWFDisplayItem_addAction(it1, > + newSWFAction("_root.note(this + ' unloaded'); _root.mc1Unloaded = 1;"), > + SWFACTION_UNLOAD); > + > + SWFDisplayItem_addAction(it2, > + newSWFAction("_root.note(this+' constructed'); _root.mc2Constructed++;"), > + SWFACTION_CONSTRUCT); > + SWFDisplayItem_addAction(it2, newSWFAction(""), SWFACTION_ONLOAD); > + SWFDisplayItem_addAction(it2, > + newSWFAction("_root.note(this + ' unloaded'); _root.mc2Unloaded = 1;"), > + SWFACTION_UNLOAD); > + > + SWFDisplayItem_addAction(it3, > + newSWFAction("_root.note(this+' constructed'); _root.mc3Constructed++;"), > + SWFACTION_CONSTRUCT); > + SWFDisplayItem_addAction(it3, newSWFAction(""), SWFACTION_ONLOAD); > + SWFDisplayItem_addAction(it3, > + newSWFAction("_root.note(this + ' unloaded'); _root.mc3Unloaded = 1;"), > + SWFACTION_UNLOAD); > + SWFMovie_nextFrame(mo); // 2nd frame > + > + // Frame3: Do nothing > + SWFMovie_nextFrame(mo); // 3rd frame > + > + // Frame4: Remove mc2(at depth4) and mc3(at depth5) > + SWFDisplayItem_remove(it2); > + SWFDisplayItem_remove(it3); > + SWFMovie_nextFrame(mo); // 4th frame > + > + // Frame5: > + // add mc4 with the same depth and ratio as mc2 > + // add mc5 with the same depth but different ratio as mc3 > + it4 = add_static_mc(mo, "mc4", "yellow", 4, 0.001); > + it5 = add_static_mc(mo, "mc5", "black", 5, 0.003); > + > + SWFDisplayItem_addAction(it4, > + newSWFAction("_root.note(this+' constructed'); _root.mc4Constructed++;"), > + SWFACTION_CONSTRUCT); > + SWFDisplayItem_addAction(it4, newSWFAction(""), SWFACTION_ONLOAD); > + SWFDisplayItem_addAction(it4, newSWFAction("_root.note(this+ 'unloaded');"), SWFACTION_UNLOAD); > + > + SWFDisplayItem_addAction(it5, > + newSWFAction("_root.note(this+' constructed'); _root.mc5Constructed++;"), > + SWFACTION_CONSTRUCT); > + SWFDisplayItem_addAction(it5, newSWFAction(""), SWFACTION_ONLOAD); > + SWFDisplayItem_addAction(it5, newSWFAction("_root.note(this+ 'unloaded');"), SWFACTION_UNLOAD); > + SWFMovie_nextFrame(mo); // 5th frame > + > + // Frame6: Checks, goto frame3 and stop, checks > + check_equals(mo, "typeof(mc1)", "'movieclip'"); > + check_equals(mo, "typeof(mc2)", "'undefined'"); > + check_equals(mo, "typeof(mc3)", "'undefined'"); > + check_equals(mo, "typeof(mc4)", "'movieclip'"); > + check_equals(mo, "typeof(mc5)", "'movieclip'"); > + check_equals(mo, "mc1Constructed", "1"); > + check_equals(mo, "mc2Constructed", "1"); > + check_equals(mo, "mc3Constructed", "1"); > + check_equals(mo, "mc4Constructed", "1"); > + check_equals(mo, "mc5Constructed", "1"); > + check_equals(mo, "mc1Unloaded", "0"); > + check_equals(mo, "mc2Unloaded", "1"); > + check_equals(mo, "mc3Unloaded", "1"); > + > + add_actions(mo, "gotoAndStop(3);"); > + > + // No differences observed after jump, all checks keep the same. > + // all movieclips are constructed only once, > + // testing results keep consistent with visual effect(good:). > + check_equals(mo, "typeof(mc1)", "'movieclip'"); > + xcheck_equals(mo, "typeof(mc2)", "'undefined'"); //Gnash fails by unneeded recreating > + xcheck_equals(mo, "typeof(mc3)", "'undefined'"); //Gnash fails by unneeded recreating > + xcheck_equals(mo, "typeof(mc4)", "'movieclip'"); //Gnash fails by unneeded recreating > + xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); //Gnash fails by unneeded recreating > + check_equals(mo, "mc1Constructed", "1"); > + check_equals(mo, "mc1Constructed", "1"); > + xcheck_equals(mo, "mc2Constructed", "1"); //Gnash fails by unneeded recreating > + xcheck_equals(mo, "mc3Constructed", "1"); //Gnash fails by unneeded recreating > + check_equals(mo, "mc4Constructed", "1"); > + check_equals(mo, "mc5Constructed", "1"); > + check_equals(mo, "mc1Unloaded", "0"); > + check_equals(mo, "mc2Unloaded", "1"); > + check_equals(mo, "mc3Unloaded", "1"); > + SWFMovie_nextFrame(mo); // 6th frame > + > + //Output movie > + puts("Saving " OUTPUT_FILENAME ); > + SWFMovie_save(mo, OUTPUT_FILENAME); > + > + return 0; > +} > > > _______________________________________________ > Gnash-commit mailing list > Gnash-commit@gnu.org > http://lists.gnu.org/mailman/listinfo/gnash-commit > From MAILER-DAEMON Tue Jun 12 05:00:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy2Ei-000575-LQ for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 05:00:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy2Eg-00056g-Im for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:00:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy2Ee-00056L-QD for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:00:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy2Ee-00056I-M1 for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:00:20 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy2Ee-00072J-64 for gnash-commit@gnu.org; Tue, 12 Jun 2007 05:00:20 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hy2Ed-0000Lc-F4 for gnash-commit@gnu.org; Tue, 12 Jun 2007 09:00:19 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hy2Ed-0000LO-75 for gnash-commit@gnu.org; Tue, 12 Jun 2007 09:00:19 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Tue, 12 Jun 2007 09:00:19 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 09:00:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/12 09:00:18 Modified files: . : ChangeLog testsuite/misc-ming.all: loop_test8.c Log message: correctly set ratio, forgot in last commit CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3510&r2=1.3511 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3510 retrieving revision 1.3511 diff -u -b -r1.3510 -r1.3511 --- ChangeLog 12 Jun 2007 05:11:46 -0000 1.3510 +++ ChangeLog 12 Jun 2007 09:00:17 -0000 1.3511 @@ -1,5 +1,10 @@ 2007-06-12 Zou Lunkai + * testsuite/misc-ming.all/loop_test8.c: + correctly set ratio, forgot in last commit. + +2007-06-12 Zou Lunkai + * testsuite/misc-ming.all/loop_test8.c, Makefile.am: new testcase for timeline control, focus on ratio. Index: testsuite/misc-ming.all/loop_test8.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test8.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/loop_test8.c 12 Jun 2007 05:11:47 -0000 1.1 +++ testsuite/misc-ming.all/loop_test8.c 12 Jun 2007 09:00:18 -0000 1.2 @@ -48,8 +48,8 @@ * frame6: gotoAndStop frame3 * * Expected behaviour: - * - * A *single* instance of each characters is created in the whole process. + * movieclip in depth4 placed at frame5 kept alive; + * movieclip in depth5 placed at frame5 get destroyed; * * run as ./loop_test8 */ @@ -105,6 +105,7 @@ it = SWFMovie_add(mo, (SWFBlock)mc); SWFDisplayItem_setDepth(it, depth); SWFDisplayItem_setName(it, name); + SWFDisplayItem_setRatio(it, ratio); return it; } @@ -216,18 +217,14 @@ add_actions(mo, "gotoAndStop(3);"); - // No differences observed after jump, all checks keep the same. - // all movieclips are constructed only once, - // testing results keep consistent with visual effect(good:). check_equals(mo, "typeof(mc1)", "'movieclip'"); - xcheck_equals(mo, "typeof(mc2)", "'undefined'"); //Gnash fails by unneeded recreating - xcheck_equals(mo, "typeof(mc3)", "'undefined'"); //Gnash fails by unneeded recreating - xcheck_equals(mo, "typeof(mc4)", "'movieclip'"); //Gnash fails by unneeded recreating - xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); //Gnash fails by unneeded recreating - check_equals(mo, "mc1Constructed", "1"); + xcheck_equals(mo, "typeof(mc2)", "'undefined'"); + check_equals(mo, "typeof(mc3)", "'movieclip'"); + xcheck_equals(mo, "typeof(mc4)", "'movieclip'"); + xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); check_equals(mo, "mc1Constructed", "1"); - xcheck_equals(mo, "mc2Constructed", "1"); //Gnash fails by unneeded recreating - xcheck_equals(mo, "mc3Constructed", "1"); //Gnash fails by unneeded recreating + xcheck_equals(mo, "mc2Constructed", "1"); + xcheck_equals(mo, "mc3Constructed", "2"); check_equals(mo, "mc4Constructed", "1"); check_equals(mo, "mc5Constructed", "1"); check_equals(mo, "mc1Unloaded", "0"); From MAILER-DAEMON Tue Jun 12 08:33:29 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy5Yv-0007WI-DF for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 08:33:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy5Yt-0007Vu-PD for gnash-commit@gnu.org; Tue, 12 Jun 2007 08:33:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy5Yq-0007Uk-T1 for gnash-commit@gnu.org; Tue, 12 Jun 2007 08:33:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy5Yq-0007Ue-OF for gnash-commit@gnu.org; Tue, 12 Jun 2007 08:33:24 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy5Yq-0001vw-0N for gnash-commit@gnu.org; Tue, 12 Jun 2007 08:33:24 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hy5Yo-0006OQ-Rf for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:33:22 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hy5Yo-0006OD-JT for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:33:22 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 12 Jun 2007 12:33:22 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog Makefile.am configure.ac server... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 12:33:28 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/12 12:33:22 Modified files: . : ChangeLog Makefile.am configure.ac server : FreetypeRasterizer.cpp FreetypeRasterizer.h Makefile.am edit_text_character.cpp font.cpp font.h server/parser : Makefile.am bitmap_character_def.h Log message: * configure.ac: Look for libfreetype using GNASH_PKG_FIND * server/FreetypeRasterizer.{cpp,h}: use HAVE_FREETYPE_H, use intrusive_ptr for bitmap_info, not auto_ptr; add missing includes, make it actually buildable. * server/Makefile.am: Build FreetypeRasterizer * server/parser/Makefile.am: add FREETYPE_CFLAGS * server/edit_text_character.cpp (format_text): stop relying on font::get_glyph_count, as for device fonts count of glyph is not known in advance (grows as needed). * server/font.{cpp,h}: Add private methods for initialization and use of a freetype rasterizer; get_glyph_index() will now try to create a missing glyph. * server/parser/bitmap_character_def.h: add forward declaration for image::rgb CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3511&r2=1.3512 http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&r1=1.75&r2=1.76 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.337&r2=1.338 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.115&r2=1.116 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.65&r2=1.66 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.32&r2=1.33 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.h?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/Makefile.am?cvsroot=gnash&r1=1.34&r2=1.35 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/bitmap_character_def.h?cvsroot=gnash&r1=1.16&r2=1.17 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3511 retrieving revision 1.3512 diff -u -b -r1.3511 -r1.3512 --- ChangeLog 12 Jun 2007 09:00:17 -0000 1.3511 +++ ChangeLog 12 Jun 2007 12:33:20 -0000 1.3512 @@ -1,3 +1,20 @@ +2007-06-12 Sandro Santilli + + * configure.ac: Look for libfreetype using GNASH_PKG_FIND + * server/FreetypeRasterizer.{cpp,h}: use HAVE_FREETYPE_H, + use intrusive_ptr for bitmap_info, not auto_ptr; add missing + includes, make it actually buildable. + * server/Makefile.am: Build FreetypeRasterizer + * server/parser/Makefile.am: add FREETYPE_CFLAGS + * server/edit_text_character.cpp (format_text): stop relying + on font::get_glyph_count, as for device fonts count of glyph + is not known in advance (grows as needed). + * server/font.{cpp,h}: Add private methods for initialization + and use of a freetype rasterizer; get_glyph_index() will now + try to create a missing glyph. + * server/parser/bitmap_character_def.h: add forward declaration + for image::rgb + 2007-06-12 Zou Lunkai * testsuite/misc-ming.all/loop_test8.c: Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.75 retrieving revision 1.76 diff -u -b -r1.75 -r1.76 --- Makefile.am 6 Jun 2007 06:58:19 -0000 1.75 +++ Makefile.am 12 Jun 2007 12:33:21 -0000 1.76 @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Makefile.am,v 1.75 2007/06/06 06:58:19 strk Exp $ +# $Id: Makefile.am,v 1.76 2007/06/12 12:33:21 strk Exp $ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6.0 @@ -193,6 +193,8 @@ @echo " Z_LIBS is $(Z_LIBS)" @echo " LIBXML_CFLAGS is $(LIBXML_CFLAGS)" @echo " LIBXML_LIBS is $(LIBXML_LIBS)" + @echo " FREETYPE_CFLAGS is $(FREETYPE_CFLAGS)" + @echo " FREETYPE_LIBS is $(FREETYPE_LIBS)" if HAVE_DMALLOC @echo " DMALLOC_CFLAGS is $(DMALLOC_CFLAGS)" @echo " DMALLOC_LIBS is $(DMALLOC_LIBS)" Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.337 retrieving revision 1.338 diff -u -b -r1.337 -r1.338 --- configure.ac 9 Jun 2007 19:42:05 -0000 1.337 +++ configure.ac 12 Jun 2007 12:33:21 -0000 1.338 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.337 2007/06/09 19:42:05 bjacques Exp $ +dnl $Id: configure.ac,v 1.338 2007/06/12 12:33:21 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -706,6 +706,9 @@ GNASH_PKG_FIND(jpeg, [jpeglib.h], [jpeg images], jpeg_mem_init) GNASH_PKG_INCLUDES([dejagnu], [dejagnu.h]) +dnl Find freetype +GNASH_PKG_FIND(freetype, [freetype/freetype.h], [freetype2 font library], FT_Load_Char) + AC_PATH_MING AM_CONDITIONAL(ENABLE_MING, [ test x"$MAKESWF" != x ]) AM_CONDITIONAL(MAKESWF_SUPPORTS_PREBUILT_CLIPS, @@ -1765,6 +1768,22 @@ echo " It may still be possible to configure without zlib." fi +if test x"$FREETYPE_LIBS" != x; then + if test x"$FREETYPE_CFLAGS" != x; then + echo " FreeType flags are: $FREETYPE_CFLAGS" + else + echo " FreeType flags are: default include path" + fi + echo " FreeType libs are: $FREETYPE_LIBS" +else + echo " WARNING: You need to have the freetype development packages installed" + echo " to use device fonts." + echo " Install it from http://www.freetype.org" + echo " or .deb users: apt-get install libfreetype6-dev" + echo " or .rpm users: yum install libfreetype6-dev (??)" + echo " It may still be possible to configure without freetype." +fi + if test x$ext_mysql = xyes; then if test x$mysql != xno; then if test x"$MYSQL_LIBS" != x; then Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- server/FreetypeRasterizer.cpp 11 Jun 2007 15:51:17 -0000 1.3 +++ server/FreetypeRasterizer.cpp 12 Jun 2007 12:33:21 -0000 1.4 @@ -11,6 +11,10 @@ #endif #include "FreetypeRasterizer.h" +#include "smart_ptr.h" // for intrusive_ptr +#include "image.h" // for create_alpha +#include "GnashException.h" +#include "render.h" #include "log.h" #include // for snprintf @@ -21,7 +25,7 @@ namespace gnash { -#ifdef HAVE_LIBFREETYPE +#ifdef HAVE_FREETYPE2 // static FT_Library FreetypeRasterizer::m_lib; @@ -62,8 +66,8 @@ // copy image to alpha for (int i = 0; i < bitmap.rows; i++) { - uint8* src = bitmap.buffer + bitmap.pitch * i; - uint8* dst = alpha->m_data + alpha->m_pitch * i; + uint8_t* src = bitmap.buffer + bitmap.pitch * i; + uint8_t* dst = alpha->m_data + alpha->m_pitch * i; int x = bitmap.width; while (x-- > 0) { @@ -74,6 +78,7 @@ return alpha; } +#if 0 // private float FreetypeRasterizer::get_advance_x(uint16_t code) @@ -85,6 +90,7 @@ } return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; } +#endif // private bool @@ -92,18 +98,19 @@ bool bold, bool italic, std::string& filename) { // TODO: implement + log_error("FIXME: font name to filename mapping unimplemented"); return false; } -#endif // HAVE_LIBFREETYPE +#endif // HAVE_FREETYPE2 -#ifdef HAVE_LIBFREETYPE +#ifdef HAVE_FREETYPE2 // static std::auto_ptr FreetypeRasterizer::createFace(const std::string& name, bool bold, bool italic) { - std::auto_ptr ret( + std::auto_ptr ret; try { ret.reset( new FreetypeRasterizer(name, bold, italic) ); @@ -115,16 +122,16 @@ return ret; } -#else // ndef HAVE_LIBFREETYPE +#else // ndef HAVE_FREETYPE2 std::auto_ptr FreetypeRasterizer::createFace(const std::string&, bool, bool) { log_error("Freetype not supported"); return std::auto_ptr(NULL); } -#endif // ndef HAVE_LIBFREETYPE +#endif // ndef HAVE_FREETYPE2 -#ifdef HAVE_LIBFREETYPE +#ifdef HAVE_FREETYPE2 FreetypeRasterizer::FreetypeRasterizer(const std::string& name, bool bold, bool italic) : m_face(NULL) @@ -142,7 +149,7 @@ { snprintf(buf, maxerrlen, _("Can't find font file for font '%s'"), name.c_str()); buf[maxerrlen-1] = '\0'; - throw GnashException(buf): + throw GnashException(buf); } int error = FT_New_Face(m_lib, filename.c_str(), 0, &m_face); @@ -152,33 +159,31 @@ break; case FT_Err_Unknown_File_Format: - char buf[64]; snprintf(buf, maxerrlen, _("Font file '%s' has bad format"), filename.c_str()); buf[maxerrlen-1] = '\0'; - throw GnashException(buf): + throw GnashException(buf); break; default: // TODO: return a better error message ! - char buf[64]; snprintf(buf, maxerrlen, _("Some error opening font '%s'"), filename.c_str()); buf[maxerrlen-1] = '\0'; - throw GnashException(buf): + throw GnashException(buf); break; } } -#else // ndef(HAVE_LIBFREETYPE) +#else // ndef(HAVE_FREETYPE2) FreetypeRasterizer::FreetypeRasterizer(const std::string&, bool, bool) { assert(0); // should never be called } -#endif // ndef HAVE_LIBFREETYPE +#endif // ndef HAVE_FREETYPE2 -#ifdef HAVE_LIBFREETYPE -std::auto_ptr +#ifdef HAVE_FREETYPE2 +boost::intrusive_ptr FreetypeRasterizer::getRenderedGlyph(uint16_t code, rect& box, float& advance) { - std::auto_ptr bi; + boost::intrusive_ptr bi; FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) @@ -188,27 +193,33 @@ std::auto_ptr im ( draw_bitmap(m_face->glyph->bitmap) ); - bi.reset( render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data) ); + bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); - box.m_x_max = float(m_face->glyph->bitmap.width) / float(bi->m_suspended_image->m_width); - box.m_y_max = float(m_face->glyph->bitmap.rows) / float(bi->m_suspended_image->m_height); + float xmax = float(m_face->glyph->bitmap.width) / float(bi->m_suspended_image->m_width); + float ymax = float(m_face->glyph->bitmap.rows) / float(bi->m_suspended_image->m_height); - box.m_x_min = float(m_face->glyph->metrics.horiBearingX) / float(m_face->glyph->metrics.width); - box.m_y_min = float(m_face->glyph->metrics.horiBearingY) / float(m_face->glyph->metrics.height); - box.m_x_min *= -box.m_x_max; - box.m_y_min *= box.m_y_max; + float xmin = float(m_face->glyph->metrics.horiBearingX) / float(m_face->glyph->metrics.width); + float ymin = float(m_face->glyph->metrics.horiBearingY) / float(m_face->glyph->metrics.height); + // ??? + xmin *= -xmax; + ymin *= ymax; + + box.enclose_point(xmin, ymin); + box.expand_to_point(xmax, ymax); + + static float s_advance_scale = 0.16666666f; //vv hack advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; return bi; } -#else // ndef(HAVE_LIBFREETYPE) -std::auto_ptr +#else // ndef(HAVE_FREETYPE2) +boost::intrusive_ptr FreetypeRasterizer::getRenderedGlyph(uint16_t, rect& , float&) { assert(0); // should never be called... } -#endif // ndef(HAVE_LIBFREETYPE) +#endif // ndef(HAVE_FREETYPE2) } // namespace gnash Index: server/FreetypeRasterizer.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- server/FreetypeRasterizer.h 11 Jun 2007 13:23:22 -0000 1.2 +++ server/FreetypeRasterizer.h 12 Jun 2007 12:33:21 -0000 1.3 @@ -10,24 +10,29 @@ #include "config.h" #endif + +#ifdef HAVE_FREETYPE_FREETYPE_H +# define HAVE_FREETYPE2 1 +#endif + #include "rect.h" +#include "smart_ptr.h" // for intrusive_ptr #include #include // for auto_ptr -#ifdef HAVE_LIBFREETYPE +#ifdef HAVE_FREETYPE2 # include -# include -# include +# include FT_FREETYPE_H # include FT_GLYPH_H #endif // Forward declarations namespace gnash { class bitmap_info; - namespace image { +} +namespace image { class alpha; - } } @@ -44,6 +49,9 @@ /// class FreetypeRasterizer { + +public: + /// Named constructor for a face-bound rasterizer. // /// @param name @@ -75,7 +83,7 @@ /// @return A bitmap_info, or a NULL pointer if the given character code /// doesn't exist in this font. /// - std::auto_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); + boost::intrusive_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); private: @@ -85,10 +93,10 @@ /// FreetypeRasterizer(const std::string& fontname, bool bold, bool italic); -#ifdef HAVE_LIBFREETYPE +#ifdef HAVE_FREETYPE2 // TODO: drop ? - float get_advance_x(uint16_t code); + //float get_advance_x(uint16_t code); /// Get filename containing given font // @@ -126,7 +134,7 @@ static FT_Library m_lib; FT_Face m_face; -#endif // HAVE_LIBFREETYPE +#endif // HAVE_FREETYPE2 }; Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.115 retrieving revision 1.116 diff -u -b -r1.115 -r1.116 --- server/Makefile.am 7 Jun 2007 14:59:08 -0000 1.115 +++ server/Makefile.am 12 Jun 2007 12:33:21 -0000 1.116 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.115 2007/06/07 14:59:08 strk Exp $ +# $Id: Makefile.am,v 1.116 2007/06/12 12:33:21 strk Exp $ AUTOMAKE_OPTIONS = @@ -28,6 +28,9 @@ lib_LTLIBRARIES = libgnashserver.la # noinst_SCRIPTS = gen-files.sh +# TODO: use a conditional to optionally link ? +FREETYPE_SOURCES = FreetypeRasterizer.h FreetypeRasterizer.cpp + # Only enable if we're configured with --enable-mp3 AM_CPPFLAGS = \ -I$(top_srcdir)/backend \ @@ -45,6 +48,7 @@ $(GSTREAMER_CFLAGS) \ $(BOOST_CFLAGS) \ $(LIBXML_CFLAGS) \ + $(FREETYPE_CFLAGS) \ $(NULL) libgnashserver_la_SOURCES = \ @@ -92,6 +96,7 @@ textformat.cpp \ timers.cpp \ types.cpp \ + $(FREETYPE_SOURCES) \ $(NULL) noinst_HEADERS = \ @@ -166,6 +171,7 @@ $(LIBXML_LIBS) \ $(BOOST_LIBS) \ $(PTHREAD_LIBS) \ + $(FREETYPE_LIBS) \ $(NULL) if USE_SOUND_GST Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.65 retrieving revision 1.66 diff -u -b -r1.65 -r1.66 --- server/edit_text_character.cpp 8 Jun 2007 12:11:50 -0000 1.65 +++ server/edit_text_character.cpp 12 Jun 2007 12:33:21 -0000 1.66 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.65 2007/06/08 12:11:50 zoulunkai Exp $ */ +/* $Id: edit_text_character.cpp,v 1.66 2007/06/12 12:33:21 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -922,6 +922,7 @@ return; } +#if 0 // device fonts has an unknown (unless we scan them) number of glyphs // @@ mostly for debugging // Font substitution -- if the font has no // glyphs, try some other defined font! @@ -960,6 +961,7 @@ } } +#endif float scale = m_def->get_font_height() / 1024.0f; // the EM square is 1024 x 1024 Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- server/font.cpp 15 May 2007 09:59:08 -0000 1.32 +++ server/font.cpp 12 Jun 2007 12:33:21 -0000 1.33 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.32 2007/05/15 09:59:08 strk Exp $ */ +/* $Id: font.cpp,v 1.33 2007/06/12 12:33:21 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -131,6 +131,11 @@ assert (tag == SWF::DEFINEFONT2 || tag == SWF::DEFINEFONT3); readDefineFont2_or_3(in, m); } + + if ( m_name && ! initDeviceFontRasterizer() ) + { + log_error("Could not initialize device font face '%s'", m_name); + } } // Read a DefineFont tag @@ -433,10 +438,11 @@ int font::get_glyph_index(uint16_t code) const { + int glyph_index = -1; code_table::const_iterator it = m_code_table.find(code); if ( it != m_code_table.end() ) { - int glyph_index = it->second; + glyph_index = it->second; #if 0 log_msg(_("get_glyph_index(%u) returning %d"), code, glyph_index); @@ -444,10 +450,15 @@ return glyph_index; } + // Try adding an os font, of possible + if ( _ftRasterizer.get() ) + { + glyph_index = const_cast(this)->add_os_glyph(code); + } #if 0 log_msg(_("get_glyph_index(%u) returning -1"), code); #endif - return -1; + return glyph_index; } float font::get_advance(int glyph_index) const @@ -547,6 +558,61 @@ #endif // 0 } + int + font::add_os_glyph(uint16_t code) + { + assert ( _ftRasterizer.get() ); + assert(m_code_table.find(code) == m_code_table.end()); + + rect box; + float advance; + boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance) ); + + if ( ! bi.get() ) + { + log_error("Could not create glyph for character code %u with device font %s (%p)", code, m_name, _ftRasterizer.get()); + return -1; + } + + // Create textured glyph from the bitmap info + texture_glyph tg; + tg.m_uv_bounds.enclose_point(0, 0); + tg.m_uv_bounds.expand_to_point(box.get_x_max(), box.get_y_max()); + // the origin + tg.m_uv_origin.m_x = box.get_x_min(); + tg.m_uv_origin.m_y = box.get_y_min(); + tg.set_bitmap_info(bi.get()); + + // Add the textured glyph + int newOffset = m_texture_glyphs.size(); + m_code_table[code] = newOffset; + m_advance_table.push_back(advance); + m_texture_glyphs.push_back(tg); + m_glyphs.push_back(NULL); + + testInvariant(); + + return newOffset; + } + + bool + font::initDeviceFontRasterizer() + { + if ( ! m_name ) + { + log_error("No name associated with this font, can't use device fonts (should I use a default one?)"); + return false; + } + + _ftRasterizer = FreetypeRasterizer::createFace(m_name, m_is_bold, m_is_italic); + if ( ! _ftRasterizer.get() ) + { + log_error("Could not create a freetype face %s", m_name); + return false; + } + return true; + } + } // end namespace gnash Index: server/font.h =================================================================== RCS file: /sources/gnash/gnash/server/font.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- server/font.h 21 Feb 2007 11:35:51 -0000 1.20 +++ server/font.h 12 Jun 2007 12:33:21 -0000 1.21 @@ -17,6 +17,8 @@ #include "ref_counted.h" // for inheritance of texture_glyph #include "swf.h" // for tag_type definition #include "bitmap_info.h" // for dtor visibility by smart pointer +#include "FreetypeRasterizer.h" // for device fonts support +#include "log.h" #include @@ -110,10 +112,31 @@ ~font(); // override from resource. - virtual font* cast_to_font() { return this; } + font* cast_to_font() { return this; } + + void testInvariant() + { + assert(m_texture_glyphs.size() == m_glyphs.size()); + assert(m_texture_glyphs.size() == m_advance_table.size()); + } /// Get number of glyphs defined for this font - int get_glyph_count() const { return m_glyphs.size(); } + // + /// NOTE: for device fonts, this method will returns whatever + /// number of glyphs the cache happens to have at time of + /// calls. Anyway, the cache will grow if any font user + /// requests more glyphs... + /// + /// Callers of this function are: + /// + /// - fontlib, for writing cache data (known to be not working anyway). + /// - edit_text_character, for validating the font (obsoleted too). + /// + int get_glyph_count() const + { + log_error("FIXME: font::get_glyph_count() is a deprecated method"); + return m_glyphs.size(); + } /// Get glyph by index. Return NULL if out of range shape_character_def* get_glyph(int glyph_index) const; @@ -161,10 +184,14 @@ /// texture_glyph. /// const texture_glyph& get_texture_glyph(int glyph_index) const; + /// \brief /// Register some texture info for the glyph at the specified /// index. The texture_glyph can be used later to render the /// glyph. + // + /// TODO: deprecate this, probably only used by the caching mechanism + /// void add_texture_glyph(int glyph_index, const texture_glyph& glyph); void set_texture_glyph_nominal_size(int size) { m_texture_glyph_nominal_size = imax(1, size); } @@ -189,9 +216,24 @@ /// Read a DefineFont2 or DefineFont3 tag void readDefineFont2_or_3(stream* in, movie_definition* m); - // Read a DefineFont tag + /// Read a DefineFont tag void readDefineFont(stream* in, movie_definition* m); + /// Add a glyph from the os font. + // + /// It is assumed that the glyph tables do NOT contain + /// an entry for the given code. + /// Initializes the rasterizer if not already done so. + /// + /// @return index of the newly added glyph, or -1 on error. + /// + int add_os_glyph(uint16_t code); + + /// Initialize the freetype rasterizer + // + /// Return true on success, false on error + bool initDeviceFontRasterizer(); + std::vector< boost::intrusive_ptr > m_glyphs; std::vector< texture_glyph > m_texture_glyphs; // cached info, built by gnash_fontlib. @@ -210,17 +252,6 @@ bool m_wide_codes; // This table maps from Unicode character number to glyph index. - // m_code_table[character_code] = glyph_index - // - // @@ TODO: avoid little allocs; replace this with a flat hash, or else a sorted array (binary search) -// template -// class simple_code_hash -// // Dummy hash functor. -// { - public: -// size_t operator()(const T& data) const { return data; } -// }; -// hash > m_code_table; typedef std::map code_table; code_table m_code_table; @@ -229,13 +260,11 @@ float m_descent; float m_leading; std::vector m_advance_table; - // @@ we don't seem to use this thing at all, so don't bother keeping it. - // std::vector m_bounds_table; // @@ this thing should be optional. - - //hash m_kerning_pairs; typedef std::map kernings_table; kernings_table m_kerning_pairs; + + std::auto_ptr _ftRasterizer; }; Index: server/parser/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/parser/Makefile.am,v retrieving revision 1.34 retrieving revision 1.35 diff -u -b -r1.34 -r1.35 --- server/parser/Makefile.am 4 Jun 2007 18:00:09 -0000 1.34 +++ server/parser/Makefile.am 12 Jun 2007 12:33:22 -0000 1.35 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.34 2007/06/04 18:00:09 rsavoye Exp $ +# $Id: Makefile.am,v 1.35 2007/06/12 12:33:22 strk Exp $ AUTOMAKE_OPTIONS = @@ -40,7 +40,9 @@ $(GLIB_CFLAGS) \ $(PTHREAD_CFLAGS) \ $(DMALLOC_CFLAGS) \ - $(BOOST_CFLAGS) + $(BOOST_CFLAGS) \ + $(FREETYPE_CFLAGS) \ + $(NULL) libgnashparser_la_SOURCES = \ action_buffer.cpp \ Index: server/parser/bitmap_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/bitmap_character_def.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- server/parser/bitmap_character_def.h 28 May 2007 15:41:09 -0000 1.16 +++ server/parser/bitmap_character_def.h 12 Jun 2007 12:33:22 -0000 1.17 @@ -38,6 +38,10 @@ #include #include // for auto_ptr +namespace image { + class rgb; +} + namespace gnash { /// Definition of a bitmap character From MAILER-DAEMON Tue Jun 12 12:38:47 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy9OJ-0006QX-Aw for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 12:38:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy9OH-0006Pt-Mi for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:38:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy9OG-0006Oy-J5 for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:38:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy9OG-0006Ov-D1 for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:38:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy9OG-0004zJ-1s for gnash-commit@gnu.org; Tue, 12 Jun 2007 12:38:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hy9O8-0004jm-PX for gnash-commit@gnu.org; Tue, 12 Jun 2007 16:38:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hy9O8-0004jf-Ij for gnash-commit@gnu.org; Tue, 12 Jun 2007 16:38:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 12 Jun 2007 16:38:36 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 16:38:46 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/12 16:38:36 Modified files: . : ChangeLog testsuite/misc-ming.all: DefineEditTextTest.c Log message: * testsuite/misc-ming.all/DefineEditTextTest.c: Test both embedded and device fonts. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3512&r2=1.3513 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3512 retrieving revision 1.3513 diff -u -b -r1.3512 -r1.3513 --- ChangeLog 12 Jun 2007 12:33:20 -0000 1.3512 +++ ChangeLog 12 Jun 2007 16:38:35 -0000 1.3513 @@ -1,5 +1,10 @@ 2007-06-12 Sandro Santilli + * testsuite/misc-ming.all/DefineEditTextTest.c: + Test both embedded and device fonts. + +2007-06-12 Sandro Santilli + * configure.ac: Look for libfreetype using GNASH_PKG_FIND * server/FreetypeRasterizer.{cpp,h}: use HAVE_FREETYPE_H, use intrusive_ptr for bitmap_info, not auto_ptr; add missing Index: testsuite/misc-ming.all/DefineEditTextTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- testsuite/misc-ming.all/DefineEditTextTest.c 29 Oct 2006 18:34:18 -0000 1.4 +++ testsuite/misc-ming.all/DefineEditTextTest.c 12 Jun 2007 16:38:36 -0000 1.5 @@ -19,8 +19,9 @@ /* * Test DefineEditText tag. - * Uses "embedded" font and defines a smaller rectangle then required. - * The text written is 'Hello world', expected result is a single 'H'. + * Uses both "embedded" font and device fonts. + * The text written is 'Hello world' in both cases. + * Text at the bottom is the one with embedded fonts. * * run as ./DefineEditTextTest */ @@ -32,9 +33,9 @@ #define OUTPUT_VERSION 7 #define OUTPUT_FILENAME "DefineEditTextTest.swf" -void add_text_field(SWFMovie mo, SWFBlock font, const char* text); +SWFDisplayItem add_text_field(SWFMovie mo, SWFBlock font, const char* text); -void +SWFDisplayItem add_text_field(SWFMovie mo, SWFBlock font, const char* text) { SWFTextField tf; @@ -56,7 +57,8 @@ * * Ref: https://savannah.gnu.org/bugs/?func=detailitem&item_id=16637. */ - SWFTextField_setBounds(tf, 160, 338); + //SWFTextField_setBounds(tf, 160, 338); + SWFTextField_setBounds(tf, 60000, 338); /* * The following settings (found in the reported SWF) @@ -72,7 +74,7 @@ /*SWFTextField_setLineSpacing(tf, 40);*/ /*SWFTextField_setLineSpacing(tf, 40);*/ - SWFMovie_add(mo, (SWFBlock)tf); + return SWFMovie_add(mo, (SWFBlock)tf); } int @@ -101,11 +103,11 @@ Ming_init(); Ming_useSWFVersion (OUTPUT_VERSION); - Ming_setScale(1.0); /* so we talk twips */ + //Ming_setScale(20.0); /* so we talk twips */ mo = newSWFMovie(); SWFMovie_setRate(mo, 24); - SWFMovie_setDimension(mo, 12560, 9020); + //SWFMovie_setDimension(mo, 12560, 9020); /********************************************* * @@ -115,15 +117,19 @@ /* This is with embedded fonts, not working */ { + SWFDisplayItem it; FILE *font_file = fopen(fdbfont, "r"); if ( font_file == NULL ) { perror(fdbfont); exit(1); } - /*SWFBrowserFont bfont = newSWFBrowserFont("_sans");*/ - SWFFont bfont = loadSWFFontFromFile(font_file); - add_text_field(mo, (SWFBlock)bfont, "Hello world"); + SWFBrowserFont bfont = newSWFBrowserFont("_sans"); + SWFFont efont = loadSWFFontFromFile(font_file); + + it = add_text_field(mo, (SWFBlock)bfont, "Hello world"); + it = add_text_field(mo, (SWFBlock)efont, "Hello world"); + SWFDisplayItem_moveTo(it, 0, 30); } /***************************************************** From MAILER-DAEMON Tue Jun 12 19:00:25 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyFLd-0008A3-LE for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 19:00:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyFLb-00087O-Ge for gnash-commit@gnu.org; Tue, 12 Jun 2007 19:00:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyFLY-000853-P4 for gnash-commit@gnu.org; Tue, 12 Jun 2007 19:00:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyFLY-00084w-Gn for gnash-commit@gnu.org; Tue, 12 Jun 2007 19:00:20 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyFLY-0005Oy-3y for gnash-commit@gnu.org; Tue, 12 Jun 2007 19:00:20 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyFLW-0005RP-UD for gnash-commit@gnu.org; Tue, 12 Jun 2007 23:00:19 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyFLW-0005RL-PL for gnash-commit@gnu.org; Tue, 12 Jun 2007 23:00:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 12 Jun 2007 23:00:18 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 23:00:24 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/12 23:00:18 Modified files: . : ChangeLog server : FreetypeRasterizer.cpp Log message: * server/FreetypeRasterizer.cpp (getRenderedGlyph): don't assume "suspeded_image" is not-null after creation of the bitmap_info_alpha instance (those bitmap interfaces needs a big cleanup really...). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3513&r2=1.3514 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3513 retrieving revision 1.3514 diff -u -b -r1.3513 -r1.3514 --- ChangeLog 12 Jun 2007 16:38:35 -0000 1.3513 +++ ChangeLog 12 Jun 2007 23:00:17 -0000 1.3514 @@ -1,5 +1,8 @@ 2007-06-12 Sandro Santilli + * server/FreetypeRasterizer.cpp (getRenderedGlyph): don't assume + "suspeded_image" is not-null after creation of the bitmap_info_alpha + instance (those bitmap interfaces needs a big cleanup really...). * testsuite/misc-ming.all/DefineEditTextTest.c: Test both embedded and device fonts. Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- server/FreetypeRasterizer.cpp 12 Jun 2007 12:33:21 -0000 1.4 +++ server/FreetypeRasterizer.cpp 12 Jun 2007 23:00:18 -0000 1.5 @@ -195,8 +195,8 @@ std::auto_ptr im ( draw_bitmap(m_face->glyph->bitmap) ); bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); - float xmax = float(m_face->glyph->bitmap.width) / float(bi->m_suspended_image->m_width); - float ymax = float(m_face->glyph->bitmap.rows) / float(bi->m_suspended_image->m_height); + float xmax = float(m_face->glyph->bitmap.width) / float(im->m_width); + float ymax = float(m_face->glyph->bitmap.rows) / float(im->m_height); float xmin = float(m_face->glyph->metrics.horiBearingX) / float(m_face->glyph->metrics.width); float ymin = float(m_face->glyph->metrics.horiBearingY) / float(m_face->glyph->metrics.height); From MAILER-DAEMON Tue Jun 12 20:17:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyGYZ-000298-85 for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 20:17:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyGYY-000293-Dz for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:17:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyGYW-00028r-Jm for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:17:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyGYW-00028o-Eo for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:17:48 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyGYW-00059S-2w for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:17:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyGYU-0003P5-DL for gnash-commit@gnu.org; Wed, 13 Jun 2007 00:17:46 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyGYU-0003P0-26 for gnash-commit@gnu.org; Wed, 13 Jun 2007 00:17:46 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 00:17:46 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server FreetypeRasterizer.cpp FreetypeRas... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 00:17:50 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 00:17:45 Modified files: server : FreetypeRasterizer.cpp FreetypeRasterizer.h font.cpp fontlib.cpp text.cpp Log message: * server/FreetypeRasterizer.{cpp,h}: added interface to fetch vectorial glyph (just a stub). * server/font.cpp (add_os_glyph): fetch both rasterized and vectorial glyphs, survive to texture glyphs with a null bound (space is one such glyph). * server/fontlib.cpp (draw_glyph): skip rendering of textured glyphs with null bounds. * server/text.cpp (display_glyph_records): enable debugging by default. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fontlib.cpp?cvsroot=gnash&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/gnash/server/text.cpp?cvsroot=gnash&r1=1.29&r2=1.30 Patches: Index: FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- FreetypeRasterizer.cpp 12 Jun 2007 23:00:18 -0000 1.5 +++ FreetypeRasterizer.cpp 13 Jun 2007 00:17:44 -0000 1.6 @@ -15,6 +15,7 @@ #include "image.h" // for create_alpha #include "GnashException.h" #include "render.h" +#include "DynamicShape.h" #include "log.h" #include // for snprintf @@ -97,6 +98,11 @@ FreetypeRasterizer::getFontFilename(const std::string& name, bool bold, bool italic, std::string& filename) { +#define DEFAULT_FONTFILE "/usr/share/fonts/truetype/freefont/FreeSans.ttf" + + filename = DEFAULT_FONTFILE; + return true; + // TODO: implement log_error("FIXME: font name to filename mapping unimplemented"); return false; @@ -186,20 +192,33 @@ boost::intrusive_ptr bi; FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); - if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) + FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_RENDER); + if ( error != 0 ) { + log_error("Error loading freetype render glyph for char '%c' (error: %d)", code, error); return bi; } + FT_GlyphSlot glyph = m_face->glyph; + FT_Bitmap bitmap = glyph->bitmap; + FT_Glyph_Metrics metrics = glyph->metrics; + + std::auto_ptr im ( draw_bitmap(bitmap) ); + + log_debug("image::alpha drawn for character glyph '%c' bitmap has size %dx%d", code, im->m_width, im->m_height); + log_debug("ttf bitmap glyph width:%d, rows:%d", bitmap.width, bitmap.rows); + log_debug("ttf glyph metrics width:%d, height:%d", metrics.width, metrics.height); + log_debug("ttf glyph metrics X bearing:%ld, Y bearing:%ld", metrics.horiBearingX, metrics.horiBearingY); - std::auto_ptr im ( draw_bitmap(m_face->glyph->bitmap) ); bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); - float xmax = float(m_face->glyph->bitmap.width) / float(im->m_width); - float ymax = float(m_face->glyph->bitmap.rows) / float(im->m_height); + if ( bitmap.width && bitmap.rows && metrics.width && metrics.height ) + { + float xmax = float(bitmap.width) / float(im->m_width); + float ymax = float(bitmap.rows) / float(im->m_height); - float xmin = float(m_face->glyph->metrics.horiBearingX) / float(m_face->glyph->metrics.width); - float ymin = float(m_face->glyph->metrics.horiBearingY) / float(m_face->glyph->metrics.height); + float xmin = float(metrics.horiBearingX) / float(metrics.width); + float ymin = float(metrics.horiBearingY) / float(metrics.height); // ??? xmin *= -xmax; @@ -207,10 +226,18 @@ box.enclose_point(xmin, ymin); box.expand_to_point(xmax, ymax); + } + else + { + box.set_null(); + } static float s_advance_scale = 0.16666666f; //vv hack advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; + log_debug(" box: %s, advance: %g", box.toString().c_str(), advance); + + return bi; } #else // ndef(HAVE_FREETYPE2) @@ -221,5 +248,53 @@ } #endif // ndef(HAVE_FREETYPE2) +#ifdef HAVE_FREETYPE2 +boost::intrusive_ptr +FreetypeRasterizer::getGlyph(uint16_t code) +{ + boost::intrusive_ptr sh; + //return sh; + + FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); + FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_NO_BITMAP); + //error = FT_Load_Char(m_face, code, FT_LOAD_RENDER); + if ( error != 0 ) + { + log_error("Error loading freetype outline glyph for char '%c' (error: %d)", code, error); + return sh.get(); + } + + assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); + + sh = new DynamicShape(); + + // TODO: implement proper conversion, + // this is just a placeholder + + int width=80*20; + int height=100*20; + + //sh->lineStyle(1, rgba(255, 255, 255, 255)); + sh->beginFill(rgba(255, 255, 255, 255)); + + sh->moveTo(0, 0); + sh->lineTo(0, height); + sh->lineTo(width, height); + sh->lineTo(width, 0); + sh->lineTo(0, 0); + sh->endFill(); + + sh->finalize(); + + return sh.get(); +} +#else // ndef(HAVE_FREETYPE2) +boost::intrusive_ptr +FreetypeRasterizer::getGlyph(uint16_t) +{ + assert(0); // should never be called... +} +#endif // ndef(HAVE_FREETYPE2) + } // namespace gnash Index: FreetypeRasterizer.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- FreetypeRasterizer.h 12 Jun 2007 12:33:21 -0000 1.3 +++ FreetypeRasterizer.h 13 Jun 2007 00:17:44 -0000 1.4 @@ -30,6 +30,7 @@ // Forward declarations namespace gnash { class bitmap_info; + class shape_character_def; } namespace image { class alpha; @@ -40,13 +41,16 @@ /// Truetype font rasterizer based on freetype library // -/// Instances of this class provide rasterized glyphs for a given -/// truetype font face. +/// Instances of this class provide rasterized or vectorial glyphs +/// for a given truetype font face. /// /// The rasterized glyphs have a max size of 96 (TODO: make parametrizable) /// but I think the actual size could change between glyphs (see the 'box' /// parameter of getRenderedGlyph() method). /// +/// Vectorial glyphs are instances of a shape_character_def, same class +/// resulting from parsing of embedded fonts. +/// class FreetypeRasterizer { @@ -75,16 +79,30 @@ /// Character code. /// /// @param box - /// Output parameter... TODO: describe what it is. + /// Output parameter. Bounding box of glyph is returned here. + /// TODO: document units, and more about what a bounding box is + /// (ie: actual bounds of visible shape or including padding?). + /// NOTE: can be the NULL bound, for non-visible characters + /// (space, tab, whatever else). /// /// @param advance - /// Output parameter... TODO: describe what it is. + /// Output parameter... TODO: describe what it is (units?) /// /// @return A bitmap_info, or a NULL pointer if the given character code /// doesn't exist in this font. /// boost::intrusive_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); + /// Return the given character glyph as a shape character definition + // + /// @param code + /// Character code. + /// + /// @return A shape_character_def, or a NULL pointer if the given character code + /// doesn't exist in this font. + /// + boost::intrusive_ptr getGlyph(uint16_t code); + private: /// Use the named constructor to create an instance Index: font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- font.cpp 12 Jun 2007 12:33:21 -0000 1.33 +++ font.cpp 13 Jun 2007 00:17:44 -0000 1.34 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.33 2007/06/12 12:33:21 strk Exp $ */ +/* $Id: font.cpp,v 1.34 2007/06/13 00:17:44 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -564,31 +564,52 @@ assert ( _ftRasterizer.get() ); assert(m_code_table.find(code) == m_code_table.end()); - rect box; - float advance; + // Get the vectorial glyph + boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code); + + // Get the textured glyph and the advance info + rect box; float advance; boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance) ); - if ( ! bi.get() ) + if ( ! sh && ! bi ) { - log_error("Could not create glyph for character code %u with device font %s (%p)", code, m_name, _ftRasterizer.get()); + log_error("Could not create either bitmap or shape " + "glyph for character code %u (%c) with " + "device font %s (%p)", code, code, m_name, + _ftRasterizer.get()); return -1; } // Create textured glyph from the bitmap info texture_glyph tg; + + if ( bi.get() ) + { + + if ( ! box.is_null() ) + { tg.m_uv_bounds.enclose_point(0, 0); tg.m_uv_bounds.expand_to_point(box.get_x_max(), box.get_y_max()); // the origin tg.m_uv_origin.m_x = box.get_x_min(); tg.m_uv_origin.m_y = box.get_y_min(); + } + else + { + tg.m_uv_bounds.set_null(); + tg.m_uv_origin.m_x = 0; + tg.m_uv_origin.m_y = 0; + } tg.set_bitmap_info(bi.get()); + } // Add the textured glyph int newOffset = m_texture_glyphs.size(); m_code_table[code] = newOffset; m_advance_table.push_back(advance); m_texture_glyphs.push_back(tg); - m_glyphs.push_back(NULL); + + m_glyphs.push_back(sh); testInvariant(); Index: fontlib.cpp =================================================================== RCS file: /sources/gnash/gnash/server/fontlib.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -b -r1.26 -r1.27 --- fontlib.cpp 11 Nov 2006 22:44:54 -0000 1.26 +++ fontlib.cpp 13 Jun 2007 00:17:45 -0000 1.27 @@ -5,7 +5,7 @@ // A module to take care of all of gnash's loaded fonts. -/* $Id: fontlib.cpp,v 1.26 2006/11/11 22:44:54 strk Exp $ */ +/* $Id: fontlib.cpp,v 1.27 2007/06/13 00:17:45 strk Exp $ */ #include "container.h" #include "tu_file.h" @@ -1309,6 +1309,12 @@ // @@ worth it to precompute these bounds? rect bounds = tg.m_uv_bounds; + if ( bounds.is_null() ) + { + log_debug("Textured glyph rendering skipped, since it's bounds are null"); + return; + } + bounds.shift_x (-tg.m_uv_origin.m_x); bounds.shift_y (-tg.m_uv_origin.m_y); @@ -1316,6 +1322,8 @@ // @@ need to factor this out! static float s_scale = GLYPH_CACHE_TEXTURE_SIZE * s_rendering_box / nominal_glyph_height; + log_msg("Scaling bounds %s by factor %g (nominal_glyph_height: %d)", bounds.toString().c_str(), s_scale, nominal_glyph_height); + bounds.scale_x(s_scale); bounds.scale_y(s_scale); Index: text.cpp =================================================================== RCS file: /sources/gnash/gnash/server/text.cpp,v retrieving revision 1.29 retrieving revision 1.30 diff -u -b -r1.29 -r1.30 --- text.cpp 18 Apr 2007 11:00:29 -0000 1.29 +++ text.cpp 13 Jun 2007 00:17:45 -0000 1.30 @@ -17,14 +17,13 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: text.cpp,v 1.29 2007/04/18 11:00:29 jgilmore Exp $ */ +/* $Id: text.cpp,v 1.30 2007/06/13 00:17:45 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 #include "utf8.h" #include "utility.h" #include "impl.h" -//#include "shape.h" #include "shape_character_def.h" #include "stream.h" #include "log.h" @@ -35,6 +34,10 @@ #include "text.h" #include "movie_definition.h" +// Define the following macro to get debugging messages +// for text rendering +#define GNASH_DEBUG_TEXT_RENDERING 1 + namespace gnash { void text_style::resolve_font(movie_definition* root_def) const @@ -178,7 +181,7 @@ && (use_glyph_textures || glyph == NULL)) { #ifdef GNASH_DEBUG_TEXT_RENDERING -log_msg(_("render glyph using draw_glyph")); +log_msg(_("render textured glyph (fontlib::draw_glyph)")); #endif fontlib::draw_glyph(mat, tg, transformed_color, nominal_glyph_height); } @@ -189,7 +192,7 @@ if (glyph) { #ifdef GNASH_DEBUG_TEXT_RENDERING -log_msg(_("render glyph using filled outline (?) actually draw_glyph()")); +log_msg(_("render shape glyph using filled outline (render::draw_glyph)")); #endif gnash::render::draw_glyph(glyph, mat, transformed_color, pixel_scale); From MAILER-DAEMON Tue Jun 12 20:18:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyGZW-0002dg-1t for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 20:18:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyGZU-0002cw-1J for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:18:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyGZT-0002cW-D1 for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:18:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyGZT-0002cG-19 for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:18:47 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyGZS-0005Dh-OP for gnash-commit@gnu.org; Tue, 12 Jun 2007 20:18:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyGZS-0003S7-76 for gnash-commit@gnu.org; Wed, 13 Jun 2007 00:18:46 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyGZR-0003S1-O8 for gnash-commit@gnu.org; Wed, 13 Jun 2007 00:18:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 00:18:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 00:18:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 00:18:45 Modified files: . : ChangeLog Log message: oops, forgot this CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3514&r2=1.3515 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3514 retrieving revision 1.3515 diff -u -b -r1.3514 -r1.3515 --- ChangeLog 12 Jun 2007 23:00:17 -0000 1.3514 +++ ChangeLog 13 Jun 2007 00:18:44 -0000 1.3515 @@ -1,3 +1,15 @@ +2007-06-13 Sandro Santilli + + * server/FreetypeRasterizer.{cpp,h}: added interface + to fetch vectorial glyph (just a stub). + * server/font.cpp (add_os_glyph): fetch both rasterized + and vectorial glyphs, survive to texture glyphs with a null + bound (space is one such glyph). + * server/fontlib.cpp (draw_glyph): skip rendering of textured + glyphs with null bounds. + * server/text.cpp (display_glyph_records): enable debugging by + default. + 2007-06-12 Sandro Santilli * server/FreetypeRasterizer.cpp (getRenderedGlyph): don't assume From MAILER-DAEMON Tue Jun 12 22:24:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyIXR-0005Ug-4o for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 22:24:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyIXO-0005Tz-Qb for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:24:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyIXM-0005Tm-UL for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:24:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyIXM-0005Tj-Og for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:24:44 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyIXM-0000x5-Et for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:24:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyIXL-0005ca-5o for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:24:43 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyIXL-0005cW-0I for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:24:43 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 02:24:43 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp s... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 02:24:47 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 02:24:42 Modified files: . : ChangeLog server : FreetypeRasterizer.cpp FreetypeRasterizer.h font.cpp Log message: * server/FreetypeRasterizer.{cpp,h}: Implement shape_character_def output using DynamicShape; changed getGlyph method to also take an 'advance' output parameter (toward deprecation of bitmap output). * server/font.cpp (add_os_glyph): update call to ::getGlyph. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3515&r2=1.3516 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.34&r2=1.35 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3515 retrieving revision 1.3516 diff -u -b -r1.3515 -r1.3516 --- ChangeLog 13 Jun 2007 00:18:44 -0000 1.3515 +++ ChangeLog 13 Jun 2007 02:24:42 -0000 1.3516 @@ -1,5 +1,12 @@ 2007-06-13 Sandro Santilli + * server/FreetypeRasterizer.{cpp,h}: Implement shape_character_def + output using DynamicShape; changed getGlyph method to also take + an 'advance' output parameter (toward deprecation of bitmap output). + * server/font.cpp (add_os_glyph): update call to ::getGlyph. + +2007-06-13 Sandro Santilli + * server/FreetypeRasterizer.{cpp,h}: added interface to fetch vectorial glyph (just a stub). * server/font.cpp (add_os_glyph): fetch both rasterized Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- server/FreetypeRasterizer.cpp 13 Jun 2007 00:17:44 -0000 1.6 +++ server/FreetypeRasterizer.cpp 13 Jun 2007 02:24:42 -0000 1.7 @@ -18,16 +18,75 @@ #include "DynamicShape.h" #include "log.h" +#ifdef HAVE_FREETYPE2 +# include +# include FT_OUTLINE_H +# include FT_BBOX_H +#endif + #include // for snprintf #include #include // for auto_ptr +// Define the following to make outline decomposition verbose +//#define DEBUG_OUTLINE_DECOMPOSITION 1 + +// TODO: drop this ? #define FREETYPE_MAX_FONTSIZE 96 namespace gnash { #ifdef HAVE_FREETYPE2 +static int +walkMoveTo(FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("moveTo: %ld,%ld", to->x, to->y); +#endif + sh->moveTo(to->x, -to->y); + return 0; +} + +static int +walkLineTo(FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("lineTo: %ld,%ld", to->x, to->y); +#endif + sh->lineTo(to->x, -to->y); + return 0; +} + +static int +walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("conicTo: %ld,%ld %ld,%ld", ctrl->x, ctrl->y, to->x, to->y); +#endif + sh->curveTo(ctrl->x, -ctrl->y, to->x, -to->y); + return 0; +} + +static int +walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("cubicTo: %ld,%ld %ld,%ld %ld,%ld", ctrl1->x, ctrl1->y, ctrl2->x, ctrl2->y, to->x, to->y); +#endif + + float x = ctrl1->x + ( (ctrl2->x - ctrl1->x) * 0.5 ); + float y = ctrl1->y + ( (ctrl2->y - ctrl1->y) * 0.5 ); + + sh->curveTo(x, -y, to->x, -to->y); + + return 0; +} + // static FT_Library FreetypeRasterizer::m_lib; @@ -95,8 +154,8 @@ // private bool -FreetypeRasterizer::getFontFilename(const std::string& name, - bool bold, bool italic, std::string& filename) +FreetypeRasterizer::getFontFilename(const std::string& /*name*/, + bool /*bold*/, bool /*italic*/, std::string& filename) { #define DEFAULT_FONTFILE "/usr/share/fonts/truetype/freefont/FreeSans.ttf" @@ -207,7 +266,7 @@ log_debug("image::alpha drawn for character glyph '%c' bitmap has size %dx%d", code, im->m_width, im->m_height); log_debug("ttf bitmap glyph width:%d, rows:%d", bitmap.width, bitmap.rows); - log_debug("ttf glyph metrics width:%d, height:%d", metrics.width, metrics.height); + log_debug("ttf glyph metrics width:%ld, height:%ld", metrics.width, metrics.height); log_debug("ttf glyph metrics X bearing:%ld, Y bearing:%ld", metrics.horiBearingX, metrics.horiBearingY); bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); @@ -232,6 +291,7 @@ box.set_null(); } + // TODO: check this. Also check FT_FaceRec::units_per_EM static float s_advance_scale = 0.16666666f; //vv hack advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; @@ -250,41 +310,47 @@ #ifdef HAVE_FREETYPE2 boost::intrusive_ptr -FreetypeRasterizer::getGlyph(uint16_t code) +FreetypeRasterizer::getGlyph(uint16_t code, float& advance) { boost::intrusive_ptr sh; - //return sh; - FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); - FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_NO_BITMAP); - //error = FT_Load_Char(m_face, code, FT_LOAD_RENDER); + FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE); if ( error != 0 ) { log_error("Error loading freetype outline glyph for char '%c' (error: %d)", code, error); return sh.get(); } - assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); + // TODO: check this. Also check FT_FaceRec::units_per_EM + advance = m_face->glyph->metrics.horiAdvance; - sh = new DynamicShape(); + assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); - // TODO: implement proper conversion, - // this is just a placeholder + FT_Outline* outline = &(m_face->glyph->outline); - int width=80*20; - int height=100*20; + FT_BBox glyphBox; + FT_Outline_Get_BBox(outline, &glyphBox); + rect r(glyphBox.xMin, glyphBox.yMin, glyphBox.xMax, glyphBox.yMax); + log_msg("Glyph for character '%c' has computed bounds %s", code, r.toString().c_str()); - //sh->lineStyle(1, rgba(255, 255, 255, 255)); + sh = new DynamicShape(); sh->beginFill(rgba(255, 255, 255, 255)); - sh->moveTo(0, 0); - sh->lineTo(0, height); - sh->lineTo(width, height); - sh->lineTo(width, 0); - sh->lineTo(0, 0); - sh->endFill(); + FT_Outline_Funcs walk; + walk.move_to = walkMoveTo; + walk.line_to = walkLineTo; + walk.conic_to = walkConicTo; + walk.cubic_to = walkCubicTo; + walk.shift = 0; // ? + walk.delta = 0; // ? - sh->finalize(); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("Decomposing glyph outline for character %u", code); +#endif + FT_Outline_Decompose(outline, &walk, sh.get()); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_msg("Decomposed glyph for character '%c' has bounds %s", code, sh->get_bound().toString().c_str()); +#endif return sh.get(); } Index: server/FreetypeRasterizer.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- server/FreetypeRasterizer.h 13 Jun 2007 00:17:44 -0000 1.4 +++ server/FreetypeRasterizer.h 13 Jun 2007 02:24:42 -0000 1.5 @@ -39,7 +39,7 @@ namespace gnash { -/// Truetype font rasterizer based on freetype library +/// Truetype font rasterizer/converter based on freetype library // /// Instances of this class provide rasterized or vectorial glyphs /// for a given truetype font face. @@ -51,6 +51,8 @@ /// Vectorial glyphs are instances of a shape_character_def, same class /// resulting from parsing of embedded fonts. /// +/// TODO: rename this class to something like FreetypeGlyphProvider... +/// class FreetypeRasterizer { @@ -91,6 +93,8 @@ /// @return A bitmap_info, or a NULL pointer if the given character code /// doesn't exist in this font. /// + /// TODO: drop ? + /// boost::intrusive_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); /// Return the given character glyph as a shape character definition @@ -98,10 +102,14 @@ /// @param code /// Character code. /// + /// @param advance + /// Output parameter... TODO: describe what it is (units?) + /// /// @return A shape_character_def, or a NULL pointer if the given character code /// doesn't exist in this font. /// - boost::intrusive_ptr getGlyph(uint16_t code); + boost::intrusive_ptr getGlyph(uint16_t code, float& advance); + private: Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -u -b -r1.34 -r1.35 --- server/font.cpp 13 Jun 2007 00:17:44 -0000 1.34 +++ server/font.cpp 13 Jun 2007 02:24:42 -0000 1.35 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.34 2007/06/13 00:17:44 strk Exp $ */ +/* $Id: font.cpp,v 1.35 2007/06/13 02:24:42 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -564,11 +564,13 @@ assert ( _ftRasterizer.get() ); assert(m_code_table.find(code) == m_code_table.end()); + float advance; + // Get the vectorial glyph - boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code); + boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code, advance); // Get the textured glyph and the advance info - rect box; float advance; + rect box; boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance) ); if ( ! sh && ! bi ) From MAILER-DAEMON Tue Jun 12 22:28:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyIbM-0007NK-AC for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 22:28:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyIbK-0007Kz-5Y for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:28:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyIbJ-0007K9-JA for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:28:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyIbJ-0007Jz-6X for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:28:49 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HyIbI-0001JQ-H8 for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:28:49 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5D2Skr18226; Wed, 13 Jun 2007 04:28:46 +0200 (CEST) (envelope-from strk@keybit.net) Date: Wed, 13 Jun 2007 04:28:46 +0200 From: Sandro Santilli To: gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp s... Message-ID: <20070613022846.GA16973@keybit.net> Mail-Followup-To: gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 02:28:50 -0000 On Wed, Jun 13, 2007 at 02:24:43AM +0000, Sandro Santilli wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Sandro Santilli 07/06/13 02:24:42 > > Modified files: > . : ChangeLog > server : FreetypeRasterizer.cpp FreetypeRasterizer.h > font.cpp > > Log message: > * server/FreetypeRasterizer.{cpp,h}: Implement shape_character_def > output using DynamicShape; changed getGlyph method to also take > an 'advance' output parameter (toward deprecation of bitmap output). > * server/font.cpp (add_os_glyph): update call to ::getGlyph. With this commit, AGG does a good job with DefineEditTextTest.swf, while OGL does a bad one. Note that AGG is using vectorial glph, while OGL is using bitmap. FreetypeRasterizer provides both, but for the AGG case the returned textured glyph ! is_renderable() thus making the text drawing method automatically use the vector instead. By simply returning a NULL bitmap_info from getRenderedGlyph you can test OGL against vector glyph. Unfortunately OGL doesn't seem to work with vector either, which I belive to be a known problem with "side" of fill style (right/left) - There should already be a bug filed for it, and a failure in DrawingApiTest.swf (can't detect automatically until ogl is testable). --strk; From MAILER-DAEMON Tue Jun 12 22:49:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyIvR-0008K3-R3 for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 22:49:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyIvQ-0008Ev-74 for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:49:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyIvP-0008Dz-B7 for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:49:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyIvP-0008Do-94 for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:49:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyIvO-0003CI-Sv for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:49:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyIvO-0008S3-Ba for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:49:34 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyIvO-0008S0-1m for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:49:34 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 02:49:34 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/gtk.cpp server/FreetypeRast... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 02:49:36 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 02:49:33 Modified files: . : ChangeLog gui : gtk.cpp server : FreetypeRasterizer.cpp fontlib.cpp movie_root.cpp text.cpp Log message: * gui/gtk.cpp, server/FreetypeRasterizer.cpp, server/fontlib.cpp, server/movie_root.cpp, server/text.cpp: Reduced verbosity. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3516&r2=1.3517 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.92&r2=1.93 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fontlib.cpp?cvsroot=gnash&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.64&r2=1.65 http://cvs.savannah.gnu.org/viewcvs/gnash/server/text.cpp?cvsroot=gnash&r1=1.30&r2=1.31 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3516 retrieving revision 1.3517 diff -u -b -r1.3516 -r1.3517 --- ChangeLog 13 Jun 2007 02:24:42 -0000 1.3516 +++ ChangeLog 13 Jun 2007 02:49:32 -0000 1.3517 @@ -1,5 +1,11 @@ 2007-06-13 Sandro Santilli + * gui/gtk.cpp, server/FreetypeRasterizer.cpp, + server/fontlib.cpp, server/movie_root.cpp, + server/text.cpp: Reduced verbosity. + +2007-06-13 Sandro Santilli + * server/FreetypeRasterizer.{cpp,h}: Implement shape_character_def output using DynamicShape; changed getGlyph method to also take an 'advance' output parameter (toward deprecation of bitmap output). Index: gui/gtk.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.92 retrieving revision 1.93 diff -u -b -r1.92 -r1.93 --- gui/gtk.cpp 1 Jun 2007 11:02:17 -0000 1.92 +++ gui/gtk.cpp 13 Jun 2007 02:49:32 -0000 1.93 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.92 2007/06/01 11:02:17 strk Exp $ */ +/* $Id: gtk.cpp,v 1.93 2007/06/13 02:49:32 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -65,7 +65,7 @@ bool GtkGui::init(int argc, char **argv[]) { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; gtk_init (&argc, argv); @@ -223,7 +223,7 @@ bool GtkGui::createWindow(int width, int height) { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; assert(_width>0); assert(_height>0); @@ -320,7 +320,7 @@ bool GtkGui::run() { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; gtk_main(); return true; } @@ -328,7 +328,7 @@ bool GtkGui::createMenu() { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; _popup_menu = GTK_MENU(gtk_menu_new()); // GtkAccelGroup *accel_group = gtk_accel_group_new();; @@ -785,7 +785,7 @@ bool GtkGui::setupEvents() { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; g_signal_connect(G_OBJECT(_window), "delete_event", G_CALLBACK(delete_event), this); @@ -1071,7 +1071,7 @@ GtkGui::realize_event(GtkWidget* /*widget*/, GdkEvent* /*event*/, gpointer /*data*/) { - GNASH_REPORT_FUNCTION; + //GNASH_REPORT_FUNCTION; return TRUE; } Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- server/FreetypeRasterizer.cpp 13 Jun 2007 02:24:42 -0000 1.7 +++ server/FreetypeRasterizer.cpp 13 Jun 2007 02:49:32 -0000 1.8 @@ -31,6 +31,9 @@ // Define the following to make outline decomposition verbose //#define DEBUG_OUTLINE_DECOMPOSITION 1 +// Define the following to make glyph rendering verbose +//#define DEBUG_GLYPH_RENDERING 1 + // TODO: drop this ? #define FREETYPE_MAX_FONTSIZE 96 @@ -264,10 +267,12 @@ std::auto_ptr im ( draw_bitmap(bitmap) ); +#ifdef DEBUG_GLYPH_RENDERING log_debug("image::alpha drawn for character glyph '%c' bitmap has size %dx%d", code, im->m_width, im->m_height); log_debug("ttf bitmap glyph width:%d, rows:%d", bitmap.width, bitmap.rows); log_debug("ttf glyph metrics width:%ld, height:%ld", metrics.width, metrics.height); log_debug("ttf glyph metrics X bearing:%ld, Y bearing:%ld", metrics.horiBearingX, metrics.horiBearingY); +#endif bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); @@ -295,7 +300,9 @@ static float s_advance_scale = 0.16666666f; //vv hack advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; +#ifdef DEBUG_GLYPH_RENDERING log_debug(" box: %s, advance: %g", box.toString().c_str(), advance); +#endif return bi; @@ -328,10 +335,10 @@ FT_Outline* outline = &(m_face->glyph->outline); - FT_BBox glyphBox; - FT_Outline_Get_BBox(outline, &glyphBox); - rect r(glyphBox.xMin, glyphBox.yMin, glyphBox.xMax, glyphBox.yMax); - log_msg("Glyph for character '%c' has computed bounds %s", code, r.toString().c_str()); + //FT_BBox glyphBox; + //FT_Outline_Get_BBox(outline, &glyphBox); + //rect r(glyphBox.xMin, glyphBox.yMin, glyphBox.xMax, glyphBox.yMax); + //log_msg("Glyph for character '%c' has computed bounds %s", code, r.toString().c_str()); sh = new DynamicShape(); sh->beginFill(rgba(255, 255, 255, 255)); Index: server/fontlib.cpp =================================================================== RCS file: /sources/gnash/gnash/server/fontlib.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- server/fontlib.cpp 13 Jun 2007 00:17:45 -0000 1.27 +++ server/fontlib.cpp 13 Jun 2007 02:49:32 -0000 1.28 @@ -5,7 +5,7 @@ // A module to take care of all of gnash's loaded fonts. -/* $Id: fontlib.cpp,v 1.27 2007/06/13 00:17:45 strk Exp $ */ +/* $Id: fontlib.cpp,v 1.28 2007/06/13 02:49:32 strk Exp $ */ #include "container.h" #include "tu_file.h" @@ -1311,7 +1311,7 @@ rect bounds = tg.m_uv_bounds; if ( bounds.is_null() ) { - log_debug("Textured glyph rendering skipped, since it's bounds are null"); + //log_debug("Textured glyph rendering skipped, since it's bounds are null"); return; } @@ -1322,7 +1322,7 @@ // @@ need to factor this out! static float s_scale = GLYPH_CACHE_TEXTURE_SIZE * s_rendering_box / nominal_glyph_height; - log_msg("Scaling bounds %s by factor %g (nominal_glyph_height: %d)", bounds.toString().c_str(), s_scale, nominal_glyph_height); + //log_msg("Scaling bounds %s by factor %g (nominal_glyph_height: %d)", bounds.toString().c_str(), s_scale, nominal_glyph_height); bounds.scale_x(s_scale); bounds.scale_y(s_scale); Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.64 retrieving revision 1.65 diff -u -b -r1.64 -r1.65 --- server/movie_root.cpp 8 Jun 2007 14:57:41 -0000 1.64 +++ server/movie_root.cpp 13 Jun 2007 02:49:33 -0000 1.65 @@ -713,7 +713,7 @@ void movie_root::notify_key_listeners(key::code k, bool down) { - log_msg("Notifying " SIZET_FMT " keypress listeners", _keyListners.size()); + //log_msg("Notifying " SIZET_FMT " keypress listeners", _keyListners.size()); for (std::vector::iterator iter = _keyListners.begin(); iter != _keyListners.end(); ++iter) Index: server/text.cpp =================================================================== RCS file: /sources/gnash/gnash/server/text.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -b -r1.30 -r1.31 --- server/text.cpp 13 Jun 2007 00:17:45 -0000 1.30 +++ server/text.cpp 13 Jun 2007 02:49:33 -0000 1.31 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: text.cpp,v 1.30 2007/06/13 00:17:45 strk Exp $ */ +/* $Id: text.cpp,v 1.31 2007/06/13 02:49:33 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -36,7 +36,7 @@ // Define the following macro to get debugging messages // for text rendering -#define GNASH_DEBUG_TEXT_RENDERING 1 +//#define GNASH_DEBUG_TEXT_RENDERING 1 namespace gnash { From MAILER-DAEMON Tue Jun 12 22:59:32 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyJ52-0004QR-I5 for mharc-gnash-commit@gnu.org; Tue, 12 Jun 2007 22:59:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyJ50-0004Pz-RI for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:59:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyJ4z-0004Of-Ll for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:59:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyJ4z-0004Ob-JK for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:59:29 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyJ4z-00048B-6d for gnash-commit@gnu.org; Tue, 12 Jun 2007 22:59:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyJ4y-0000b8-4X for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:59:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyJ4x-0000b4-UX for gnash-commit@gnu.org; Wed, 13 Jun 2007 02:59:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 02:59:27 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 02:59:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 02:59:27 Modified files: . : ChangeLog testsuite/misc-ming.all: DefineEditTextTest.c Log message: * testsuite/misc-ming.all/DefineEditTextTest.c: Apply transformation to text characters. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3517&r2=1.3518 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3517 retrieving revision 1.3518 diff -u -b -r1.3517 -r1.3518 --- ChangeLog 13 Jun 2007 02:49:32 -0000 1.3517 +++ ChangeLog 13 Jun 2007 02:59:26 -0000 1.3518 @@ -1,5 +1,10 @@ 2007-06-13 Sandro Santilli + * testsuite/misc-ming.all/DefineEditTextTest.c: + Apply transformation to text characters. + +2007-06-13 Sandro Santilli + * gui/gtk.cpp, server/FreetypeRasterizer.cpp, server/fontlib.cpp, server/movie_root.cpp, server/text.cpp: Reduced verbosity. Index: testsuite/misc-ming.all/DefineEditTextTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/misc-ming.all/DefineEditTextTest.c 12 Jun 2007 16:38:36 -0000 1.5 +++ testsuite/misc-ming.all/DefineEditTextTest.c 13 Jun 2007 02:59:27 -0000 1.6 @@ -106,7 +106,7 @@ //Ming_setScale(20.0); /* so we talk twips */ mo = newSWFMovie(); - SWFMovie_setRate(mo, 24); + SWFMovie_setRate(mo, 12); //SWFMovie_setDimension(mo, 12560, 9020); /********************************************* @@ -127,11 +127,26 @@ SWFBrowserFont bfont = newSWFBrowserFont("_sans"); SWFFont efont = loadSWFFontFromFile(font_file); - it = add_text_field(mo, (SWFBlock)bfont, "Hello world"); - it = add_text_field(mo, (SWFBlock)efont, "Hello world"); - SWFDisplayItem_moveTo(it, 0, 30); + it = add_text_field(mo, (SWFBlock)bfont, "Hello device font world"); + SWFDisplayItem_setName(it, "dtext"); + SWFDisplayItem_moveTo(it, 60, 60); + it = add_text_field(mo, (SWFBlock)efont, "Hello embedded font world"); + SWFDisplayItem_setName(it, "etext"); + SWFDisplayItem_moveTo(it, 60, 120); } + SWFMovie_add(mo, newSWFAction("offset = 1; count=0;" + "onEnterFrame = function() {" + " if ( ++count > 10 ) { count = 0; offset = -offset; }" + " etext._y += offset;" + " etext._x += offset;" + //" etext._rotation += offset;" + " dtext._y += offset;" + " dtext._x += offset;" + //" dtext._rotation += offset;" + "};" + )); + /***************************************************** * * Output movie From MAILER-DAEMON Wed Jun 13 03:26:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyNFk-00071P-3S for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 03:26:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyNFh-00071C-Nl for gnash-commit@gnu.org; Wed, 13 Jun 2007 03:26:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyNFg-00070u-Mu for gnash-commit@gnu.org; Wed, 13 Jun 2007 03:26:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyNFg-00070r-HC for gnash-commit@gnu.org; Wed, 13 Jun 2007 03:26:48 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyNFg-0000py-8U for gnash-commit@gnu.org; Wed, 13 Jun 2007 03:26:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyNFe-00022x-Op for gnash-commit@gnu.org; Wed, 13 Jun 2007 07:26:46 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyNFe-00022u-Gg for gnash-commit@gnu.org; Wed, 13 Jun 2007 07:26:46 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 07:26:46 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeRasterizer.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 07:26:50 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 07:26:46 Modified files: . : ChangeLog server : FreetypeRasterizer.cpp Log message: * server/FreetypeRasterizer.cpp: fix build w/out libfreetype. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3518&r2=1.3519 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3518 retrieving revision 1.3519 diff -u -b -r1.3518 -r1.3519 --- ChangeLog 13 Jun 2007 02:59:26 -0000 1.3518 +++ ChangeLog 13 Jun 2007 07:26:45 -0000 1.3519 @@ -1,5 +1,9 @@ 2007-06-13 Sandro Santilli + * server/FreetypeRasterizer.cpp: fix build w/out libfreetype. + +2007-06-13 Sandro Santilli + * testsuite/misc-ming.all/DefineEditTextTest.c: Apply transformation to text characters. Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/FreetypeRasterizer.cpp 13 Jun 2007 02:49:32 -0000 1.8 +++ server/FreetypeRasterizer.cpp 13 Jun 2007 07:26:46 -0000 1.9 @@ -363,7 +363,7 @@ } #else // ndef(HAVE_FREETYPE2) boost::intrusive_ptr -FreetypeRasterizer::getGlyph(uint16_t) +FreetypeRasterizer::getGlyph(uint16_t, float& advance) { assert(0); // should never be called... } From MAILER-DAEMON Wed Jun 13 05:29:15 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyPAA-0008CO-TE for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 05:29:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyPA6-0008AA-OC for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:29:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyPA4-00088H-Oj for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:29:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyPA3-00087r-NI for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:29:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyPA3-00074K-6t for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:29:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyPA1-0003pq-3l for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:29:05 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyPA0-0003pn-VB for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:29:05 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 09:29:04 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 09:29:12 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 09:29:04 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: newlines are tokens with bourne shell ! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3519&r2=1.3520 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.338&r2=1.339 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3519 retrieving revision 1.3520 diff -u -b -r1.3519 -r1.3520 --- ChangeLog 13 Jun 2007 07:26:45 -0000 1.3519 +++ ChangeLog 13 Jun 2007 09:29:04 -0000 1.3520 @@ -1,5 +1,9 @@ 2007-06-13 Sandro Santilli + * configure.ac: newlines are tokens with bourne shell ! + +2007-06-13 Sandro Santilli + * server/FreetypeRasterizer.cpp: fix build w/out libfreetype. 2007-06-13 Sandro Santilli Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.338 retrieving revision 1.339 diff -u -b -r1.338 -r1.339 --- configure.ac 12 Jun 2007 12:33:21 -0000 1.338 +++ configure.ac 13 Jun 2007 09:29:04 -0000 1.339 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.338 2007/06/12 12:33:21 strk Exp $ +dnl $Id: configure.ac,v 1.339 2007/06/13 09:29:04 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -252,8 +252,7 @@ AM_CONDITIONAL(USE_RENDERER_CAIRO, test x$renderer = xcairo) if test x$renderer = xagg; then - if test x"$gui" != xfb -a x"$gui" != xgtk -a x"$gui" != xsdl -a x"$gui" != xriscos -a x"$gui" != xfltk - -a x"$gui" != xkde; then + if test x"$gui" != xfb -a x"$gui" != xgtk -a x"$gui" != xsdl -a x"$gui" != xriscos -a x"$gui" != xfltk -a x"$gui" != xkde; then AC_MSG_ERROR([agg renderer is only supported by fb, gtk, riscos, sdl, fltk and kde GUIs]); fi AC_DEFINE([RENDERER_AGG], [], [Use AntiGrain renderer]) From MAILER-DAEMON Wed Jun 13 05:54:16 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyPYO-0003i9-52 for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 05:54:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyPYL-0003eT-Qi for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:54:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyPYL-0003cw-4I for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:54:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyPYL-0003cn-1N for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:54:13 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyPYK-0002i7-M4 for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:54:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyPYJ-0006dL-AM for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:54:11 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyPYJ-0006dI-5Z for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:54:11 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Wed, 13 Jun 2007 09:54:11 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 09:54:14 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/13 09:54:10 Modified files: . : ChangeLog testsuite/misc-ming.all: Makefile.am Log message: typo CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3520&r2=1.3521 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.135&r2=1.136 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3520 retrieving revision 1.3521 diff -u -b -r1.3520 -r1.3521 --- ChangeLog 13 Jun 2007 09:29:04 -0000 1.3520 +++ ChangeLog 13 Jun 2007 09:54:10 -0000 1.3521 @@ -1,3 +1,8 @@ +2007-06-13 Zou Lunkai + + * testsuite/misc-ming.all/Makefile.am: + fix a typo(thank strk). + 2007-06-13 Sandro Santilli * configure.ac: newlines are tokens with bourne shell ! Index: testsuite/misc-ming.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v retrieving revision 1.135 retrieving revision 1.136 diff -u -b -r1.135 -r1.136 --- testsuite/misc-ming.all/Makefile.am 12 Jun 2007 05:11:47 -0000 1.135 +++ testsuite/misc-ming.all/Makefile.am 13 Jun 2007 09:54:10 -0000 1.136 @@ -462,7 +462,7 @@ ./loop_test8 $(top_srcdir)/testsuite/media loop_test8runner: $(srcdir)/../generic-testrunner.sh loop_test8.swf - sh $< -f20 $(tsop_builddir) loop_test8.swf > $@ + sh $< -f20 $(top_builddir) loop_test8.swf > $@ chmod 755 $@ shape_test_SOURCES = shape_test.c From MAILER-DAEMON Wed Jun 13 05:59:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyPdl-0005vn-Nh for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 05:59:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyPdj-0005vb-7m for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:59:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyPdi-0005vJ-GS for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:59:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyPdi-0005vE-Bu for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:59:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyPdh-0003Of-N3 for gnash-commit@gnu.org; Wed, 13 Jun 2007 05:59:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyPdg-0006y5-9J for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:59:44 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyPdg-0006y0-1q for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:59:44 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 09:59:44 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog Makefile.am configure.ac server... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 09:59:47 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 09:59:43 Modified files: . : ChangeLog Makefile.am configure.ac server : FreetypeRasterizer.cpp FreetypeRasterizer.h Makefile.am testsuite/misc-ming.all: DefineEditTextTest.c Log message: * configure.ac: look for libfontconfig * Makefile.am: print fontconfig info on 'dumpconfig' * server/FreetypeRasterizer.{cpp,h}: implement font name to filename matching using fontconfig, when available; updated copyright info (enough hacking on it now..) * server/Makefile.am: add FONTCONFIG cflags and libs. * testsuite/misc-ming.all/DefineEditTextTest.c: add another text field using 'times' font. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3521&r2=1.3522 http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&r1=1.76&r2=1.77 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.339&r2=1.340 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.116&r2=1.117 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.6&r2=1.7 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3521 retrieving revision 1.3522 diff -u -b -r1.3521 -r1.3522 --- ChangeLog 13 Jun 2007 09:54:10 -0000 1.3521 +++ ChangeLog 13 Jun 2007 09:59:41 -0000 1.3522 @@ -1,3 +1,14 @@ +2007-06-13 Sandro Santilli + + * configure.ac: look for libfontconfig + * Makefile.am: print fontconfig info on 'dumpconfig' + * server/FreetypeRasterizer.{cpp,h}: implement font name + to filename matching using fontconfig, when available; + updated copyright info (enough hacking on it now..) + * server/Makefile.am: add FONTCONFIG cflags and libs. + * testsuite/misc-ming.all/DefineEditTextTest.c: add another + text field using 'times' font. + 2007-06-13 Zou Lunkai * testsuite/misc-ming.all/Makefile.am: Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.76 retrieving revision 1.77 diff -u -b -r1.76 -r1.77 --- Makefile.am 12 Jun 2007 12:33:21 -0000 1.76 +++ Makefile.am 13 Jun 2007 09:59:42 -0000 1.77 @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Makefile.am,v 1.76 2007/06/12 12:33:21 strk Exp $ +# $Id: Makefile.am,v 1.77 2007/06/13 09:59:42 strk Exp $ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6.0 @@ -195,6 +195,8 @@ @echo " LIBXML_LIBS is $(LIBXML_LIBS)" @echo " FREETYPE_CFLAGS is $(FREETYPE_CFLAGS)" @echo " FREETYPE_LIBS is $(FREETYPE_LIBS)" + @echo " FONTCONFIG_CFLAGS is $(FONTCONFIG_CFLAGS)" + @echo " FONTCONFIG_LIBS is $(FONTCONFIG_LIBS)" if HAVE_DMALLOC @echo " DMALLOC_CFLAGS is $(DMALLOC_CFLAGS)" @echo " DMALLOC_LIBS is $(DMALLOC_LIBS)" Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.339 retrieving revision 1.340 diff -u -b -r1.339 -r1.340 --- configure.ac 13 Jun 2007 09:29:04 -0000 1.339 +++ configure.ac 13 Jun 2007 09:59:42 -0000 1.340 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.339 2007/06/13 09:29:04 strk Exp $ +dnl $Id: configure.ac,v 1.340 2007/06/13 09:59:42 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -705,8 +705,9 @@ GNASH_PKG_FIND(jpeg, [jpeglib.h], [jpeg images], jpeg_mem_init) GNASH_PKG_INCLUDES([dejagnu], [dejagnu.h]) -dnl Find freetype +dnl Find freetype and fontconfig GNASH_PKG_FIND(freetype, [freetype/freetype.h], [freetype2 font library], FT_Load_Char) +GNASH_PKG_FIND(fontconfig, [fontconfig/fontconfig.h], [fontconfig library], FcFontMatch) AC_PATH_MING AM_CONDITIONAL(ENABLE_MING, [ test x"$MAKESWF" != x ]) @@ -1783,6 +1784,22 @@ echo " It may still be possible to configure without freetype." fi +if test x"$FONTCONFIG_LIBS" != x; then + if test x"$FONTCONFIG_CFLAGS" != x; then + echo " Fontconfig flags are: $FONTCONFIG_CFLAGS" + else + echo " Fontconfig flags are: default include path" + fi + echo " Fontconfig libs are: $FONTCONFIG_LIBS" +else + echo " WARNING: You need to have the freetype development packages installed" + echo " to use device fonts." + echo " Install it from http://www.fontconfig.org" + echo " or .deb users: apt-get install libfontconfig1-dev" + echo " or .rpm users: yum install ??" + echo " It may still be possible to configure without fontconfig." +fi + if test x$ext_mysql = xyes; then if test x$mysql != xno; then if test x"$MYSQL_LIBS" != x; then Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/FreetypeRasterizer.cpp 13 Jun 2007 07:26:46 -0000 1.9 +++ server/FreetypeRasterizer.cpp 13 Jun 2007 09:59:42 -0000 1.10 @@ -1,10 +1,20 @@ -// gameswf_freetype.cpp -- Vitaly Alexeev 2007 - -// This source code has been donated to the Public Domain. Do -// whatever you want with it. - -// TrueType font rasterizer based on freetype library, -// used code from demos/font_output/font_output.cpp +// FreetypeRasterizer.cpp: Freetype glyphs manager +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef HAVE_CONFIG_H #include "config.h" @@ -24,6 +34,15 @@ # include FT_BBOX_H #endif +#ifdef HAVE_FONTCONFIG_FONTCONFIG_H +# define HAVE_FONTCONFIG 1 +#endif + +#ifdef HAVE_FONTCONFIG +# include +# include +#endif + #include // for snprintf #include #include // for auto_ptr @@ -157,17 +176,71 @@ // private bool -FreetypeRasterizer::getFontFilename(const std::string& /*name*/, +FreetypeRasterizer::getFontFilename(const std::string& name, bool /*bold*/, bool /*italic*/, std::string& filename) { + #define DEFAULT_FONTFILE "/usr/share/fonts/truetype/freefont/FreeSans.ttf" +#ifdef HAVE_FONTCONFIG + + if (!FcInit ()) + { + + log_error("Can't init fontconfig library, using hard-coded font filename"); filename = DEFAULT_FONTFILE; return true; + //return false; + } + + FcResult result; + + FcPattern* pat = FcNameParse((const FcChar8*)name.c_str()); + + FcConfigSubstitute (0, pat, FcMatchPattern); + FcDefaultSubstitute (pat); + + FcPattern *match; + match = FcFontMatch (0, pat, &result); + FcPatternDestroy (pat); + + FcFontSet* fs = NULL; + if (match) + { + fs = FcFontSetCreate (); + FcFontSetAdd (fs, match); + } - // TODO: implement - log_error("FIXME: font name to filename mapping unimplemented"); - return false; + if ( fs ) + { + log_debug("Found %d fonts matching the family %s (using first)", fs->nfont, name.c_str()); + + for (int j = 0; j < fs->nfont; j++) + { + FcChar8 *file; + if (FcPatternGetString (fs->fonts[j], FC_FILE, 0, &file) != FcResultMatch) + { + log_debug("Matching font %d has unknown filename, skipping", j); + continue; + } + + filename = (char *)file; + return true; + + } + + FcFontSetDestroy(fs); + } + + log_error("No device font matches the name '%s', using hard-coded font filename", name.c_str()); + filename = DEFAULT_FONTFILE; + return true; +#else + log_error("Font filename matching not implemented (no fontconfig support built-in), using hard-coded font filename", + name.c_str()); + filename = DEFAULT_FONTFILE; + return true; +#endif } #endif // HAVE_FREETYPE2 Index: server/FreetypeRasterizer.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeRasterizer.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- server/FreetypeRasterizer.h 13 Jun 2007 02:24:42 -0000 1.5 +++ server/FreetypeRasterizer.h 13 Jun 2007 09:59:42 -0000 1.6 @@ -1,7 +1,20 @@ -// freetype.h -- Vitaly Alexeev 2007 - -// This source code has been donated to the Public Domain. Do -// whatever you want with it. +// FreetypeRasterizer.h: Freetype glyphs manager +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifndef GNASH_FREETYPE_H #define GNASH_FREETYPE_H Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.116 retrieving revision 1.117 diff -u -b -r1.116 -r1.117 --- server/Makefile.am 12 Jun 2007 12:33:21 -0000 1.116 +++ server/Makefile.am 13 Jun 2007 09:59:42 -0000 1.117 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.116 2007/06/12 12:33:21 strk Exp $ +# $Id: Makefile.am,v 1.117 2007/06/13 09:59:42 strk Exp $ AUTOMAKE_OPTIONS = @@ -49,6 +49,7 @@ $(BOOST_CFLAGS) \ $(LIBXML_CFLAGS) \ $(FREETYPE_CFLAGS) \ + $(FONTCONFIG_CFLAGS) \ $(NULL) libgnashserver_la_SOURCES = \ @@ -172,6 +173,7 @@ $(BOOST_LIBS) \ $(PTHREAD_LIBS) \ $(FREETYPE_LIBS) \ + $(FONTCONFIG_LIBS) \ $(NULL) if USE_SOUND_GST Index: testsuite/misc-ming.all/DefineEditTextTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- testsuite/misc-ming.all/DefineEditTextTest.c 13 Jun 2007 02:59:27 -0000 1.6 +++ testsuite/misc-ming.all/DefineEditTextTest.c 13 Jun 2007 09:59:43 -0000 1.7 @@ -127,12 +127,17 @@ SWFBrowserFont bfont = newSWFBrowserFont("_sans"); SWFFont efont = loadSWFFontFromFile(font_file); - it = add_text_field(mo, (SWFBlock)bfont, "Hello device font world"); + it = add_text_field(mo, (SWFBlock)bfont, "Hello device _sans font world"); SWFDisplayItem_setName(it, "dtext"); SWFDisplayItem_moveTo(it, 60, 60); it = add_text_field(mo, (SWFBlock)efont, "Hello embedded font world"); SWFDisplayItem_setName(it, "etext"); SWFDisplayItem_moveTo(it, 60, 120); + + SWFBrowserFont bfont2 = newSWFBrowserFont("times"); + it = add_text_field(mo, (SWFBlock)bfont2, "Hello device times font world"); + SWFDisplayItem_setName(it, "dtext2"); + SWFDisplayItem_moveTo(it, 60, 180); } SWFMovie_add(mo, newSWFAction("offset = 1; count=0;" @@ -144,6 +149,9 @@ " dtext._y += offset;" " dtext._x += offset;" //" dtext._rotation += offset;" + " dtext2._y += offset;" + " dtext2._x += offset;" + //" dtext2._rotation += offset;" "};" )); From MAILER-DAEMON Wed Jun 13 06:21:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyPyv-0005s7-GI for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 06:21:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyPyu-0005ry-DA for gnash-commit@gnu.org; Wed, 13 Jun 2007 06:21:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyPyt-0005rm-4M for gnash-commit@gnu.org; Wed, 13 Jun 2007 06:21:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyPys-0005rj-TN for gnash-commit@gnu.org; Wed, 13 Jun 2007 06:21:38 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyPys-0006Aq-Hm for gnash-commit@gnu.org; Wed, 13 Jun 2007 06:21:38 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyPyr-00009i-Kn for gnash-commit@gnu.org; Wed, 13 Jun 2007 10:21:37 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyPyr-00009f-Fo for gnash-commit@gnu.org; Wed, 13 Jun 2007 10:21:37 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 10:21:37 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/font.cpp server/font.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 10:21:40 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 10:21:37 Modified files: . : ChangeLog server : font.cpp font.h Log message: * server/font.{cpp,h}: always maintain m_advance_table of the same size of the other two glyph info containers (should really make a structure keeping all of them..). Fixes an testInvariant failure with the device font selector (see DeviceFonts page on wiki). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3522&r2=1.3523 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.35&r2=1.36 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.h?cvsroot=gnash&r1=1.21&r2=1.22 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3522 retrieving revision 1.3523 diff -u -b -r1.3522 -r1.3523 --- ChangeLog 13 Jun 2007 09:59:41 -0000 1.3522 +++ ChangeLog 13 Jun 2007 10:21:35 -0000 1.3523 @@ -1,5 +1,13 @@ 2007-06-13 Sandro Santilli + * server/font.{cpp,h}: always maintain m_advance_table of the + same size of the other two glyph info containers (should really + make a structure keeping all of them..). Fixes an testInvariant + failure with the device font selector (see DeviceFonts page + on wiki). + +2007-06-13 Sandro Santilli + * configure.ac: look for libfontconfig * Makefile.am: print fontconfig info on 'dumpconfig' * server/FreetypeRasterizer.{cpp,h}: implement font name Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -u -b -r1.35 -r1.36 --- server/font.cpp 13 Jun 2007 02:24:42 -0000 1.35 +++ server/font.cpp 13 Jun 2007 10:21:36 -0000 1.36 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.35 2007/06/13 02:24:42 strk Exp $ */ +/* $Id: font.cpp,v 1.36 2007/06/13 10:21:36 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -53,7 +53,7 @@ font::~font() { - m_glyphs.resize(0); + m_glyphs.resize(0); // there's no need for this ! // Delete the name string. delete [] m_name; @@ -167,8 +167,10 @@ ); } + // TODO: use a structure to hold all of these ? m_glyphs.resize(count); - m_texture_glyphs.resize(m_glyphs.size()); + m_texture_glyphs.resize(count); + m_advance_table.resize(count); if (m->get_create_font_shapes() == DO_LOAD_FONT_SHAPES) { @@ -254,8 +256,10 @@ font_code_offset = in->read_u16(); } + // TODO: use a structure to hold all of these ? m_glyphs.resize(glyph_count); - m_texture_glyphs.resize(m_glyphs.size()); + m_texture_glyphs.resize(glyph_count); + m_advance_table.resize(glyph_count); if (m->get_create_font_shapes() == DO_LOAD_FONT_SHAPES) { @@ -314,7 +318,6 @@ m_leading = (float) in->read_s16(); // Advance table; i.e. how wide each character is. - m_advance_table.resize(m_glyphs.size()); for (int i = 0, n = m_advance_table.size(); i < n; i++) { m_advance_table[i] = (float) in->read_s16(); Index: server/font.h =================================================================== RCS file: /sources/gnash/gnash/server/font.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- server/font.h 12 Jun 2007 12:33:21 -0000 1.21 +++ server/font.h 13 Jun 2007 10:21:36 -0000 1.22 @@ -117,7 +117,16 @@ void testInvariant() { assert(m_texture_glyphs.size() == m_glyphs.size()); - assert(m_texture_glyphs.size() == m_advance_table.size()); +#ifndef NDEBUG + if (m_texture_glyphs.size() != m_advance_table.size()) + { + log_error("Font '%s': Number of texture glyphs: %lu, advance records: %lu", + m_name, + static_cast(m_texture_glyphs.size()), + static_cast(m_advance_table.size())); + abort(); + } +#endif } /// Get number of glyphs defined for this font From MAILER-DAEMON Wed Jun 13 09:15:58 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HySha-0000e0-Ei for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 09:15:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyShY-0000dt-JY for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:15:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyShW-0000dV-Ll for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:15:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyShW-0000dS-IZ for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:15:54 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyShV-0003nA-Vu for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:15:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyShU-00080P-E8 for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:15:52 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyShT-00080J-Uf for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:15:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 13:15:51 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 13:15:57 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 13:15:51 Modified files: . : ChangeLog testsuite/misc-ming.all: loop_test8.c Log message: * testsuite/misc-ming.all/loop_test8.c: xchec -> check. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3523&r2=1.3524 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3523 retrieving revision 1.3524 diff -u -b -r1.3523 -r1.3524 --- ChangeLog 13 Jun 2007 10:21:35 -0000 1.3523 +++ ChangeLog 13 Jun 2007 13:15:50 -0000 1.3524 @@ -1,5 +1,9 @@ 2007-06-13 Sandro Santilli + * testsuite/misc-ming.all/loop_test8.c: xchec -> check. + +2007-06-13 Sandro Santilli + * server/font.{cpp,h}: always maintain m_advance_table of the same size of the other two glyph info containers (should really make a structure keeping all of them..). Fixes an testInvariant Index: testsuite/misc-ming.all/loop_test8.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test8.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/loop_test8.c 12 Jun 2007 09:00:18 -0000 1.2 +++ testsuite/misc-ming.all/loop_test8.c 13 Jun 2007 13:15:51 -0000 1.3 @@ -224,7 +224,7 @@ xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); check_equals(mo, "mc1Constructed", "1"); xcheck_equals(mo, "mc2Constructed", "1"); - xcheck_equals(mo, "mc3Constructed", "2"); + check_equals(mo, "mc3Constructed", "2"); check_equals(mo, "mc4Constructed", "1"); check_equals(mo, "mc5Constructed", "1"); check_equals(mo, "mc1Unloaded", "0"); From MAILER-DAEMON Wed Jun 13 09:38:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyT3T-0007tK-3H for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 09:38:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyT3R-0007t9-8B for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:38:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyT3P-0007sx-W1 for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:38:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyT3P-0007su-T3 for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:38:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyT3P-0006np-J1 for gnash-commit@gnu.org; Wed, 13 Jun 2007 09:38:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyT3O-0002FK-H9 for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:38:30 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyT3O-0002FH-Cm for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:38:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 13:38:30 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/font.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 13:38:33 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 13:38:30 Modified files: . : ChangeLog server : font.cpp Log message: * server/font.cpp (add_os_font): use the advance value computed by getGlyph, not getRenderedGlyph (the latter is bogus). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3524&r2=1.3525 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.36&r2=1.37 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3524 retrieving revision 1.3525 diff -u -b -r1.3524 -r1.3525 --- ChangeLog 13 Jun 2007 13:15:50 -0000 1.3524 +++ ChangeLog 13 Jun 2007 13:38:28 -0000 1.3525 @@ -1,5 +1,11 @@ 2007-06-13 Sandro Santilli + * server/font.cpp (add_os_font): use the advance value + computed by getGlyph, not getRenderedGlyph (the latter + is bogus). + +2007-06-13 Sandro Santilli + * testsuite/misc-ming.all/loop_test8.c: xchec -> check. 2007-06-13 Sandro Santilli Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -u -b -r1.36 -r1.37 --- server/font.cpp 13 Jun 2007 10:21:36 -0000 1.36 +++ server/font.cpp 13 Jun 2007 13:38:29 -0000 1.37 @@ -17,13 +17,12 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.36 2007/06/13 10:21:36 strk Exp $ */ +/* $Id: font.cpp,v 1.37 2007/06/13 13:38:29 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 #include "font.h" #include "stream.h" -//#include "impl.h" #include "log.h" #include "tu_file.h" #include "movie_definition.h" @@ -567,14 +566,18 @@ assert ( _ftRasterizer.get() ); assert(m_code_table.find(code) == m_code_table.end()); - float advance; + float advance1, advance2; // Get the vectorial glyph - boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code, advance); + boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code, advance1); // Get the textured glyph and the advance info rect box; - boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance) ); + boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance2) ); + + // Advance must be given relative to the EM, is that correct or should we change ? + float advance = advance1; // vect + //float advance = advance2; // rast if ( ! sh && ! bi ) { From MAILER-DAEMON Wed Jun 13 11:17:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyUbK-0003uy-CX for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 11:17:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyUbI-0003ut-3k for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:17:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyUbF-0003uh-Vl for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:17:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyUbF-0003ue-QW for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:17:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyUbE-0003eL-R9 for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:17:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyUbD-00037i-O5 for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:31 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyUbD-00037c-7N for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 15:17:31 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/Makefile.am server/font.... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 15:17:36 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 15:17:30 Modified files: . : ChangeLog server : Makefile.am font.cpp font.h Added files: server : FreetypeGlyphsProvider.cpp FreetypeGlyphsProvider.h Removed files: server : FreetypeRasterizer.cpp FreetypeRasterizer.h Log message: * server/: font.{cpp,h}, Makefile.am, FreetypeRasterizer.{cpp,h}, FreetypeGlyphsProvider.{cpp,h}: renamed file and class since we won't serve rendered glyphs anymore. Rendered glyphs can always be obtained by rendering the shape_character_def, the code should be buried somewhere in fontlib.cpp. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3525&r2=1.3526 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.117&r2=1.118 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.37&r2=1.38 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.h?cvsroot=gnash&r1=1.22&r2=1.23 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.cpp?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.h?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.cpp?cvsroot=gnash&r1=1.10&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeRasterizer.h?cvsroot=gnash&r1=1.6&r2=0 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3525 retrieving revision 1.3526 diff -u -b -r1.3525 -r1.3526 --- ChangeLog 13 Jun 2007 13:38:28 -0000 1.3525 +++ ChangeLog 13 Jun 2007 15:17:29 -0000 1.3526 @@ -1,5 +1,13 @@ 2007-06-13 Sandro Santilli + * server/: font.{cpp,h}, Makefile.am, FreetypeRasterizer.{cpp,h}, + FreetypeGlyphsProvider.{cpp,h}: renamed file and class since + we won't serve rendered glyphs anymore. Rendered glyphs can + always be obtained by rendering the shape_character_def, + the code should be buried somewhere in fontlib.cpp. + +2007-06-13 Sandro Santilli + * server/font.cpp (add_os_font): use the advance value computed by getGlyph, not getRenderedGlyph (the latter is bogus). Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.117 retrieving revision 1.118 diff -u -b -r1.117 -r1.118 --- server/Makefile.am 13 Jun 2007 09:59:42 -0000 1.117 +++ server/Makefile.am 13 Jun 2007 15:17:30 -0000 1.118 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.117 2007/06/13 09:59:42 strk Exp $ +# $Id: Makefile.am,v 1.118 2007/06/13 15:17:30 strk Exp $ AUTOMAKE_OPTIONS = @@ -29,7 +29,7 @@ # noinst_SCRIPTS = gen-files.sh # TODO: use a conditional to optionally link ? -FREETYPE_SOURCES = FreetypeRasterizer.h FreetypeRasterizer.cpp +FREETYPE_SOURCES = FreetypeGlyphsProvider.h FreetypeGlyphsProvider.cpp # Only enable if we're configured with --enable-mp3 AM_CPPFLAGS = \ Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -b -r1.37 -r1.38 --- server/font.cpp 13 Jun 2007 13:38:29 -0000 1.37 +++ server/font.cpp 13 Jun 2007 15:17:30 -0000 1.38 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.37 2007/06/13 13:38:29 strk Exp $ */ +/* $Id: font.cpp,v 1.38 2007/06/13 15:17:30 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -131,7 +131,7 @@ readDefineFont2_or_3(in, m); } - if ( m_name && ! initDeviceFontRasterizer() ) + if ( m_name && ! initDeviceFontProvider() ) { log_error("Could not initialize device font face '%s'", m_name); } @@ -453,7 +453,7 @@ } // Try adding an os font, of possible - if ( _ftRasterizer.get() ) + if ( _ftProvider.get() ) { glyph_index = const_cast(this)->add_os_glyph(code); } @@ -563,60 +563,36 @@ int font::add_os_glyph(uint16_t code) { - assert ( _ftRasterizer.get() ); + assert ( _ftProvider.get() ); assert(m_code_table.find(code) == m_code_table.end()); - float advance1, advance2; + float advance; // Get the vectorial glyph - boost::intrusive_ptr sh = _ftRasterizer->getGlyph(code, advance1); + boost::intrusive_ptr sh = _ftProvider->getGlyph(code, advance); - // Get the textured glyph and the advance info - rect box; - boost::intrusive_ptr bi ( _ftRasterizer->getRenderedGlyph(code, box, advance2) ); - - // Advance must be given relative to the EM, is that correct or should we change ? - float advance = advance1; // vect - //float advance = advance2; // rast - - if ( ! sh && ! bi ) + if ( ! sh ) { - log_error("Could not create either bitmap or shape " + log_error("Could not create shape " "glyph for character code %u (%c) with " "device font %s (%p)", code, code, m_name, - _ftRasterizer.get()); + _ftProvider.get()); return -1; } - // Create textured glyph from the bitmap info - texture_glyph tg; - - if ( bi.get() ) - { - - if ( ! box.is_null() ) - { - tg.m_uv_bounds.enclose_point(0, 0); - tg.m_uv_bounds.expand_to_point(box.get_x_max(), box.get_y_max()); - // the origin - tg.m_uv_origin.m_x = box.get_x_min(); - tg.m_uv_origin.m_y = box.get_y_min(); - } - else - { - tg.m_uv_bounds.set_null(); - tg.m_uv_origin.m_x = 0; - tg.m_uv_origin.m_y = 0; - } - tg.set_bitmap_info(bi.get()); - } - - // Add the textured glyph + // Find new glyph offset int newOffset = m_texture_glyphs.size(); + + // Add the new glyph id m_code_table[code] = newOffset; + + // Add advance info m_advance_table.push_back(advance); - m_texture_glyphs.push_back(tg); + // Add dummy textured glyph + m_texture_glyphs.push_back(texture_glyph()); + + // Add vector glyph m_glyphs.push_back(sh); testInvariant(); @@ -625,7 +601,7 @@ } bool - font::initDeviceFontRasterizer() + font::initDeviceFontProvider() { if ( ! m_name ) { @@ -633,8 +609,8 @@ return false; } - _ftRasterizer = FreetypeRasterizer::createFace(m_name, m_is_bold, m_is_italic); - if ( ! _ftRasterizer.get() ) + _ftProvider = FreetypeGlyphsProvider::createFace(m_name, m_is_bold, m_is_italic); + if ( ! _ftProvider.get() ) { log_error("Could not create a freetype face %s", m_name); return false; Index: server/font.h =================================================================== RCS file: /sources/gnash/gnash/server/font.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- server/font.h 13 Jun 2007 10:21:36 -0000 1.22 +++ server/font.h 13 Jun 2007 15:17:30 -0000 1.23 @@ -17,7 +17,7 @@ #include "ref_counted.h" // for inheritance of texture_glyph #include "swf.h" // for tag_type definition #include "bitmap_info.h" // for dtor visibility by smart pointer -#include "FreetypeRasterizer.h" // for device fonts support +#include "FreetypeGlyphsProvider.h" // for device fonts support #include "log.h" #include @@ -241,7 +241,7 @@ /// Initialize the freetype rasterizer // /// Return true on success, false on error - bool initDeviceFontRasterizer(); + bool initDeviceFontProvider(); std::vector< boost::intrusive_ptr > m_glyphs; @@ -273,7 +273,7 @@ typedef std::map kernings_table; kernings_table m_kerning_pairs; - std::auto_ptr _ftRasterizer; + std::auto_ptr _ftProvider; }; Index: server/FreetypeGlyphsProvider.cpp =================================================================== RCS file: server/FreetypeGlyphsProvider.cpp diff -N server/FreetypeGlyphsProvider.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ server/FreetypeGlyphsProvider.cpp 13 Jun 2007 15:17:30 -0000 1.1 @@ -0,0 +1,378 @@ +// FreetypeGlyphsProvider.cpp: Freetype glyphs manager +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "FreetypeGlyphsProvider.h" +#include "smart_ptr.h" // for intrusive_ptr +#include "image.h" // for create_alpha +#include "GnashException.h" +#include "render.h" +#include "DynamicShape.h" +#include "log.h" + +#ifdef HAVE_FREETYPE2 +# include +# include FT_OUTLINE_H +# include FT_BBOX_H +#endif + +#ifdef HAVE_FONTCONFIG_FONTCONFIG_H +# define HAVE_FONTCONFIG 1 +#endif + +#ifdef HAVE_FONTCONFIG +# include +# include +#endif + +#include // for snprintf +#include +#include // for auto_ptr + +// Define the following to make outline decomposition verbose +//#define DEBUG_OUTLINE_DECOMPOSITION 1 + +// Define the following to make glyph rendering verbose +//#define DEBUG_GLYPH_RENDERING 1 + +// TODO: drop this ? +#define FREETYPE_MAX_FONTSIZE 96 + +namespace gnash { + +#ifdef HAVE_FREETYPE2 + +static int +walkMoveTo(FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("moveTo: %ld,%ld", to->x, to->y); +#endif + sh->moveTo(to->x, -to->y); + return 0; +} + +static int +walkLineTo(FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("lineTo: %ld,%ld", to->x, to->y); +#endif + sh->lineTo(to->x, -to->y); + return 0; +} + +static int +walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("conicTo: %ld,%ld %ld,%ld", ctrl->x, ctrl->y, to->x, to->y); +#endif + sh->curveTo(ctrl->x, -ctrl->y, to->x, -to->y); + return 0; +} + +static int +walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) +{ + DynamicShape* sh = static_cast(ptr); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("cubicTo: %ld,%ld %ld,%ld %ld,%ld", ctrl1->x, ctrl1->y, ctrl2->x, ctrl2->y, to->x, to->y); +#endif + + float x = ctrl1->x + ( (ctrl2->x - ctrl1->x) * 0.5 ); + float y = ctrl1->y + ( (ctrl2->y - ctrl1->y) * 0.5 ); + + sh->curveTo(x, -y, to->x, -to->y); + + return 0; +} + +// static +FT_Library FreetypeGlyphsProvider::m_lib; + +// static private +void FreetypeGlyphsProvider::init() +{ + int error = FT_Init_FreeType(&m_lib); + if (error) + { + fprintf(stderr, "can't init FreeType! error = %d\n", error); + exit(1); + } +} + +// static private +void FreetypeGlyphsProvider::close() +{ + int error = FT_Done_FreeType(m_lib); + if (error) + { + fprintf(stderr, "can't close FreeType! error = %d\n", error); + } +} + +// private +std::auto_ptr +FreetypeGlyphsProvider::draw_bitmap(const FT_Bitmap& bitmap) +{ + // You must use power-of-two dimensions!! + int w = 1; while (w < bitmap.pitch) { w <<= 1; } + int h = 1; while (h < bitmap.rows) { h <<= 1; } + + std::auto_ptr alpha ( image::create_alpha(w, h) ); + + memset(alpha->m_data, 0, alpha->m_width * alpha->m_height); + + // copy image to alpha + for (int i = 0; i < bitmap.rows; i++) + { + uint8_t* src = bitmap.buffer + bitmap.pitch * i; + uint8_t* dst = alpha->m_data + alpha->m_pitch * i; + int x = bitmap.width; + while (x-- > 0) + { + *dst++ = *src++; + } + } + + return alpha; +} + +#if 0 +// private +float +FreetypeGlyphsProvider::get_advance_x(uint16_t code) +{ + FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); + if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) + { + return 0; + } + return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; +} +#endif + +// private +bool +FreetypeGlyphsProvider::getFontFilename(const std::string& name, + bool /*bold*/, bool /*italic*/, std::string& filename) +{ + +#define DEFAULT_FONTFILE "/usr/share/fonts/truetype/freefont/FreeSans.ttf" + +#ifdef HAVE_FONTCONFIG + + if (!FcInit ()) + { + + log_error("Can't init fontconfig library, using hard-coded font filename"); + filename = DEFAULT_FONTFILE; + return true; + //return false; + } + + FcResult result; + + FcPattern* pat = FcNameParse((const FcChar8*)name.c_str()); + + FcConfigSubstitute (0, pat, FcMatchPattern); + FcDefaultSubstitute (pat); + + FcPattern *match; + match = FcFontMatch (0, pat, &result); + FcPatternDestroy (pat); + + FcFontSet* fs = NULL; + if (match) + { + fs = FcFontSetCreate (); + FcFontSetAdd (fs, match); + } + + if ( fs ) + { + log_debug("Found %d fonts matching the family %s (using first)", fs->nfont, name.c_str()); + + for (int j = 0; j < fs->nfont; j++) + { + FcChar8 *file; + if (FcPatternGetString (fs->fonts[j], FC_FILE, 0, &file) != FcResultMatch) + { + log_debug("Matching font %d has unknown filename, skipping", j); + continue; + } + + filename = (char *)file; + return true; + + } + + FcFontSetDestroy(fs); + } + + log_error("No device font matches the name '%s', using hard-coded font filename", name.c_str()); + filename = DEFAULT_FONTFILE; + return true; +#else + log_error("Font filename matching not implemented (no fontconfig support built-in), using hard-coded font filename", + name.c_str()); + filename = DEFAULT_FONTFILE; + return true; +#endif +} + +#endif // HAVE_FREETYPE2 + +#ifdef HAVE_FREETYPE2 +// static +std::auto_ptr +FreetypeGlyphsProvider::createFace(const std::string& name, bool bold, bool italic) +{ + + std::auto_ptr ret; + + try { + ret.reset( new FreetypeGlyphsProvider(name, bold, italic) ); + } catch (GnashException& ge) { + log_error(ge.what()); + assert(! ret.get()); + } + + return ret; + +} +#else // ndef HAVE_FREETYPE2 +std::auto_ptr +FreetypeGlyphsProvider::createFace(const std::string&, bool, bool) +{ + log_error("Freetype not supported"); + return std::auto_ptr(NULL); +} +#endif // ndef HAVE_FREETYPE2 + +#ifdef HAVE_FREETYPE2 +FreetypeGlyphsProvider::FreetypeGlyphsProvider(const std::string& name, bool bold, bool italic) + : + m_face(NULL) +{ + const unsigned maxerrlen = 64; + char buf[maxerrlen]; + + if (m_lib == NULL) + { + init(); + } + + std::string filename; + if (getFontFilename(name, bold, italic, filename) == false) + { + snprintf(buf, maxerrlen, _("Can't find font file for font '%s'"), name.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf); + } + + int error = FT_New_Face(m_lib, filename.c_str(), 0, &m_face); + switch (error) + { + case 0: + break; + + case FT_Err_Unknown_File_Format: + snprintf(buf, maxerrlen, _("Font file '%s' has bad format"), filename.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf); + break; + + default: + // TODO: return a better error message ! + snprintf(buf, maxerrlen, _("Some error opening font '%s'"), filename.c_str()); + buf[maxerrlen-1] = '\0'; + throw GnashException(buf); + break; + } +} +#else // ndef(HAVE_FREETYPE2) +FreetypeGlyphsProvider::FreetypeGlyphsProvider(const std::string&, bool, bool) +{ + assert(0); // should never be called +} +#endif // ndef HAVE_FREETYPE2 + +#ifdef HAVE_FREETYPE2 +boost::intrusive_ptr +FreetypeGlyphsProvider::getGlyph(uint16_t code, float& advance) +{ + boost::intrusive_ptr sh; + + FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE); + if ( error != 0 ) + { + log_error("Error loading freetype outline glyph for char '%c' (error: %d)", code, error); + return sh.get(); + } + + // TODO: check this. Also check FT_FaceRec::units_per_EM + advance = m_face->glyph->metrics.horiAdvance; + + assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); + + FT_Outline* outline = &(m_face->glyph->outline); + + //FT_BBox glyphBox; + //FT_Outline_Get_BBox(outline, &glyphBox); + //rect r(glyphBox.xMin, glyphBox.yMin, glyphBox.xMax, glyphBox.yMax); + //log_msg("Glyph for character '%c' has computed bounds %s", code, r.toString().c_str()); + + sh = new DynamicShape(); + sh->beginFill(rgba(255, 255, 255, 255)); + + FT_Outline_Funcs walk; + walk.move_to = walkMoveTo; + walk.line_to = walkLineTo; + walk.conic_to = walkConicTo; + walk.cubic_to = walkCubicTo; + walk.shift = 0; // ? + walk.delta = 0; // ? + +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_debug("Decomposing glyph outline for character %u", code); +#endif + FT_Outline_Decompose(outline, &walk, sh.get()); +#ifdef DEBUG_OUTLINE_DECOMPOSITION + log_msg("Decomposed glyph for character '%c' has bounds %s", code, sh->get_bound().toString().c_str()); +#endif + + return sh.get(); +} +#else // ndef(HAVE_FREETYPE2) +boost::intrusive_ptr +FreetypeGlyphsProvider::getGlyph(uint16_t, float& advance) +{ + assert(0); // should never be called... +} +#endif // ndef(HAVE_FREETYPE2) + +} // namespace gnash + Index: server/FreetypeGlyphsProvider.h =================================================================== RCS file: server/FreetypeGlyphsProvider.h diff -N server/FreetypeGlyphsProvider.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ server/FreetypeGlyphsProvider.h 13 Jun 2007 15:17:30 -0000 1.1 @@ -0,0 +1,162 @@ +// FreetypeGlyphsProvider.h: Freetype glyphs manager +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +#ifndef GNASH_FREETYPE_H +#define GNASH_FREETYPE_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + + +#ifdef HAVE_FREETYPE_FREETYPE_H +# define HAVE_FREETYPE2 1 +#endif + +#include "rect.h" +#include "smart_ptr.h" // for intrusive_ptr + +#include +#include // for auto_ptr + +#ifdef HAVE_FREETYPE2 +# include +# include FT_FREETYPE_H +# include FT_GLYPH_H +#endif + +// Forward declarations +namespace gnash { + class bitmap_info; + class shape_character_def; +} +namespace image { + class alpha; +} + + +namespace gnash { + +/// Truetype font rasterizer/converter based on freetype library +// +/// Instances of this class provide rasterized or vectorial glyphs +/// for a given truetype font face. +/// +/// The rasterized glyphs have a max size of 96 (TODO: make parametrizable) +/// but I think the actual size could change between glyphs (see the 'box' +/// parameter of getRenderedGlyph() method). +/// +/// Vectorial glyphs are instances of a shape_character_def, same class +/// resulting from parsing of embedded fonts. +/// +/// TODO: rename this class to something like FreetypeGlyphProvider... +/// +class FreetypeGlyphsProvider +{ + +public: + + /// Named constructor for a face-bound rasterizer. + // + /// @param name + /// Name of the font to get glyphs info from + /// + /// @param bold + /// Whether to use a bold version of the font + /// + /// @param italic + /// Whether to use an italic version of the font + /// + /// @return a rasterizer bound to the given font name, + /// or a NULL auto_ptr if the given truetype font + /// could not be found. + /// + static std::auto_ptr createFace(const std::string& name, bool bold, bool italic); + + /// Return the given character glyph as a shape character definition + // + /// @param code + /// Character code. + /// + /// @param advance + /// Output parameter... units to advance horizontally from this glyph to the next, + /// in EM units. + /// + /// @return A shape_character_def, or a NULL pointer if the given character code + /// doesn't exist in this font. + /// + boost::intrusive_ptr getGlyph(uint16_t code, float& advance); + + +private: + + /// Use the named constructor to create an instance + // + /// throw a GnashException on error (unkonwn font name or similar). + /// + FreetypeGlyphsProvider(const std::string& fontname, bool bold, bool italic); + +#ifdef HAVE_FREETYPE2 + + // TODO: drop ? + //float get_advance_x(uint16_t code); + + /// Get filename containing given font + // + /// @param name + /// Font name + /// + /// @param bold + /// Want bold version + /// + /// @param italic + /// Want italic version + /// + /// @param filename + /// Where to return the filename to + /// + /// @return true if the font was found, false otherwise. + /// Actually, this function should return a default + /// filename in any case, so false should only be + /// returned if not even a default font was found. + /// + bool getFontFilename(const std::string& name, bool bold, bool italic, + std::string& filename); + + static void init(); + + static void close(); + + /// Used by getRenderedGlyph to get the glyph bitmap. + // + /// NOTE: calls the currently registered renderer (create_alpha) + /// + std::auto_ptr draw_bitmap(const FT_Bitmap& bitmap); + + + static FT_Library m_lib; + FT_Face m_face; + +#endif // HAVE_FREETYPE2 + +}; + +} // namespace gnash + + +#endif // GNASH_FREETYPE_H Index: server/FreetypeRasterizer.cpp =================================================================== RCS file: server/FreetypeRasterizer.cpp diff -N server/FreetypeRasterizer.cpp --- server/FreetypeRasterizer.cpp 13 Jun 2007 09:59:42 -0000 1.10 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,446 +0,0 @@ -// FreetypeRasterizer.cpp: Freetype glyphs manager -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "FreetypeRasterizer.h" -#include "smart_ptr.h" // for intrusive_ptr -#include "image.h" // for create_alpha -#include "GnashException.h" -#include "render.h" -#include "DynamicShape.h" -#include "log.h" - -#ifdef HAVE_FREETYPE2 -# include -# include FT_OUTLINE_H -# include FT_BBOX_H -#endif - -#ifdef HAVE_FONTCONFIG_FONTCONFIG_H -# define HAVE_FONTCONFIG 1 -#endif - -#ifdef HAVE_FONTCONFIG -# include -# include -#endif - -#include // for snprintf -#include -#include // for auto_ptr - -// Define the following to make outline decomposition verbose -//#define DEBUG_OUTLINE_DECOMPOSITION 1 - -// Define the following to make glyph rendering verbose -//#define DEBUG_GLYPH_RENDERING 1 - -// TODO: drop this ? -#define FREETYPE_MAX_FONTSIZE 96 - -namespace gnash { - -#ifdef HAVE_FREETYPE2 - -static int -walkMoveTo(FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_debug("moveTo: %ld,%ld", to->x, to->y); -#endif - sh->moveTo(to->x, -to->y); - return 0; -} - -static int -walkLineTo(FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_debug("lineTo: %ld,%ld", to->x, to->y); -#endif - sh->lineTo(to->x, -to->y); - return 0; -} - -static int -walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_debug("conicTo: %ld,%ld %ld,%ld", ctrl->x, ctrl->y, to->x, to->y); -#endif - sh->curveTo(ctrl->x, -ctrl->y, to->x, -to->y); - return 0; -} - -static int -walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_debug("cubicTo: %ld,%ld %ld,%ld %ld,%ld", ctrl1->x, ctrl1->y, ctrl2->x, ctrl2->y, to->x, to->y); -#endif - - float x = ctrl1->x + ( (ctrl2->x - ctrl1->x) * 0.5 ); - float y = ctrl1->y + ( (ctrl2->y - ctrl1->y) * 0.5 ); - - sh->curveTo(x, -y, to->x, -to->y); - - return 0; -} - -// static -FT_Library FreetypeRasterizer::m_lib; - -// static private -void FreetypeRasterizer::init() -{ - int error = FT_Init_FreeType(&m_lib); - if (error) - { - fprintf(stderr, "can't init FreeType! error = %d\n", error); - exit(1); - } -} - -// static private -void FreetypeRasterizer::close() -{ - int error = FT_Done_FreeType(m_lib); - if (error) - { - fprintf(stderr, "can't close FreeType! error = %d\n", error); - } -} - -// private -std::auto_ptr -FreetypeRasterizer::draw_bitmap(const FT_Bitmap& bitmap) -{ - // You must use power-of-two dimensions!! - int w = 1; while (w < bitmap.pitch) { w <<= 1; } - int h = 1; while (h < bitmap.rows) { h <<= 1; } - - std::auto_ptr alpha ( image::create_alpha(w, h) ); - - memset(alpha->m_data, 0, alpha->m_width * alpha->m_height); - - // copy image to alpha - for (int i = 0; i < bitmap.rows; i++) - { - uint8_t* src = bitmap.buffer + bitmap.pitch * i; - uint8_t* dst = alpha->m_data + alpha->m_pitch * i; - int x = bitmap.width; - while (x-- > 0) - { - *dst++ = *src++; - } - } - - return alpha; -} - -#if 0 -// private -float -FreetypeRasterizer::get_advance_x(uint16_t code) -{ - FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); - if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) - { - return 0; - } - return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; -} -#endif - -// private -bool -FreetypeRasterizer::getFontFilename(const std::string& name, - bool /*bold*/, bool /*italic*/, std::string& filename) -{ - -#define DEFAULT_FONTFILE "/usr/share/fonts/truetype/freefont/FreeSans.ttf" - -#ifdef HAVE_FONTCONFIG - - if (!FcInit ()) - { - - log_error("Can't init fontconfig library, using hard-coded font filename"); - filename = DEFAULT_FONTFILE; - return true; - //return false; - } - - FcResult result; - - FcPattern* pat = FcNameParse((const FcChar8*)name.c_str()); - - FcConfigSubstitute (0, pat, FcMatchPattern); - FcDefaultSubstitute (pat); - - FcPattern *match; - match = FcFontMatch (0, pat, &result); - FcPatternDestroy (pat); - - FcFontSet* fs = NULL; - if (match) - { - fs = FcFontSetCreate (); - FcFontSetAdd (fs, match); - } - - if ( fs ) - { - log_debug("Found %d fonts matching the family %s (using first)", fs->nfont, name.c_str()); - - for (int j = 0; j < fs->nfont; j++) - { - FcChar8 *file; - if (FcPatternGetString (fs->fonts[j], FC_FILE, 0, &file) != FcResultMatch) - { - log_debug("Matching font %d has unknown filename, skipping", j); - continue; - } - - filename = (char *)file; - return true; - - } - - FcFontSetDestroy(fs); - } - - log_error("No device font matches the name '%s', using hard-coded font filename", name.c_str()); - filename = DEFAULT_FONTFILE; - return true; -#else - log_error("Font filename matching not implemented (no fontconfig support built-in), using hard-coded font filename", - name.c_str()); - filename = DEFAULT_FONTFILE; - return true; -#endif -} - -#endif // HAVE_FREETYPE2 - -#ifdef HAVE_FREETYPE2 -// static -std::auto_ptr -FreetypeRasterizer::createFace(const std::string& name, bool bold, bool italic) -{ - - std::auto_ptr ret; - - try { - ret.reset( new FreetypeRasterizer(name, bold, italic) ); - } catch (GnashException& ge) { - log_error(ge.what()); - assert(! ret.get()); - } - - return ret; - -} -#else // ndef HAVE_FREETYPE2 -std::auto_ptr -FreetypeRasterizer::createFace(const std::string&, bool, bool) -{ - log_error("Freetype not supported"); - return std::auto_ptr(NULL); -} -#endif // ndef HAVE_FREETYPE2 - -#ifdef HAVE_FREETYPE2 -FreetypeRasterizer::FreetypeRasterizer(const std::string& name, bool bold, bool italic) - : - m_face(NULL) -{ - const unsigned maxerrlen = 64; - char buf[maxerrlen]; - - if (m_lib == NULL) - { - init(); - } - - std::string filename; - if (getFontFilename(name, bold, italic, filename) == false) - { - snprintf(buf, maxerrlen, _("Can't find font file for font '%s'"), name.c_str()); - buf[maxerrlen-1] = '\0'; - throw GnashException(buf); - } - - int error = FT_New_Face(m_lib, filename.c_str(), 0, &m_face); - switch (error) - { - case 0: - break; - - case FT_Err_Unknown_File_Format: - snprintf(buf, maxerrlen, _("Font file '%s' has bad format"), filename.c_str()); - buf[maxerrlen-1] = '\0'; - throw GnashException(buf); - break; - - default: - // TODO: return a better error message ! - snprintf(buf, maxerrlen, _("Some error opening font '%s'"), filename.c_str()); - buf[maxerrlen-1] = '\0'; - throw GnashException(buf); - break; - } -} -#else // ndef(HAVE_FREETYPE2) -FreetypeRasterizer::FreetypeRasterizer(const std::string&, bool, bool) -{ - assert(0); // should never be called -} -#endif // ndef HAVE_FREETYPE2 - -#ifdef HAVE_FREETYPE2 -boost::intrusive_ptr -FreetypeRasterizer::getRenderedGlyph(uint16_t code, rect& box, float& advance) -{ - boost::intrusive_ptr bi; - - FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); - FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_RENDER); - if ( error != 0 ) - { - log_error("Error loading freetype render glyph for char '%c' (error: %d)", code, error); - return bi; - } - - FT_GlyphSlot glyph = m_face->glyph; - FT_Bitmap bitmap = glyph->bitmap; - FT_Glyph_Metrics metrics = glyph->metrics; - - std::auto_ptr im ( draw_bitmap(bitmap) ); - -#ifdef DEBUG_GLYPH_RENDERING - log_debug("image::alpha drawn for character glyph '%c' bitmap has size %dx%d", code, im->m_width, im->m_height); - log_debug("ttf bitmap glyph width:%d, rows:%d", bitmap.width, bitmap.rows); - log_debug("ttf glyph metrics width:%ld, height:%ld", metrics.width, metrics.height); - log_debug("ttf glyph metrics X bearing:%ld, Y bearing:%ld", metrics.horiBearingX, metrics.horiBearingY); -#endif - - bi = render::create_bitmap_info_alpha(im->m_width, im->m_height, im->m_data); - - if ( bitmap.width && bitmap.rows && metrics.width && metrics.height ) - { - float xmax = float(bitmap.width) / float(im->m_width); - float ymax = float(bitmap.rows) / float(im->m_height); - - float xmin = float(metrics.horiBearingX) / float(metrics.width); - float ymin = float(metrics.horiBearingY) / float(metrics.height); - - // ??? - xmin *= -xmax; - ymin *= ymax; - - box.enclose_point(xmin, ymin); - box.expand_to_point(xmax, ymax); - } - else - { - box.set_null(); - } - - // TODO: check this. Also check FT_FaceRec::units_per_EM - static float s_advance_scale = 0.16666666f; //vv hack - advance = (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; - -#ifdef DEBUG_GLYPH_RENDERING - log_debug(" box: %s, advance: %g", box.toString().c_str(), advance); -#endif - - - return bi; -} -#else // ndef(HAVE_FREETYPE2) -boost::intrusive_ptr -FreetypeRasterizer::getRenderedGlyph(uint16_t, rect& , float&) -{ - assert(0); // should never be called... -} -#endif // ndef(HAVE_FREETYPE2) - -#ifdef HAVE_FREETYPE2 -boost::intrusive_ptr -FreetypeRasterizer::getGlyph(uint16_t code, float& advance) -{ - boost::intrusive_ptr sh; - - FT_Error error = FT_Load_Char(m_face, code, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE); - if ( error != 0 ) - { - log_error("Error loading freetype outline glyph for char '%c' (error: %d)", code, error); - return sh.get(); - } - - // TODO: check this. Also check FT_FaceRec::units_per_EM - advance = m_face->glyph->metrics.horiAdvance; - - assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); - - FT_Outline* outline = &(m_face->glyph->outline); - - //FT_BBox glyphBox; - //FT_Outline_Get_BBox(outline, &glyphBox); - //rect r(glyphBox.xMin, glyphBox.yMin, glyphBox.xMax, glyphBox.yMax); - //log_msg("Glyph for character '%c' has computed bounds %s", code, r.toString().c_str()); - - sh = new DynamicShape(); - sh->beginFill(rgba(255, 255, 255, 255)); - - FT_Outline_Funcs walk; - walk.move_to = walkMoveTo; - walk.line_to = walkLineTo; - walk.conic_to = walkConicTo; - walk.cubic_to = walkCubicTo; - walk.shift = 0; // ? - walk.delta = 0; // ? - -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_debug("Decomposing glyph outline for character %u", code); -#endif - FT_Outline_Decompose(outline, &walk, sh.get()); -#ifdef DEBUG_OUTLINE_DECOMPOSITION - log_msg("Decomposed glyph for character '%c' has bounds %s", code, sh->get_bound().toString().c_str()); -#endif - - return sh.get(); -} -#else // ndef(HAVE_FREETYPE2) -boost::intrusive_ptr -FreetypeRasterizer::getGlyph(uint16_t, float& advance) -{ - assert(0); // should never be called... -} -#endif // ndef(HAVE_FREETYPE2) - -} // namespace gnash - Index: server/FreetypeRasterizer.h =================================================================== RCS file: server/FreetypeRasterizer.h diff -N server/FreetypeRasterizer.h --- server/FreetypeRasterizer.h 13 Jun 2007 09:59:42 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,183 +0,0 @@ -// FreetypeRasterizer.h: Freetype glyphs manager -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -#ifndef GNASH_FREETYPE_H -#define GNASH_FREETYPE_H - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - - -#ifdef HAVE_FREETYPE_FREETYPE_H -# define HAVE_FREETYPE2 1 -#endif - -#include "rect.h" -#include "smart_ptr.h" // for intrusive_ptr - -#include -#include // for auto_ptr - -#ifdef HAVE_FREETYPE2 -# include -# include FT_FREETYPE_H -# include FT_GLYPH_H -#endif - -// Forward declarations -namespace gnash { - class bitmap_info; - class shape_character_def; -} -namespace image { - class alpha; -} - - -namespace gnash { - -/// Truetype font rasterizer/converter based on freetype library -// -/// Instances of this class provide rasterized or vectorial glyphs -/// for a given truetype font face. -/// -/// The rasterized glyphs have a max size of 96 (TODO: make parametrizable) -/// but I think the actual size could change between glyphs (see the 'box' -/// parameter of getRenderedGlyph() method). -/// -/// Vectorial glyphs are instances of a shape_character_def, same class -/// resulting from parsing of embedded fonts. -/// -/// TODO: rename this class to something like FreetypeGlyphProvider... -/// -class FreetypeRasterizer -{ - -public: - - /// Named constructor for a face-bound rasterizer. - // - /// @param name - /// Name of the font to get glyphs info from - /// - /// @param bold - /// Whether to use a bold version of the font - /// - /// @param italic - /// Whether to use an italic version of the font - /// - /// @return a rasterizer bound to the given font name, - /// or a NULL auto_ptr if the given truetype font - /// could not be found. - /// - static std::auto_ptr createFace(const std::string& name, bool bold, bool italic); - - /// Return the given character glyph as a bitmap - // - /// @param code - /// Character code. - /// - /// @param box - /// Output parameter. Bounding box of glyph is returned here. - /// TODO: document units, and more about what a bounding box is - /// (ie: actual bounds of visible shape or including padding?). - /// NOTE: can be the NULL bound, for non-visible characters - /// (space, tab, whatever else). - /// - /// @param advance - /// Output parameter... TODO: describe what it is (units?) - /// - /// @return A bitmap_info, or a NULL pointer if the given character code - /// doesn't exist in this font. - /// - /// TODO: drop ? - /// - boost::intrusive_ptr getRenderedGlyph(uint16_t code, rect& box, float& advance); - - /// Return the given character glyph as a shape character definition - // - /// @param code - /// Character code. - /// - /// @param advance - /// Output parameter... TODO: describe what it is (units?) - /// - /// @return A shape_character_def, or a NULL pointer if the given character code - /// doesn't exist in this font. - /// - boost::intrusive_ptr getGlyph(uint16_t code, float& advance); - - -private: - - /// Use the named constructor to create an instance - // - /// throw a GnashException on error (unkonwn font name or similar). - /// - FreetypeRasterizer(const std::string& fontname, bool bold, bool italic); - -#ifdef HAVE_FREETYPE2 - - // TODO: drop ? - //float get_advance_x(uint16_t code); - - /// Get filename containing given font - // - /// @param name - /// Font name - /// - /// @param bold - /// Want bold version - /// - /// @param italic - /// Want italic version - /// - /// @param filename - /// Where to return the filename to - /// - /// @return true if the font was found, false otherwise. - /// Actually, this function should return a default - /// filename in any case, so false should only be - /// returned if not even a default font was found. - /// - bool getFontFilename(const std::string& name, bool bold, bool italic, - std::string& filename); - - static void init(); - - static void close(); - - /// Used by getRenderedGlyph to get the glyph bitmap. - // - /// NOTE: calls the currently registered renderer (create_alpha) - /// - std::auto_ptr draw_bitmap(const FT_Bitmap& bitmap); - - - static FT_Library m_lib; - FT_Face m_face; - -#endif // HAVE_FREETYPE2 - -}; - -} // namespace gnash - - -#endif // GNASH_FREETYPE_H From MAILER-DAEMON Wed Jun 13 11:45:25 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyV2D-0004O5-RO for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 11:45:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyV2C-0004M7-7g for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:45:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyV2B-0004Kc-5R for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:45:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyV2A-0004Jr-MO for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:45:22 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1HyV29-0007HV-5L for gnash-commit@gnu.org; Wed, 13 Jun 2007 11:45:21 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5DFjF130722; Wed, 13 Jun 2007 17:45:15 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Wed, 13 Jun 2007 17:45:15 +0200 To: zou lunkai Subject: Re: [Gnash-commit] Re: "make check" report Message-ID: <20070613154515.GE18886@keybit.net> Mail-Followup-To: zou lunkai , gnash-commit@gnu.org References: <20070607071516.GA83679@keybit.net> <20070607074034.GB83679@keybit.net> <20070608075534.GB99775@keybit.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 15:45:24 -0000 On Fri, Jun 08, 2007 at 04:15:24PM +0800, zou lunkai wrote: > (1) ... > Renderer AGG_BGRA32 not supported > Segmentation fault Could you get me a backtrace ? > > (2) > cd testsuite/misc-ming.all > ./replace_buttons1test_runner ... > Renderer AGG_RGB24 initialized ... > [replace_buttons1test_runner.cpp:67] > PASSED: invalidated.contains(76, 4) [replace_buttons1test_runner.cpp:69] > Segmentation fault Ditto... backtrace ? --strk; From MAILER-DAEMON Wed Jun 13 12:30:58 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyVkI-0006R8-Ib for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 12:30:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyVkH-0006Qy-4X for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:30:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyVkF-0006Qe-Bf for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:30:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyVkF-0006QQ-7K for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:30:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyVkE-0005as-Ry for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:30:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyVkD-0001lS-OR for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:30:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyVkD-0001lK-DK for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:30:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 16:30:53 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeGlyphsProvider.c... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 16:30:57 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 16:30:53 Modified files: . : ChangeLog server : FreetypeGlyphsProvider.cpp FreetypeGlyphsProvider.h Log message: * server/FreetypeGlyphsProvider.{cpp,h}: document coordinate space of getGlyph output values and implement proper scaling between freetype glyph EM units and our 1024 EM square. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3526&r2=1.3527 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.h?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3526 retrieving revision 1.3527 diff -u -b -r1.3526 -r1.3527 --- ChangeLog 13 Jun 2007 15:17:29 -0000 1.3526 +++ ChangeLog 13 Jun 2007 16:30:52 -0000 1.3527 @@ -1,5 +1,11 @@ 2007-06-13 Sandro Santilli + * server/FreetypeGlyphsProvider.{cpp,h}: document coordinate space of + getGlyph output values and implement proper scaling between freetype + glyph EM units and our 1024 EM square. + +2007-06-13 Sandro Santilli + * server/: font.{cpp,h}, Makefile.am, FreetypeRasterizer.{cpp,h}, FreetypeGlyphsProvider.{cpp,h}: renamed file and class since we won't serve rendered glyphs anymore. Rendered glyphs can Index: server/FreetypeGlyphsProvider.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeGlyphsProvider.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- server/FreetypeGlyphsProvider.cpp 13 Jun 2007 15:17:30 -0000 1.1 +++ server/FreetypeGlyphsProvider.cpp 13 Jun 2007 16:30:52 -0000 1.2 @@ -50,53 +50,110 @@ // Define the following to make outline decomposition verbose //#define DEBUG_OUTLINE_DECOMPOSITION 1 -// Define the following to make glyph rendering verbose -//#define DEBUG_GLYPH_RENDERING 1 - -// TODO: drop this ? -#define FREETYPE_MAX_FONTSIZE 96 - namespace gnash { #ifdef HAVE_FREETYPE2 -static int -walkMoveTo(FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); +/// Outline glyph walker/decomposer, for drawing an FT_Outline to DynamicShape +// +/// See FT_Outline_Decompose function of freetype2 lib +/// +class OutlineWalker { + +public: + + /// Create an outline walker drawing to the given DynamiShape + // + /// @param sh + /// The DynamiShape to draw to. Externally owned. + /// + /// @param scale + /// The scale to apply to coordinates. + /// This is to match an EM of 1024x1024 when units_per_EM + /// are of a different value. + /// + OutlineWalker(DynamicShape& sh, float scale) + : + _sh(sh), + _scale(scale) + {} + + ~OutlineWalker() {} + + /// Callback function for the move_to member of FT_Outline_Funcs + static int + walkMoveTo(FT_Vector* to, void* ptr) + { + OutlineWalker* walker = static_cast(ptr); + return walker->moveTo(to); + } + + /// Callback function for the line_to member of FT_Outline_Funcs + static int + walkLineTo(FT_Vector* to, void* ptr) + { + OutlineWalker* walker = static_cast(ptr); + return walker->lineTo(to); + } + + /// Callback function for the conic_to member of FT_Outline_Funcs + static int + walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) + { + OutlineWalker* walker = static_cast(ptr); + return walker->conicTo(ctrl, to); + } + + /// Callback function for the cubic_to member of FT_Outline_Funcs + // + /// Transform the cubic curve into a quadratic one an interpolated point + /// falling in the middle of the two control points. + /// + static int + walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) + { + OutlineWalker* walker = static_cast(ptr); + return walker->cubicTo(ctrl1, ctrl2, to); + } + +private: + + DynamicShape& _sh; + + float _scale; + + int moveTo(FT_Vector* to) + { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("moveTo: %ld,%ld", to->x, to->y); #endif - sh->moveTo(to->x, -to->y); + _sh.moveTo(to->x*_scale, -to->y*_scale); return 0; -} + } -static int -walkLineTo(FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); + int + lineTo(FT_Vector* to) + { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("lineTo: %ld,%ld", to->x, to->y); #endif - sh->lineTo(to->x, -to->y); + _sh.lineTo(to->x*_scale, -to->y*_scale); return 0; -} + } -static int -walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); + int + conicTo(FT_Vector* ctrl, FT_Vector* to) + { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("conicTo: %ld,%ld %ld,%ld", ctrl->x, ctrl->y, to->x, to->y); #endif - sh->curveTo(ctrl->x, -ctrl->y, to->x, -to->y); + _sh.curveTo(ctrl->x*_scale, -ctrl->y*_scale, to->x*_scale, -to->y*_scale); return 0; -} + } -static int -walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) -{ - DynamicShape* sh = static_cast(ptr); + int + cubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to) + { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("cubicTo: %ld,%ld %ld,%ld %ld,%ld", ctrl1->x, ctrl1->y, ctrl2->x, ctrl2->y, to->x, to->y); #endif @@ -104,10 +161,12 @@ float x = ctrl1->x + ( (ctrl2->x - ctrl1->x) * 0.5 ); float y = ctrl1->y + ( (ctrl2->y - ctrl1->y) * 0.5 ); - sh->curveTo(x, -y, to->x, -to->y); - + _sh.curveTo(x*_scale, -y*_scale, to->x*_scale, -to->y*_scale); return 0; -} + } + + +}; // static FT_Library FreetypeGlyphsProvider::m_lib; @@ -160,20 +219,6 @@ return alpha; } -#if 0 -// private -float -FreetypeGlyphsProvider::get_advance_x(uint16_t code) -{ - FT_Set_Pixel_Sizes(m_face, 0, FREETYPE_MAX_FONTSIZE); - if (FT_Load_Char(m_face, code, FT_LOAD_RENDER)) - { - return 0; - } - return (float) m_face->glyph->metrics.horiAdvance * s_advance_scale; -} -#endif - // private bool FreetypeGlyphsProvider::getFontFilename(const std::string& name, @@ -312,6 +357,12 @@ throw GnashException(buf); break; } + + // We want an EM of 1024, so if units_per_EM is different + // we will scale + scale = 1024.0f/m_face->units_per_EM; + + log_debug("EM square for font '%s' is %d, scale is thus %g", name.c_str(), m_face->units_per_EM, scale); } #else // ndef(HAVE_FREETYPE2) FreetypeGlyphsProvider::FreetypeGlyphsProvider(const std::string&, bool, bool) @@ -333,8 +384,8 @@ return sh.get(); } - // TODO: check this. Also check FT_FaceRec::units_per_EM - advance = m_face->glyph->metrics.horiAdvance; + // Scale advance by current scale, to match expected output coordinate space + advance = m_face->glyph->metrics.horiAdvance * scale; assert(m_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE); @@ -349,19 +400,23 @@ sh->beginFill(rgba(255, 255, 255, 255)); FT_Outline_Funcs walk; - walk.move_to = walkMoveTo; - walk.line_to = walkLineTo; - walk.conic_to = walkConicTo; - walk.cubic_to = walkCubicTo; + walk.move_to = OutlineWalker::walkMoveTo; + walk.line_to = OutlineWalker::walkLineTo; + walk.conic_to = OutlineWalker::walkConicTo; + walk.cubic_to = OutlineWalker::walkCubicTo; walk.shift = 0; // ? walk.delta = 0; // ? #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("Decomposing glyph outline for character %u", code); #endif - FT_Outline_Decompose(outline, &walk, sh.get()); + + OutlineWalker walker(*sh, scale); + + FT_Outline_Decompose(outline, &walk, &walker); #ifdef DEBUG_OUTLINE_DECOMPOSITION - log_msg("Decomposed glyph for character '%c' has bounds %s", code, sh->get_bound().toString().c_str()); + rect bound; sh->compute_bound(&bound); + log_msg("Decomposed glyph for character '%c' has bounds %s", code, bound.toString().c_str()); #endif return sh.get(); Index: server/FreetypeGlyphsProvider.h =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeGlyphsProvider.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- server/FreetypeGlyphsProvider.h 13 Jun 2007 15:17:30 -0000 1.1 +++ server/FreetypeGlyphsProvider.h 13 Jun 2007 16:30:53 -0000 1.2 @@ -88,17 +88,20 @@ /// static std::auto_ptr createFace(const std::string& name, bool bold, bool italic); - /// Return the given character glyph as a shape character definition + /// Return the given character glyph as a shape character definition in 1024 EM coordinates. // + /// + /// TODO: allow using a custom EM square ? + /// /// @param code /// Character code. /// /// @param advance /// Output parameter... units to advance horizontally from this glyph to the next, - /// in EM units. + /// in 1024 EM units. /// - /// @return A shape_character_def, or a NULL pointer if the given character code - /// doesn't exist in this font. + /// @return A shape_character_def in 1024 EM coordinates, or a NULL pointer if the given + /// character code doesn't exist in this font. /// boost::intrusive_ptr getGlyph(uint16_t code, float& advance); @@ -113,8 +116,11 @@ #ifdef HAVE_FREETYPE2 - // TODO: drop ? - //float get_advance_x(uint16_t code); + /// Scale factor to make the freetype glyph metrix match our 1024 EM square + /// coordinate space. Not all font faces have am EM square of 1024, so we + /// use this value to scale both coordinates and advance values + /// The value is computed by the costructor, as soon as a face is initialized. + float scale; /// Get filename containing given font // From MAILER-DAEMON Wed Jun 13 12:41:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyVuC-0001f0-LR for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 12:41:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyVu8-0001dr-LF for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:41:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyVu7-0001dT-T1 for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:41:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyVu6-0001cy-SB for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:41:07 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyVtn-0006gv-29 for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:41:06 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyVtl-0003os-VJ for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:40:46 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyVtl-0003oo-9u for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:40:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Wed, 13 Jun 2007 16:40:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog ChangeLog-0.8.0 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 16:41:09 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Rob Savoye 07/06/13 16:40:44 Modified files: . : ChangeLog Added files: . : ChangeLog-0.8.0 Log message: Make copy to reduce size. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3527&r2=1.3528 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog-0.8.0?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3527 retrieving revision 1.3528 diff -u -b -r1.3527 -r1.3528 --- ChangeLog 13 Jun 2007 16:30:52 -0000 1.3527 +++ ChangeLog 13 Jun 2007 16:40:44 -0000 1.3528 @@ -435,18546 +435,3 @@ degrees clockwise to verify video transform bugs (not automated yet); documented expected behaviour; add tests for matrix transforming properties. - -2007-06-04 Rob Savoye - - * NEWS, README: Update for upcoming release. - * macros/kde.m4: Use newlist so we don't stomp on libslist. - * server/asobj/Makefile.am: Don't link ffmpeg to convienince lib. - * server/parser/Makefile.am: We don't need ffmpeg or gstreamer - headers for this directory. - -2007-06-04 Sandro Santilli - - * backend/render_handler.h: expose a new getBitsPerPixel interface. - * backend/render_handler_agg.{cpp,h}: implement getBitsPerPixel, - const-correct the existing getBytesPerPixel. - * testsuite/MovieTester.cpp (checkPixel): never use a tolerance - inferior to the minimum tolerance for a renderer, with min tolerance - being a function of BPP (formula suggested by UdoG). - Fixes bug #20035. - -2007-06-04 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.cpp (av_streamer): sleep for 1 - microsecond between iterations, to allow other threads to run. - Fixes the 100% CPU problem (thanks to UdoG for support). - -2007-06-04 Sandro Santilli - - * libbase/FLVParser.h: updated dox for nextAudioFrame() and - nextVideoFrame() noting the non-blocking nature of the calls; - add a parsingCompleted() method. - * server/asobj/NetStreamFfmpeg.h: update documentation of - decodeFLVFrame() - -2007-06-04 Sandro Santilli - - * libbase/FLVParser.{cpp,h}: put FLVParser in the gnash namespace. - -2007-06-04 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.{cpp,h}: Drop the decoder mutex and - conditional variable. Decoder should never stop till the end of - the stream is fully decoder. Rename {pause,unpause}Decoding to - {pause,unpause}Playback, which is matches reality more, and is - also more correct. - -2007-06-04 Sandro Santilli - - * server/timers.cpp (expired): allow now == _start. - Hopefully fixes bug #20047. - -2007-06-02 Sandro Santilli - - * server/asobj/NetStream.cpp (::bufferLength): return milliseconds, - as (correctly) documented. - -2007-06-02 Tomas Groth Christensen - - * backend/render_handler_ogl.cpp,libbase/log.cpp, macros/opengl.m4, - server/asobj/Date.cpp: Fixes for builing on win32/MSYS/mingw. - Linking is still broken. - -2007-06-02 Sandro Santilli - - * server/vm/ASHandlers.cpp (CommonGetUrl): log about _level# - target for GetUrl being unsupported. - -2007-06-02 Bastiaan Jacques - - * server/asobj/NetConnection.{cpp,h}: Permit openConnection - to be called more than once with the same URL. - * server/asobj/NetStreamFfmpeg.cpp: Call detach_aux_streamer - with a valid owner argument, so something will actually - happen. Make sure that the NetConnection position is 0 - just in case openConnection was called before. Fix a deadlock - by avoiding calls to the sound handler in startPlayback(). - This is cheating, but fixes bug #20036. - -2007-06-01 Bastiaan Jacques - - * macros/ffmpeg.m4: Avoid using libswscale with broken ffmpeg - versions. - * configure.ac: Revert unintentional change. - -2007-06-01 Sandro Santilli - - * server/asobj/NetStreamGst.cpp: protect all log_debug calls - with a GNASH_DEBUG macro. - -2007-06-01 Sandro Santilli - - * libbase/rc.{cpp,h}: Add a "StartStopped" variable, to - have the gui start in "stop" mode. - * doc/C/gnashrc.xml: document the new "StartStopped" variable. - * gui/Player.cpp (init_gui): set the Gui to "stop" if requested - by the user (trough gnashrc) - * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test "StartStopped" - variable. - -2007-06-01 Sandro Santilli - - * server/asobj/NetStream.{cpp,h}: split processStatusNotifications - so that onStatus handler call is performed while the statusMutex - is NOT locked, to prevent attempts to lock the mutex again while - reacting to status handlers. statusQueue type changed from vector - to deque, for faster pop_front. - -2007-06-01 Sandro Santilli - - * gui/Player.cpp (run): remove sound_handler cleanup, will - be done by gnash::clear(). - * gui/: gtk.cpp, gtksup.h: implement gui::quit() - * server/impl.cpp (clear): report the problem with cleaning - up resources before all threads are completed, exit() rather - then cleanup and document the reason for doing so. - * utilities/processor.cpp (main): call gnash::clear() again, that's - where proper threads cleanup is supposed to be implemented. - -2007-06-01 Sandro Santilli - - * server/vm/ActionExec.cpp (call operator): if pc == oldPc that's - still to be considered a branch-back, so count it; Increment - branch-back limit to 2^16 (65535). - * gui/Player.cpp: print a debugging message when the main gui loop - returns so we know if we exited cleanly or due to a call to exit(). - * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning - from the main rendering loop. This is aimed at removing the exit() - call, altought currently we'll still call it as the default - implementation. - -2007-05-31 Bastiaan Jacques - - * macros/ffmpeg.m4: Define HAVE_SWSCALE_H if swscale.h is present. - * libbase/embedVideoDecoderFfmpeg.cpp: If swscale.h is available, - use swscale and friends. Otherwise, default to img_convert. Also, - conditionally include swscale.h itself. - * server/asobj/NetStreamFfmpeg.cpp: Remove unused include. - -2007-05-31 Sandro Santilli - - * backend/sound_handler.h: document attach_aux_streamer and - detach_aux_streamer; add TODO items. - * backend/sound_handler_sdl.cpp (sdl_audio_callback): documentation, - TODO items, early return if buffer len passed by SDL == 0. - -2007-05-31 Tomas Groth Christensen - - * server/asobj/NetStream*.{h,cpp}: Always use milliseconds internally. - -2007-05-31 Rob Savoye - - * configure.ac: Change renderer default to opengl. - -2007-05-31 Sandro Santilli - - * server/asobj/: NetStream.cpp, NetStreamFfmpeg.cpp: - More debugging lines protection. - -2007-05-31 Sandro Santilli - - * libbase/FLVParser.cpp: protect seek debugging by - a GNASH_DEBUG_SEEK macro - * server/asobj/NetStreamFfmpeg.cpp: dont debug condition - variable signaling if GNASH_DEBUG_THREADS is undefined. - -2007-05-31 Sandro Santilli - - * libbase/log.{cpp,h}: lock the io Mutex on closeLog, to - prevent race conditions between a thread using log() - and one using closeLog(). - -2007-05-31 Tomas Groth Christensen - - * libbase/FLVParser.cpp: (FLVFrame* FLVParser::nextMediaFrame) - Fixed a bug causing nextMediaFrame to return NULL. - -2007-05-31 Martin Guy - - * libbase/embedVideoDecoderFfmpeg.cpp, - server/asobj/NetStreamFfmpeg.cpp: - Add comments by commented img_convert()s to use sws_scale() when - implementing. - * Change default renderer to agg for 0.8.0 release - * Revert default renderer back to OpenGL. - -2007-05-31 Sandro Santilli - - * libbase/embedVideoDecoderFfmpeg.{cpp,h}: - Make convertRGB24 a public static function. - * server/asobj/NetStreamFfmpeg.cpp: use - embedVideoDecoderFfmpeg::convertRGB24, dropping the - duplicated implementation. - -2007-05-31 Bastiaan Jacques - - * server/asobj/NetStreamFfmpeg.cpp, - libbase/embedVideoDecoderFfmpeg.cpp: Use libswscale instead of - img_convert for YUV->RGB conversion, because it is deprecated and - has been removed from recent ffmpeg. - -2007-05-30 Sandro Santilli - - * configure.ac: add missing quote in martin's commit (no ChangeLog - entry for it, btw) - * server/asobj/README.NetStream: add design notes for NetStream. - -2007-05-30 Sandro Santilli - - * server/video_stream_instance.cpp (display): update call to - get_video. - * server/asobj/NetStream.{cpp,h}: change get_video to return by - auto_ptr to encode ownership transfer. - * server/asobj/NetStreamFfmpeg.h: update refreshVieoFrame() dox. - -2007-05-30 Sandro Santilli - - * server/asobj/NetStream.cpp: fix NetStream.bufferTime getter to - return value in seconds, not milliseconds. - -2007-05-30 Tomas Groth Christensen - - * server/asobj/NetStreamFfmpeg.cpp: Fixed seeking to work when not - seeking to 0. - * server/asobj/SoundFfmpeg.cpp: Silence a compiler warning. - -2007-05-30 Sandro Santilli - - * libbase/FLVParser.h: document timestamp units for media frames - and isTimeLoaded(). - * server/asobj/NetStreamFfmpeg.{cpp,h}: document units for time - members; (advance): fix isTimeLoaded() call, thanks Martin Guy - for noticing. - -2007-05-30 Sandro Santilli - - * libbase/FLVParser.{cpp,h}: drop setLoadThread method, require - a LoadThread to be passed on construction. - * server/asobj/NetConnection.{cpp,h}: drop connectParser, substitute - with getConnectedParser(). - * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp: use - NetConnection::getConnectedParser() for initializing an FLV parser. - -2007-05-30 Sandro Santilli - - * server/asobj/NetConnection.h: add documentation about which calls - are blocking and which not. - * server/asobj/NetConnection.cpp (openConnection): return false if - already connected - -2007-05-29 Martin Guy - - * server/asobj/NetStreamFfmpeg.cpp: Two casts to quiet compiler warnings - * configure.ac: Add rpm/deb help for AGG - * configure.ac: Warn if libcurl is missing - -2007-05-30 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.cpp (decodeFLVFrame): Don't modify m_bufferTime - internally: should only be done on user request. (advance): - bufferFull condition is when parser loaded current+buffer time. - (av_streamer): add bufferTime/Length info in Decoding iteration - message - this shows that the playback is NOT waiting for bufferTime - to be reached before starting again (bug). - -2007-05-30 Sandro Santilli - - * libbase/FLVParser.{h,cpp}: document which methods lock and which - not, add locking in getBufferLength(). - * server/asobj/NetStream.{h,cpp}: fix documentation for bufferLength - method (return milliseconds, not seconds); have - NetStream.bufferLength return in fractional seconds, as expected; - Change bufferTime to take milliseconds, convert from seconds - in the AS method (so we can accept fractional seconds..); - make locking debugging messages a compile-time option. - -2007-05-30 Tomas Groth Christensen - - * libbase/LoadThread.cpp: Close the download thread even if - download wasen't completed. - -2007-05-29 Tomas Groth Christensen - - * libbase/LoadThread.cpp: Don't lock the mutex and try to join the - download thread when calling complete(), instead do that in the - destrutor. Fixes some blocking (with the no-decode-thread-patch - for NetStreamFfmpeg). - -2007-05-29 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.{cpp,h}: don't lock - the mutex in seek() even, also intended to be called by - the VM.. - -2007-05-29 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.{cpp,h}: Don't lock the mutex - in pause(), play() and close(), all intended to be called - by the locking advance(). More dox about locking in the header. - * testsuite/actionscript.all/rtmp.as: remove any - trace of "rtmp" from the code to show that bug #19886 - is unrelated to RTMP. - -2007-05-29 Sandro Santilli - - * backend/sound_handler.h: add numSoundsStarted() and - numSoundsStopped() methods to be used in testing, and - associated protected counts. - * backend/: sound_handler_gst.cpp, sound_handler_sdl.cpp: - Increment started/stopped sound counters. - * testsuite/FuzzyPixel.h: remove unused header. - * testsuite/: Makefile.am, sound_handler_test.{cpp,h}: - drop sound_handler_test, testing will now be done against - the built sound_handler. - * testsuite/MovieTester.{cpp,h}: initialize the currently - configured sound handler and use that for testing. - -2007-05-29 Sandro Santilli - - * server/asobj/NetStreamFfmpeg.{cpp,h}: drop - the decode_wait_mutex, use decoding_mutex instead. - Document which function lock it and which not, adding - more locking. Seems to fix bug #19978, but exposes - a deadlock playing youtube with a full-offline setup - with reduced bandwidth. - -2007-05-29 Udo Giacomozzi - - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: testing for gray - is funny, but better let's be accurate ;) - -2007-05-29 Sandro Santilli - - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: reintruduce - the pixel-accurate test after Udo fix for #19828. - -2007-05-29 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Fix coordinate translation and - pixel hinting. Fixes bug #19828. - -2007-05-29 Zou Lunkai - - * testsuite/misc-ming.all: Makefile.am, key_event_test3.c, - key_event_test3runner.cpp: new testcase for key listeners. - - -2007-05-29 Zou Lunkai - - * testsuite/misc-ming.all/key_event_test2runner.cpp: remove obsolete comments - -2007-05-29 Zou Lunkai - - * testsuite/misc-ming.all/key_event_test2.c, - key_event_test2runner.cpp: add more tests. - * server/movie_root.cpp: add comments for ::cleanup_key_listeners(). - -2007-05-29 Martin Guy - - * server/asobj/NetStreamFfmpeg.cpp: Fix sign/unsign compiler warning - * packaging/debian/control: Add missing build dependency for opengl-gtk - -2007-05-28 Tomas Groth Christensen - - * server/asobj/NetStream*.{cpp,h}: Updated a comment and made play() - return void to be closer to defined behavoir. - -2007-05-28 Sandro Santilli - - * server/asobj/: NetStream.{cpp,h}, - NetStreamFfmpeg.cpp, NetStreamGst.cpp: - Encode FLVParser ownership by using an auto_ptr; - cleanup startPlayback method in FFMPEG implementation - removing the "this" alias. - -2007-05-28 Sandro Santilli - - * server/asobj/NetStream.h: drop playing() method (unclear - and unnecessary). - * server/video_stream_instance.cpp (display): stop - calling NetStream::playing(). - -2007-05-28 Ann Barcomb - - * many files: Add a paragraph break before the line 'You should - have received...' in the copyright notice. - * devtools/testsuite/copyright_notices.t: Minor code improvement - * many files: Add current year to all copyright notices which were - lacking it. - -2007-05-28 Sandro Santilli - - * server/video_stream_instance.{cpp,h}: add brief class description, - drop unused member. - * testsuite/misc-ming.all/matrix_test.c: Really round numbers, don't - just truncate them up to 2nd decimal position. - -2007-05-28 Zou Lunkai - - * testsuite/misc-ming.all: Makefile.am, key_event_test2.c, - key_event_test2runner.cpp: add tests for key listeners. - * server/sprite_instance.cpp: call "unload" for characters removed - in ::resetDisplayList, partly fix the increasing key listeners - problem when loop back. - -2007-05-28 Sandro Santilli - - * testsuite/misc-ming.all/matrix_test.c: round numbers - to 1/100 to reduce floating number based errors. - -2007-05-27 Ann Barcomb - - * devtools/testsuite/copyright_notices.t: Added a script to look - for incorrect copyright notices. - -2007-05-27 Rob Savoye - - * macros/archflag.m4: Drop --with-gcc-arch, and use --with-cpu, - which is more standard. - * configure.ac: Add a --with-top-level option to specify where - development packages are when cross configuring. Add --with-cpu to - set the compiler flags correctly when cross compiling for similar - architectures, like pentium->geode, which are supported by the - same compiler. - -2007-05-27 Bastiaan Jacques - - * libbase/{FLVParser.h, LoadThread.h, embedVideoDecoderFfmpeg.h, - extension.h, tu_timer.h} server/{debugger.h, movie_root.h}, - server/sprite_instance.h, server/vm/VM.h: Mark symbols which are - used across DSOs as DSOEXPORT. This allows compilation with - -fvisibility=hidden. - * macros/kde.m4: When detecting QT, also allow for the check for - the possibility that the QTDIR environment variable points to - the base QT directory, no strings attached (and no version - numbers required). - -2007-05-27 Ann Barcomb - - * doc/C/usermanual/installation/documentation_dependencies.xml: - Corrected information about FOP requirement. - * doc/C/usermanual/installation/install.xml: Placeholder file. - * doc/C/usermanual/installation.xml, - doc/C/usermanual/installation/building.xml: Started a section on - building Gnash. - -2007-05-26 Tomas Groth Christensen - - * server/asobj/NetStreamGst.cpp: Don't allow play url to be changed, - might not be correct behavoir... Fix some issues when closing - NetStream before playback has been set up. - -2007-05-26 Ann Barcomb - - * doc/C/gnashrc.xml: Corrected spelling - * doc/C/usermanual/usage/gnashrc.xml: Propogated changes from - ../../gnashrc.xml r1.3357 to the new gnashrc file. - * doc/C/usermanual/installation/cross_compiling.xml: Made the - cross compilation information more generic. - -2007-05-26 Jurka - - * gui/gnash.cpp, libbase/FLVParser.cpp: Clear up printf-related - warnings. - -2007-05-26 Tomas Groth Christensen - - * libbase/FLVParser.cpp: When seeking the frame after the correct - one was returned. - * server/asobj/NetConnection.cpp: Don't allow url prefix to be changed, - might not be correct behavoir... - * server/asobj/NetStreamFfmpeg.cpp: Don't allow play url to be changed, - might not be correct behavoir... Fix some issues when closing - NetStream before playback has been set up. - -2007-05-26 Bastiaan Jacques - - * plugin/plugin.cpp: Initialise _width and _height to safe defaults, - in case SetWindow is never called (for "hidden" flash movies). - * gui/gnash.cpp: If the plugin attempts to create a 0x0 pixels window - don't try to create a rendering GUI. - * macros/kde.m4: Check if we actually need the kde subdirectory of the - KDE prefix we got from kde-config. - -2007-05-26 Ann Barcomb - - * doc/C/usermanual/installation/cross_compiling.xml, - doc/C/usermanual/installation.xml: Added section on cross compiling - * doc/C/usermanual/installation/configuration.xml: Resolved a TODO - * doc/C/usermanual/installation/code_dependencies.xml: Marked a TODO - * doc/C/usermanual/installation/sources.xml: RAM requirements - * doc/C/usermanual/installation/sources.xml: Disk space requirements - * doc/C/usermanual/installation/configuration/feature_configuration.xml, - custompath_configuration.xml: Formatting - * doc/C/usermanual/installation/configuration/sources.xml: - Include development snapshots as a download option - -2007-05-25 Sandro Santilli - - * extensions/gnashrc: new file, with required variables - for running extensions tests. - * extensions/fileio/Makefile.am: Provide a GNASHRC variable - to the generic-testrunner.sh - * libbase/rc.cpp (loadFiles): load a GNASHRC if specified, after - all precedent files are loaded. See task #6937. - -2007-05-25 Sandro Santilli - - * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test EnableExtensions. - * doc/C/gnashrc.xml: document new EnableExtensions gnashrc - variable - * libbase/rc.{cpp,h}: add support for EnableExtensions variable, - defaults to OFF. Cleanup const-correctness and static methods. - * server/asobj/Global.cpp: Don't load extensions if disabled - by gnashrc. - -2007-05-25 Sandro Santilli - - * libgeometry/snappingrange.h: add intersects(Range2d) - * testsuite/misc-ming.all/: Makefile.am, - loop_test2.c, loop_test2runner.cpp: Add a visual test - runner, showing that 2nd redesign attempt is really - bogus. - -2007-05-25 Sandro Santilli - - * server/as_environment.cpp: don't print a separate error - when call stack limit is exceeded, leave that to the - exception handler. - * server/vm/ActionExec.cpp: implement number of iterations - limit (should be a timeout in second actually, but better - this then hanging forever). Fixes bug #19961. - -2007-05-25 Bastiaan Jacques - - * server/swf/tag_loaders.cpp: Move the assignment into the data - pointer up to right after the corresponding memory is allocated, - because the DO_{MONO,STEREO}_BLOCK macros use the temporary - pointer to iterate the buffer. This was causing delete[] to be - called on the pointer which had walked to the end of the buffer - and, thus, crashing. - -2007-05-25 Sandro Santilli - - * server/sprite_instance.{cpp,h}: drop unused remove_display_item - taking a std::string as argument.. - -2007-05-25 Tomas Groth Christensen - - * server/asobj/NetStreamFfmpeg.h: Fix resampling for some FLVs, - fixes bug #19959. - -2007-05-25 Sandro Santilli - - * libbase/log.cpp (timestamp): include PID in timestamp, - so its easier to read the gnash-dbg.log file after browsing - the web... - -2007-05-24 Sandro Santilli - - * libbase/zlib_adapter.cpp: fix seek function to respect - tu_file interface. Fix inflater to no set an error condition - when inflate() just needs more calls to complete the request. - Fixes bug #19931. - -2007-05-24 Tomas Groth Christensen - - * libbase/LoadThread.{cpp,h}: Made the download loop sleep when - read() wants to get a lock on the mutex. - * libbase/curl_adapter.cpp: Decreased the sleeping time in fill_cache. - * backend/{sound_handler.h,sound_handler_gst.h,sound_handler_sdl.h}: - Moved sound_data class to the base header. - -2007-05-24 Sandro Santilli - - * server/stream.cpp (open_tag): print end tag position in verbose - parse mode; (close_tag): assertion checking (shows a bug in - zlib_adapter, see bug #19931). - * libbase/tu_file.cpp (std_seek_func): assertion checking and minor - cleanups. - * libbase/curl_adapter.cpp (CurlStreamFile::seek): use the _cached - member for checking wheter a seek will succeed or not (fseek - allows you to seek past the end of the file otherwise). - -2007-05-24 Bastiaan Jacques - - * gui/Makefile.am: When building FLTK GUI, also include - the X11 CFLAGS (when available). - * gui/fltk.cpp: Only try to do X11 things with FLTK if - X11 is actually available. Should fix compilation on - OS X (bug #19618). - * macros/x11.m4: Don't forget to set the x11 flag - variable which is used to check if X11 was found. - -2007-05-24 Sandro Santilli - - * server/: Makefile.am, impl.cpp, swf/DoActionTag.h, - swf/tag_loaders.cpp: - Move DoAction and DoInitAction tag stuff to its - own file (both loader and parser). - -2007-05-24 Sandro Santilli - - * server/sprite_instance.cpp (replace_display_object): - When the object being replaced is NOT a scriptable object, - move instead of replacing. - * testsuite/misc-ming.all/: replace_buttons1test.c, - replace_buttons1test_runner.cpp, replace_sprites1test.c, - replace_sprites1test_runner.cpp: Expect less failures. - -2007-05-24 Sandro Santilli - - * server/: dlist.{cpp,h}, sprite_instance.{cpp,h}, - server/swf/PlaceObject2Tag.cpp, server/vm/action.cpp: - Drop the use_matrix/use_color_xform parameters, use - pointers for the actual matrix/color_xform so that NULL - signifies "don't use". - -2007-05-24 Sandro Santilli - - * testsuite/misc-ming.all/replace_sprites1test.c: - Add onClipEvent(unload) to both PLACE and REPLACE tag. - -2007-05-24 Sandro Santilli - - * backend/sound_handler_gst.cpp: warn only once about fluendo plugin - being too old. - * server/parser/shape_character_def.cpp (read): - Fix typo reporting false malformations in the SWF. - -2007-05-24 Sandro Santilli - - * server/character.h: add isActionScriptReferenciable() - method to find "scriptable objects". See: - http://www.gnashdev.org/wiki/index.php/ScriptableCharacters - * server/sprite_instance.cpp (get_member, get_relative_target): - When requested name matches a NON scriptable instance, return - self. - * server/video_stream_instance.h: implement wantsInstanceName() - [ used by isActionScriptReferenciable ] - * testsuite/misc-ming.all/replace_shapes1test.c: expect less failures. - * testsuite/misc-ming.all/shape_test.c: don't expect any more failure - -2007-05-24 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - replace_buttons1test.c, replace_buttons1test_runner.cpp: - New test for buttons replacement. - * testsuite/misc-ming.all/replace_sprites1test.c: - Add new test checking for _x. - -2007-05-24 Sandro Santilli - - * server/dlist.cpp (replace_character): always call ::construct - on the new character. - * backend/sound_handler_sdl.h: fix const-correctness - of active_sound (btw, do we really need two different - definitions of that class for SDL and GST ?). - -2007-05-24 Sandro Santilli - - * server/button_character_instance.cpp: protect vector - elements dereferencing by assertions. I have a segfault - triggered by a new uncommitted testcase replacing buttons... - -2007-05-24 Sandro Santilli - - * server/sprite_instance.{cpp,h}: remove unused - sprite_instance::mouse_state typedef and member. - * server/parser/BitmapMovieDefinition.h, - server/parser/movie_def_impl.h, - server/parser/movie_definition.h, - server/parser/sprite_definition.h, - testsuite/DummyMovieDefinition.h: - Const-corrected get_playlist. - -2007-05-24 Sandro Santilli - - * testsuite/misc-ming.all/replace_shapes1test.c: - Add more tests, updated comments. - * testsuite/actionscript.all/MovieClip.as: - Add test for _root.getDepth() being static-0. - -2007-05-24 Sandro Santilli - - * backend/sound_handler.h, backend/sound_handler_gst.cpp, - backend/sound_handler_gst.h, backend/sound_handler_sdl.cpp, - backend/sound_handler_sdl.h, server/execute_tag.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/parser/sound_definition.cpp, - server/parser/sound_definition.h, - server/swf/DisplayListTag.h, server/swf/PlaceObject2Tag.cpp, - server/swf/PlaceObject2Tag.h, server/swf/RemoveObjectTag.cpp, - server/swf/RemoveObjectTag.h, server/swf/tag_loaders.cpp, - testsuite/sound_handler_test.cpp, testsuite/sound_handler_test.h: - Const-corrected execute_tag::execute and execute_state, and - cascading changes - * testsuite/misc-ming.all/loop_test7.c: fix wrong expected failures. - -2007-05-24 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - loop_test6.c, loop_test7.c: - Add a clone of "Jumping backward to the end of a character's - lifetime" test this time with onUnload defined. - -2007-05-24 Sandro Santilli - - * testsuite/misc-ming.all/: replace_shapes1test.c, - replace_sprites1test.c: SWFMovie_replace returns 0 on success - and non-0 on failure. Fixed code to reflect that (I'm not sure - I like this interface, anyway this is what we have in current - Ming head). - -2007-05-23 Sandro Santilli - - * server/swf/: tag_loaders.cpp, DefineFontAlignZonesTag.{cpp,h}, - DisplayListTag.h, PlaceObject2Tag.{cpp,h}, - RemoveObjectTag.{cpp,h}: - Move one namespace up (gnash::SWF - strip tag_loaders); - Provide a static public loader() function for use by - register_tag_loader (moved implementation from tag_loaders.cpp - to the classes themselves). - * server/impl.cpp: update loaders registration to call the new - public static methods of ReplaceObjectTag and PlaceObject2Tag. - -2007-05-23 Sandro Santilli - - * server/execute_tag.h: drop is_remove_tag() method. - * server/sprite_instance.{cpp,h}: drop unused - execute_remove_tags() method. - * server/Makefile.am, server/swf/: DisplayListTag.h, - PlaceObject2Tag.h, RemoveObjectTag.{cpp,h} - tag_loaders.cpp: Add a DisplayListTag subclass of - execute_tag, and make RemoveObject and PlaceObject subclasses - of it. - -2007-05-23 Ann Barcomb - - * doc/C/usermanual/installation/feature_configuration.xml, - doc/C/usermanual/installation/configuration.xml: Incorporated - some changes from r1.38 of doc/C/sources.xml. - -2007-05-23 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, loop_test6.c: - New test for "Jumping backward after a character's lifetime". - Reveals a conceptual bug in last step of all redesign attempts - for displaylist reconstruction (execute *all* frame tags - from start to target frame). - -2007-05-23 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, replace_shapes1test.c, - replace_sprites1test.c, replace_shapes1test_runner.cpp, - replace_sprites1test_runner.cpp: Modified coordinates and size - of shapes to help writing test runners. Wrote real test - runners checking for rendering and bounds invalidation. - * testsuite/MovieTester.cpp (render): don't force redraw - always (don't cheat) - do only when asked to do so.. - -2007-05-23 Sandro Santilli - - * server/character.h: Extended TimelineInfo to store information - about wheter a character was placed by a REPLACE tag. - * server/sprite_instance.cpp: implemented 3rd redesign attempt - for DisplayList reconstruction compile-time enableable by - setting NEW_TIMELINE_DESIGN to 3. Defined to 2 by defualt - which gives us 2nd redesign attempt. See wiki. - 3rd redesign is promising and give us lots of unexpected - successes, but also some unexpected failures for the new - testcases for REPLACE tag. - -2007-05-23 Sandro Santilli - - * server/dlist.{cpp,h}: Add new reset() method taking - enough parameters (I hope) to remove what needs to - on jump-back; drop obsoleted clear_unaffected function. - * testsuite/misc-ming.all/: replace_shapes1test.c, - replace_sprites1test.c: Fix implementation (don't - use Ming internal methods); add new tests and comments - about why Gnash fails. - -2007-05-23 Bastiaan Jacques - - * cygnal/cygnal.cpp: Don't include directly; instead, - rely on our own gettext.h to do the right thing. - * gui/fltk.cpp: Update the FLTK GUI to the new Gnash key handling - API. Make sure the window is listening for key events even if it - is not the first window to receive key notifications. - * macros/gnashpkgtool.m4: Don't forget to set the "found" flag - for CFLAGS when --with-pkg-incl is used to find the include path. - * libbase/FLVParser.cpp: Fix more memory bugs by adding padding - zero bytes. Should fix bug #19898. - -2007-05-23 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Made it a bit more thread-safe by - locking when attaching/detaching a aux_streamer. - Fixed a crash when removing attached sounds from the aux_streamer list. - * libbase/FLVParser.{h,cpp}: Added audioFrameDelay(), and a fixes. - * libbase/curl_adapter.cpp: Changed min and max sleep. - * server/asobj/NetStreamFfmpeg.{h,cpp}: Cleanup! Splitted the big - decode function (read_frame) into 3 functions. Changed a few names - to make more sence. Improved syncing, and made it depend on audio - if available, not video. Plus some overall improvements. - -2007-05-23 Zou Lunkai - - * testsuite/misc-ming.all/shape_test.c: add tests for shapes. - * testsuite/misc-ming.all/Makefile.am: activate some testcases. - -2007-05-22 Martin Guy - - * configure.ac: add help text for ffmpeg-devel RPM package - * server/swf/tag_loaders.cpp: Fix NELLYMOSER bombing out - -2007-05-22 Sandro Santilli - - * server/swf/tag_loaders.cpp (place_object_2_loader): don't - add a TimelineDepth if read depth is out of static depth zone - boundaries (warn user about it too...). - * gui/Player.cpp (run): use movie url for window title (-u). - Useful when reading stdin... - * server/parser/shape_character_def.cpp (read): don't force - fill and line style of glyphs to have a corresponding style - definition, just warn if the value in a styleChangeRecord is - neither 0 or 1. Set style to 0 when invalid. - -2007-05-22 Sandro Santilli - - * testsuite/misc-ming.all/loop_test-Runner.cpp: don't expect - failure in invalidated bounds after Udo commits. - * testsuite/misc-ming.all/replace_sprites1test.c: Change expected - Gnash behaviour (previous one was based on 3rd displaylist reset - design implementation). - -2007-05-22 Sandro Santilli - - * configure.ac: add MING_SUPPORTS_REPLACE_TAG conditinal variable, - based on version (0.4.0.beta5). - * testsuite/misc-ming.all/: Makefile.am, replace_shapes1test.c, - replace_sprites1test.c: Add a couple of test for REPLACE tags. - Needs a Ming version that supports it, checked by - MING_SUPPORTS_REPLACE as set by ./configure. - -2007-05-22 Ann Barcomb - - * doc/C/usermanual/installation/configuration.xml: List interesting - options before custom path options - * doc/C/usermanual/installation/feature_configuration.xml: Added - missing title (it had been left in configuration.xml). - -2007-05-22 Udo Giacomozzi - - * server/character.{h,cpp}: Added preprocessor code to analyze - calls to set_invalidated() more easily. - * server/cxform.h: Implemented == operator - * server/dlist.cpp: inherit invalidated bounds when replacing a - character - * server/sprite_instance.cpp: avoid call to set_invalidated() - (of parent) when replacing a char - -2007-05-22 Ann Barcomb - - * doc/C/usermanual/*: Added files for the new user manual. - * doc/C/app_authors.xml: Added a file which is used in the user manual - but might be cross-referenced by other documents. - -2007-05-22 Udo Giacomozzi - - * testsuite/misc-ming.all/NetStream-SquareTest.c: add missing end quote - * testsuite/actionscript.all/XML.as: fix broken string - -2007-05-21 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test11.c: - New timeline control test. - * server/parser/Timeline.h: fix getFrameDepths to really return - depths. Add output operator. - -2007-05-21 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Only try to detach video-sound - input, if it exists. - * server/asobj/NetStreamFfmpeg.cpp: Shutdown the decoding thread - proberbly. - -2007-05-21 Rob Savoye - - * libbase/Makefile.am: Build the installable libltdl before - libgnashbase. - -2007-05-21 Sandro Santilli - - * testsuite/misc-ming.all/displaylist_depths_test9.c: add - a construct event handler for the static character placed - and replaced (duplicated), and tests for its run. - -2007-05-21 Rob Savoye - - * libbase/Makefile.am: Don't include LIBLTDL in libgnashbase.la. - -2007-05-21 Sandro Santilli - - * server/parser/: movie_definition.h, movie_def_impl.h, - sprite_definition.h: add getTimelineDepths() methods - and implementations. - -2007-05-21 Sandro Santilli - - * server/parser/: Makefile.am, Timeline.h: new class for - timeline control. - * server/parser/: movie_definition.h, movie_def_impl.{cpp,h}, - sprite_definition.{cpp,h}: new addTimelineDepth() and - removeTimelineDepth() interfaces in base class, implementation - in subclasses. - * server/swf/tag_loaders.cpp (remove_object2_tag): add getDepth() - method; call movie_definition::addTimelineDepth when a PlaceObject - tag is parsed and movie_definition::removeTimelineDepth when - a RemoveObject is parsed. - * server/swf/PlaceObject2Tag.h: add getDepth() method, more dox - and 3 new inspectors to know wheter it's a place, replace or move - tag. - -2007-05-21 Sandro Santilli - - * libbase/log.h: removed useless 'while (0) {};' snippet from - IF_VERBOSE_ASCODING_ERRORS and IF_VERBOSE_MALFORMED_SWF - -2007-05-21 Zou Lunkai - - * testsuite/misc-ming.all/loop_test5.c: - more for "Timeline control". - -2007-05-21 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: build libgnashmingutils - as a convenience library; have Dejagnu.swf users depend on - the local copy, not the one moved one dir up. - * libbase/log.{cpp,h}: make LogFile output operators - private, provide a sipler thread-safe log() method. - Have all printf-like log_*() method use this new method. - Fixes bug bug #19906. - * cygnal/stream.cpp, server/parser/action_buffer.cpp, - server/parser/action_buffer.h, server/vm/ActionExec.cpp, - testsuite/server/PropertyListTest.cpp: remove any - use of LogFile::operator<<, substitute with log_*() calls. - -2007-05-21 Zou Lunkai - - * testsuite/misc-ming.all/loop_test4.c: - add a another check, comments - -2007-05-21 Zou Lunkai - - * testsuite/misc-ming.all/loop_test4.c: - new testcase for timeline control. - -2007-05-21 Zou Lunkai - - * testsuite/misc-ming.all/place_object_test2.c: - testcase for placeObject2. - -2007-05-20 Rob Savoye - - * libbase/log.h: Add empty braces around a while(0) to shut up GCC - 4.3. - -2007-05-20 Zou Lunkai - - * testsuite/misc-ming.all/displaylist_depths_test9.c: - more tests, all passed. - -2007-05-19 Markus Gothe - - * server/asobj/NetStream.cpp: Got rid of make_pair in favor of - std::pair<>(); - * server/cxform.h: include - -2007-05-19 Tomas Groth Christensen - - * libbase/tu_timer.cpp: Fixed a compiler warning. - * server/asobj/NetStreamFfmpeg.{h,cpp}: Changed the way the decoding - loops works. We now use condition variables to pause the decoding - loop. We now disconnect from the soundhandler when pausing. - -2007-05-18 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, loop_test2.c, loop_test3.c: - New Timeline control test. GNASH FAILS THESE ONES !! - -2007-05-18 Sandro Santilli - - * server/dlist.h: document the addAll() and add() methods. - * server/asobj/NetStreamGst.cpp: provide a buildFLVPipeline() calling - the video/audio versions internally and locking the pipelineMutex. - Lock the pipelineMutex from buildPipeline() too. Document locking - in header. - * testsuite/misc-ming.all/: loop_test-Runner.cpp, loop_test.c: - Make loop_test.swf self-contained. Use the runner for checking - invalidated bounds and rendering. - -2007-05-18 Rob Savoye - - * backend/sound_handler.cpp: Include cstring so memcpy is - defined. - * libbase/Makefile.am: Add makefile rules from libltd. - -2007-05-18 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test10.c: - Add test for "Skipping frames backward". - * Makefile.am, configure.ac: detect 'swfmill' - * testsuite/misc-swfmill.all/: .cvsignore, Makefile.am: - new testsuite dir for swfmill - * testsuite/misc-swfmill.all/hello.xml: small example on - how to produce an swf. Build with 'make hello.swf'. - -2007-05-18 Zou Lunkai - - * testsuite/misc-ming.all/getTimer_test.c, - server/vm/VM.{h,cpp}, server/vm/ASHandlers.cpp, - gui/fb.cpp: cleanup "ActionGetTimer" related stuff. - * server/movie_root.h - remove unused get_timer, set_timer. - -2007-05-17 Martin Guy - - * configure.ac: Change package help message format - and fix typo MYSQC_CFLAGS - * backend/sound_handler.h: Remove old adpcm_expand() decl - * macros/x11.m4: Two typoes "if x${a} != xfoo" - * utilities/parser.cpp: Shut compiler up - * backend/sound_handler_gst.cpp, testsuite/sound_handler_test.cpp: - Remove never-implemented stub declaration. - * server/swf/tag_loaders.cpp: Rewrite of sample-reading code to decode - all linear formats in one place. - * backend/sound_handler_{sdl,gst}.cpp: Remove now unnecessary attempts - at decoding other linear audio formats. - * backend/sound_handler_gst.cpp, testsuite/sound_handler_test.cpp: - Replace never-implemented stub declarations, symptom of a deeper ill. - * backend/sound_handler.h, - backend/sound_handler_gst.cpp, - backend/sound_handler_gst.h, - backend/sound_handler_sdl.cpp, - backend/sound_handler_sdl.h, - testsuite/sound_handler_test.cpp, - testsuite/sound_handler_test.h, - server/asobj/SoundMad.cpp: - Add two params to convert_raw_data so that it is SDL-independent - * backend/sound_handler.h, - backend/sound_handler.cpp, - backend/sound_handler_gst.cpp, - backend/sound_handler_gst.h, - backend/sound_handler_sdl.cpp, - backend/sound_handler_sdl.h, - testsuite/sound_handler_test.cpp, - testsuite/sound_handler_test.h: - convert_raw_samples is now just a static fn of sound_handler:: - * backend/sound_handler.cpp: Speed convert_raw_data and handle stereo - upsampling correctly - * backend/sound_handler_sdl.cpp: Remove bug 19750 that garbled - SOUNDSTREAM audio. - * server/swf/tag_loaders.cpp: Bug fix: calculate # samples correctly. - * macros/ffmpeg.m4,configure.ac: Workaround /usr/include/ffmpeg reported - by pkg-config; move libavformat absence test to final report. - -2007-05-17 Rob Savoye - - * libbase/Makefile.am: Build libltdl optionally by duplicating the - way libltdl/Makefile used to buuld this library. - -2007-05-17 Sandro Santilli - - * macros/: boost.m4, x11.m4: avoid explicit -L/usr/lib. - -2007-05-17 Rob Savoye - - * libbase/Makefile.am: Add ltdl.h to noinst_HEADERS. - * po/Makefile.am: Use DESTDIR when installing. - * testsuite/server/Makefile.am: Link in FFMPEG is configured to do so. - * libbase/Makefile.am: Add path for ltdl.h. - -2007-05-17 Markus Gothe - - * configure.ac: Check if LD supports --as-needed. - * server/asobj/Date.cpp: Clean up and fixed uneeded ftime() use. - -2007-05-17 Sandro Santilli - - * server/asobj/NetStreamGst.cpp (unrefElements): don't attempt - to unref NULL objects, set objects to NULL after unreffing. Add - TODO item. - * testsuite/misc-ming.all/NetStream-SquareTest.c: - Add self-contained tests. - * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: - Adjust to simply run the self-contained tests. - -2007-05-17 Zou Lunkai - - * testsuite/misc-ming.all/getTimer_test.c: - make the time dependent tests be more tolerant - -2007-05-17 Zou Lunkai - - * testsuite/misc-ming.all: getTimer_test.c, Makefile.am - add a new testcase; activate action_execution_order_test9.c - * server/vm/VM.{h,cpp}: add a getStartTime() for VM. - * server/vm/ASHandlers.cpp: use new "getStartTime()" interface, - fix ActionGetTimer; - * libbase/tu_timer.{h,cpp}: change time unit for non-win32 version - "get_ticks()"; - -2007-05-16 Rob Savoye - - * macros/boost.m4: Look for shared libs with version numbers after - the suffix, for OpenBSD. - -2007-05-16 Tomas Groth Christensen - - * server/asobj/NetStream.{h,cpp}, - server/asobj/NetStream{Gst,Ffmpeg}.{h,cpp}: Updated documentation. - * libbase/FLVParser.{h,cpp}, server/asobj/NetStream.{h,cpp}: - Implemented bufferLength. - -2007-05-16 Sandro Santilli - - * libbase/FLVParser.h: class documentation. - -2007-05-16 Tomas Groth Christensen - - * server/asobj/NetStreamGst.{h,cpp}: Splitted buildFLVPipeline - into buildFLVVideoPipeline and buildFLVSoundPipeline. - -2007-05-16 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - NetStream-SquareTestRunner.cpp, Video-EmbedSquareTestRunner.cpp: - Stub video test runners. - -2007-05-16 Tomas Groth Christensen - - * server/asobj/NetStreamGst.{cpp,h}: Split startPlayback() into - smaller function (buildFLVPipeline and buildPipeline). Made sure - gstreamer elements are cleaned up if setup fails. - -2007-05-16 Rob Savoye - - * configure.ac: Eval lists so the embedded variables get - expanded on all systems. Turn on --as-needed for all - builds. Define LIBLTDL variables and DLOPEN again. - * backend/Makefile.am: Don't use no-undefined -export-dynamic for - a library. - * libbase/Makefile.am: Build standalone libltdl now so we can work - with an installed one too, which appears to be necessary on 64 bit - systems. - * macros/boost.m4: Rewrite to support Boost 3.4, which of course - changed the library names. Get all libraries with of the right - type, and sort through the variants to choose the correct one, - preferably ending in *-mt.so. - * macros/kde.m4: Define newlist, so we don't stomp the value of - libslist, which produces bizarre side effects when cross - compiling. - * macros/libltdl.m4: Our build of libltdl.la lives in libbase - instead of libltdl. NOTE: This will unfortunately have to be done - again if this file is updated in the future from the version - included on libtool. - * gui/Makefile.am: -framework Carbon should be defined in - $OPENGL_LIBS. - -2007-05-16 Sandro Santilli - - * server/asobj/NetStreamGst.{cpp,h}: define and use - mutex-protected pipeline control methods. - -2007-05-16 Sandro Santilli - - * server/asobj/NetStreamGst.cpp: always check return code - from gst_element_factory_make. Handling in case of failure - is not verified to be correct. Tgc, could you check it out ? - * gui/Makefile.am: don't put LDFLAGS in LIBADD, remove - spurious character likely slipped in due to Markus - fighting with his new keyboard ;) - -2007-05-15 Markus Gothe - - * po/se.po: Initial start of Swedish translation. - * gui/aqua*: Stubs for getting a native OS X UI. - -2007-05-15 Sandro Santilli - - * server/asobj/NetStreamGst.{h,cpp}: add a resetPipeline() private - method doing some checks on the return code (some situations are - still unhandled); use resetPipeline() when needed. - * server/asobj/NetStream.cpp: warn once about unimplemented stuff. - -2007-05-15 Rob Savoye - - * configure.ac: Use C++ compiler instead of C compiler so the - SIZET_FMT test works correctly with GCC 4.3.x. Move libltdl tests - to top level. Don't configure in the libltdl directory. - * gnash/Makefile.am: Don't list libltdl as a SUBDIR. - * gnash/autogen.sh: Only run libtoolize once. - * backend/sound_handler_sdl.cpp: Rearranage header order for - braindead platforms. - * libbase/Makefile.am: Built ltdl into libbase. Drop linking with - --no-undefined --export-dynamic. - * libgeometry/Makefile.am: Built ltdl into libbase. Drop linking - with --no-undefined --export-dynamic. - * macros/ffmpeg.m4: Don't add ffmpeg to include path. Fix test for - avformat.h to be more portable. - * po/Makefile.am: Install all the translations in a loop. - * server/URLAccessManager.cpp: Include iconv.h. Use lower case for - winsock2.h. - * server/asobj/NetStreamFfmpeg.cpp: Use lower case for winsock2.h. - * server/asobj/xmlsocket.cpp: Use lower case for winsock2.h. - * utilities/parser.cpp, processor.cpp: Include libintl.h and - locale.h for braindead platforms. - * macros/libltdl.m4: Add autoconf support from libltdl. - - -2007-05-15 Sandro Santilli - - * server/swf/tag_loaders.cpp (inflate_wrapper): fix infinite loop - on inflate errors. - * server/parser/morph2_character_def.cpp (read): don't abort - if number of edges in start and end shapes are not equal. - Just raise an SWF error. - * server/stream.{cpp,h} (skip_bytes): return a boolean value - for success/failure. - * server/swf/PlaceObject2Tag.cpp (readPlaceAction): check - return from stream::skip_bytes. - * libbase/jpeg.cpp: fix typo introduced in last commit. - * server/swf/PlaceObject2Tag.cpp (readPlaceActions): don't abort when - reserved flag != 0. - -2007-05-15 Tomas Groth Christensen - - * server/asobj/NetStream.{cpp.h}, server/asobj/NetStreamFfmpeg.{cpp,h}, - server/asobj/NetStreamGst.{cpp,h}: Moved shared code from - NetStreamFfmpeg and NetStreamGst to the NetStream base class. - -2007-05-15 Sandro Santilli - - * libbase/jpeg.{cpp,h}: cleanups and robustness (first pass). - -2007-05-15 Tomas Groth Christensen - - * backend/sound_handler_{sdl,gst}.cpp: Use the - IF_VERBOSE_MALFORMED_SWF macro. - * libbase/log.h: Added gnash:: to RcInitFile calls. - * server/swf/tag_loaders.cpp: Use stream::read() instead of loops. - -2007-05-15 Sandro Santilli - - * libbase/GnashException.h: add missing include. - -2007-05-15 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_test9.c: - improved comments. - -2007-05-15 Sandro Santilli - - * server/stream.{cpp,h} (set_position): document and change return - type to signal failures. - * server/font.cpp (readDefineFont, readDefineFont2_or_3): use - stream::set_position return code to detect SWF malformations. - -2007-05-15 Tomas Groth Christensen - - * backend/sound_handler_{gst,sdl}.cpp: Make soundhandlers more robust. - * server/swf/tag_loaders.cpp: Remember to pass the mp3 data and size. - -2007-05-15 Sandro Santilli - - * server/movie_instance.cpp (advance): safely handle movies - with 0 total frames (malformed SWF). - * gui/gui.cpp (advance_movie): handle no looping when the - total frame count is 0 (malformed SWF). - * server/dlist.cpp (swapDepth): fix an out-of-bound access. - -2007-05-15 Zou Lunkai - - * testsuite/misc-ming.all/duplicate_movie_clip_test2.c: - more tests. - * testsuite/misc-ming.all/action_execution_order_test9.c: - new testcase. - -2007-05-14 Sandro Santilli - - * server/parser/movie_def_impl.cpp (read_all_swf): handle premature - SWF::END tag. - * libbase/tu_file.{cpp,h}: changed set_position signature to return - an int (0 for success TU_FILE_SEEK_ERROR on error). - * server/stream.cpp (end_tag): check return from - tu_file::set_position(). - -2007-05-14 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, NetStream-Square.c, - NetStream-SquareTest.c, Video-EmbedSquare.c, - Video-EmbedSquareTest.c: Renamed video tests to conform - to the tests naming convention (end with "test"). Enabled - build of the SWF. Test runners still missing. - Get FLV path on command line. - -2007-05-14 Sandro Santilli - - * server/font.cpp: more robustness improvements. - * server/font.cpp (readDefineFont, readDefineFont2_or_3): pass - shape_character_def the real tag we're parsing. - * server/parser/shape_character_def.cpp (read): when parsing - DEFINEFONT tags provide a dummy solid white fill style to - act as a placeholder for consistency checking. - -2007-05-14 Sandro Santilli - - * server/fill_style.{cpp,h}: document default constructor and type. - * server/vm/ASHandlers.cpp (CommonGetUrl): check url security also - when invoking firefox. - * server/font.cpp (readDefineFont, readDefineFont2_or_3): use - symbolic names for tag type. - * server/parser/shape_character_def.cpp (read): temporarely - disabled the "don't set line and fill styles if not defined yet". - It seems to break a lot of movies. We should find out why though, - as I'd think styles must *first* be defined, and *after* referred. - -2007-05-14 Sandro Santilli - - * backend/render_handler_agg_style.h (is_solid): check argument - with an assertion before accessing the m_styles vector. - * server/parser/shape_character_def.cpp (read): don't set line and - fill styles to unavailable values. Drop a weird an likely bogus - modification of tag_type when a flagHasNewStyle is set and the - tag is DEFINESHAPE. - -2007-05-14 Sandro Santilli - - * utilities/Makefile.am: don't set LDFLAGS twice. - * server/parser/shape_character_def.{cpp,h}: add ShapeRecordFlags - enum to use symbolic names while parsing. Don't change tag type - when encountering the flagHasNewStyles set and the tag type - is DEFINESHAPE (for which supposedly that flag is reserved); - keep parsing instead and print a message about SWF malformacy. - * gui/Player.cpp (run): exit with a failure if input movie has - collapsed dimensions (malformed SWF most likely). - * server/asobj/xml.{cpp,h}: change extractNode interface to return a - bool, so it can implement a custom ignoreWhite thing (the libxml2 - XML_PARSE_NOBLANKS seems to be not working. Add getXMLOptions() - and getIgnoreWhite() utility methods (privates). Fixes bug #19865. - * testsuite/actionscript.all/XML.as: more tests for ignoreWhite. - -2007-05-14 Sandro Santilli - - * server/asobj/xmlnode.cpp (stringify): represent empty nodes with the - "" format. - * server/asobj/xml.{cpp,h}: parseDoc made private; add clear() - method for dropping childs and attibutes; clear() on parseXML() or - load() calls. - * testsuite/actionscript.all/XML.as: add a cleaner test for parseXML - not appending new definitions. Misses the same for load() - -2007-05-14 Sandro Santilli - - * utilities/Makefile.am: put GNASH_LIBS in LDADD and external - libs in LDFLAGS. Drop '-dlopen self'. Please review. - -2007-05-14 Rob Savoye - - * macros/mtasc.m4: Patch #9531, fix variable name for MTASC. - * libbase/noseek_fd_adapter.cpp: Include cstring to get C string - functions used for char * manipulation. - * libbase/URL.cpp: Include cstring to get C string functions used - for char * manipulation. - * libbase/embedVideoDecoderFfmpeg.cpp: Include cstring to get C - string functions used for char * manipulation. - * libbase/curl_adapter.cpp: Include cstring to get C string - functions used for char * manipulation. - - * server/gnash.h: Include memory for auto_ptr. - * libamf/amf.h: Include cstring for C string functions. - * libamf/amf.cpp: Use lower case for win32 headers, as that's what - Mingw32 uses. - -2007-05-14 Sandro Santilli - - * testsuite/misc-ming.all/displaylist_depths_test7.c: fix description - to match actual implementation. Don't expect a wrong behaviour. - -2007-05-14 Sandro Santilli - - * testsuite/misc-ming.all/: duplicate_movie_clip_test2.c, - displaylist_depths_test9.c: don't expect any failure. - * server/as_environment.cpp (find_target): strip leading colon chars - in path components (fixes ActionDuplicateClip bug). - * testsuite/misc-ming.all/Makefile.am: fixed bad typo (missing - backslash) which triggered NO warning from ./autogen.sh - but still resulted in bogus Makefile.in produced (sic!). - -2007-05-14 Tomas Groth Christensen - - * libbase/FLVParser.cpp: Fixed a out-of-bound error (bug #19866). - * testsuite/media/square.flv: Added. Used for testing. - * testsuite/misc-ming.all/NetStream-Square.c: Added. Created simple - SWF which plays square.flv using NetStream. - * testsuite/misc-ming.all/Video-EmbedSquare.c: Added. Created simple - SWF which plays an embedded video (ripped from square.flv). - -2007-05-14 Sandro Santilli - - * po/Makefile.am: create destination directories before trying to - install things there. - -2007-05-14 John Gilmore - - Internationalization, further cleanup: - - * po/Makefile.am: Pass proper flags to xgettext to handle _(...). - * po/LINGUAS: Remove, superseded by Makefile.am's "translations". - * backend/sound_handler_gst.cpp, cygnal/cygnal.cpp, cygnal/http.cpp, - cygnal/statistics.cpp, cygnal/stream.cpp, gui/gtk.cpp, - gui/gtk_glue_gtkglext.cpp, gui/kde.cpp, gui/stl_agg_glue.cpp, - libamf/amf.cpp, libamf/rtmp.cpp, libbase/rc.cpp, - libbase/sharedlib.cpp, server/movie_root.cpp, utilities/parser.cpp, - utilities/processor.cpp: Insert header - comment and fix up copyright spacing. - * backend/sound_handler_gst.cpp, cygnal/cygnal.cpp, cygnal/http.cpp, - cygnal/statistics.cpp, cygnal/stream.cpp, gui/Player.cpp, - gui/gtk.cpp, gui/gtk_glue_gtkglext.cpp, gui/stl_agg_glue.cpp, - libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, libbase/rc.cpp, - libbase/sharedlib.cpp, server/as_function.cpp, server/debugger.cpp, - server/movie_root.cpp, utilities/parser.cpp, utilities/processor.cpp: - Pass messages through _(...). - * backend/sound_handler_gst.cpp, backend/sound_handler_mp3.cpp, - cygnal/README, cygnal/cygnal.cpp, cygnal/http.cpp, - cygnal/statistics.cpp, cygnal/stream.cpp, gui/Player.cpp, - gui/gtk.cpp, gui/gtk_glue_gtkglext.cpp, gui/stl_agg_glue.cpp, - libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, - libbase/rc.cpp, libbase/sharedlib.cpp, server/as_function.cpp, - server/debugger.cpp, server/dlist.cpp, server/movie_root.cpp, - utilities/parser.cpp, utilities/processor.cpp: - Clean up messages (remove \n's and !s, change wording, use - log_XXX functions rather than dbglogfile <<, use proper log_XXX - function, fix typos, etc). - * backend/sound_handler_mp3.cpp: New 2007 Free Software Foundation - copyrights applied (to formerly public domain code) - * cygnal/cygnal.cpp, cygnal/http.cpp, cygnal/statistics.cpp, - cygnal/stream.cpp, gui/gtk_glue_gtkglext.cpp, gui/kde.cpp, - gui/stl_agg_glue.cpp, libbase/sharedlib.cpp: Update copyright - to 2007. - * cygnal/http.cpp (HTTP::sendGetReply), - cygnal/stream.cpp (sendfile_thread), - libamf/amf.cpp (AMF::encodeElement, AMF::extractElementLength, - AMF::parseBody, AMF::extractVariable), - server/debugger.cpp (Debugger::dumpStackFrame): Insert FIXME - about likely bug. - * gui/kde.cpp (qwidget::qwidget): Translate strings for the - pop-up menu items. - * libbase/network.cpp (Network::writeNet): Remove dead code. - * AUTHORS, gui/gtk.cpp (authors): Add myself to authors list. - -2007-05-14 Sandro Santilli - - * server/rect.{cpp,h} (read): check for min/max values swapped - reporting SWF malformation and setting the rect to NULL if - that happens. - * server/parser/movie_def_impl.cpp (readHeader): report SWF - malformation if movie bounds were malformed. - -2007-05-14 Zou Lunkai - - * testsuite/misc-ming.all/: displaylist_depths_test9.c, Makefile.am: - new scenario for Timeline Control, gnash passes. - But luckly, caught a bug in ActionDuplicateClip :) - * testsuite/misc-ming.all/action_execution_order_test8.c: indent - * testsuite/misc-ming.all/: duplicate_movie_clip_test2.c, Makefile.am: - new testcase for duplicateMovieClip. - -2007-05-13 Rob Savoye - - * po/Makefile.am: Add install-data-hook target so the .gmo files - get installed. Build and install German translation. - * po/de.po: German translation by benjamin.goose@lrz.uni-muenchen.de. - * doc/C/sources.xml: Fix unclosed tags. - * macros/ffmpeg.m4: Only print warning and reset - ac_cv_path_ffmpeg_incl if avformat.h doesn't exist. - -2007-05-13 Sandro Santilli - - * macros/boost.m4: typo fix (might need another go at testing) - * testsuite/actionscript.all/Number.as: skip conversion-to-number - tests if Ming doesnt' support ASM. - * testsuite/actionscript.all/XML.as: add tests exposing two bugs - with XML (parseXML appending newly parsed stuff and ignoreWhite - being unsupported). - -2007-05-12 Martin Guy - - * server/stream.{h.cpp}: Punch a block-read primitive through the - stream layer. - * server/parser/sound_definition.cpp: Move ADPCM code elsewhere - * server/swf/tag_loaders.cpp: Decode all linear formats into native 16, - move ADPCM code here where it's used. - -2007-05-12 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp: Make sure sounds are stopped - when done being played. Should fix bug #19628. - * libbase/FLVParser.{h,cpp}: Switched from referring to the last - frame we used, to the next frame we're going to use. - * libbase/curl_adapter.cpp: Fix use of usleep() on windows. - * macros/opengl.m4: Fixed detection on windows. - * macros/boost.m4: Re-commited Deannas boost patch with a small fix. - -2007-05-12 Sandro Santilli - - * server/character.h (isDynamic): the root movie, not having - been placed in a parent displaylist, has NO TimelineInfo - associated. Consider this in the assertion aimed at dropping - the _dynamicallyCreated flag. - * libbase/tu_file.cpp (std_tell_func): don't require not to - be at EOF on tell() call. See bug #19861. - -2007-05-12 Sandro Santilli - - * server/execute_tag.h, server/swf/PlaceObject2Tag.{cpp,h}, - server/swf/tag_loaders.cpp: Drop execute_tag::execute_state_reverse() - and execute_tag::get_depth_id_of_replace_or_add_tag) methods. - * server/sprite_instance.{cpp,h}: (advance_sprite, execute_frame_tags): - call resetDisplayList in advance_sprite rather then delegate to - execute_frame_tags, to avoid an invocation during - restoreDisplayList(). (restoreDisplayList): fix comment for - step1, remove commented out code. Drop the m_is_reverse_execution - flag and associated getter. Drop execute_frame_tags_reverse() method. - Drop find_previous_replace_or_add_tag method. (goto_frame) Move - UdoG comment where it belonge [old design block], add comment about - possible problem with clearing the action queue after displaylist - restoration. - * testsuite/misc-ming.all/loop_test-Runner.cpp: Don't set action - verbosity. - -2007-05-11 Sandro Santilli - - * server/dlist.{cpp,h}: Add another DisplayList mass-removal - function taking a vector of gnash::characters to remove. - * server/character.h: Add support for attaching TimelineInfo - records to (timeline) instances. - * server/sprite_instance.cpp: - (add_display_object, replace_display_object): - add TimelineInfo record to placed timeline instance. - (restoreDisplayList): implemented DisplayList reconstruction - algorithm as defined on the "Timeline control" wiki page. - (goto_frame): use restoreDisplayList when jumping-back, properly - set m_current_frame when jumping-forward, for proper TimelineInfo - construction. - * testsuite/misc-ming.all/: displaylist_depths_test4.c, - displaylist_depths_test5.c, displaylist_depths_test6.c, - displaylist_depths_test7.c, displaylist_depths_test8.c: - Most new Timeline-focused testcases pass now. - PLEASE HELP MAKING MORE !! - -2007-05-11 Rob Savoye - - * macros/curl.m4, sdl.m4: Drop extraneous results. - * macros/x11.m4: Remove --enable test, remove extraneous results. - -2007-05-11 Sandro Santilli - - * server/dlist.h (move_display_object): document the call to - accept_anim_move(). - * testsuite/misc-ming.all/displaylist_depths_test7.c: fix missing - failure "expectance" and associated comment. - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test8.c: - New case: "Jumping backward to the start of a character's lifetime - after dynamic transformation" - -2007-05-11 Sandro Santilli - - * server/dlist.{cpp,h} (swapDepths): abort if target depth - equals depth of source character. - * server/sprite_instance.cpp (sprite_swap_depths): raise - a debugging message and skip any depths swap if target depth - equals depth of source character. - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test7.c: - New scenario testing that swapDepth(currentdepth) has no effect. - -2007-05-11 Sandro Santilli - - * testsuite/misc-ming.all/displaylist_depths_test6.c: - Jump to frame 5, to avoid a failure and success of - the same test in two different points in time, and *stop* there - (wiki updated). - * server/dlist.{cpp,h}: drop dangerous swap_characters, add safe, - documented and correct swapDepths. (fixes displaylist_depths_test6). - * server/sprite_instance.{cpp,h}: drop dangerous swap_characters, - add safe and swapDepths proxy to DisplayList's. - -2007-05-11 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: enabled - displaylist_depths_test6.swf runner - * testsuite/misc-ming.all/displaylist_depths_test6.c: - Some comments cleanup, and an additional expected failure - (slightly unrelated to test focus, I'd say). - -2007-05-11 Sandro Santilli - - * server/sprite_instance.h: improved documentation for the - add_display_object() method. I think this is where we're going - to add a TimelineInfo record (see Timeline Control page on the - wiki). - -2007-05-11 Zou Lunkai - - * testsuite/misc-ming.all/: displaylist_depths_test6.c: - new scenario for Timeline Control - NOTE: Gnash fails this one !! - -2007-05-11 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test5.c: - new scenario for Timeline Control (see wiki for more details). - NOTE: Gnash fails this one !! - -2007-05-10 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test4.c: - new scenario for Timeline Control (see wiki for more details). - NOTE: Gnash fails this one !! - -2007-05-10 Sandro Santilli - - * testsuite/anaylse-results.sh: print an header before the actual - results; don't limit depth of search for summary files. - * Makefile.am, add an anal rule to run the test results analyzer. - Run the analyzer at end of 'make check', so the report doesn't - scroll-up. - * testsuite/Makefile.am: don't run the analyzer from testsuite/ dir - as it would miss some tests in upper directories. - -2007-05-10 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test2.c, - displaylist_depths_test3.c: Cleanup comments for test2 and add - new scenario for Timeline Control (see wiki for more details). - -2007-05-10 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - SpriteButtonEventsTest-Runner.cpp, SpriteButtonEventsTest.c: - Produced a MovieClip versio of the ButtonEventTest.swf movie. - Seems to work fine, test automated. - -2007-05-10 Sandro Santilli - - * server/event_id.h, server/vm/action.cpp: add - event_id::is_button_event() method - * server/sprite_instance.{cpp,h}: add isEnabled() method, - (on_event): don't react to button events if not enabled. - * testsuite/misc-ming.all: ButtonEventsTest-Runner.cpp, - ButtonEventsTest.c: add test for Button.enable flag. - -2007-05-10 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: more and better tests for - MovieClip.enabled. - * server/sprite_instance.cpp (attachMovieClipInterface): initialize - an 'enabled' property in MovieClip.prototype (fixes old and new - tests for it in MovieClip.as); - -2007-05-10 Sandro Santilli - - * testsuite/misc-ming.all/displaylist_depths_test2.c: target - SWF7, use getInstanceAtDepth() to verify Gnash succeeds the - test, despite the fact it's "soft references" implementation - is bogus (thanks to zou for the tip!). We might still want a - MovieTester based runner to check for rendering in any case, - but less urgent... - * server/sprite_instance.{cpp,h}: Implemented - MovieClip.getInstanceAtDepth() and MovieClip.getSWFVersion(); - stubbed MovieClip.getTextSnapshot(). - * testsuite/actionscript.all/MovieClip.as: tested - MovieClip.getSWFVersion() and MovieClip.getInstanceAtDepth(). - -2007-05-10 Sandro Santilli - - * server/as_value.{cpp,h}: encoding of movieclip values - by target path made optional, to help future attempts - at changing it, due to conceptual bug found in it running - the displaylist_depths_test2.swf testcase. The default is - no change. Undefine MOVIECLIP_AS_SOFTREF to keep them by - pointer (still fails some testcases so not enabled). - -2007-05-10 Martin Guy - - * configure.ac: Don't warn about ffmpeg/mad absence during tests; - they are checked and nogoed at the end. - * configure.ac: Don't report SDL FLAGS and help message twice. - * macros/ffmpeg.m4: Avoid spurious syntax errors when avcodec not found - -2007-05-09 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test2.c: - New test showing the effects of a swapDepth moving a static - instance to the dynamic zone when jumping back to a frame in which - the char is supposed to be at it's original depth. - Incredibly, Gnash passes all tests, except a couple which are due - to the way we implemented "soft references" and that makes it - hard to test for actual existance of the old instance. - -2007-05-09 Udo Giacomozzi - - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: fix ambiguous - strk() call - -2007-05-09 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: don't build the - alltests-v#-Runners on make check. We dont' use them currently. - * testsuite/misc-ming.all/: Makefile.am, .cvsignore: - Enabled static_vs_dynamic testcases. - * testsuite/misc-ming.all/static_vs_dynamic1.c: Don't expect a failure - as we're not failing :) - -2007-05-09 Sandro Santilli - - * extensions/fileio/fileio.{cpp,h}: don't forget to setup - the FileIO exported interface; Fix some const-correctness - for the class methods; have seek() return the correct value; - cast arguments to the expected type. Needs more love, but - I won't give it *now* :) - * configure.ac: drop unneeded LTVERSION_VERSION macro call. - * gui/: fltk.cpp, gtk.cpp, sdl.cpp: - Check if createRenderHandler of the glue returns - NULL, and return false in that case. - -2007-05-09 Sandro Santilli - - * testsuite/MovieTester.cpp (initTestingRenderers): try initializing - an AGG renderer for *each* known pixel format. - * backend/render_handler_agg.{cpp,h} (create_render_handler_agg): - Take pixelformat by *const* pointer, do NOT abort when the given - pixelformat is unsupported, just return NULL. - * testsuite/misc-ming.all/action_execution_order_test8.c: - Added description as reported on bug #19727. - * testsuite/misc-ming.all/static_vs_dynamic2.c: - Moved description of the test on top. - * gui/Makefile.am: fixed typo preventing 'dist' to work. - * testsuite/misc-ming.all/action_execution_order_test8.c: - Fixed access to uninitialized memory (segfault). - -2007-05-09 Andrew Guertin - - * macros/ming.m4: cleaner fix for #19826 (don't redirect - stderr...) - -2007-05-09 Sandro Santilli - - * macros/ming.m4: redirect stderr to /dev/null when using - passing the beta version to printf (would complain if - the version has no beta component). Closes bug #19826. - -2007-05-09 Zou Lunkai - - * testsuite/misc-ming.all/static_vs_dynamic1.c, static_vs_dynamic2.c: - test what we discussed yestoday. - -2007-05-08 Sandro Santilli - - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: tolerate - a 1-pixel Y drift for the harilined black line, as introduced - by latest "pixel hinting" "fix" in AGG (see bug #19775); - Also, changed checked point for the diagonal violet line for - the same reason. See bug #19828 for more info. - * extensions/dejagnu/Makefile.am, extensions/gtk2/Makefile.am, - extensions/mysql/Makefile.am: remove other direct references - to convenience libraries. - * testsuite/Makefile.am, testsuite/server/Makefile.am: - Do not explicitly link convenience libraries under the server/ - dir. Fixes bug #19821. - * libbase/extension.cpp: print plugins path. - * extensions/fileio/Makefile.am: export GNASH_PLUGINS to the buil tree - when running the test program. - * testsuite/generic-testrunner.sh: export any GNASH variable in the - environment, so to allow generic test runners to specify a plugin - dir, and eventually a GNASHRC file (when we add support for it). - * Makefile.am (dumpconfig): add info about which extensions are being - built (if not null extensions are scanned, would be better to - just report wheter extensions are buil or not instead..) - * configure.ac: define USE_EXTENSIONS if build of any extension is - enabled. - -2007-05-08 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Fix vector alignment ("pixel - hinting"). Fixes bug #19775. - -2007-05-08 Sandro Santilli - - * libbase/LoadThread.h: threading enabled by default. - * macros/ffmpeg.m4: set LIBS and CFLAGS to the detected or provided - values for the macro lifetime, so to more easily find any dependent - lib in custom dirs; do not discard user-provided libdir; be more - verbose about version checking. - * server/asobj/NetStream.cpp (fix members initialization order). - * server/asobj/NetStreamGst.{cpp,h}: Make start thread - use a compile-time option. Defaults to true for now, - but worth disabling for better testing (btw: why do - we need a "start" thread and a "continue" thread?) - -2007-05-07 Tomas Groth Christensen - - * libbase/FLVParser.cpp: When seeking to 0 just go to - the first frames. - * server/asobj/NetStream.{h,cpp}: Moved setBufferTime() to - the base class, implemented bufferTime(). - * server/asobj/NetStreamFfmpeg.{cpp,h}: Moved setBufferTime() - to the base class. - * server/asobj/NetStreamGst.{cpp,h}: Moved setBufferTime() to - the base class. tried to improve seeking by using an offset - to avoid telling gstreamer about the seek. - -2007-05-07 Tomas Groth Christensen - - * server/asobj/NetStream{Ffmpeg,Gst}.cpp: After playback stops, - make it possible to restart video by seeking to 0 and setting - pause to false. - -2007-05-07 Martin Guy - - * backend/sound_handler.h: Fix commentary about RAW and UNCOMPRESSED - formats. - * configure.ac: Make absence of ffmpeg or libmad libraries a fatal error - when they are selected, instead of quietly turning media handling off. - * configure.ac: Fix names of Debian packages required for ffmpeg. - * configure.ac: Fix logic of missing ffmpeg library reporting code. - -2007-05-07 Sandro Santilli - - * server/asobj/NetConnection.cpp (openConnect): print FLV url before - setting loader stream so that it's visible before full download in - case threading is disabled. - * libbase/log.h: fully qualify __Host_Function_Report__ so - GNASH_REPORT_FUNCTION can be used by classes outside of 'gnash' - namespace. - * libbase/curl_adapter.cpp (fill_cache): avoid aggressive polling by - taking naps between iterations. "Smart" sleep times are taken - in consideration so we can tweak them. - -2007-05-07 Sandro Santilli - - * libbase/LoadThread.{cpp,h}: Make thread usage a compile-time - configuration. Temporarely defaults to NOT using thread till - we fix bug #19811 and general CPU hogs during loading. - -2007-05-07 Markus Gothe - - * configure.ac, gui/aqua*: Added aqua/carbon-stubs. - -2007-05-06 Tomas Groth Christensen - - * libbase/LoadThread.cpp: Delete the thread after use so we don't - try to join it again. Fixes bug #19811. - * server/asobj/NetStreamGst.cpp: Fixed pausing and play, bug #19797. - -2007-05-06 Tomas Groth Christensen - - * server/sprite_instance.cpp: Stop all sounds when restarting - a movie, fixes bug #19568. - * server/asobj/NetStreamFfmpeg.cpp: Fixed return time. - * server/asobj/NetStreamFfmpeg.h: Added a comment. - * server/asobj/NetStreamGst.cpp: Moved gst-init to the - contructor, fixes bug #19795. Only create audio/video elements - if needed. - -2007-05-04 Sandro Santilli - - * testsuite/samples/clip_as_button2-TestRunner.cpp: add pixel - color checking. - * testsuite/actionscript.all/NetConnection.as: unexpected success.. - -2007-05-04 Sandro Santilli - - * libbase/FLVParser.h (FLVVideoFrame): add isKeyFrame() method; - use typedefs for video and audio frame containers. - * libbase/FLVParser.cpp: use isKeyFrame(), easier to read. - -2007-05-04 Sandro Santilli - - * libbase/FLVParser.cpp (seekAudio, seekVideo): fixed seeking and - hopefully made a bit more readable. The computed values are - now printed for further debugging. They seem correct to me, but - it seems they are not correctly used. - * server/asobj/: NetStream.{cpp,h}, NetStreamFfmpeg.{cpp,h}, - NetStreamGst.{cpp,h}: change play() method to take a std::string - ref instead of a char*; always pass environment when casting args - to numbers or strings. - -2007-05-04 Sandro Santilli - - * server/asobj/NetStream.cpp: stubbed missing methods and - properties. - * libbase/tu_file.cpp (std_get_stream_size_func): use fstat to - get stream size. (other funx for filesystem access): add some assertions - to prevent seeking past the end of the stream. - * libbase/LoadThread.cpp (read): don't seek past the end of the - stream. Add a few assertions checking that _loadPosition is - never > then _streamSize. - -2007-05-04 Markus Gothe - - * gui/aqua.cpp: Initial creation. - -2007-05-04 Markus Gothe - - * macros/boost.m4: Fixed a bug in GNASH_BOOST_PATH. - * server/asobj/SoundFfmpeg.h: Build on OS X. - * backend/sound_handler_sdl.h: Build on OS X. - -2007-05-03 Sandro Santilli - - * server/asobj/NetConnection.{cpp,h}: change openConnection interface - to take url by ref (not by pointer) and nothing else (drop owner - arg). Stubbed documentation of the method (needs more info). - * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp, Sound.cpp, - SoundFfmpeg.cpp, SoundGst.cpp, SoundMad.cpp: - Updated calls to openConnection. - -2007-05-03 Sandro Santilli - - * server/asobj/NetConnection.{cpp,h}: keep _loader by auto_ptr, some - comments and interfaces cleanup. - * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp: update calls - to connectParser(), now taking by ref. - -2007-05-03 Sandro Santilli - - * server/asobj/NetConnection.{cpp,h}: Yay, another ActionScript class - layout version. As a side effect stubbed missing properties and - methods of the class + cleanups in the connect() method. - -2007-05-03 Sandro Santilli - - * configure.ac: rewording of ffmpeg warnings. Shows a bug in ffmpeg.m4 - failing to detect version and thus failing to accept it when - passed explicit --with-ffmpeg-incl and --with-ffmpeg-lib. - * server/asobj/: NetStream.{cpp,h}, - NetStreamFfmpeg.cpp, NetStreamGst.cpp: - Use an enum for status codes, avoid notifying multiple - times the same status. - -2007-05-03 Sandro Santilli - - * gui/gui.cpp: Add RENDER_ONE_FRAME_EVERY macro to skip - rendering of a given fraction of movie frames (for debugging). - * server/video_stream_instance.cpp (display): call - clear_invalidated(). - -2007-05-03 Udo Giacomozzi - - * server/video_stream_instance.cpp: implemented proper - add_invalidated_bounds() - -2007-05-03 Sandro Santilli - - * server/asobj/Makefile.am, server/parser/Makefile.am, - server/vm/Makefile.am: -release makes no sense for - convenience libraries. - * testsuite/misc-ming.all/DrawingApiTest.as: reintroduced - visual hitTest checks (not automated yet). This time - they don't break the exising test. - * testsuite/MovieTester.{cpp,h}: add redraw() method, - by default only force a redraw on *first* advance. - -2007-05-03 Markus Gothe - - * backend/render_handler_ogl.cpp: Make it work with __APPLE_CC__. - -2007-05-03 Sandro Santilli - - * server/sprite_instance.cpp (add_empty_movieclip): - call set_invalidated as the newly added character might - replace a previously existing one. See bug #19683. - * server/video_stream_instance.{cpp,h}, - server/parser/video_stream_def.{cpp,h}: - Encode ownership of embedded videodecoder by using std::auto_ptr, - and document it. - * server/asobj/NetConnection.cpp (getBytesTotal): return total bytes, - not "loaded" bytes... - fixes YouTube buffering bar. - -2007-05-03 Udo Giacomozzi - - * backend/render_handler_agg.cpp: by default use world invalidated - bounds (not Null) - * server/character.cpp: negative scaling values are legal (related to - bug #18874, but not fixing it) - * backend/render_handler_agg.cpp: use absolute scaling values when - calculating stroke width, fixes 18874 - -2007-05-03 Andrew Guertin - - * backend/: sound_handler.h, sound_handler_gst.cpp, - sound_handler_sdl.cpp: Makes Nellymoser not an "unknown" format in - the error message, just unsupported, Makes GST's unknown format - error message better (copied SDL's), Adds an assertion that - ADPCM and UNCOMPRESSED should never be passed to the sound - handler, Adds a comment to sound_handler.h - -2007-05-02 Sandro Santilli - - * testsuite/Makefile.am: explicitly list other gnash libs. - * testsuite/libgeometry/Range2dTest.cpp: tolerate some floating - point drift. - -2007-05-02 Markus Gothe - - * libbase/Makefile.am: Get sure we link against gettext if found. - -2007-05-02 Rob Savoye - - * po/Makefile.am: We don't need $(srcdir) since we're specifing - the directory. - * server/asobj/Makefile.am: Make libgnashasobjs a a convienience - library. - * server/parser/Makefile.am: Make libgnashparser a a convienience - library. - * server/vm/Makefile.am: Make libgnashvm a a convienience - library. - * utilities/Makefile.am: Don't link in all the other libraries. - * gui/Makefile.am: Don't link in all the other libraries. - - * libbase/curl_adapter.cpp: Don't redefine snprintf() for win32. - * libbase/noseek_fd_adapter.cpp: Don't redefine snprintf() for - win32. - * libbase/log.h: Include io.h for win32. - * libbase/network.cpp: Use inet_ntoa() instead of the newer - inet_ntop(). Include ws2tcpip.h for win32. - * libbase/tu_timer.cpp: Use lowercase mmsystem.h. - * libbase/tu_types.h: Don't use __FUNCDNAME__ to redefine - __PRETTY_FUNCTION__for all win32 builds. - * macros/boost.m4: Remove extraneous boost directory when - searching for header files. - -2007-05-02 Sandro Santilli - - * libbase/curl_adapter.cpp (fill_cache): stop uselessly calling - fstat(); don't call curl_multi_perform if not needed. - * libbase/log.cpp: call the logfile singletone getter only once. - * libbase/image.{cpp,h}: move documentation of the update() method - from cpp to h file. This is the most time-expensive routine in - libgnashbase when playing youtube. - * libbase/LoadThread.{cpp,h}: isPositionConfirmed inlined and - const-corrected. - -2007-05-02 Martin Guy - - * libbase/tu_config.h,libbase/jpeg.cpp,server/swf/tag_loaders.cpp, - compatibility_include.h: Having jpeglib is compulsory, so - remove TU_CONFIG_LINK_TO_JPEGLIB - * Revert attempt to use endian.hpp. It broke someone's build. QED. - * gui/fb.cpp: Fix compiler warnings - * libbase/tu_config.h,server/swf/tag_loaders.cpp: Allow compilation - without zlib, auto-switching TU_CONFIG_LINK_TO_ZLIB on HAVE_ZLIB_H - (works with renderer=agg/opengl, gui=fb/sdl, media=gst/mad/none; - gtk/kde, cairo, ffmpeg require zlib in their own right) - * configure.ac: Reformat messages - * libbase/tu_config.h,libbase/zlib_adapter.{cpp,h},server/tools.cpp, - server/{impl.cpp,parser/movie_def_impl.cpp,swf/tag_loaders.cpp}, - compatibility_include.h: eliminate TU_CONFIG_LINK_TO_ZLIB; - use HAVE_ZLIB_H directly. - * configure.ac: Suggest packages to install when zlib-dev is missing - * configure.ac,macros/ffmpeg.m4: Fix quotation in ffmpeg detection and - skip version checking to avoid syntax errors during "configure" - if the library is not found. - * server/asobj/SoundMad.cpp: Fix compiler warnings. - * gui/sdl.cpp: Regularize bizarre indentation - * gui/sdl.cpp: A closer hack at making movies run at correct speed. - Before: always at 100 frames per second + cpu time. - After: Still not perfect: in non-interactive movie, visuals are a - fraction of a second ahead of MP3 soundtrack. - -2007-05-02 Sandro Santilli - - * backend/sound_handler_gst.cpp, gui/Player.cpp, libamf/amf.cpp, - libbase/log.h, server/as_function.cpp, server/swf/tag_loaders.cpp, - server/button_character_instance.cpp, server/character.cpp, - server/sprite_instance.cpp, server/asobj/NetStreamGst.cpp: - Drop log_warning, till we find a semantic for it. - -2007-05-02 Sandro Santilli - - * server/sprite_instance.cpp (sprite_getBounds): remove TESTING - warning, I'm pretty confident about this function now. - -2007-05-01 Rob Savoye - - * libamf/Makefile.am: Add BOOST_CFLAGS so we can find endian.hpp. - -2007-05-01 Sandro Santilli - - * server/asobj/: NetStream.{cpp,h}, NetStreamFfmpeg.{cpp,h}, - NetStreamGst.{cpp,h}: move all onStatus handling to base class - and made thread safe. - -2007-05-01 Sandro Santilli - - * server/movie_root.h: add getWidth() and getHeight() - * server/asobj/Stage.{cpp,h}: implement Stage.width and - Stage.height. - * testsuite/actionscript.all/Stage.as: small test for - Stage.width and Stage.height (not automated) - -2007-04-30 Sandro Santilli - - * testsuite/swfdec/swfdec_gnash_tester: allow 11 loop-backs. - * testsuite/swfdec/PASSING: function1.swf now succeeds. - -2007-04-30 Sandro Santilli - - * testsuite/libamf.all/Makefile.am: proper clean rule. - * testsuite/misc-ming.all/Makefile.am: proper clean rule. - * doc/C/Makefile.am: distribute actionscript.xml and related - files. - -2007-04-30 Martin Guy - - * backend/sound_handler_sdl.cpp: Fix volume scaling in 8->16 bit - raw data conversion (closes bug #19747) - and convert cascaded ifs to a case. - -2007-04-30 Sandro Santilli - - * Makefile.am: don't put 'po' in EXTRA_DIST, as it's already - in SUBDIRS. - * server/StringPredicates.h: include cctype. - See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417210. - * po/Makefile.am: don't update the .po files on every .gmo - production. Produce the .gmo in the build tree, not in the - source tree. - -2007-04-30 Martin Guy - - * libbase/tu_types.{h,cpp}, server/swf/tag_loaders.cpp: - Eliminate remnants of _TU_LITTLE_ENDIAN_ - * configure.ac: Drop now-redundant endian header detection - * libamf/amf.{h,cpp}: swapBytes is now file-local and uses libboost - -2007-04-30 Sandro Santilli - - * autogen.sh: only process configure.ac in root dir and under libltdl, - running a find annoingly descends in just generated dist dirs. - * testsuite/samples/Makefile.am: distribute gotoFrameOnKeyEvent.swf. - * testsuite/actionscript.all/array.as: add test for deleting an - array element, and for array indexes being proper properties - (fails in gnash). - * configure.ac: if ffmpeg version doesn't match the required one - set media handling to none. - * testsuite/misc-ming.all/action_execution_order_test8.c: add - more output trying to understand the problem better. - * server/parser/shape_character_def.cpp (compute_bounds): harline - strokes don't add anything to the bounds (no need to expand to - circle, same as for hidden strokes). - * testsuite/misc-ming.all/Makefile.am: - Activated action_execution_order_test{7,8}. - -2007-04-30 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_test7.c: - a simple and normal one that we should pass. - * testsuite/misc-ming.all/action_execution_order_test8.c: - another one for execution order. - -2007-04-29 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as: add - tests for hitTest (not automatically run, but works fine so far). - * server/button_character_instance.{cpp,h}: implement pointInShape(). - -2007-04-28 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionWith): skip with() blocks - given a parameter not casting to an object. - * testsuite/actionscript.all/with.as: - Add tests explaining why the tests in previous - commit are failing in SWF5 version. - -2007-04-28 Zou Lunkai - - * testsuite/actionscript.all/with.as: - add more tests - -2007-04-28 Sandro Santilli - - * server/as_environment.{cpp,h}: stop descending - the CallStack looking into the callers locals! - * testsuite/actionscript.all/Function.as: success - with SWF5 and (missing) scope chain. - -2007-04-27 Rob Savoye - - * gui/fltk.cpp: Cast the key::code so it compiles on Darwin. - * macros/agg.m4: Don't inherit the -rpath setting fropm - pkg-config, it screws up the linux on Darwin. - * macros/incllist, libslist: Look in $with_top_level for support - packages no in the $prefix path. - * macros/pthreads.m4: Add -mthreads for mingw32. - * macros/x11.m4: If X11 is found, also add libSM and libICE if - they are found to resolve dependencies on Darwin. - * server/Makefile.am: Remove -no-undefined as it cause dependency - problems on Darwin. - * server/vm/Makefile.am: Remove -no-undefined as it causes - inter-library dependency problems on Darwin. - * server/parser/Makefile.am: Remove -no-undefined as it causes - inter-library dependency problems on Darwin. - * server/asobjsMakefile.am: Remove -no-undefined as it causes - inter-library dependency problems on Darwin. Add libgeo to the - link line. - * server/vm/VM.cpp: Don't use the gnash:: namespace with setting - the global singleton, it won't compile on Darwin. - -2007-04-27 Sandro Santilli - - * server/swf/PlaceObject2Tag.cpp (readPlaceActions): fix check for - all reserved bits being zero (removed an annoying false malformed - swf error). - * gui/gtk.cpp: comment out function tracing for key and mouse events. - -2007-04-27 Martin Guy - - * configure.ac: Add verbose text for missing gstreamer-dev help - -2007-04-27 Sandro Santilli - - * testsuite/misc-mtasc.all/README: some info about the MTASC - testing framework. - * testsuite/actionscript.all/Global.as: check that _global._global - is undefined. - * testsuite/actionscript.all/Function.as: add another test for - nested functions and scope chain. - -2007-04-27 Sandro Santilli - - * server/as_environment.{cpp,h}: changed the ScopeChain - typedef to be just a vector of as_objects. - * server/swf_function.{cpp,h}: take a vector of as_objects - as ScopeChain, rather then with_entry vector... - * server/vm/ActionExec.{cpp,h}: only expose the ScopeChain, - not the 'with' stack. When constructed for a function, push - the function's activation object to the ScopeChain. - * server/vm/ASHandlers.cpp: update calls to ActionExec and - swf_function when it comes to setting the ScopeChain. - * testsuite/actionscript.all/Function.as: the scope chain test kai - added now succeeds. - * testsuite/swfdec/PASSING: function-scope-6.swf and function-scope-7.swf - now succeed. - -2007-04-27 Sandro Santilli - - * libgeometry/snappingrange.h: add contains(SnappingRange2d) method; - fixed contains(Range2d) to take a const ref rather then a value. - * testsuite/libgeometry/snappingrangetest.cpp: add tests for - contains(SnappingRange2d). - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: add test for - renderer and invalidated bounds. - -2007-04-27 Sandro Santilli - - * gui/gui.cpp: add a DEBUG_MOUSE_COORDINATES define, for making - writing test runners easier. - * testsuite/swfdec/swfdec_gnash_tester: use the .trace.org files when - avaiable, as in that case it means that the .trace are just swfdec - results (Ben is cheating !) - * testsuite/swfdec/PASSING: double.swf fails again. - -2007-04-27 Sandro Santilli - - * server/as_value.{cpp,h}: add a static doubleToString(double) function - moved here from a static in Number.cpp, given its good quality. - * server/asobj/Number.cpp: use as_value::doubleToString() for - returning text value. Drop the string representation cache, no - more needed. - * testsuite/swfdec/PASSING: double.swf now succeeds - -2007-04-27 Sandro Santilli - - * libbase/triangulate_impl.h: include config.h. - * libbase/network.{cpp,h}: (writeNet): take a const string ref, not a - copy. - * cygnal/: http.cpp, netstats.cpp, statistics.cpp, stream.cpp: - Hush compiler. - -2007-04-27 Zou Lunkai - - * server/asobj/Key.{cpp,h}: - cleanups; don't invoke user defined onKeyPress(), it's just a - normal function. - * server/movie_root.cpp.h, server/sprite_instance.cpp: - cleanups and add some comments. don't set m_has_key_event when there - is a user defined onKeyPress() function. - * testsuite/misc-ming.all/key_event_testrunner.cpp: - more tests. - -2007-04-26 Rob Savoye - - * Makefile.am: Add po to EXTRA_DIST. - * configure.ac: Set a conditional for gettext. Build po/Makefile - now. - * libbase/Makefile.am: Build all libraries with a release number, - and add --export-dynamic and -no-undefined. Add gettext.h. - * backend/Makefile.am: Build all libraries with a release number, - and add --export-dynamic and -no-undefined. - * server/Makefile.am: Build all libraries with a release number, - and add --export-dynamic and -no-undefined. - * libgeometry/Makefile.am: Build all libraries with a release - number, and add --export-dynamic and -no-undefined. - * server/vm/Makefile.am: Build all libraries with a release - number, and add --export-dynamic and -no-undefined. - * server/parser/Makefile.am: Build all libraries with a release - number, and add --export-dynamic and -no-undefined. - * server/asobjs/Makefile.am: Build all libraries with a release - number, and add --export-dynamic and -no-undefined. - * extensions/dejagnu/dejagnu.cpp: Use instrusive pointers instead - of hard pointers for handlers. - * extensions/fileio/fileio.cpp: Use instrusive pointers instead - of hard pointers for handlers. - * extensions/mysql/mysql_db.cpp: Use instrusive pointers instead - of hard pointers for handlers. - * extensions/gtk2/gtkext.cpp: Use instrusive pointers instead - of hard pointers for handlers. - -2007-04-26 Sandro Santilli - - * testsuite/actionscript.all/Function.as: add a test - showing an incompatibility of flash with ECMA262 when - it comes to the 'arguments' object in functions activation - object. - -2007-04-26 Sandro Santilli - - * server/as_value.cpp (equals): compare m_object_value when both - operatns are either functions or objects. - * server/as_environment.{cpp,h} (get_variable, get_variable_raw, - findLocal): accept an additional argument to return the target - object the variable was found in. - * server/vm/ActionExec.{cpp,h}: provide an additional getVariable - method accepting an as_object pointer to return the target object - a variable was found in. - * server/vm/ASHandlers.cpp (ActionCallFunction): set the 'this' - pointer to the object found to contain the function. - * testsuite/actionscript.all/Function.as: more successes. - -2007-04-26 Sandro Santilli - - * server/as_environment.cpp (get_variable_raw): elements of - the 'with' stack take precedence over locals. - See test in Function.as. - * testsuite/actionscript.all/Function.as: add test for 'with' - stack taking precedence over locals when getting variables. - -2007-04-26 Sandro Santilli - - * testsuite/actionscript.all/Function.as: test for 'this' in - local function. - * server/as_environment.{cpp,h}: refactor local variables - so they are stored into a proper object. Will help introducing - a VariableRef class that associates a Property to an as_object. - -2007-04-26 Sandro Santilli - - * server/as_environment.h, server/movie_root.h, - server/sprite_instance.h, server/vm/action.cpp: - Remove some unused code, remove Id tags from headers. - -2007-04-26 Sandro Santilli - - * testsuite/misc-ming.all/key_event_testrunner.cpp: no more - failures expected (thanks kai). - * server/as_value.cpp (to_primitive): fix missing return - from non-void function. - -2007-04-26 Zou Lunkai - - * server/asobj/Key.h - change "Event_id.h" to "event_id.h" - * server/event_id.h - forgot to commit it in last commit - -2007-04-26 Zou Lunkai - - * server/vm/action.cpp: - add is_key_event() method - * server/asobj/Key.{h, cpp}: - change notify_listeners() to public; set_key_down() and set_key_up() - don't trigger event handler now. - * server/button_character_instance.cpp: - * server/edit_text_character.cpp: - replace *_keypress_listener() to *_key_listener() - * server/character.{h, cpp},server/movie_root.{h, cpp} - trigger onClipKeyUp and onClipKeyDown event handlers - * server/sprite_instance.{h, cpp} - bypass user defined key events in on_event(), let the global key object - take over user defined key events. - * testsuite/misc-ming.all/key_event_testrunner.cpp - enable all checks - -2007-04-26 Sandro Santilli - - * server/as_value.{cpp,h}: to_primitive() made private, and had - calling any user-defined valueOf for objects; (equals): only - return false when to_primitive() returns the same type we were - already. - * testsuite/actionscript.all/Function.as: two more successes. - -2007-04-26 Sandro Santilli - - * server/as_value.cpp (equals): don't abort on object==movieclip ! - * testsuite/actionscript.all/Function.as: add more tests 'this' - reference in 'with' and 'function' scope (see bug #19704). - -2007-04-26 Sandro Santilli - - * server/array.h, server/as_environment.cpp, server/as_function.h, - server/as_object.cpp, server/as_object.h, server/character.cpp, - server/character.h, server/edit_text_character.cpp, - server/edit_text_character.h, server/asobj/Boolean.cpp, - server/asobj/Color.cpp, server/asobj/ContextMenu.cpp, - server/asobj/CustomActions.cpp, server/asobj/Error.cpp, - server/asobj/LoadVars.cpp, server/asobj/Microphone.cpp, - server/asobj/Mouse.cpp, server/asobj/Number.cpp, - server/asobj/Selection.cpp, server/asobj/SharedObject.cpp, - server/asobj/Stage.h, server/asobj/TextSnapshot.cpp, - server/asobj/Video.cpp, server/asobj/gen-asclass.pl, - server/asobj/gen-asclass.sh, server/asobj/string.cpp, - testsuite/server/GetterSetterTest.cpp: - Changed get_text_value interface to return by std::string - value. Closes bug #19695. - -2007-04-25 John Gilmore - - * README, README_CVS: Improve configuration instructions. - More work is needed to make it match the code. - * po/.cvsignore: Ignore all generated .gmo files. - -2007-04-25 Sandro Santilli - - * README_CVS: some info for CVS users. - * doc/C/asspec/date.xml: fixed typos preventing the asspec - from building. - * doc/C/asspec/movieclip.xml: add docs and conformancy for - a few methods. - -2007-04-25 Martin Guy - - * ChangeLog,server/debugger.{cpp,h},server/vm/ActionExec.cpp: - spello dissasemble -> disassemble - * macros/lib-ld.m4(removed),macros/lib-link.m4: - remove repeated test for GNU ld (libtool does this). - Closes bug #19623 - * libamf/amf.cpp,libbase/tu_swap.h,server/parser/action_buffer.cpp, - server/swf/tag_loaders.cpp: - Replace compile-time endianness checking with runtime because - it costs almost nothing and reduces maintenance forever. - As a side-effect, also now handles architectures with - middle-endian IEEE754 doubles and detects non-IEEE arches. - Only the Mozilla devkit stuff now detects endianness - using its own set of built-in rules. - -2007-04-24 Sandro Santilli - - * server/sprite_instance.cpp (sprite_hit_test): implement - hitTest() - not all call types tested. - -2007-04-24 Sandro Santilli - - * server/sprite_instance.cpp: globalToLocal and localToGlobal - implemented. - * testsuite/actionscript.all/MovieClip.as: test localToGlobal - and globalToLocal. - -2007-04-24 Sandro Santilli - - * server/sprite_instance.cpp: stubbed localToGlobal and setMask - * testsuite/actionscript.all/MovieClip.as: test availability of - localToGlobal and setMask. - * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as, - DrawingApiTestRunner.cpp: Prepared a test for invalidated - bounds checking. Gnash clearly fails, but no actual automated - tests added to the test runner yet. - -2007-04-24 Sandro Santilli - - * server/vm/ActionExec.{cpp,h}: add delObjectMember() method. - * server/vm/ASHandlers.cpp (ActionDelete): hopefully fixed - - at least as far as we can tell... - * testsuite/actionscript.all/delete.as: more tests for ActionDelete. - -2007-04-24 Rob Savoye - - * configure.ac: Remove --enable-extension. Add --with-extensions= - that takes a comma delimited list of extension so you can seclect - with ones you want to build. - * Makefile.am: Always add the extensions directory. - * extensions/Makefile.am: Use new conditionals to select builds - directories. - * cygnal/cygnal.cpp: Include posix_time.hpp. - * extensions/fileio/fileio.cpp: Use intrusive pointers instead of - explicit pointers. - -2007-04-24 Udo Giacomozzi - - * libgeometry/Range2d.h: added expandToCircle() - * server/rect.h: added expand_to_circle() - * server/parser/shape_character_def.cpp: corrected compute_bound() - to respect outline widths - * testsuite/libgeometry/Range2dTest.cpp: added test for - expandToCircle() - -2007-04-24 Sandro Santilli - - * testsuite/misc-ming.all/: DrawingApiTest.as, - DrawingApiTestRunner.cpp: Add a circle drawing and - test for collision detection of curved fills. - -2007-04-24 Sandro Santilli - - * server/shape.{cpp,h} (point_test): only check for the - "interior" of the shape, forget its boundaries. - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: one - more success. - -2007-04-24 Sandro Santilli - - * server/shape.{cpp,h}: const-corrected point_test and - wihinSquareDistance(); - * server/sprite_instance.cpp (sprite_lineStyle): alpha value is given - in percent, always pass the env to number converters. - * testsuite/misc-ming.all/DrawingApiTest.as: add test checking that - valueOf is invoked on arguments. - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more successes. - -2007-04-24 Sandro Santilli - - * server/sprite_instance.cpp (on_event): call user-defined function - even if clip-events have been found. - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - one more success. - * testsuite/swfdec/PASSING: event-order.swf now succeeds. - * testsuite/swfdec/gen_run_swfdec_testsuite.sh: match full lines - in the PASSING file, to avoid partial mathes. - * server/shape.cpp: substitute hash_wrapper with std::map, - cleanups. - -2007-04-24 Zou Lunkai - - * testsuite/misc-ming.all/Makefile.am - activate testcases committed yestoday - * testsuite/misc-ming.all/key_event_test.c - fix a typo - * server/swf/PlaceObject2Tag.{h,cpp} - minor clean up, keep the "all_event_flags" for future use. - -2007-04-23 Sandro Santilli - - * server/DynamicShape.{h,cpp} (lineStyle): add a line style even - if it is for specifying a thickness of 0 (hairline); - add a resetLineStyle() function for dropping any style. - * server/sprite_instance.{cpp,h}: add resetLineStyle() for - drawing api. - * server/parser/shape_character_def.cpp (point_test_local): - Use a tolerance of a single twip distance when detecting - collision of hairlined strokes. - * testsuite/misc-ming.all/DrawingApiTest.as: add more comments, and - an hairlined line. - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more tests. - -2007-04-23 Sandro Santilli - - * server/shape.{cpp,h}: add path::withinSquareDistance. - * server/types.cpp (point::distance): return 0 for 0 squaredDistance - (not 1). - * server/parser/shape_character_def.cpp (point_test_local): - test for point falling in the shape stroke, taking thickness - in consideration. - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more - tests. - -2007-04-23 Sandro Santilli - - * server/shape.{cpp,h}: add primitive distance functions - for point-segment - * testsuite/server/: Makefile.am, EdgeTest.cpp: add tests - for point-segment distance. - -2007-04-23 Sandro Santilli - - * server/: gnash.h, types.cpp: add point::distance() and - squaredDistance() - * testsuite/server/: Makefile.am, PointTest.cpp: point tests. - -2007-04-23 Sandro Santilli - - * server/cxform.{cpp,h}: add output operator and toString method. - * server/DynamicShape.cpp (moveTo): do not reset current - fill style on move. Fixes some of the tests in DrawingApiTest.swf - and masks_test.swf. - * testsuite/misc-ming.all/: DrawingApiTestRunner.cpp, - masks_testrunner.cpp: some more successes. - -2007-04-23 Sandro Santilli - - * testsuite/misc-ming.all/: DrawingApiTest.as, - DrawingApiTestRunner.cpp: add rendering tests. - Add a drawing in which move() is called after beginFill() - to confirm the fill is not reset after move(). - -2007-04-23 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, masks_test.c, - masks_testrunner.cpp: Add a MovieTester based test runner - for the masks_test movie. Shows a bug in either the renderer - or in the core preventing rendering of dynamic clips. - * libgeometry/snappingrange.h: add unconditional visitor; add - cast operator; add contains(Range2d); add scale(factor). - * testsuite/MovieTester.{cpp,h}: add a getInvalidatedRanges function; - drop getInvalidatedBounds one. - * testsuite/libgeometry/snappingrangetest.cpp: test contains(Range) - and cast to int. - * testsuite/misc-ming.all/simple_loop_testrunner.cpp: update - to use the new getInvalidatedRanges. - -2007-04-23 Sandro Santilli - - * libgeometry/snappingrange.h: define the SnappingRanges2d<> in - the gnash::geometry namespace. Keep InvalidatedBounds in the - gnash namespace, for simplicity. - * testsuite/misc-ming.all/simple_loop_testrunner.cpp: - Use contains, not intersects, when testing invalidated bounds. - -2007-04-23 Zou Lunkai - - * testsuite/misc-ming.all/event_handler_scope_test.c - testcase for scope in event handlers - * testsuite/misc-ming.all/key_event_test.c, key_event_testrunner.cpp - testcase for key events - -2007-04-21 Sandro Santilli - - * server/: movie_root.{cpp,h}, sprite_instance.{cpp,h}, - asobj/LoadVars.cpp: nuke ptr_list use so that boost 1.32 - (version in Debian stable) is still usable. - -2007-04-21 John Gilmore - - * plugin/plugin.cpp: In the child process, before executing - gnash, close all the file descriptors we inherited from the - browser (except stdout and stderr). - -2007-04-20 Sandro Santilli - - * testsuite/MovieTester.{cpp,h}: reworked the - pixel checking interface to not force moving - the pointer (as moving the pointer might trigger - movie events, as was happening with the ButtonEvent - test). - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: - All tests pass now. - * testsuite/misc-ming.all/attachMovieTestRunner.cpp: - Updated to work with the correct interface. - -2007-04-20 Sandro Santilli - - * testsuite/MovieTester.{cpp,h} (advance): advance - first, *then* render. Cache invalidated bound to - avoid loosing them. - * testsuite/misc-ming.all/attachMovieTestRunner.cpp: - Add renderer tests. - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: - Take the covering clip in consideration while testing - the renderer - there are a few xfailed that I'd like - to fix. - -2007-04-20 Udo Giacomozzi - - * backend/render_handler.h (getAveragePixel): - fix computation of max x/y values. - * server/character.h: character are not masks by default - * server/character.h, server/sprite_instance.cpp: when placing - new characters, disable clip_depth (zero is a valid depth) - -2007-04-20 Sandro Santilli - - * testsuite/FuzzyPixel.h: const-correctness - * testsuite/MovieTester.{cpp,h}: prepared for working - with all render handlers, implemented support for - a single one (AGG only for now); provided - check_pixel and xcheck_pixel macros. - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: - Test pixel checker (doesn't work). - -2007-04-20 Sandro Santilli - - * server/types.{cpp,h}: add toShortString, for neater output. - * libgeometry/snappingrange.h: add output operator. - * server/debugger.cpp, server/parser/action_buffer.cpp, - server/vm/ActionExec.cpp: don't force creation of the - SWFHandlers singleton too early, this hopefully means - at time of initialization the VM version will be known. - * backend/render_handler.h: remove unused parameter warnings. - [ I'm afraid this will confuse doxygen :( ] - -2007-04-20 John Gilmore - - More internationalization. - * po/POTFILES.in: Add all files with gettext-able messages. - * po/gnash.pot: Update to include current gettext-able messages. - * po/{es,fr}.po: First few languages that have a few translations. - * po/LINGUAS: Add es and fr (with only a few translations in each). - * README: Gettext program is now a required prerequisite for clean - builds of gnash. (We use the msgfmt program for compiling - translations.) - -2007-04-20 Udo Giacomozzi - - * backend/render_handler.h: Prototype for initTestBuffer() - * backend/render_handler_agg.{cpp,h}: implement initTestBuffer() - -2007-04-20 Sandro Santilli - - * testsuite/: Makefile.am, FuzzyPixel.{cpp,h}, - MovieTester.{cpp,h}: framework for renderers - testing, needs changes in render_handler to complete. - See task #6785. - -2007-04-20 Sandro Santilli - - * testsuite/misc-ming.all/masks_test.c: draft masks test. - * doc/C/asspec/movieclip.xml: - Dumped a bit of info about _name. Hopefully Ann will give it some - formatting. - * testsuite/misc-ming.all/: Makefile.am, ButtonEventsTest-Runner.cpp: - Allow execution of the test runner from a foreign dir. - -2007-04-20 Zou Lunkai - - * testsuite/actionscript.all/MovieClip.as - change undefined to a null string. - change check to xcheck, add warnings - -2007-04-19 Sandro Santilli - - * server/as_value.cpp (equals): comment out debugging line. - * testsuite/actionscript.all/MovieClip.as: check that - changing a _parent._name changes own _target. - WARNING: our soft references are bogus !! - -2007-04-19 Udo Giacomozzi - - * server/character.{h,cpp}, server/sprite_instance.{h,cpp}: - moved getTarget(), getTargetPath(), - get_text_value() to character class so that button instances - can deal with "targets" too. - * server/character.{h,cpp}: implemented "_target" getter-setter - * server/button_character_instance.cpp: added _target getter-setter - -2007-04-19 Sandro Santilli - - * testsuite/actionscript.all/Number.as: - Re-enabled a big block of tests accidentally left - cut out. Expect less failures also ! :) - -2007-04-19 Udo Giacomozzi - - * testsuite/misc-ming.all/matrix_test.c: use Math.round() to - really be tolerant - -2007-04-19 Sandro Santilli - - * testsuite/misc-ming.all/matrix_test.c: tolerate an - error of 1/100 when testing _rotation. - -2007-04-19 Udo Giacomozzi - - * testsuite/libamf.all/test_*.cpp: added dummy main() function - for the case when HAVE_DEJAGNU_H is not set - -2007-04-19 Bastiaan Jacques - - * configure.ac: Some platforms apparently define SIZET_FMT as - signed long; add a test for it. Also, use gnashpkgtool.m4 to - look for dejagnu.h as it is not guaranteed to be in the default - compiler search path, especially on non-GNU platforms. - -2007-04-19 Martin Guy - - * testsuite/actionscript.all/Date.as: Change case-[in]dependent - method existence detection strategy to see if it fixes v5 testrun. - * testsuite/libamf.all/test_{object,string,variable}.cpp, - testsuite/server/DisplayListTest.cpp, - testsuite/misc-ming.all/{PlaceObject2Test,root_stop_test}.c, - testsuite/misc-ming.all/action_execution_order_test6.c: - Drop/comment unused variables. - * server/as_value.cpp: Remove vestiges of rejected fix to - Number() (reported as a bug instead) - * testsuite/actionscript.all/Date.as: Remove tests that fail, including - those due the above bug. - -2007-04-19 Sandro Santilli - - * server/asobj/string.cpp: add valueOf own property to String - prototype. - * server/as_value.{h,cpp}: add equalsSameType() function; - fix bugs in to_number for function values (version-sensitive it - seems); modify equality and inequality operators to follow - strict equality semantic. - * testsuite/movies.all/gravity_embed-TestRunner.cpp: be aware when - comparing as_value types, comparisons are strict now! - * testsuite/swfdec/PASSING: divide-7.swf and object-math-7.swf now - succeed. - * testsuite/actionscript.all/Global.as: small test for isNaN - availability - * testsuite/actionscript.all/Number.as: tests for - convertion-to-number. - * testsuite/actionscript.all/String.as: test valueOf being a property - of String.prototype. - -2007-04-19 Zou Lunkai - - * testsuite/misc-ming.all/duplicate_movie_clip_test.c - more tests. - * libbase/tu_types.h - drop SDL integer types - * server/cxform.h - replace inttypes.h with tu_types.h, hopefully more portable - * server/vm/action.cpp - type definition, get rid of compiler warning - -2007-04-18 Sandro Santilli - - * server/BitmapMovieInstance.cpp: make sure - the bitmap character is not considered a mask (sic). - * testsuite/MovieTester.{cpp,h}: - Added interfaces for testing pixel values. - Next step would be actually initializing - a renderer during testing (if requested, maybe?) - -2007-04-18 Udo Giacomozzi - - * backend/render_handler.h: renamed get_pixel() to getPixel() and - changed from void to bool return value - * backend/render_handler.h, backend/render_handler_agg.cpp: - implemented getAveragePixel() - -2007-04-18 Sandro Santilli - - * testsuite/MovieTester.h: add click() method. - * server/BitmapMovieInstance.cpp: place the - bitmap character in the "static depth" zone - to forbid removal (might still be not enough). - * testsuite/misc-ming.all/loadMovieTest.c: have - the clear button remove the clips, not just clear them - * testsuite/misc-ming.all/loadMovieTestRunner.cpp: - check use of the 'scribble' and 'clear' buttons. - -2007-04-18 Martin Guy - - * server/asobj/NetStreamFfmpeg.cpp: Fix compile-breaking typo. - * server/swf/tag_loaders.cpp: Reformat bizarre indentation caused - by someone editing with hard tabs set to 4. - * server/asobj/Date.cpp: Fix signed/unsigned compiler warning. - * libbase/container.h, doc/C/actionscript/as_value.xml: - Expunge the last references to tu_string. - * libbase/tu_file.h: Purge endian dependence, add \brief to methods. - * backend/sound_handler_sdl.cpp: Remove commented-out stuff - * server/swf/tag_loaders.cpp: Remove commented-out stuff - -2007-04-18 Udo Giacomozzi - - * server/character.h, server/dlist.cpp, server/swf/PlaceObject2Tag.cpp: - make masks work again, introduce isMask() - -2007-04-18 Martin Guy - - * configure.ac: Introduce HAVE_LONG_TIMEZONE if extern long timezone - exists, and HAVE_TM_GMTOFF if struct tm has member tm_gmtoff. - * doc/C/asspec/date.xml: first draft - * server/asobj/Date.cpp: Complete its implementation - * server/asobj/Global.cpp: Use definitions of NAN and INFINITY from - as_value.h - * server/as_value.h: add definition for INFINITY, as for NAN - * server/as_value.cpp: Reject accidental "Infinity" and "-Infinity" - string-to-number conversions (should give NaN); - Use NAN from as_value.h; - Conversion of an AS function to a number gives NaN, not 0. - * testsuite/actionscript.all/Date.as: Add extensive constructor tests - -2007-04-18 Sandro Santilli - - * server/matrix.{cpp,h}: add transform_by_inverse(point&). - * server/character.h: add pointInBounds, pointInShape() and - pointInVisibleShape() new methods; document - get_topmost_mouse_entity. - * server/edit_text_character.{h,cpp}: implement pointInShape. - * server/generic_character.{h,cpp}: implement pointInShape. - * server/sprite_instance.{h,cpp}: implement pointInShape - and pointInVisibleShape; fix get_topmost_mouse_entity - implementation. - * server/parser/character_def.h: document point_test_local. - * testsuite/misc-ming.all/duplicate_movie_clip_test.c: don't - expect a failure. - * testsuite/misc-ming.all/loadMovieTestRunner.cpp: add two - small tests checking that the new two small buttons - are clickable. Needs more tests actually clicking those - buttons. - -2007-04-18 John Gilmore - - * Internationalization, phase 2. - - * These modules have had their printed messages passed through - _(...). Those messages have also been cleaned up, thusly: - * Stray \n's removed - * Exclamation points and periods removed at ends of messages - * Typos corrected, and English language wording adjusted. - * Misplaced UPPER CASE shouting removed. - * Many complaints about unknown types, values, etc, now include - the offending value, for ease of remote diagnosis. - * C++-style << printouts converted to log_xxx calls. - * Direct accesses to dbglogfile converted to log_xxx calls. - * printf converted to log_xxx calls. - * Function name debug prints converted to GNASH_REPORT_FUNCTION. - These changes should also make the messages easier to translate. - * Commented-out messages were also cleaned up as above. - * Many modules have also had log_warning calls changed to log_msg, - log_error, log_aserror, log_swferror, or log_unimp, according to - the documentation checked in earlier by strk and gnu. - IF_VERBOSE_xxx macros were inserted around some calls that - lacked them. - * Header comments (at the top of the file) added or adjusted, to - describe each file in its initial line, and to correct whitespace - in the copyright notices. Eliminate trailing spaces and tabs. - - * The list of files affected by the above changes: - backend/sound_handler_sdl.cpp - extensions/mysql/mysql_db.cpp - gui/Player.cpp - gui/gnash.cpp - gui/gui.cpp - plugin/klash/klash.cpp - plugin/win32/plugin.cpp - server/PropertyList.cpp - server/StreamProvider.cpp - server/array.cpp - server/as_environment.cpp - server/as_function.cpp - server/as_object.cpp - server/as_value.cpp - server/button_character_instance.cpp - server/character.cpp - server/dlist.cpp - server/dlist.h - server/edit_text_character.cpp - server/fill_style.cpp - server/font.cpp - server/generic_character.cpp - server/impl.cpp - server/sprite_instance.cpp - server/text.cpp - server/textformat.cpp - server/video_stream_instance.cpp - server/asobj/Camera.cpp - server/asobj/Color.cpp - server/asobj/ContextMenu.cpp - server/asobj/CustomActions.cpp - server/asobj/Date.cpp - server/asobj/Error.cpp - server/asobj/Global.cpp - server/asobj/Key.cpp - server/asobj/LoadVars.cpp - server/asobj/LocalConnection.cpp - server/asobj/Microphone.cpp - server/asobj/Mouse.cpp - server/asobj/MovieClipLoader.cpp - server/asobj/NetConnection.cpp - server/asobj/NetStream.cpp - server/asobj/NetStreamFfmpeg.cpp - server/asobj/NetStreamGst.cpp - server/asobj/Number.cpp - server/asobj/Object.cpp - server/asobj/Selection.cpp - server/asobj/SharedObject.cpp - server/asobj/Sound.cpp - server/asobj/SoundFfmpeg.cpp - server/asobj/SoundGst.cpp - server/asobj/SoundMad.cpp - server/asobj/Stage.cpp - server/asobj/System.cpp - server/asobj/TextSnapshot.cpp - server/asobj/Video.cpp - server/asobj/gen-asclass.pl - server/asobj/gen-asclass.sh - server/asobj/string.cpp - server/asobj/xml.cpp - server/asobj/xmlnode.cpp - server/asobj/xmlsocket.cpp - server/parser/BitmapMovieDefinition.cpp - server/parser/action_buffer.cpp - server/parser/button_character_def.cpp - server/parser/edit_text_character_def.cpp - server/parser/morph2_character_def.cpp - server/parser/movie_def_impl.cpp - server/parser/shape_character_def.cpp - server/parser/sprite_definition.cpp - server/parser/sprite_definition.h - server/parser/text_character_def.cpp - server/swf/DefineFontAlignZonesTag.cpp - server/swf/PlaceObject2Tag.cpp - server/swf/tag_loaders.cpp - server/vm/ASHandlers.cpp - server/vm/ActionExec.cpp - server/vm/action.cpp - libbase/curl_adapter.cpp - libbase/extension.cpp - libbase/log.cpp - libbase/network.cpp - - * 2007 copyright notices were inserted in: - backend/sound_handler_sdl.cpp - extensions/mysql/mysql_db.cpp - gui/gnash.cpp - plugin/klash/klash.cpp - plugin/win32/plugin.cpp - server/generic_character.cpp - libbase/curl_adapter.cpp - - * New 2006, 2007 Free Software Foundation copyrights applied (to - formerly public domain code): - server/font.cpp - server/text.cpp - server/parser/button_character_def.cpp - server/parser/edit_text_character_def.cpp - server/parser/morph2_character_def.cpp - server/parser/movie_def_impl.cpp - server/parser/shape_character_def.cpp - - * backend/sound_handler_sdl.cpp: Move stray FORMAT_VORBIS comment. - * gui/gui.cpp: Commented out "Resize request when no movie" error - that appears every time gnash is run. - * plugins/klash/klash.cpp: Translated pop-up menu items, about-box, - and updated copyright notice printed by --version and --help. - * server/array.cpp (as_array_object::index_requested): Avoid - c_str accessor when converting string to number. - * server/dlist.{h,cpp}: Change API of DisplayList::dump debug - function, so it can use log_xxx functions. - * server/sprite_instance.cpp (sprite_attach_movie): Comment out - log_msg about initializing properties. - * server/asobj/gen-asclass.{pl,sh}: Use log_unimpl in generated code. - Improve whitespace, and generate header line describing the file. - * server/asobj/TextSnapshot.cpp: Fix whitespace to test gen-asclass. - * text_character_def.cpp: Remove commented-out includes. - * FLVParser.{cpp,h}: Fix compiler warning (signed/unsigned). - - I'm sure that I've missed some messages that ought to get - translated (with _(...)). Those will be fixed over time. - All new messages should be created with _(...) so they can - be translated. - -2007-04-18 Sandro Santilli - - * testsuite/misc-ming.all/loadMovieTest.c: add - a couple of "buttons" to scribble on and clear - the loaded movies. Checks for this in the - test runner should follow. - * server/BitmapMovieInstance.h: - Override restart() to avoid cleaning up - the displaylist (since no frame tags will - recreate it). - -2007-04-18 Zou Lunkai - - * testsuite/misc-ming.all/Makefile.am: - activate testcast path_format_test.c - * testsuite/misc-ming.all/duplicate_movie_clip_test.c - new testcase for duplicateMovieClip(). - -2007-04-17 Sandro Santilli - - * testsuite/misc-ming.all/loadMovieTest.c: stop prepending - 'file://' to srcdir as it might be relative and file:// - should not be used with relative uris. - * testsuite/misc-ming.all/loadMovieTestRunner.cpp: - Don't cheat, run the test ! - -2004-04-17 Bastiaan Jacques - - * libbase/URL.cpp: Don't attempt to remove an item from the vector - of strings if the vector is empty. - * testsuite/libbase/URLTest.cpp: Add a test which shouldn't crash - anymore. - -2007-04-17 Udo Giacomozzi - - * backend/render_handler_agg_style.h: Added DEBUG_LIMIT_COLOR_ALPHA - -2007-04-17 Sandro Santilli - - * gui/sdl.cpp (key_event): update call to notify_key_event - to provide no modifiers always (bogus, but at least compiles). - * testsuite/actionscript.all/XML.as: add test - showing that removeNode doesn't recurse to - childrens. - * server/asobj/xmlnode.{cpp,h}: fix removeNode - to not delete all childrens. - -2007-04-17 Sandro Santilli - - * libbase/: tu_file.{cpp,h}, curl_adapter.cpp, zlib_adapter.cpp, - noseek_fd_adapter.cpp: - Add another callback for getting stream error. First pass at - documenting the tu_file interfaces (needs more work). - Updated implementations to provide the new error getter. - * server/asobj/xml.cpp (XML::load): check stream status after - call to xmlReadIO. The libxml2 function seems immune to - stream errors, but we can handle them and avoid parsing - anything if a stream error occurs (404 will be a stream error). - -2007-04-17 Udo Giacomozzi - - * backend/render_handler_agg: Replaced drawVideoFrame() to use AGG - functions, implemented nearest neighbor transformations, - implemented masked video playback - -2007-04-17 Zou Lunkai - - * testsuite/misc-ming.all/get_frame_number_test.c: - more tests. - * testsuite/misc-ming.all/path_format_test.c: - testcase to verify valid path format - -2007-04-16 Sandro Santilli - - * server/as_environment.cpp, server/as_value.cpp, - server/as_value.h, server/debugger.cpp, server/debugger.h, - server/edit_text_character.cpp, server/movie_root.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/timers.cpp, server/asobj/LoadVars.cpp, - server/asobj/Object.cpp, server/asobj/Sound.cpp, - server/asobj/Sound.h, server/asobj/Stage.cpp, - server/asobj/string.cpp, server/asobj/xml.cpp, - server/asobj/xmlnode.cpp, server/asobj/xmlsocket.cpp, - server/vm/ASHandlers.cpp, testsuite/server/GetterSetterTest.cpp: - Drop as_value::to_std_string() - update all callers. - Deprecated sprite_instance::get_variable. - Cost-corrected debugger interfaces. - -2007-04-16 Sandro Santilli - - * server/as_environment.{cpp,h}: add a parse_path method to - return an actual object when the given parameter is actually - a path. - * server/vm/ASHandlers.cpp (ActionCallFunction): set 'this' - pointer to the object containing the function if the function - name is a path. Fixes bug #18698. - * testsuite/actionscript.all/getvariable.as: success in - callFunction(path.to_function), a few more tests of that kind. - -2007-04-16 Sandro Santilli - - * testsuite/actionscript.all/getvariable.as: check 'this' pointer when - calling a function trough a path. - * testsuite/server/Makefile.am: add libgnashamf.la to GNASH libs. - * testsuite/generic-testrunner.sh, doc/C/internals.xml: - Add -f switch to specify the maximum number of frame advancements. - * testsuite/misc-ming.all/Makefile.am: update - get_frame_number_testrunner to advance at most 20 times. - * testsuite/misc-ming.all/get_frame_number_test.c: no more failures - expected. - * server/sprite_instance.cpp (get_frame_number): check frame labels - also when convertion to number gives a non-integer value. - * server/vm/ASHandlers.cpp (ActionGotoExpression): don't pretend - any path-looking string is necessarely a path, it can still be - a floating number or a frame label. - -2007-04-16 John Gilmore - - * libbase/log.h: Update documentation for log_* functions; rename - log_warning to log_unimpl (with temporary #define for a few days); - move gettext and _ definitions from gnash.h to log.h. - * libbase/log.cpp: Update log_* functions as above. - * server/gnash.h: Move gettext and _ to log.h. - -2007-04-16 Sandro Santilli - - * libbase/log.h: draft documentation for the log_* functions. - * testsuite/misc-ming.all/matrix_test.c: add test for skewX() matrix - (failures are just precision-related). - * server/debugger.{cpp,h}: (matchWatchPoint) const-corrected - * server/vm/ASHandlers.cpp: always pass an as_environment pointer - when converting as_value to a string, use to_string rather - then to_std_string() when a reference is enough; (ActionDuplicateClip): - properly cleanup the stack on error; (ActionGotoFrameExpression, - ActionCallFrame): properly handle unknown target. - * testsuite/misc-ming.all/Makefile.am: - Activated get_frame_number and frame_label_test. - -2007-04-16 Zou Lunkai - - * testsuite/misc-ming.all/frame_label_test.c: - a new testcase. - * testsuite/misc-ming.all/get_frame_number_test.c: - more tests. - * server/sprite_instance.cpp: - update call_frame_actions(); - * server/vm/ASHandlers.cpp: - properly process frame label in ActionCallFrame() and ActionGotoExpression(). - -2007-04-15 Sandro Santilli - - * server/edit_text_character.cpp (display): move text glyphs - so to be inside bounds defined for the textfield character. - Fixes bug #17954. This is likely not the cleanest way to - do this, see comments. - * server/matrix.{cpp,h}: provided setters for canonical - parameters. - * server/character.cpp: avoid direct access to matrix members. - * server/sprite_instance.cpp: avoid direct acces to matrix members. - * server/vm/ASHandlers.cpp: fix signedness compiler warnings. - * testsuite/server/MatrixTest.cpp: add tests for scale concatenation. - -2007-04-15 Bastiaan Jacques - - * libbase/container.{cpp,h}: Remove tu_string{,i}. - * server/as_value.{cpp,h}: Replace tu_string with std::string. - Remove wide string code that was both unused and inherently - broken. - * all over the place: Update to match changes in as_value.h. - Also, eliminate tu_string usage entirely. - -2007-04-15 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as, - testsuite/misc-ming.all/matrix_test.c, - testsuite/server/MatrixTest.cpp: more successes - after Eric patch ! A few more tests added in - matrix_test.c too, and more will be needed. - -2007-04-15 Eric Hughes - - * server/matrix.cpp (get_x_scale, get_y_scale): fixed implementations - to match the interpretation of matrix used in set_scale_rotation. - -2007-04-14 Sandro Santilli - - * server/character.cpp (height_getset, width_getset): round - width and heights to nearest integer twip. - * testsuite/swfdec/PASSING: height4.swf succeeds. - * testsuite/misc-ming.all: Makefile.am, matrix_test.c: new test - for statically-defined matrix interpretation (just started, needs - many more tests). - -2007-04-14 Sandro Santilli - - * server/sprite_instance.cpp (sprite_getBounds): round bounds - to twips. - * testsuite/actionscript.all/MovieClip.as: more successes. - * testsuite/actionscript.all/check.as: Revert bastiaan patch, - changing semantic of most tests. - -2007-04-14 Bastiaan Jacques - - * server/asobj/{Loadvars,NetStream,Sound,xmlnode}.cpp: Use - init_readonly_property for read-only properties. - * server/parser/movie_def_impl.{cpp,h}: Since we're not using - pthreads, there is no need to have our thread function - match a specfic pattern; use one that fits our design. - * testsuite/actionscript.all/check.as: Don't prepend # where - it is not needed to avoid choking gcc3's C preprocessor. - * testsuite/libamf.all/{test_number,test_string}.cpp, - testsuite/misc.ming.all/{intervalTestRunner, - loadMovieTestRunner}: Add needed includes for OpenBSD. - -2007-04-14 Sandro Santilli - - * server/sprite_instance.cpp (sprite_getBounds): round bounds - to twips. - * server/matrix.{h,cpp}: fix conceptual bug in Range2d transform - function. - * testsuite/misc-ming.all/displaylist_depths_test.c, - testsuite/actionscript.all/MovieClip.as: more successes. - -2007-04-12 Bastiaan Jacques - - * server/parser/movie_def_impl.{cpp,h}: Replace pthread usage - by boost threads. - * libbase/Makefile.am: No longer include Thread.{h,cpp} in the - build, because this pthread based class is unused and - deprecated. - * server/URLAccessManager.cpp: Comment out unused parameter. - * server/shape.cpp: Comment out dead code. - * server/textformat.cpp: make text_format DSOEXPORT, because - it is used in another DSO. - * all over the place: Remove all inclusions of pthread.h, - because we're no longer directly using pthreads. - * server/gnash.h, gui: version two of Antti Ajanki's GUI - patches, this time the whole thing. - * libbase/container.h: Remove the last pthread.h include. - -2007-04-12 Sandro Santilli - - * server/asobj/string.cpp (fromCharCode): revert bastiaan change - breaking existing tests. - * server/character.{cpp,h}: add set_x_scale and set_y_scale - methods to reduce code messing with matrices. Changed - {x,y}scale_getset and {width,height}_getset to use - these two new functions. - * testsuite/server/MatrixTest.cpp: add a few tests for - set_scale_rotation. I'm not sure the tests are correct - thought, I'd like to hear from Martin about that. - -2007-04-12 Sandro Santilli - - * server/: button_character_instance.{cpp,h}, - character.{cpp,h}, edit_text_character.{cpp,h}, - generic_character.h, sprite_instance.{cpp,h}: - get_width() and get_height() made non-virtual - methods using getBounds() internally. - Fixed _width, _height, _xscale, _yscale and _rotation - getter/setter to call valueOf when available. - -2007-04-12 Sandro Santilli - - * server/sprite_instance.cpp (duplicateMovieClip): - Duplicate also the drawable. - * testsuite/misc-ming.all/displaylist_depths_test.c: - More successes. - -2007-04-12 Sandro Santilli - - * server/matrix.{cpp,h}: add transform and transform_by_inverse - for Range2d type. - * server/character.h: add a getBounds() virutual method. - * server/: generic_character.h, button_character_instance.{cpp,h}, - edit_text_character.h, video_stream_instance.h: - Implement getBounds. - * server/character.cpp: fix width_getset and height_getset - to use the new getBounds interface. - * server/sprite_instance.{cpp,h}: implement getBounds; - implement MovieClip.getBounds. - * testsuite/actionscript.all/MovieClip.as: more tests for - getBounds, more successes. - * testsuite/swfdec/PASSING: height2.swf and height3.swf tests - now succeed. - -2007-04-12 Mathew Cucuzella - - * doc/C/internals.xml plugin.xml: Fix typos in documentation - (patch #5820). - -2007-04-11 Bastiaan Jacques - - * server/asobj/string.cpp: from_char_code: create a wide string - in case the user tries to create one. - * gui: Reverted Antti's patches, because they appear to be - lacking some changes in the gnash::key namespace. Fixes build. - -2007-04-11 Markus Gothe - - * server/sprite_instance.cpp: uint32 -> uint32_t. - -2007-04-11 Stephan Peijnik - - * gui/gtk.cpp: Changed Copyright years from 2005-2007 -> 2005, 2006, - 2007. Fixed 'acces'-typo -> 'access'. - -2007-04-11 Antti Ajanki - - * gui/gtk.cpp gui/gtksup.h gui/gui.cpp gui/gui.h - * gui/kde.cpp gui/kde_glue.h gui/kdesup.h: - moves the handling of GUI shortcuts (Crtl+R for restarting the - movie, Ctrl+Q for quiting, etc.) form GtkGui to base class Gui. - This way all GUIs can inherit the same code instead of having - to duplicate it. - adds keyboard handling for the KdeGui using this new interface. - Currently KdeGui has no support for keyboard input. - - The destructor of KdeGlue deletes _drawing_area object even though - it is not owned by KdeGlue. The _drawing_area is actually the - _qwidget object from KdeGui and is (correctly) deleted at the - destructor of - KdeGui. This double-free error causes a segfault when closing - Gnash. - -2007-04-11 Sandro Santilli - - * server/parser/shape_character_def.cpp (compute_bound): - skip anchor point of empty paths; include both control - and anchor point of any edge. - * server/dlist.h: add a visitAll() method for unconditional - full scan. - * server/sprite_instance.cpp: optimize WidthFinder, HeightFinder, - ScriptObjectFinder and CharacterExtractor to return void - (can be used by visitAll); (get_width, get_height): include - scan of DrawingAPI canvas. - * testsuite/actionscript.all/MovieClip.as, - testsuite/misc-ming.all/displaylist_depths_test.c: - few more successes. - -2007-04-11 Ann Barcomb - - * devtools/lib/Gnash/Distribution.pm: made it more - difficult to mistakenly use the wrong root distribution - directory. - -2007-04-11 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: add some tests - for _width,_height and getBounds (all failing!). - -2007-04-11 Udo Giacomozzi - - * server/cxform.h: include required inttypes.h - -2007-04-11 Sandro Santilli - - * server/: Makefile.am, gnash.h, types.cpp, cxform.{cpp,h}, - swf/PlaceObject2Tag.{cpp,h}, swf/tag_loaders.cpp: - Extract PlaceObject2Tag from tag_loaders - and cxform from gnash.h and types.cpp. - * server/character.{cpp,h}: add getUserDefinedEventHandler - function, change static event handlers function to allow - for multiple handlers for the same event. - * server/vm/ExecutableCode.h: add EventCode class. - * server/swf_event.h: drop the 'function' member, provide better - members protection. - * testsuite/actionscript.all/MovieClip.as: add tests for - user defined events not being proper properties. - * testsuite/actionscript.all/dejagnu_so_init.as: delete the - user-defined onEnterFrame when finished with it. - * server/execute_tag.h: add missing include. - * server/event_id.h: add setKeyCode method, for better protection. - * server/button_character_instance.cpp (on_button_event): look for - user-defined event handlers. - * server/dlist.{cpp,h}, server/impl.h, - server/parser/shape_character_def.h, - server/parser/button_character_def.h: - Update after addition of new files - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - Two unexpected successes, one unexpected failures (due to scrabling - of event handling). - * server/movie_root.{cpp,h}: add pushAction(ExecutableCode). - * server/sprite_instance.{cpp,h}: stop using gettersetter for event - handlers - * testsuite/misc-ming.all/displaylist_depths_test.c: test that - event handlers need to be duplicated too. - -2007-04-11 Ann Barcomb - - * testsuite/actionscript.all/gen-index-wiki.sh doc/C/sources.xml: - Changed all references of 'gnash.lulu.com' to 'www.gnashdev.org'. - -2007-04-11 Bastiaan Jacques - - * libbase/FLVParser.cpp: Append 8 "zero" bytes to the end of the frame - buffer to prevent decoders from going past the end of our frame buffer. - This adds NULL-termination, which is also expected by FFMPEG. - * server/asobj/NetStreamFfmpeg.cpp: Initialize certain members to safe - defaults so they will not be read in their uninitialised states. - * backend/render_handler_agg.cpp: Stop relying on bounds passed from - video definition for image buffer size (since we don't yet do proper - scaling, that is a bad idea); fixes bug #19511. Also, cut off the - video image if it extends beyond the width of our buffer. - * gui/fltk.cpp: Fix compilation by adding statics for GUI methods - that became nonstatic. Also fix some warnings. - * all over the place: Replace SDL integer type names by standard ones. - Thanks to Ann for writing a Perl script to do search-and-replace. - -2007-04-11 Sandro Santilli - - * server/character.h: add protected set_event_handlers(), turn - get_event_handelrs into a protected member. - * server/sprite_instance.cpp (duplicateMovieClip): simplified copying - of event handlers. - -2007-04-11 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.h: define newSWFAction - to compileSWFActionCode when using older Ming versions. - Now we can use them interxchangeably (the newer newSWFAction - has to be preferred though). - * testsuite/actionscript.all/MovieClip.as: add tests - showing that user-defined event handlers must be handled - differently then placeobject-defined ones. At least - for the sake of duplicating movieclips; add - MovieClip.duplicateMovieClip test. - * testsuite/misc-ming.all/displaylist_depths_test.c: - Add tests for duplicateMovieClip, _width and cloning - static event handlers. - -2007-04-11 Zou Lunkai - - * server/as_environment.cpp: - don't trim of the last "/" in parse_path(), fix parsing path in format "/:x". - * testsuite/actionscript.all/getvariable.as: - add tests - -2007-04-10 Sandro Santilli - - * server/sprite_instance.{cpp,h}: add duplicateMovieClip method - for use by MovieClip.duplicateMovieClip and ActionDuplicateClip. - * server/vm/ASHandlers.cpp (ActionDuplicateClip): use the new - sprite_instance::duplicateMovieClip method fixing a bogus assumption - about the parent to duplicate into. - * testsuite/actionscript.all/MovieClip.as: add small test for - ActionDuplicateClip. - -2007-04-10 Tomas Groth Christensen - - * server/asobj/NetStreamFfmpeg.h: Fixed a bug in the - AudioResampler, which made it only resample the first time. - * libbase/LoadThread.cpp: Handle the case where the cache is - filled and we have yet more data to load. - -2007-04-10 Markus Gothe - - * cygnal/http.cpp cygnal/stream.cpp: Added 'return true'-stubs, closes - bug #19561. - -2007-04-10 Sandro Santilli - - * server/swf/tag_loaders.cpp (readPlaceObject2): reduce - calls to IF_VERBOSE_PARSE. - -2007-04-10 Bastiaan Jacques - - * server/asobj/NetStreamFfmpeg.{cpp,h}: Don't call delete on a - new[]-allocated pointer. Don't try to copy a byte-aligned - data buffer into a "flat" one, and vice versa. Add a helper - class called AudioResampler, which will do audio resampling - if necessary. - * server/xmlsocket.cpp: Use SIZET_FMT. - * libbase/image.cpp: Document update(). - * libbase/image.h: Define a virtual destructor for the image_base - class so deriving classes will have their destructors called - when we decide to delete them. Fixes a _big_ memory leak. - -2007-04-10 Rob Savoye - - * configure.ac: Test the host to see if we're on a Darwin machine. - * backend/render_handler_ogl.cpp: Build with the native Darwin - port of OpenGL. - * cygnal/netstats.cpp: Include date.hpp. - * gui/Makefile.am: Add FFMPEG_LIBS for cross compiling. - * macros/incllist, incllist: Don't search for Darwin specific - paths, we're correctly using the -framework flag to GCC now. - * macros/opengl.m4: For Darwin, use the OpenGL and AGL frameworks - instead of include or linker paths. - * macros/x11.m4: Find all the right include paths. Look for - libXplugin too, which is Darwin specific, and in a weird place. - * server/StreamProvider.cpp: Remove bogus USE_CURL setting. - * server/StreamProvider.h: Include config.h. - * server/asobj/Makefile.am: Use FFMPEG_CFLAGS too. - * server/parser/Makefile.am: Use FFMPEG_CFLAGS too. - * server/vm/Makefile.am: Use FFMPEG_CFLAGS too. - * utilities/Makefile.am: Add FFMPEG_LIBS. - -2007-04-10 Sandro Santilli - - * libbase/log.h: allow switching off any VERBOSITY overhead - by using -DVERBOSE_WHAT=0. - * server/as_environment.{cpp,h}: add the concept - of a default target to support setTarget() calls - (null target spec meaning will to reset the target - to its original value). - * server/vm/ASHandlers.cpp (CommonSetTarget): - When target specification is an empty string - reset the target to its original value. - Use find_target rather then find_object to avoid - variables and character names clashes. - -2007-04-10 Sandro Santilli - - * server/parser/movie_def_impl.cpp (read_all_swf): at - end of parsing, check consistency of number of frames - advertised in header and number of frames read from the - stream. Update total frame count if needed and properly - wake up any frame reached condition waiters. - * server/movie_instance.cpp (advance) check return from - ensure_frame_loaded. - -2007-04-10 Sandro Santilli - - * server/parser/: movie_definition.h, movie_def_impl.{cpp,h}, - sprite_definition.{cpp,h}: stop using TU legacy hashes - and strings: use std::string instead of C strings, use - references instead of pointers in a few places. - * server/sprite_instance.{cpp,h}: use std::string instead - of C strings for frame labels, update other uses of changed - interfaces of parser. - * server/swf/tag_loaders.cpp: update uses of changed interfaces - of parser. - -2007-04-10 Sandro Santilli - - * server/parser/Makefile.am: add FFMPEG_CFLAGS to AM_CPPFLAGS - if using FFMPEG sound. - * testsuite/actionscript.all/getvariable.as: add test for - literal 'invalid:Number' variable name. - * libbase/log.cpp: stop adding CR to debugging output !! - * server/stream.cpp (open_tag): print tag offsets as start - of the tag (including header). This is to match offsets - as printed by Ming's listswf for comparision purposes. - * server/asobj/xmlnode.{h,cpp}: fix appendChild to properly - move the node; implement insertBefore and removeNode; fix - cloneNode to respect not copy childs if not deep; implement - parentNode gettersetter. - * testsuite/actionscript.all/XML.as: add tests for insertBefore, - appendNode, cloneNode, removeNode and parentNode. - * macros/ffmpeg.m4: fix --with-ffmpeg-incl to look for - avcodec.h under the 'ffmpeg' subdir (this is assumed - to exist in Gnash source code). - -2007-04-10 Zou Lunkai - - * server/parser/shape_character_def.cpp: - fix reading fill_styles, actually it was a regression. - -2007-04-09 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: activated - get_frame_number test. - -2007-04-08 Rob Savoye - - * macros/agg.m4, boost.m4, curl.m4, ffmpeg.m4, firefox.m4, - glib.m4, gnashpkgtool.m4, gtk2.m4, gtkglext.m4, jpeg.m4, kde.m4, - libXML.m4, ming.m4, mysql.m4, opengl.m4, pango.m4, pthreads.m4, - sdl.m4, x11.m4: Use ${shlibext} instead of .so to be more - portable. - * macros/ffmpeg.m4: Look for avutil after avformat, as there is a - dependancy on the order on some systems. - * macros/x11.m4: Reverse the logic, we *do* want to look for the X11 - librsaries if the X11 headers are found earlier. - * testsuite/samples/Makefile.am: Add GotoAndPlayTestRunner to CLEANFILES. - * configure.ac: Improve openbsd host test. Test for Darwin libtool - vs ar. Reset AR if it's the Darwin libtool. Set FL_MUTEX to 0 if - lf_flmutext_register isn't found. - * cygnal/cygnal.cpp: Include libintl.h. - * libbase/curl_adapter.cpp: Use USE_CURL consistantly instead of - HAVE_CURL and HAVE_CURL_CURL. - * libbase/noseek_fd_adapter.cpp: Remove HAVE_STDIN_CURL_H test. - * libbase/rc.cpp: Include cctype. - * macros/incllist, libslist: Add Darwin Developer SDK directories. - -2007-04-08 Bastiaan Jacques - - * server/asobj/NetStreamFfmpeg{.cpp, .h}: Only use a single - thread (rather than two extra threads) for decoding. Plug a - memory leak (ByteIOCxt.buffer). Modularise some more code. - -2007-04-08 Ann Barcomb - - * devtools/testsuite/c_casts.t: added this test at Bastiaan's - request. - * devtools/lib/Gnash/Utils.pm: fix bug which caused wrong line - numbers to be reported. - -2007-04-08 Zou Lunkai - - * testsuite/misc-ming.all/get_frame_number_test.c: - new testcase for get_frame_number() and goto_frame(). - * server/sprite_instance.{cpp,h} - update implementation of get_frame_number() and goto_frame(), - fix the above the testcase. - -2007-04-08 Sandro Santilli - - * testsuite/actionscript.all/XML.as: add tests for XML.attributes - -2007-04-07 Sandro Santilli - - * server/asobj/xml.cpp (extractNode, parseDoc): properly setup - the node parent. - * server/asobj/xmlnode.{cpp,h}: keep parent by intrusive_ptr. - * testsuite/actionscript.all/XML.as: add tests for - nextSibling and previousSibling - -2007-04-07 Tomas Groth Christensen - - * server/asobj/NetStream{Ffmpeg,Gst}.cpp: Use the m_imageframe's - size to determine the size of the returned frame. - -2007-04-07 Tomas Groth Christensen - - * packaging/redhat/gnash.spec: Use --enable-media instead of - --enable-sound. - * server/video_stream_instance.cpp: Delete the image once displayed. - * server/asobj/NetStream.h: Removed the obsolete getter/setters - for onStatus. - * server/asobj/NetStreamFfmpeg.{h,cpp}: Removed the obsolete - getter/setters for onStatus. Made get_video() threadsafe. - Removed \n from log/error messages. - * server/asobj/NetStreamGst.{cpp,h}: Removed the obsolete - getter/setters for onStatus. Made get_video() threadsafe. - Removed \n from log/error messages. - * server/asobj/NetConnection.cpp: Removed \n from log/error messages. - -2007-04-07 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionCallMethod): stop warning - about ActionCallMethod arg being not a function (seems - to be common behaviour for invoking constructors). - -2007-04-07 Markus Gothe - - * backend/render_handler_ogl.cpp: Removed mipsmaps code, due to - major clean up and rewrite (since it's not used). - -2007-04-07 Bastiaan Jacques - - * server/NetStreamFfmpeg{.cpp, .h}: Fix a deadlock on non-glibc - platforms by waiting for a thread rather than hoping for a - certain execution order (which is fundamentally incompatible with - threads). Cleanup: modularise some code and use string comparison - rather than char-by-char comparison. - -2007-04-06 Sandro Santilli - - * server/character.cpp: stop notifying unload event queuing - * server/asobj/NetStreamGst.cpp: warn only once about fluendos - plugin being too old. - -2007-04-06 Sandro Santilli - - * server/sprite_instance.cpp (ScriptObjectFinder): - use character depth to tell wheter objects have to - be considered "script" objects or not. Fixes the - all.swf regression and doesn't change our testsuite - results. - * testsuite/actionscript.all/MovieClip.as: test both - ActionRemoveClip and MovieClip.removeMovieClip; also - tests that there's no such think as a _global.removeMovieClip. - * testsuite/misc-ming.all/displaylist_depths_test.c: - Add a bunch of new tests about removing from protected - depth ranges and using swapDepth to move between ranges. - * server/sprite_instance.{h,cpp}: Add a removeMovieClip - public method for common use by ActionRemoveClip tag, - global removeMovieClip function and MovieClip.removeMovieClip - method; fix swapDepths to accept a depth as argument; - fix removeMovieClip to check for allowed depth bounds. - * server/vm/ASHandlers.cpp (ActionRemoveClip): use the new - sprite_instance::removeMovieClip method. - -2007-04-06 Sandro Santilli - - * server/: character.h, dlist.{cpp,h}, sprite_instance.{cpp,h}: - Character instance depth is a _signed_ value ! - Add a character::staticDepthOffset constant to use for converting - displaylist tag defined depths to negative values. - * server/swf/tag_loaders.cpp: convert displaylist tag defined depths - to negative values by adding character::staticDepthOffset - * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, - testsuite/samples/clip_as_button2-TestRunner.cpp, - testsuite/movies.all/gravity_embedded-TestRunner.cpp: - loop_test-Runner.cpp, simple_loop_testrunner.cpp: fix the - test runners to take staticDepthOffset into account. - * testsuite/actionscript.all/MovieClip.as: getNextHighestDepth() - test now succeeds. - - -2007-04-06 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test.c: - Add a new interesting (failing) test showing that static characters - and dynamic characters use a completely different range - of depths !! - * server/sprite_instance.cpp (sprite_get_depth): only convert - depths to negative values for static clips. - * testsuite/actionscript.all/MovieClip.as: add a couple of - tests for getDepth() invoked against dynamic and static - clips. - -2007-04-05 John Gilmore - - Internationalize gnash. Phase 1: use gettextize, update config files. - - * macros/{codeset.m4, gettext.m4, glibc2.m4, glibc21.m4, - iconv.m4, intdiv0.m4, intmax.m4, inttypes.m4, inttypes_h.m4, - inttypes-pri.m4, isc-posix.m4, lcmessage.m4, lib-ld.m4, - lib-link.m4, lib-prefix.m4, longdouble.m4, longlong.m4, nls.m4, - po.m4, printf-posix.m4, progtest.m4, signed.m4, size_max.m4, - stdint_h.m4, uintmax_t.m4, ulonglong.m4, wchar_t.m4, wint_t.m4, - xsize.m4}: New files, from gettext-0.14.6. - * po: New directory for translated messages (Portable Object files) - * po/{Makefile.in.in, boldquot.sed, en@boldquot.header, - en@quot.header, insert-header.sin, quot.sed, - remove-potcdate.sin, Rules-quot}: New files, from gettext-0.14.6. - * ABOUT-NLS, config.rpath: New files, from gettext-0.14.6. - * libbase/gettext.h: New file, from gettext-0.14.6. - * server/gnash.h: Include "gettext.h" for NLS. - * po/Makevars: New file: settings for gnash's message translation. - * po/POTFILES.in: New file: source files with translatable strings. - * po/LINGUAS: New file: languages we have translations for. - * Makefile.am (EXTRA_DIST): Add config.rpath. - (STD_DIRS): Add po. - * configure.ac (AC_OUTPUT): Add po/Makefile.in. - (AM_GNU_GETTEXT): Add, to configure gettext support. - * cygnal/Makefile.am (localedir, INCLUDES), - gui/Makefile.am (localedir, INCLUDES), - utilities/Makefile.am (localedir, INCLUDES): Define LOCALEDIR. - * cygnal/cygnal.cpp (main), gui/gnash.cpp (main), - utilities/{dumpshm,parser,processor}.cpp (main): - Set locale and initialize gettext upon startup. - * utilities/{dumpshm,parser,processor}.cpp: Flag strings with _ - for translation, for testing. - * po/gnash.pot: Message string catalog for testing. - * po/es.po: Spanish-language message string catalog for testing. - -2007-04-05 Zou Lunkai - - * server/asobj/Date.cpp - fix passing parameter to utctime(); - -2007-04-05 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionRemoveClip): properly parse - the given argument rather then assuming that it refers to - a child of the current target movie. (fixes the softreference - tests). - * testsuite/actionscript.all/MovieClip.as: add softreference - test (MovieClip values kept by absolute _target). - * testsuite/actionscript.all/MovieClip.as: fix couple of stack - underruns. - * server/sprite_instance.{cpp,h} (get_frame_number): - Changed signature to report invalid frame specifications; - simplified and clened implementation of Zou Lunkai. - * server/vm/ASHandlers.cpp: updated calls to get_frame_number. - * testsuite/swfdec/PASSING: gotoframe.swf now passes. - -2007-04-05 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: enabled run of - reverse_execute_PlaceObject2_test2runner and - action_execution_order_test6runner. - * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): - property initialize the xpassed and xfailed counters. - -2007-04-05 Zou Lunkai - - * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c - add more tests of MovieClip events - -2007-04-05 Sandro Santilli - - * server/timers.{cpp,h}: drop the as_environment member - for Timers as we can't ensure it will be kept alive. - We'll use a newly created environment for calling - the timer function. - * server/asobj/: LoadVars.cpp, xmlsocket.cpp: update use of - timers. - * server/as_environment.cpp (find_object_dotsyntax): - more verbose debugging for cases in which a dot-syntax - path contains non-object members. - -2007-04-05 Zou Lunkai - - * testsuite/misc-ming.all: reverse_execute_PlaceObject2_test2.c - another testcase for reverse execution of frame tags. - * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test1.c - add notes that reverse execution is likely to be deprecated. - * testsuite/misc-ming.all/action_execution_order_test6.c - do checks and stop movie at the last frame. - -2007-04-04 Markus Gothe - - * server/asobj/TextFormat.{cpp,h} - Added stub for class TextFormat. - -2007-04-04 Bastiaan Jacques - - * gui/gui.cpp, backend/render_handler_agg_style.h, - server/{swf/DefineFontAlignZonesTag.cpp, textformat.cpp}: - Comment out unused variables. - * libamf/amf.cpp: Remove unneeded casts. Replace some - C-style casts by C++-style ones. Don't modify const type; - instead, use a temporary (el->data). - * server/{movie_root.cpp, shm.cpp, sprite_instance.cpp, - vm/ActionExec.cpp, asobj/xmlsocket.cpp}: More - use of SIZET_FMT. - * server/{Boolean.cpp, Date.cpp}: Don't assign string - literals to character pointers, which will soon be - deprecated by GCC. Instead, use array declarations. - * server/asobj/{NetStreamFfmpeg.cpp, SoundFfmpeg.cpp}: - Don't compare unsigned with signed ints. - * server/asobj/xml.cpp: Comment out include that is used - by commented out code. - * server/parser/movie_def_impl.h: Fix typo. - -2007-04-04 Sandro Santilli - - * server/asobj/xml.cpp: fix parsing of text nodes - * server/asobj/xmlnode.{cpp,h}: use std::string, not - C strings for name and value. Add an enum for NodeType. - * testsuite/actionscript.all/XML.as: more tests for - the memory-parsed XML. - -2007-04-04 Sandro Santilli - - * server/asobj/xmlnode.cpp: don't attacy XMLNode interface - to XMLNode instances. - * server/asobj/xml.{h,cpp}: override get_member and set_member - to handled non-proper properties 'loaded' and 'status' - * testsuite/actionscript.all/XMLNode.as: less failures - * testsuite/actionscript.all/XML.as: more tests ! - -2007-04-04 Sandro Santilli - - * server/array.{cpp,h}: const-corrected push and unshift - methods. - * server/asobj/xmlnode.cpp: implement childNodes getter/setter. - * server/asobj/xml.cpp: cleanups. - -2007-04-04 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: enable - reverse_execute_PlaceObject2_test1runner in 'check' rule. - * server/array.cpp: use a getter/setter for the 'length' property. - * testsuite/actionscript.all/array.as: another success. - -2007-04-04 Zou Lunkai - - * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test1.c - ensure that total() is called at the last step. - -2007-04-04 Sandro Santilli - - * testsuite/actionscript.all/array.as: more tests added. - * server/asobj/xml.cpp: remove debugging lines, return undefined - from getBytesLoaded,getBytesTotal if the XML was not loaded. - * server/asobj/xmlnode.cpp: remove debugging lines. - * testsuite/actionscript.all/XML.as: all current tests pass now - (but we need more tests); - -2007-04-04 Sandro Santilli - - * server/asobj/xmlnode.cpp (stringify): stop feeding NULL - pointers to output operators ! - * server/asobj/xml.cpp (xml_new): support a string as first - argument to constructor. - -2007-04-04 Sandro Santilli - - * server/asobj/xml.{cpp,h}: tu_string => std::string - * server/asobj/xmlsocket.cpp: provide a builtin onData - event handler to XMLSocket instances. - * testsuite/actionscript.all/XMLSocket.as: more successes. - * server/URLAccessManager.{cpp,h}: add allowHost interface. - * server/asobj/xmlsocket.cpp (connect): check host security. - -2007-04-04 Zou Lunkai - - * server/sprite_instance.cpp - first attempt to deprecate reverse execution of frame tags - -2007-04-03 Sandro Santilli - - * server/edit_text_character.cpp (format_text): handle - TAB characters. - * testsuite/misc-ming.all/ming_utils.c: embed a glyph for - the TAB character in our font. - * server/vm/ASHandlers.cpp: extend tag is not in testing - stage anymore, be more explicit about targetPath() arg - not casting to an object. - * server/movie_root.{cpp,h}: limit the number of interval - timers to 255. - * server/asobj/xmlsocket.{cpp,h}: more cleanups and fix for - polling from the socket. - * libbase/network.{cpp,h}: do not allow assignment, cleanup - accessor functions to return by const refs. - * server/asobj/xmlsocket.{cpp,h}: do not override inherited - members and methods. Enable some more debugging and added - more assertions. - -2007-04-03 Sandro Santilli - - * testsuite/actionscript.all/XMLSocket.as: some more - testing. - * server/sprite_instance.{cpp,h}: split the - DisplayList reset code from execute_frame_tags() - to a resetDisplayList() method. - -2007-04-03 Sandro Santilli - - * server/asobj/xmlattrs.{cpp,h}: use std::string - for name and value, access trough members, initialize - trought contructor. - * server/asobj/xmlnode.{cpp,h}: keep XMLAttr by value, - not by pointer; implement the 'attributes' getter. - * server/asobj/xml.cpp: update XMLAttr uses. - * testsuite/actionscript.all/XML.as: more tests, less failures. - * testsuite/media/gnash.xml: add a tag attribute. - -2007-04-03 Sandro Santilli - - * server/asobj/xml.{cpp,h}: have XML be a subclass - of XMLNode. Many cleanups. - * server/asobj/xmlnode.{cpp,h}: many cleanups. - * testsuite/actionscript.all/XML.as: add more tests. - * testsuite/actionscript.all/XMLNode.as: fix some bogus - existing tests. - -2007-04-03 Sandro Santilli - - * server/parser/movie_def_impl.h (add_init_action): fix typo. - * testsuite/actionscript.all/XML.as: a few more tests. - * testsuite/media/gnash.xml: new data file for testing. - * server/asobj/xml.{cpp,h}: allow reading XML from - a network stream (untested). - -2007-04-03 Markus Gothe - - * server/as_value.h: Include for NAN. - * backend/render_ogl.cpp: Fixed memory leak. - -2007-04-02 Sandro Santilli - - * configure.ac: fix a couple of typos. - * server/button_character_instance.cpp (on_event): queue - events, don't execute immediately - * server/vm/ExecutableCode.h (GlobalCode): take a character - as target. - * server/movie_root.{cpp,h} (pushAction): take a character - as target. - * testsuite/samples/gotoFrameOnKeyEvent-TestRunner.cpp: - unexpected success. - -2007-04-02 Tomas Groth Christensen - - * Makefile.am, configure.ac, gui/Makefile.am, gui/gnash.cpp, gui/gtk.cpp: - Changed the "--enable-sound" option to "--enable-media", and removed - the "--with-mp3-decoder" option. - * server/asobj/NetStreamFfmpeg.cpp: Replaced a few assert(0) with - warnings. - * server/asobj/NetStreamGst.cpp: Only create sound objects if a - soundhandler is present. - -2007-04-02 Sandro Santilli - - * server/dlist.{cpp,h} (place_character): call unload() - on characters that are replaced. - -2007-04-02 Sandro Santilli - - * gui/sdl.cpp (key_event): update call to notify_key_event. - * server/vm/ExecutableCode.h: change FunctionCode to take - a generic character as target, not necessarely a sprite. - * server/movie_root.{cpp,h}: update pushAction() for events - to take a generic character, add a notify_key_event method - for consistency. - * server/asobj/Key.cpp: notify_key_event moved to movie_root. - * server/gnash.h: remove notify_key_event prototype, it's now - a movie_root method. - * gui/gtk.cpp: use gui::notify_key_event for key events. - * gui/gui.{cpp,h}: add notify_key_event method. - * server/character.{cpp,h}: move queueActionHandler from - sprite_instance here. - * server/sprite_instance.{cpp,h}: cleanups. - * testsuite/MovieTester.cpp: update call to notify_key_event. - -2007-04-02 Sandro Santilli - - * testsuite/samples/: Makefile.am, gotoFrameOnKeyEvent-TestRunner.cpp: - First stub at an automated test runner for gotoFrameOnKeyEvent. - TODO item in comments. - -2007-04-02 Bastiaan Jacques - - * server/as_value{.cpp, .h}: Declare NAN in the header - (and fix a typo in the declaration. Use that definition - instead of by using 0.0 / 0.0 to avoid compiler warnings. - * server/asobj/{Date.cpp, Math.cpp}: Don't redefine NAN. - -2007-04-02 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.{c,h}: fix compiler warnings. - * testsuite/samples/: gotoFrameOnKeyEvent.swf, README: - Add new tests used to debug keypress listeners and - goto_frame. Provided by Dongdong - * server/movie_root.cpp (notify_keypress_listeners): - Skip event execution for unloaded characters - (they will be removed at next ::advance call) - -2007-04-02 Sandro Santilli - - * server/dlist.{cpp,h} (remove_display_object): call - unload on removed character. - * server/: character.h, sprite_instance.{cpp,h}: - Moved the isUnloaded()/_unloaded logic from sprite_instance - up to character. - * server/movie_root.{cpp,h}: remove unloaded characters - from the keypress_listeners set (run at ::advance time). - -2007-04-02 Sandro Santilli - - * server/sprite_instance.cpp (goto_frame): remember to call - set_invalidated() before running display list tags! - (UdoG: is this correct?) - -2007-04-02 Zou Lunkai - - * server/sprite_instance.cpp, sprite_instance.h - add is_reverse_execution() to check if is reverse executing frame tags; - * server/tag_loaders.cpp - set "replace_if_depth_is_occupied" to true when reverse executing PlaceObject2. - fixed error messages with playing bombgame.swf, improved implementation of - reverse execution. - - -2007-04-01 Sandro Santilli - - * server/swf/tag_loaders.cpp (define_bits_jpeg_loader, - define_bits_jpeg2_loader, define_bits_lossless_2_loader): - Handle duplicate character id. "Fixes" bug #19474. - -2007-03-31 Sandro Santilli - - * gui/Makefile.am, testsuite/server/Makefile.am, - utilities/Makefile.am: add libgnashparser dependency. - Fixes bug #19450. - -2007-03-31 Bastiaan Jacques - - * configure.ac, gui/gtk_glue_agg.cpp: Add configurable support - for 16-bit GTK, for use on the OLPC. Simply specifying - --with-pixelformat=rgb565 will activate this code. - -2007-03-30 Tomas Groth Christensen - - * server/asobj/NetStream{Ffmpeg,Gst}.cpp: Fixed the callback - to the onStatus eventhandler. - -2007-03-30 Sandro Santilli - - * server/asobj/Mouse.cpp: cleanups. - * libbase/network.cpp: minor cleanups in debugging lines. - * server/asobj/xmlsocket.{cpp,h}: first pass at cleanup, - fix XMLSocket.connect() to return the correct value. - * server/asobj/Global.cpp: initialize XMLSocket with the - most current interface. - * testsuite/actionscript.all/: Makefile.am, XMLSocket.as: - initial test for XMLSocket (methods availability). - -2007-03-30 Tomas Groth Christensen - - * libbase/FLVParser.cpp: Fixed a few bugs. - * libbase/LoadThread.{h,cpp}: Changed to use a cache so we avoid - blocking to often when reading and loading at the same time. - * server/asobj/NetConnection.{h,cpp}: Added loadCompleted(). - * server/asobj/NetStream.{h,cpp}: Added setEnvironment(), and - removed the getter/setter for onStatus. - * server/asobj/NetStreamFfmpeg.{h,cpp}: Fixed a big mem-leak. Added - setEnvironment(), and added support for status/error messages. - * server/asobj/NetStreamGst.{h,cpp}: Added setEnvironment(), and - added support for status/error messages. - * testsuite/actionscript.all/NetStream.as: Corrected expected - results for onStatus, and added some for onCuePoint and onMetaData. - -2007-03-30 Sandro Santilli - - * server/dlist.cpp (clear_except): don't copy display list (small - typo) - * server/sprite_instance.cpp (ctor): initialize the _unloaded member. - * testsuite/actionscript.all/NetStream.as: check that onStatus and - onSeek are not special builtin-properties. - * server/timers.{cpp,h}: add support for passing arguments to - setInterval() callbacks. - * testsuite/misc-ming.all/: intervalTest.as, intervalTestRunner.cpp: - All tests pass now. - -2007-03-30 Sandro Santilli - - * testsuite/misc-ming.all/: intervalTest.as, intervalTestRunner.cpp: - Add test for setInterval() calls with additinal args (Gnash fails). - * server/asobj/xmlsocket.cpp: don't attempt to send - data when not connected ! - * testsuite/misc-ming.all/Makefile.am: prepared for - activation of reverse_execute_PlaceObject2_test1runner - (not activated as for Zou request). - -2007-03-30 Zou Lunkai - - * testsuite/misc-ming.all: reverse_execute_PlaceObject2_test1.c - add a new testcase for reverse execution of frame tags. The next - step is to improve it or deprecate it. - -2007-03-30 Sandro Santilli - - * testsuite/actionscript.all/: check.as, targetPath.as: - Don't use asm { targetPath } when not supported by - detected Ming. - -2007-03-30 Sandro Santilli - - * server/as_value.cpp (to_sprite): don't attempt to resolve - the path to a sprite if this value is not a MOVIECLIP type. - * server/swf.h: document ACTION_TARGETPATH - * server/sprite_instance.{cpp,h}: implement getTarget(), have - get_text_value() call getTarget() internally. - * server/vm/ASHandlers.cpp: Implement ActionTargetPath. - * testsuite/actionscript.all/: Makefile.am, targetPath.as: - Test ACTION_TARGETPATH (0x45). - -2007-03-29 Rob Savoye - - * configure.ac: Add --disable-menus since an embedded systems - probably won't want them. - * gui/gtk.cpp: Disable most of the menu items if they're - disabled. - * packaging/redhat/gnash.spec: Build with --disable-menus for the - OLPC. - - * doc/C/sources.xml: Fix mismatched sect tags. - * doc/C/asspec: new directory to hold the ActionScript - specification files, so as to not clutter the top level doc - directory. - * doc/C/accessibility.xml, array.xml, boolean.xml, button.xml, - camera.xml, color.xml, contextmenu.xml, customactions.xml, date.xml, - error.xml, function.xml, key.xml, loadvars.xml, localconnection.xml, - math.xml, microphone.xml, mouse.xml, movieclip.xml, - moviecliploader.xml netconnection.xml, netstream.xml, number.xml, - selection.xml, sharedobject.xml, sound.xml, stage.xml, string.xml, - system.xml, textfield.xml, textformat.xml, textsnapshot.xml, video.xml, - xml.xml, xmlnode.xml, xmlsocket.xml: Moved to asspec directory. - * doc/asspec/asspec.xml: New top level document for free - ActionScript specification. - * doc/C/gnash.xml: Remove AS Spec entities, they're now in - asspec.xml. Use gnash-dev instead of gnash for questions. - -2007-03-29 Markus Gothe - - gui/gtk.cpp: Indent the licensing notes. - -2007-03-29 Deanna Phillips - - * server/vm/fn_call.h: include the stuff needed - for proper intrusive_ptr composition. - -2007-03-29 Sandro Santilli - - * server/as_object.{cpp,h} add an optional argument - to init_property and init_readonly_proprety for setting - explicit flags, use same defaults as for init_member. - * server/vm/ASHandlers.cpp (ActionEnum, ActionEnum2): - do not convert values to objects always. - * testsuite/misc-mtasc.all/: Makefile.am, enum.as: - Add test for ActionEnum2. - * testsuite/server/Makefile.am: more linking fixes. - -2007-03-29 Sandro Santilli - - * server/asobj/SharedObject.cpp: better stubs (nothing more). - -2007-03-29 Sandro Santilli - - * server/movie_root.{cpp,h}: support for - setting scaleMode (allow scaling) and - notifying Stage listeners when disabled. - * server/asobj/Stage.{cpp,h}: rework layout, - implement addListener, removeListener and - scaleMode. - * testsuite/actionscript.all/Stage.as: add a few - tests for Stage. The notification-based tests - are not automatically run yet (will need a MovieTester - test runner, with new interfaces to it for resize request) - * utilities/Makefile.am: add libgnashasobjs, now needed. - -2007-03-29 Ann Barcomb - - * devtools/testsuite/tabs.t: added check for hard tabs in - C++ source. - -2007-03-29 Sandro Santilli - - * server/sprite_instance.{h,cpp} (goto_frame): push target - actions to the global list; (unload): set the _unloaded - flag; (m_goto_action_list): deprecated ! - * testsuite/misc-ming.all/consecutive_goto_frame_test.c: - don't expect a failure. - * testsuite/swfdec/PASSING: goto3.swf succeeds. - -2007-03-29 Sandro Santilli - - * server/asobj/string.cpp (string_split): fix compiler wanring - and handle SWF5 case. - * testsuite/actionscript.all/String.as: expect less failures. - * server/sprite_instance.{h,cpp} add queueActions() method. - * server/swf/tag_loaders.cpp: fix compiler warnings. - * testsuite/server/Makefile.am: link in libgnashparser for the - tests that turn out to need it since rob changed it from - noinst_LTLIBRARY to lib_LTLIBRARY. - * configure.ac: provide MING_SUPPORTS_INIT_ACTIONS conditional. - * testsuite/misc-ming.all/ming_utils.{h,c}: provide - MING_SUPPORTS_INIT_ACTIONS macro and use it to conditinally - buil the init acion interface. - * testsuite/misc-ming.all/Makefile.am: provide MING_VERSION_CODE - macro, enable build of init_action_test when - MING_SUPPORTS_INIT_ACTIONS. - -2007-03-28 Zou Lunkai - - * testsuite/misc-ming.all: init_action_test.c - add a new testcase for DoInitAction. - * testsuite/misc-ming.all/ming_utils.c, ming_utils.h - add a interface for adding init actions for sprites. - -2007-03-28 Rob Savoye - - * autogen.sh: Make config-h.in atfer running libtoolize so - Darwin builds stop failing. - * configure.ac: Remove dash after cvs, it confuses rpmbuild. - * backend/Makefile.am: List AGG headers in noinst_HEADERS. - * macros/agg.m4: Set ac_cv_path_agg_incl based on agg_include_dir - to save a few cycles. - * macros/pthreads.m4: Don't set any flags for pthreads on - Darwin. Test for the .dylib suffix too. - * packaging/redhat/gnash.spec: Merge in changes from Redhat. - * server/Makefile.am: Add BOOST and pthreads libs for cross - builds. - * server/asobj/Makefile.am: Make an installable library for - dynamically linking on Darwin. - * server/parser/Makefile.am: Make an installable library for - dynamically linking on Darwin. - * testsuite/misc-ming.all/Makefile.am: Add intervalTest.as to - EXTRA_DIST so distcheck passes. - * testsuite/misc-mtasc.all/Makefile.am: Add all .as files to - EXTRA_DIST so distcheck passes. Add to CLEANFILES so distcheck - passes. - * testsuite/samples/Makefile.am: Add to CLEANFILES so distcheck - passes. - * testsuite/libbase/Makefile.am: Link in libgnashvm too. - * utilities/Makefile.am: Add CURLS_LIBS. Add sufix rule for for - build swf from as files. - -2007-03-28 Tomas Groth Christensen - - * server/asobj/NetStreamGst.cpp: Make sure pipeline exists before - accessing it, and the same goes for the FLV parser. - -2007-03-28 Sandro Santilli - - * server/sprite_instance.cpp (add_textfield): return void. - * testsuite/actionscript.all/MovieClip.as: add tests for - createTextField(). - -2007-03-28 Sandro Santilli - - * server/sprite_instance.cpp (add_textfield): use edit_text_character, - not simple text_character (the latter has all the ActionScript - methods attached to it). - * server/edit_text_character.{cpp,h}: keep definition - by intrusive_ptr. - * server/edit_text_character.{cpp,h}: add stubs - for all known TextField methods. - * server/asobj/Global.cpp: initialize the global - TextField class - * testsuite/actionscript.all/: Makefile.am, TextField.as: - New testcase for TextField class (just checks availability - of stuff). - -2007-03-28 Sandro Santilli - - * libbase/GnashException.h: Add ActionLimitException - * server/as_environment.{cpp,h}: provide callStackDepth() - and cleanCallstack() methods, throw an ActionLimitException - when reaching 255 call stack depth. - * server/vm/ActionExec.{cpp,h}: catch ActionLimitException - by aborting execution of current code. - * server/vm/ASHandlers.cpp (ActionCallFunction): pass the - environment when converting function name to string. - -2007-03-28 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp: Don't calculate the numbers of - buffers to feed to the pipeline, since it makes loaded sound - streams stop to early. - * libbase/FLVParser.{h,cpp}: Made it thread-safe. Fixed a lot of - bugs. Added support for extacting size of h.263 video. - * server/asobj/NetConnection.cpp: Set _loader to NULL after deletion. - * server/asobj/NetStreamFfmpeg.cpp: Corrected some error messages and - error handling. - * server/asobj/NetStreamGst.{h,cpp}: Use our internal FLVParser - when FLV is being played. - -2007-03-28 Sandro Santilli - - * server/array.{cpp,h}: implement Array.splice(), - improve toString to actually call the user-provided - toString on all elements. - * testsuite/actionscript.all/array.as: added testcases - for Array.splice(). - * testsuite/misc-ming.all/Dejagnu.c: use a larger window for traces. - * testsuite/misc-ming.all/: FlashVarsTest.as, FlashVarsTest.html, - Makefile.am: added a test for querystring and flashparams parsing. - * server/sprite_instance.cpp (loadMovie): - Parse the querystring given in the URL. - -2007-03-28 Bastiaan Jacques - - * server/as_value.h: Add as_value::to_number(), which will - cast the result of to_number() to the requested number type. - * server/as_object{.h, .cpp}: Rename init_property(name, getter) - to init_readonly_property(name, getter). - * server/{button_character_instance.cpp, sprite_instance.cpp): - Update callers to use init_readonly_property. - * server/asobj/string.cpp: Reimplement the ActionScript String - class using std::string. Also change the style to Rob's - preffered one. - * testsuite/actionscript.all/String.as: Add a few more - testcases. - -2007-03-28 Sandro Santilli - - * server/sprite_instance.{cpp,h}: add setVariables() - method taking a std::map. - * gui/Player.cpp (run): parse URL query string - after parsing FlashVars, for proper handling precedence. - NOTE that this won't work when load starts from an internal - call (loadMovie, getUrl with target etc.) - -2007-03-27 Markus Gothe - - * backend/render_handler_ogl.cpp: Added anti-aliasing for polygons - (i.e. fonts and such). - -2007-03-27 Sandro Santilli - - * server/sprite_instance.{cpp,h}: add isUnloaded() - method to properly skip execution of queued - actions for unloaded sprites. - * server/vm/: Makefile.am, ExecutableCode.h: - Add definition of a generic Executable Code - for use as element of the global Action Queue. - * server/movie_root.{cpp,h}: add support for - a global Action Queue. - -2007-03-27 Bastiaan Jacques - - * server/as_object.h: Print the passed pointer type - rather than the intrusive_ptr in which it is contained. - -2007-03-27 Sandro Santilli - - * testsuite/actionscript.all/Date.as: - Commented out a test that also fails with - the proprietary player (seems related to - DST, started failing when it entered in effect). - Anyone willing to fix the test is welcome. - * server/sprite_instance.cpp (execute_frame_tags): - Execute init actions immediately. This might change - when we get actions execution order definitively right - but it's useful to commit now has a facility for keep - tracking youtube missing bits. - -2007-03-25 Martin Guy - - * configure.ac: reformat all "package not installed" messages - to the same layout - * configure.ac: Fail during configure if AGG libraries not detected; - AGG is no longer "experimental" - * configure.ac: Regularise layout of AC_ARG_* - -2007-03-25 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: print a warning - about possible confusion created by bugs in the proprietary - players. - * testsuite/actionscript.all/NetConnection.as: - getURL doesn't exist, and connect returns - a boolean value. - -2007-03-24 Tomas Groth Christensen - - * libbase/LoadThread.{cpp,h}: Changed so that it is possible to - check if the stream is valid. - * server/StreamProvider.cpp: Check if local file exists before - creating the tu_file. - * server/asobj/NetConnection.cpp: Changed to work with the - LoadThread changes. Added an assert for a valid URL. - -2007-03-24 Sandro Santilli - - * server/swf/tag_loaders.cpp (readPlaceActions): gracely handle - malformed SWF produced by some old snapshot of Ming CVS. - * testsuite/misc-ming.all/Makefile.am: - Don't try to build tests unsupported by - the installed Ming version. - -2007-03-24 Bastiaan Jacques - - * server/as_function.cpp: Partially revert changes related to fn_call - which mysteriously broke the testsuite. - * server/vm/fn_call.h: Make nargs non-const and add a setter for offset - so as_function can modify them. - -2007-03-23 Tomas Groth Christensen - - * server/asobj/NetStreamFfmpeg.cpp: Fixed getting time when - decoder isn't initialized. - -2007-03-23 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Count videos sounds. - * libbase/FLVParser.{h,cpp}: Added. Our own homegrown FLV parser. - * libbase/LoadThread.{h,cpp}: Use auto_ptr instead of tu_file, - and added the isPositionConfirmed() function. - * libbase/Makefile.am: Added FLVParser.{h,cpp}. - * macros/libXML.m4: A fix for when using --with-libxml-incl - * server/video_stream_instance.cpp: Use Advance to investigate if a new - video frame is ready, and decide if the bouds should be invalidated. - * server/asobj/NetConnection.{h,cpp}: Pass a auto_ptr to - LoadThread. Always check if the loader exists before using it. - Added connectParser to make it possible for the parser to access the file. - * server/asobj/NetStream.{h,cpp}: Implemented setBufferTime and onStatus. - * server/asobj/NetStreamFfmpeg.{h,cpp}: Use the new FLVParser when we - play a FLV. Added more comments. Implemented setBufferTime, and made - things ready for onStatus. - * server/asobj/NetStreamGst.{cpp,h}: Added stubs and small updates to - keep up with NetStreamFfmpeg. Some work on supporting the -r1 switch. - * server/asobj/SoundGst.cpp: Removed a printf. - -2007-03-22 Sandro Santilli - - * testsuite/swfdec/PASSING: two more successes. - * server/stream.{cpp,h} (read_uint): don't force return - to fit in a short. Fixes a regression for 3dtris.swf. - -2007-03-22 Bastiaan Jacques - - * server/as_object.cpp: in set_member_default(), only setValue() - on properties that aren't read-only. Add an init_property() - method specifically for read-only properties which takes only - a setter. Also add a method asPropName() that converts property - names to lowercase, which is a very common pattern in this - class. - * server/button_character_instance.cpp, - server/character{.cpp, .h}, server/character_instance.cpp: - Use the new init_property() for read-only properties. Don't - check if read-only properties are being set in getters. - * server/vm/fn_call.h: Make fn_call more robust: rename - first_arg_bottom_index to _stack_offset, which I think is more - descriptive. Make _stack_offset and _env private properties; add - accessors for them. Make nargs a const property. Add doxygen - comments for all members. - * all over the place: Adjust all users of fn_call members. - Make sure all callers use the new accessors and that no caller - tries to set now-const properties. - -2007-03-22 Sandro Santilli - - * server/asobj/Number.cpp: don't attach Number interface - to the Number class itself. - * testsuite/actionscript.all/Number.as: more tests - for valueOf,toString (many still fail for SWF5). - -2007-03-22 Sandro Santilli - - * server/font.cpp, server/stream.cpp, server/swf/tag_loaders.cpp: - Fixed signedness warnings after stream interface update. - -2007-03-22 Sandro Santilli - - * server/stream.{cpp,h}: fix signedness of integers. - * server/parser/button_character_def.cpp (read): - Survive malformation of button2 events action tags. - -2007-03-22 Sandro Santilli - - * server/as_value.{h,cpp}: drop all methods transparently - calling to_number w/out passing an as_environment. - * server/asobj/Global.cpp, server/asobj/xml.cpp, - server/vm/ASHandlers.cpp: properly update to explicitly - invoke as_value::to_number() when needed. - -2007-03-22 Zou Lunkai - - * testsuite/misc-ming.all: action_execution_order_test6.c, Makefile.am. - add a new testcase for passing-by MovieClip events. - - -2007-03-22 Sandro Santilli - - * testsuite/swfdec/PASSING: comparisons-7.swf now passes. - * testsuite/actionscript.all/Number.as: add tests for - comparison operators (unfortunately Ming never outputs - ActionGreater, but swfdec testsuite contains it). - * server/vm/ASHandlers.cpp (ActionNewLessThen, ActionGreater): - return undefined if numeric conversion returns NaN. - * server/as_value.h: drop 'operator<', is not appropriate as - it insists in returning a bool, while we might eventually - get an undefined value. - -2007-03-21 Sandro Santilli - - * testsuite/actionscript.all/check.as: define - MING_SUPPORTS_ASM_GETPROPERTY. - * testsuite/actionscript.all/MovieClip.as: add test for - getproperty call w/out an explicit target. - * server/impl.cpp (create_library_movie): include SWF version info, - at least it's now shown with a bare -v. - * server/vm/ASHandlers.cpp (ActionGetProperty): - An empty string as target means we pick the current top - of scope stack. (SWFHandlers ctor): add comments for - hard-coded numbers properties should have. - -2007-03-21 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionSubString): when length argument - is negative take it as full string length. - * testsuite/actionscript.all/String.as: add tests for 'substring' - action with negative length parameter. - -2007-03-21 Sandro Santilli - - * server/as_function.cpp (extends): when VM version is > 5 - set 'prototype.__constructor__' in addition to - 'prototype.constructor' - * server/swf_function.cpp (getSuper): user __proto__.__constructor - rather then __proto__.constructor. - * testsuite/actionscript.all/: Function.as, Inheritance: more - successes. - -2007-03-21 Sandro Santilli - - * testsuite/swfdec/PASSING: new successes: onload-childparent.swf, - registerclass-previous.swf. - * server/vm/ASHandlers.cpp (ActionCallFunction): - When function is an object, invoke it's 'constructor'; - Properly set the 'this' pointer. - * testsuite/actionscript.all/Function.as: more successes. - - -2007-03-21 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - fix calling _root.note - -2007-03-20 Martin Guy - - * configure.ac: - Remove duplicate of presence tests for JPEG KDE QT. - Say what to install for KDE QT MYSQL. - * configure.ac macros/kde.m4: - Fix broken QT detection on Debian. - -2007-03-20 Ann Barcomb - - * server/asobj/gen-asclass.pl: Produces exactly the same output - as gen-asclass.sh with some extra features. - -2007-03-20 Sandro Santilli - - * server/builtin_function.h (ctor): add a 'constructor' - property pointing to self. - * testsuite/actionscript.all/LocalConnection.as: add tests - for existance of functions that somehow slipped into Gnash. - * server/as_function.{cpp,h}: add getFunctionConstructor() - public static method. - * server/swf_function.cpp: passing Function as the constructor - property of user-defined functions. - * testsuite/actionscript.all/Function.as: more successes. - * testsuite/actionscript.all/Inheritance.as: more successes. - -2007-03-20 Sandro Santilli - - * server/as_function.{cpp,h}: add a constructInstance() - function taking care of proper ActionScript instances - initialization. - * server/asobj/: Boolean.cpp, Number.cpp, string.cpp - (init_{boolean,number,string}_instance): use - the new as_function::constructInstance() method - to correctly initialize instances. - * server/vm/ASHandlers.cpp (construct_object): simply - forward the call to as_function::constructInstance(). - * testsuite/actionscript.all/Function.as: more successes. - -2007-03-20 Antti Ajanki - - * gui/{kde.cpp, kdesup.h}, plugin/klash/klash_part.cpp: When - embedding a Gnash into Konqueror, skip window creation. This also - fixes a problem with scaling. - -2007-03-20 Ann Barcomb - - * doc/C/actionscript/new_as_class.xml: Change documentation to - intrusive_ptr (see Sandro's previous commits). - -2007-03-20 Sandro Santilli - - * server/as_value.cpp, server/asobj/Boolean.cpp, - server/asobj/Boolean.h, server/asobj/Number.cpp, - server/asobj/Number.h, server/asobj/gstring.h, - server/asobj/string.cpp: Implement init_boolean_instance - and change init_{number,string}_instance to return - by intrusive_ptr (rather then auto_ptr). - Do automatic boolean to Boolean conversion in as_value::to_object. - * testsuite/actionscript.all/Function.as: - Couple of more successes. - -2007-03-20 Sandro Santilli - - * server/array.cpp, server/as_environment.cpp, - server/as_function.cpp, server/as_object.cpp, - server/as_object.h, server/as_value.cpp, server/as_value.h, - server/button_character_instance.cpp, server/character.cpp, - server/debugger.cpp, server/edit_text_character.cpp, - server/shm.cpp, server/sprite_instance.cpp, - server/sprite_instance.h, server/swf_function.cpp, - server/swf_function.h, server/textformat.cpp, server/timers.cpp, - server/timers.h, server/video_stream_instance.cpp, - server/video_stream_instance.h, server/asobj/Boolean.cpp, - server/asobj/ContextMenu.cpp, server/asobj/Date.cpp, - server/asobj/Global.cpp, server/asobj/Key.cpp, server/asobj/Key.h, - server/asobj/LoadVars.cpp, server/asobj/LocalConnection.cpp, - server/asobj/MovieClipLoader.cpp, - server/asobj/NetConnection.cpp, server/asobj/NetConnection.h, - server/asobj/NetStream.cpp, server/asobj/NetStream.h, - server/asobj/NetStreamGst.cpp, server/asobj/Object.cpp, - server/asobj/Sound.cpp, server/asobj/string.cpp, - server/asobj/xml.cpp, server/asobj/xmlnode.cpp, - server/asobj/xmlsocket.cpp, server/vm/ASHandlers.cpp, - server/vm/fn_call.h, server/vm/with_stack_entry.h, - testsuite/server/GetterSetterTest.cpp: - Reduce use of "dumb" pointers, using intrusive_ptr instead. - A side-effect is the player2.swf premature deletion assertion - is not triggered anymore now. - -2007-03-20 Sandro Santilli - - * testsuite/actionscript.all/LocalConnection.as: Fix the test to NOT - rely on Gnash extensions. Actually check that the extensions are - *not* there, as we want to be compatible !! - -2007-03-20 Ann Barcomb - - * server/asobj/Key.cpp, MovieClipLoader.cpp, xml.cpp, xmlnode.cpp, - xmlsocket.cpp: Change casts and asserts to ensureType. - -2007-03-20 Ann Barcomb - - * server/asobj/ContextMenu.cpp, Date.cpp, LoadVars.cpp, string.cpp, - NetConnection.cpp, NetStream.cpp, Sound.cpp, gen-asclass.sh: - Changed instances of ensureClass to use inherited ensureType. - -2007-03-20 Ann Barcomb - - * doc/C/actionscript/new_as_class.xml: syntax of 'ensure' - changed to correspond with Bastiaan's last commit. - -2007-03-20 Bastiaan Jacques - - * server/as_object.h: Add ensureType, which is intended to - replace the class-specific ensureClass functions. Suggested by Ann. - Demangle the object name in the exception message if GCC >= 3 is being - used. - * server/asobj/Boolean.cpp: Switch ensureClass to ensureType. - * server/vm/ASHandlers.cpp: In ActionDelete(), don't pop an object off - the AS stack in the hopes that it magically has a property which might - be the object that is to be deleted. Instead, traverse the stack using - delVariable(). - * server/as_object.h: Remove the ensureType for raw pointers in favour - of the one for intrusive pointers; the former is now unused. - * server/asobj/NetStreamFfmpeg.cpp: Update for changes in ensureType. - * server/asobj/LocalConnection.cpp: Don't initialise Gnash-only methods - that were intended for debugging. - -2007-03-19 Sandro Santilli - - * server/as_value.{cpp,h}: simplify union by using - a single pointer value, toward using a smart pointer - there. - * testsuite/actionscript.all/Function.as: expect a couple - of successes I missed on last commit. - -2007-03-19 Ann Barcomb - - * server/as_object.h: corrected Doxygen comments about - get_member() versus gettersetter methods. - -2007-03-19 Sandro Santilli - - * testsuite/actionscript.all/Function.as: add more tests - for 'constructor', '__constructor__' and super. - A lot of them fail and the test is still not complete. - -2007-03-19 Ann Barcomb - - * doc/C/actionscript/new_as_class.xml: document the changed syntax - for returning a value (see Bastiaan's commit). - -2007-03-19 Bastiaan Jacques - - * server/vm/fn_call.h: Remove fn_call::result. Instead, all methods and - functions called by ActionScript must return as_value. Thanks to Ann - for the suggestion and for help with regular expressions. - * all over the place: Switch all ActionScript-called methods over to - return as_value. Adjust all related methods. Also make fn_call::nargs - unsigned. - * server/as_value.h: Add additional constructors taking longs as - arguments to account for platforms that define size types as longs. - -2007-03-19 Ann Barcomb - - * doc/C/actionscript.xml, doc/C/actionscript/*, doc/C/Makefile.am: - Split main.xml into multiple files. - -2007-03-19 Sandro Santilli - - * server/timers.cpp (timer_setinterval): - Accept call in the form setInterval(obj, methodname, timer); - warn about unsupported args (right-most arguments). - -2007-03-19 Ann Barcomb - - * doc/C/actionscript.xml, doc/C/gnash.xml, doc/C/actionscript/main.xml, - doc/C/Makefile.am: ActionScript has been removed from the Gnash - manual. A new ActionScript manual has been created. Most of - material has been rewritten and incorporates Sandro's - feedback on the previous version. - -2007-03-19 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.h: Add Ming defines available onl - in CVS; some of the new testcases depend on these. Suggested by - Benjamin Otte. - -2007-03-19 Bastiaan Jacques - - * testsuite/actionscript.all/LoadVars.as: Don't assume that the system on - which testcases are run has a HTTP server running on localhost that meets - our specifications. Instead, read object property data from a local file - and update the expected output to match. - -2007-03-19 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_test4.c: - add tests about onClipEvent(onConstruct) and user defined onLoad for _root - -2007-03-18 Bastiaan Jacques - - * testsuite/libamf.all/test_number.cpp: Don't overflow the data buffer. - -2007-03-18 Antti Ajanki - - * gui/kde.cpp: Since the GUI callbacks are no longer statics, adjust - our usage of them to match. - -2007-03-17 Sandro Santilli - - * server/swf_function.cpp (call operator): don't - provide 'super' if SWF version is < 6. - -2007-03-17 Markus Gothe - - * libamf/amf.h: Fixed a naming issue on non-GCC. - * server/asobj/Date.cpp: Fixed namespace-issue for 'trunc' - -2007-03-16 Sandro Santilli - - * server/vm/ASHandlers.cpp: more usage of as_value::to_debug_string(). - * server/as_value.{cpp,h}: add to_debug_string(), have output - operator use it. - * server/as_environment.{cpp,h}: use debugging output for as_values - when dumping stack,registers and locals. - -2007-03-16 Rob Savoye - - * testsuite/libamf.all/string-variable.amf: Binary test case for - string variables. - * testsuite/libamf.all/number-variable.amf: Binary test case for - numeric variables. - * testsuite/libamf.all/test_variable.cpp: Test case for encoding - and decoding variable assignments which as used in AMF objects. - * libamf/amf.cpp, amf.h: Add support for encoding variables. Make - extractVariables actually set the fields of the element so they - have some value when returned. - - * libamf/amf.cpp, amf.h: Use capitols for enum values. Fix - encoding and decoding of numbers, strings, and objects. - * libamf/rtmp.cpp, rtmp.h: Use capitols for enum values. - * libamf/Makefile.am: Remove amftest.cpp, it's now in testsuites - where it belongs. - * testsuite/Makefile.am: Add libamf.all directory. - * testsuite/libamf.all/Makefile.am: Build test cases, do "make - check". - * testsuite/libamf.all/test_number.cpp: Test case for AMF numbers. - * testsuite/libamf.all/test_object.cpp: Test case for AMF objects. - * testsuite/libamf.all/test_string.cpp: Test case for AMF strings. - * testsuite/libamf.all/f03f.amf: Binary test file for number format. - * testsuite/libamf.all/connect-object.amf: Binary test file for - object format. - * testsuite/libamf.all/connect-string.amf: Binary test file for - string format. - -2007-03-16 Sandro Santilli - - * testsuite/actionscript.all/: Function.as, Inheritance.as: - Some more tests for __constructor__. - * server/vm/ASHandlers.cpp (construct_object): set up the - undocumented and non-standard __constructor__ member. - * server/asobj/Object.cpp (object_registerClass): don't forget - to return a boolean value ! - * server/sprite_instance.cpp: allow overriding the _name property. - * testsuite/swfdec/PASSING: more successes. - -2007-03-16 Sandro Santilli - - * server/as_value.{cpp,h}: depreciate operator+=, implement valueOf - calling. - * server/vm/ASHandlers.cpp (ActionNewAdd): pass environment over - calls to as_value::to_number, for properly calling valueOf. - * testsuite/actionscript.all/Number.as: more tests for valueOf - * testsuite/misc-ming.all/: .cvsignore, Makefile.am: - Automate run of the new testcases. - -2007-03-16 Zou Lunkai - - * tesrttsuite/misc-ming.all/action_execution_order_test4.c. - * testsuite/misc-ming.all/action_execution_order_test5.c. - add 2 more testcases to verify actions execution order. - -2007-03-13 Sandro Santilli - - * server/as_value.h (to_number): null and undefined are converted - to NaN for SWF7 up; drop is_inf,is_finite and is_nan methods, - handle in the caller. - * server/asobj/Global.cpp: proved _global.NaN and _global.Infinity - values; fix isFinite() and isNaN(). - * testsuite/actionscript.all/Number.as: more tests for the NaN and - Infinity values. - * server/as_value.cpp (to_tu_string): both -0.0 and 0.0 number values - get converted to the string "0". - * testsuite/actionscript.all/Boolean.as: do not expect failures for - string to boolean conversion for SWF7 up. - * server/as_value.cpp (to_bool): have NaN numbers evaluate to - false; add version-specific versions to_bool_v5(), to_bool_v6() and - to_bool_v7(); add to_std_string_versioned. - * testsuite/server/: DisplayListTest.cpp, GetterSetterTest.cpp, - MatrixTest.cpp, PropertyListTest.cpp, as_prop_flagsTest.cpp: - include check.h last, to avoid 'check' macro to clash with boost - headers (ptr_container stuff). - * server/sprite_instance.cpp: add support for MovieClip.loadVariables. - * server/Makefile.am, server/LoadVariablesThread.{cpp,h}, - server/asobj/LoadVars.cpp: extracted what was previously called LoadRequest - in LoadVars.cpp, for general use, cleanups. - * server/vm/ASHandlers.cpp (CommonGetUrl): add support for the - loadVariables flag. - * testsuite/misc-mtasc.all/function.as: add more test for - the arguments object. - * server/vm/ASHandlers.cpp (ActionNewAdd, ActionTrace): pass an environment when - converting as_value to string, to properly invoke any toString - method. - * server/character.cpp (parent_getset): _parent is undefined (not - null) for _root sprite. - * testsuite/actionscript.all/String.as: add tests for automatic - calling of the toString() method. - * testsuite/actionscript.all/Function.as: add tests for toString - method. - * server/as_function.h: override get_text_value() to properly return - '[type Function]'. - * server/as_value.cpp (convertion to string): Invoke any toString method - associated with objects, if caller properly passes an as_environment - to use in the call. - * testsuite/swfdec/PASSING: many more successes. - * server/as_value.h: add constructor by const std::string ref. - * server/vm/VM.{h,cpp}: add getPlayerVersion() - * server/asobj/System.{h,cpp}: cleanups, use getPlayerVersion() - for System.capabilities.version - * server/sprite_instance.cpp (attachMovieClipProperties): initialize - the $version member. - * testsuite/actionscript.all/MovieClip.as: more tests for the '$version' - built-in variable; new test for _parent of root being undefined (not - null). - * server/as_object.{cpp,h}: add a third argument for init_member to - override protection (can be omitted to use previous default). - -2007-03-13 Sandro Santilli - - * testsuite/actionscript.all/System.as: add checks for $version. - * testsuite/swfdec/PASSING: 3 more tests succeed. - * server/sprite_instance.cpp (get_text_value): remove the trailing - dot from name of top-level movies. - -2007-03-12 John Gilmore - - * configure.ac: Suggest agg-2.5 rather than 2.4 if - agg_gradient_lut.h is missing. - * configure.ac: Sandro's fix to "ming version" test that failed if - ming was not installed. - -2007-03-12 Sandro Santilli - - * server/as_object.cpp (init_member): fix typo setting flags - for buiting methods all wrong. - * testsuite/actionscript.all/delete.as: don't expect the failures - on function prototype deletion anymore. - * server/button_character_instance.{cpp,h}: implement - ::construct() to postpone characters instance name assignmnet - at stage placement time. - -2007-03-12 Udo Giacomozzi - - * server/character.h: introduce wantsInstanceName() to provide - a clean way to tell which objects need an instance name - * server/button_character_instance.{h,cpp}: Give childs a name; - implement get_relative_target() for buttons; define that - buttons should get instance names - * server/edit_text_character.h: text fields need instance names - too - * server/sprite_instance.{h,cpp}: implement and use - wantInstancename() - - -2007-03-12 Sandro Santilli - - * server/as_prop_flags.h: add equality and inequality operators. - * testsuite/actionscript.all/delete.as: add test verifying that - delete on object references won't affect other references - on the same object; add test to check that a user-defined - function's prototype is not deletable (fails in Gnash!). - * server/vm/ASHandlers.cpp (ActionCallFunction, ActionCallMethod, - ActionNewMethod): rather then pushing undefined values for - missing argument values on the stack, warn about the type of - SWF malformation and modify the number of args by using at most - what's on the stack. - * testsuite/swfdec/PASSING: callfunction-stack.swf - now succeeds. - -2007-03-12 Bastiaan Jacques - - * server/asobj/Boolean.cpp: Add ensureBoolean() to guard - casts. - -2007-03-12 Sandro Santilli - - * testsuite/actionscript.all/Global.as: argh, it - seems that _global is a non-Object object :!? - * testsuite/swfdec/PASSING: 3 newly added swfdec tests - succeed in Gnash. - * testsuite/misc-ming.all/Makefile.am: activated the - new action execution order tests. - -2007-03-11 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_test1.c. - * testsuite/misc-ming.all/action_execution_order_test2.c. - * testsuite/misc-ming.all/action_execution_order_test3.c. - 3 new testcases to verify action execution order. - -2007-03-11 Deanna Phillips - - * cygnal/stream.cpp: Added #include - -2007-03-10 Rob Savoye - - * macros/boost.m4: Only select one library! So please leave the - break lines in after the libraries are matched in the file - system. Check for date_time in the same way to handle the weird - naming of boost libraries. - -2007-03-10 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: - Import Dejagnu.swf from the same dir the SWF is in, to work - around player8+ lame security model. - * server/array.{cpp,h}: provide an override for - Object.toString(). - * testsuite/swfdec/PASSING: array.swf now passes. - -2007-03-10 Sandro Santilli - - * testsuite/swfdec/PASSING: expect 5 more successes. - * testsuite/swfdec/swfdec_gnash_tester: allow 11 advances rather - then 10 (this is likely due to Gnash current additional advance - required for proper construction of initial stage). Makes 5 more - tests from the swfdec testsuite pass (including gotoframe!!). - * server/sprite_instance.cpp (add_display_object): - Only syntetize instance names for sprite instances - (fixes swfdec's names.swf testcase). - -2007-03-09 Tomas Groth Christensen - - * libbase/LoadThread.h: Documented the class. - -2007-03-09 Sandro Santilli - - * testsuite/swfdec/swfdec_gnash_tester: - Fixed to allow loopbacks. - -2007-03-09 Stuart Anderson - - * testsuite/misc-ming.all/Makefile.am: fix check rule - when building with Ming < 0.4.0-beta2. - -2007-03-09 Sandro Santilli - - * configure.ad: Add MAKESWF_SUPPORTS_PREBUILT_CLIPS conditional. - * extensions/dejagnu/dejagnu.cpp, extensions/fileio/fileio.cpp: - Use builtin_function and init_member for members initialization. - * server/as_value.{cpp,h}, server/vm/ASHandlers.cpp, - server/vm/action.cpp: Drop C_FUNCTION as_value type. - WARNING: attempts to initialize as_values with - a function pointer will now result in BOOLEAN values !! - The compiler will warn you about this, but make sure - you enable warnings. - * server/: sprite_instance.cpp, textformat.cpp, - video_stream_instance.cpp, edit_text_character.cpp: - Use builtin_function for function as_values. - -2007-03-09 Tomas Groth Christensen - - * libbase/LoadThread.{h,cpp}: Added implementation of a download thread. - * libbase/Makefile.am: Included LoadThread.{h,cpp}. - * libbase/curl_adapter.cpp, libbase/noseek_fd_adapter.cpp, - libbase/tu_file.{h,cpp}, libbase/zlib_adapter.cpp: Removed - get_cur_stream_size(), instead used LoadThread::getBytesLoaded(). - * server/asobj/NetConnection.cpp: Use LoadThread. - * server/asobj/NetStream.{h,cpp}, server/asobj/NetStreamFfmpeg.{h,cpp}, - server/asobj/Sound.{h,cpp}, server/asobj/SoundFfmpeg.{h,cpp}: Fixed - compilation with newer FFMPEG versions. - -2007-03-09 Sandro Santilli - - * server/asobj/xmlsocket.cpp: use call_method() and call_method0() - rather then duplicate its implementation. - * server/asobj/xml.cpp: use call_method() rather then - duplicate its implementation. - * server/as_environment.cpp: include index in registers dump. - * server/vm/ASHandlers.cpp (ActionEnumerate, ActionEnumerate2): - Make 'for (i in )' an ASCODING error. - * server/: sprite_instance.{cpp,h}, character.{cpp,h}: - Moved getNextUnnamedInstanceName() from sprite_instance - to character, for use withing other character types - (like buttons) and use a single counter for the whole - application. - -2007-03-09 Sandro Santilli - - * server/asobj/Object.cpp: remove TESTING - warnings for getOwnProperty, isPrototypeOf and - isPropertyEnumerable. Warn only once about unimplemented - watch and unwatch methods. - * server/vm/ASHandlers.cpp: warn only once about - Enum2 being in TESTING stage. - -2007-03-09 Sandro Santilli - - * server/as_object.{cpp,h}: add getOwnProperty and prototypeOf() - public methods. - * server/asobj/Object.cpp: implement Object.hasOwnProperty(), - Object.isPropertyEnumerable() and isPrototypeOf(); stub - Object.watch() and Object.unwatch(). - * testsuite/actionscript.all/Object.as: add tests for - Object.hasOwnProperty(), Object.isPropertyEnumerable() and - isPrototypeOf(); add TODO note for testing Object.watch() - and Object.unwatch(). - -2007-03-08 Udo Giacomozzi - - * server/character.h: drop m_enabled since nobody uses it - * server/button_character_instance.{h,cpp}: add "enabled" property - and receive mouse events only when enabled - -2007-03-08 Bastiaan Jacques - - * gui/gtk.cpp: Fix GTK/AGG redrawing upon expose events by switching - to the new invalidation interface. In this incarnation, only the area - which is newly exposed is redrawn. - -2007-03-08 Udo Giacomozzi - - * extensions/fileio/fileio.cpp: Fixed fread() - -2007-03-08 Sandro Santilli - - * server/as_object.h: new protected clearProperties() method. - * server/sprite_instance.cpp (restart): clear properties. - -2007-03-08 Sandro Santilli - - * server/sprite_instance.cpp (construct): - Ensure first frame is loaded, to eventually not waiting for - ::advance to call ::construct and finally remove the startup - lateny we're currently experiencing; - (restart): call construct() directly, rather then postponing - the call to ::adnvace and relying on the crappy - m_onload_event_called flag. - -2007-03-08 Sandro Santilli - - * server/character.h: document set_event_hanlder, - get_event_handler (as we're getting it wrong). - * testsuite/actionscript.all/MovieClip.as: - Test that the onLoad member of a MovieClip - can be set to any value. - * server/sprite_instance.{h,cpp}: drop unused - m_update_frame variable. (restart): simplify - and properly reset the displayList backup. - -2007-03-08 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - Add a check, seems PlaceObject2 tag should not define any functions - -2007-03-07 Sandro Santilli - - * gui/gtk.cpp: hook restart menu - * server/sprite_instance.cpp (restart): properly - clear the displaylist. Invalidated bounds could - likely be more fine-tuned. - -2007-03-07 Sandro Santilli - - * gui/gui.{h,cpp}: add play(), pause() and stop() methods, - change implementation to be semantically correct and not - mess with sprites playstate; Changed menu_* to non-statics - to properly acces state. I'm sure this will break fltk but - fixing should be easy with men_fun and bind1st.. - * gui/gtk.cpp: enable stop(), pause() and play() menu items. - * server/asobj/ContextMenu.cpp: Some more stubs. - * testsuite/actionscript.all/ContextMenu.as: Some more tests. - * server/as_value.cpp (to_bool) don't choke - when converting a movieclip value to a boolean. - * testsuite/actionscript.all/Boolean.as: - Add tests for convertion to boolean value. - -2007-03-07 Robert Millan - - * plugin/plugin.cpp: Guard the first argument to kill() for previously - unconsidered values. - -2007-03-07 Udo Giacomozzi - - * backend/render_handler_agg.cpp: fixed segfault #19223; set correct - visiblerect; fixed Range2d.width() usage; fixed getMaxY() usage - * extensions/fileio/fileio.{h,cpp}: implemented an experimental - scandir() function (may move to a separate extension); same story - for unlink() - * server/sprite_instance.cpp: Make sure clear_invalidated() is called - for sprites which currently have an empty DisplayList - * server/button_character_instance.{h,cpp}: Implemented correct behaviour - on button state change (invalidate only when needed, restart only - reappeared characters) - -2007-03-07 Sandro Santilli - - * testsuite/swfdec/: README, swfdec_gnash_tester: - Initial stuff to hook on swfdec testsuite. - -2007-03-06 Rob Savoye - - * missing: Update to newer version. - * mkinstalldirs: Update to newer version. - * Makefile.am: Add new "olpc" target to cross build RPM using a - non standard config triplet to force rpmbuild to work correctly, - since it doesn't support the vendor field. Add macros/incllist - macros/libslist to EXTRA_DIST. - * packaging/redhat/gnash.spec: Add support for cross building - RPMs. - * packaging/redhat/rpmrc: Config file for rpmbuild to convert non - standard config for geode-olpc into a standard i386-olpc-linux - build, but use the correct cross compiler. - * plugin/plugin.cpp: Cast away the const for MIME_TYPES_DESCRIPTION. - * plugin/klash/Makefile.am: Don't build klash.moc, it's built in - gui now. - * configure.ac: Remove --enable-fork option, it's unused. Get the - root directory to look for headers and libraries for a cross build - from GCC, as the path is different when building RPMs. - * cygnal/Makefile.am: Fix spelling of noinst_HEADERS. - * cygnal/README: Fix typo. - * extensions/Makefile.am: Add support for other directories for - building a distribution. - * extensions/gtk2/Makefile.am: Include from gui directory - too. Don't build test program by default for now. - * gui/Makefile.am: Add XML to include paths. - * gui/gnash.cpp: Disable network support for now. - * gui/gtksup.h: Return the GtkWidget handle of a window. - * libbase/Makefile.am: PTHREAD_LIBS should always be after - BOOST_LIBS. - * libbase/network.cpp: Tweak debug messages. Test for priviledged - ports. Add support for a blocking select when waiting for a - connection. - * macros/boost.m4: Break when the right path is found. - * macros/ffmpeg.m4: Handle multiple directories with -I when - setting topdir. Print a warning if avcodec.h is found, but - avformat.h is not. - * macros/gnashpkgtool.m4: Don't create an enable option for - everything, it's confusing. - * macros/kde.m4: Look in incllist as well as libslist for QT - headers. - * testsuite/Makefile.am: Add generic-testrunner.sh to dist_noinst_SCRIPTS. - * testsuite/misc-ming.all/Makefile.am: Add intervalTest.as to - EXTRA_DIST. - -2007-03-06 Bastiaan Jacques - - * backend/render_handler_agg.cpp: Fix an off-by-one error causing - invalid memory accesses. Use rint() instead of the missing round() - on OpenBSD 3.9. - * gui/fltk{.cpp, sup.h, _glue_agg.cpp, _glue_agg.h}: Reimplement AGG - clipping using the new interfaces. - * macros/boost.m4: Fix order of lines so that the value of LIBS is - properly restored. Fixes bug #19211. - * server/asobj/Date.cpp: Add an implementation (written by Sandro) - of trunc for platforms that don't define it, e.g. OpenBSD 3.9. - -2007-03-06 Sandro Santilli - - * server/as_value.cpp (to_to_string): positive Infinity - doesn't have the plus sign prepended (at least for SWF5, didn't - check with other targets). - * server/vm/ASHandlers.cpp (ActionCallMethod): properly - setup the 'this' pointer when not specified in the tag - itself as the object parameter. - * server/vm/ActionExec.{h,cpp}: - Add a _this_ptr member and a getThisPointer() function - for use with function calls. - * server/swf_function.cpp (operator()): setup the this_ptr - in ActionExec instance. - * testsuite/misc-mtasc.all/function.as: unexpect last failure. - Looking for more failures now... - -2007-03-06 Sandro Santilli - - * testsuite/misc-mtasc.all/function.as: - Add a (succeeding) test for 'this' pointer being correctly set - on ActionCallMethod with *defined* name. - -2007-03-06 Udo Giacomozzi - - * libgeometry/snappingrange2d.h: do not call combine_ranges() too - often - -2007-03-06 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionCallMethod): when method name - is undefined, we must use the provided object's constructor. - * testsuite/misc-mtasc.all/function.as: add (failing) test for - 'this' pointer being correctly set on ActionCallMethod. - -2007-03-06 Ann Barcomb - - * server/asobj/xmlsocket.cpp: convert init_member to new - syntax. - -2007-03-06 Sandro Santilli - - * server/as_object.cpp (instanceOf): made circular inheritance an - aserror. - * testsuite/actionscript.all/Inheritance.as: test circular inheritance - detection. - * server/vm/ASHandlers.cpp (ActionWith): survive empty 'with' blocks. - * testsuite/actionscript.all/with.as: test empty 'with' block. - -2007-03-06 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Round outline edge anchor points to - eliminate anti-aliasing blur and to do it the MM way...; draw outlines - always with at least 1.0 pixels width - * libgeometry/snappingrange2d.h: Implement growBy() - * gui/gui.cpp: grow invalidated ranges by 2 pixels to solve anti-aliasing - and outline displacement problems - -2007-03-06 Sandro Santilli - - * testsuite/misc-mtasc.all/: Makefile.am, TestClass.as, function.as: - Testcase for ActionCallMethod showing the 'this' pointer is not - correctly set in Gnash when we lack a method name. - * server/vm/ASHandlers.cpp (ActionCallMethod): use object as a - function when method name is undefined. This makes a step - forward with laszlo, altough I'm not sure about wheter - the 'this' pointer is correctly set to the function itself. - * server/debugger.{h,cpp}: use unsigned types for register indexes; - properly accept *const* string refs. - -2007-03-05 Sandro Santilli - - * utilities/processor.cpp: don't call gnash::clear, I suspect - we're unable to properly cancel loading threads, and this - being the cause for the occasional segfaults raising on - 'make check' (to be confirmed, hopefully). - -2007-03-05 Ann Barcomb - - * server/asobj/xmlnode.cpp: convert init_member to new - interface. - -2007-03-05 Sandro Santilli - - * server/: character.h, sprite_instance.{h,cpp}: - Add character::unload() virtual method to properly unload - child elements. - * server/dlist.cpp: call character::unload() rather then - directly invoking the UNLOAD event. - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - Do not expect failures of unload event execution. - -2007-03-05 Ann Barcomb - - * doc/C/internals.xml: section 'ActionScript Support' was updated - in an attempt to describe the current interface. - -2007-03-05 Sandro Santilli - - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - Add onLoad *clip* event and verify that having the clip event - defined triggers actual execution of the the onLoad event - for it (even the user-defined one!). - * libgeometry/snappingrange.h: add visit() templated function. - * server/parser/movie_def_impl.h, server/parser/movie_definition.h: - Document movie_definition::get_bytes_total(). - * testsuite/misc-ming.all/Makefile.am: enable run - of action_execution_order_extend_test by 'make check'. - -2007-03-05 Zou Lunkai - - * testsuite/misc-ming.all/action_execution_order_test.c: Comments fix. - * testsuite/misc-ming.all/action_execution_order_extend_test.c: - A new testcase for testing action execution order. - -2007-03-04 Tomas Groth Christensen - - * libbase/curl_adapter.cpp: Added support for getting the total size - of file being downloaded (get_stream_size()), and the current cached - size (get_cur_stream_size()). - * libbase/tu_file.{cpp,h}: Added get_size() and get_cur_size() which - uses get_stream_size() and get_cur_stream_size(). - * libbase/noseek_fd_adapter.cpp, libbase/zlib_adapter.cpp: Added dummy - support for get_stream_size() and get_cur_stream_size() - * server/asobj/NetConnection.{cpp,h}: Switched to use StreamProvider - * server/asobj/NetStream.{cpp,h}, server/asobj/NetStreamFfmpeg.{cpp,h}, - server/asobj/NetStreamGst.{cpp,h}: Added support for the bytesLoaded - and bytesTotal property. - -2007-03-03 Sandro Santilli - - * server/as_value.h: add ALLOW_C_FUNCTION_VALUES to prepare - for dropping C_FUNCTION value types as a whole. Undefine - it to make finding bogus uses easier and finish the - work in asobj/. - * server/asobj/: MovieClipLoader.cpp, Number.cpp, Object.cpp, - Selection.cpp, SharedObject.cpp, Sound.cpp, Stage.cpp, - System.cpp, TextSnapshot.cpp, Video.cpp, xml.cpp: - Use builtin_function when initializing methods. - * server/asobj/: Boolean.cpp, Camera.cpp, Color.cpp, - ContextMenu.cpp, CustomActions.cpp, Date.cpp, Error.cpp, - Global.cpp, Key.cpp, gLoadVars.cpp, LocalConnection.cpp, - Math.cpp, Microphone.cpp, Mouse.cpp, NetConnection.cpp, - NetStream.cpp: - Use builtin_function when initializing methods. - -2007-03-03 Sandro Santilli - - * server/as_value.{cpp,h}: always check for real type - of an as_object to properly set type to AS_FUNCTION - for actual as_function instances. always check - for NULL pointers to properly set type to NULLTYPE. - Fixes latest tests in Function.as. - * server/: as_object.h, as_function.h: - Add virtual to_function() method to reduce RTTI use. - * testsuite/actionscript.all/Function.as: - Test using 'this' as a constructor. Doesn't currently - work becase the 'this' as value is initialized to be - of kind OBJECT rather then AS_FUNCTION (as_value constructor - by as_object doesn't check real type). - -2007-03-03 Martin Guy - - * server/as_value.cpp: More conservative version of NAN fixes. - * testsuite/actionscript.all/Date.as: Check for Date.UTC() existing - and working even before a Date object is instantiated. - -2007-03-03 Bastiaan Jacques - - * gui/gtk.cpp: Don't neglect to render the buffer for renderers other - than AGG. - * gui/fltk.cpp: Invalidate the whole drawing area, which now appears - to be a requirement for Agg when we choose not to let the GUI deal with - clipping. - * gui/sdl_agg_glue.cpp: Idem dito. - -2007-03-03 Martin Guy - - * server/as_value.cpp: Revert "NaN" change: it makes all GUI canvasses - 0-sized (!) - * server/asobj/XMLNode.cpp: Fix garbled code in {previous,next}Sibling - -2007-03-03 Martin Guy - - * testsuite/actionscript.all/Number.as: Add test for unary minus - * testsuite/actionscript.all/Date.as: Turn "date" temp var into "d" - * testsuite/actionscript.all/TODO: Check result of call to undefined fn - * server/as_value.cpp: Return NAN for bad arguments - * server/asobj/Date.cpp: Fix compiler warning - * server/asobj/xmlnode.cpp: Remove unused vars, highlight 2 bugs - * server/asobj/xml.cpp: Remove unused vars, reproduce commentary - * server/asobj/shape.cpp: Highlight possible bug - * backend/render_handler_ogl.cpp: Removed unused variables - * gui/gtk.cpp: Fix compiler warning signed/unsigned - -2007-03-02 Sandro Santilli - - * server/as_environment.{cpp,h}, server/swf_function.cpp: - Registers must also be stacked between function calls, - like local vars. - With this commit I put local registers, local variables - and a function pointer into a CallFrame struct - and stack that directly. pushCallFrame() and popCallFrame() - now replace the add_frame_barrier/set_local_frame_top things. - This commit fixes the testcase under misc-mtasc.all ! - * server/vm/ASHandlers.cpp (ActionVar): - Ignore local variable declarations in non-function - context, and make it an aserror. - * server/vm/ASHandlers.cpp (ActionNew): add missing - premature return on malformed SWF. - * server/debugger.{cpp,h}: proxy local variables and - registers dumping to as_environment funx. - -2007-03-02 Udo Giacomozzi - - * testsuite/libgeometry/snappingrangetest.cpp: Testcase for snapping - ranges - * libgeometry/snappingrange.h: drop DSOLOCAL - -2007-03-02 Rob Savoye - - * macros/libslist: Add /usr/X11/lib, without the usual R6. - * macros/incllist: Add /usr/X11/include, without the usual R6. - -2007-03-02 Sandro Santilli - - * testsuite/misc-mtasc.all/inheritance.as: - Add more tests, more failing ! - -2007-03-01 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionNewMethod): - Use object parameter as *the* function if method name is - undefined; check that the constructor is actually a function; - (ActionNew) check that the constructor is actually a function; - (constructor_object) assert that the constructor is a function. - * testsuite/misc-mtasc.all/inheritance.as: - Add test provided by P T Withington for debugging - problems with OpenLaszlo foundation classes. - -2007-03-01 Tomas Groth Christensen - - * server/asobj/NetConnection.cpp: Added support for relative path. - * server/asobj/NetStreamFfmpeg.cpp: include sound_handler.h. - -2007-03-01 Udo Giacomozzi - - * server/video_stream_instance.cpp: simplify add_invalidated_bounds() - * libgeometry/snappingrange.h: Clarify comment; use initialization list - in constructor; some minimal changes - * backend/render_handler.h, libgeometry/snappingrange.h: fixed some compiler - warnings - * server/gnash.h, server/types.cpp: introducing cxform::is_invisible() - * server/sprite_instance.cpp: treat cxform.alpha==0 like !m_visible - -2007-03-01 Zou Lunkai - - * server/dlist.cpp: keep function declaration consistent with the headfile; - libamf/amf.cpp: typos, get rid of warnings for vc8 compiler. - -2007-03-01 Sandro Santilli - - * testsuite/actionscript.all/: array.as, Function.as - Don't expect failures when checking for missing - apply/call in SWF5. - * server/as_function.cpp (getFunctionPrototype): - Don't register 'apply' and 'call' members if - SWF < 6; use builtin_function when registering them. - * testsuite/actionscript.all/String.as: - Add test for 'substring' with base == length; - Fix test for SWF5 (no Function.call or Function.apply - there) - * server/vm/ASHandlers.cpp (ActionGotoExpression): - Simplified function, reduced emitted warnings; - (ActionSubString): fix case in which base is == length. - * server/asobj/Global.cpp: register Stage object always. - * server/asobj/Stage.cpp: don't register addListener - and removeListener if SWF < 6. - * testsuite/actionscript.all/Stage.a: update after fix. - -2007-02-28 Sandro Santilli - - * libgeometry/Range2d.h (scale): allow the scaled range to be - monodimensional in any direction. - * gui/gui.cpp: removed extra tokens at end of #include directive. - * libgeometry/snappingrange.h: strip CRs, fix contains(), copyright - notice and doxygen formatting. - * testsuite/DummyCharacter.h: update to add_invalidated_bounds - (would not need if character provided a default implementation :) - -2007-02-28 Udo Giacomozzi - - * backend/render_handler.h, - gui/fb.cpp, gui/fbsup.h, gui/gtk.cpp, gui/gtksup.h, gui/gui.cpp, - gui/gui.h, - server/button_character_instance.cpp, - server/button_character_instance.h, - server/character.cpp, - server/character.h, - server/dlist.cpp, - server/dlist.h, - server/edit_text_character.cpp, - server/edit_text_character.h, - server/generic_character.cpp, - server/generic_character.h, - server/movie_root.cpp, - server/movie_root.h, - server/render.cpp, - server/render.h, - server/sprite_instance.cpp, - server/sprite_instance.h, - server/video_stream_instance.cpp, - server/video_stream_instance.h: replace single invalidated bounds - with new, abstract InvalidatedRanges class and - add_invalidated_range() function to support multiple ranges. - * gui/gtk_glue_agg.cpp: corrected calculation of width/height - * backend/render_handler_agg.cpp: Redesigned and optimized rendering - engine; avoid re-calculation of edges for sub-shapes; re-use AGG - paths; initialize AGG styles only once - * libgeometry/snappingrange.h, libgeometry/Makefile.am: new class - for 2D range lists - * testsuite/MovieTester.cpp: Adapted to work with multiple ranges - * testsuite/misc-ming.all/loadMovieTestRunner.cpp: add return value - - -2007-02-28 Sandro Santilli - - * testsuite/: Makefile.am, DummyCharacter.h: - Dummy character instance for use in test cases. - * testsuite/server/: Makefile.am, DisplayListTest.cpp: - Initial test for DisplayList (just tests equality - and inequality operators). - * server/dlist.{cpp,h}: Add equality, inequality - and output operators. - -2007-02-28 Sandro Santilli - - * server/array.cpp: use builtin_method for builtin - methods :) ensure the 'this' pointer passed - to builtin methods is valid. - * testsuite/actionscript.all/array.as: - Add test for calling Array builtin functions - using FUnction.call. - -2007-02-28 Sandro Santilli - - * server/asobj/gen-asclass.sh: updated to - use new, more robust and more correct layout. - * server/asobj/string.cpp: robustness and - correctness improvements: use builtin_function, - not c_function for buildin methods; make sure - methods are applied to a String instance. - * testsuite/actionscript.all/String.as: add a - test for builtin methods being allowed to be - called using Function interface - (String.prototype.slice.call: just a small example) - -2007-02-28 Sandro Santilli - - * server/vm/ASHandlers.cpp: use log_aserror for - ActionScript errors; (ActionExtends): check - that the thing being extended is a function !! - -2007-02-28 Sandro Santilli - - * testsuite/actionscript.all/String.as: add - test for read-only nature of 'length' property; - fix test for SWF5 target. - -2007-02-28 Sandro Santilli - - * server/swf.h: add reference to ActionConstantPool - description - * server/parser/action_buffer.h (read_int16): - Use int16_t type, not 'int'. - * server/parser/action_buffer.cpp (process_decl_dict): - Use int16_t type, not 'int'. - * server/vm/ActionExec.{cpp,h} (operator()): - Additional SWF consistency check for action 'length' - field. - -2007-02-28 Sandro Santilli - - * server/vm/ActionExec.{cpp,h}: Survive malformed - SWF containing - * server/as_function.cpp: fix Function.apply() - and Function.call() to correctly fetch the - 'this' pointer (ie: not accessing the stack - directly). - * server/swf_function.{h,cpp}: properly setup - the 'arguments' variable at dispatch time. - * testsuite/actionscript.all/Function.as: - Test the 'arguments' variable in function context. - * server/array.{cpp,h}: allow resize trough - setting the 'length' property. - * testsuite/actionscript.all/array.as: test - that arrays 'length' is settable. - -2007-02-28 Markus Gothe - - * server/asobj/Date.cpp: #define NAN (0.0/0.0) as this is not comp. - with C++98 and non-GCC compilers borks. - * gui/gtk.cpp: Added '//' before commentary. - -2007-02-27 Martin Guy - - * server/asobj/Date.cpp: Implement Date.UTC(). It is not yet - initialised properly (Date.UTC() still gives undefined) - * testsuite/actionscript.all/Date.cpp: Test Date.UTC() - * server/asobj/Global.cpp: remove oxbow code. - * server/asobj/Global.cpp: bugfixen: log_aserror is (now?) printf-like - * server/asobj/string.cpp: bugfixen: log_aserror is (now?) printf-like - -2007-02-27 Sandro Santilli - - * libgeometry/Range2d.h: add contains(Range2d) method. - * testsuite/libgeometry/Range2dTest.cpp: Add tests for 'contains'. - -2007-02-27 Sandro Santilli - - * backend/Makefile.am, backend/sound_handler.h, - backend/sound_handler.cpp, backend/sound_handler_gst.h, - backend/sound_handler_sdl.h, extensions/Makefile.am, - gui/Player.cpp, gui/Player.h, gui/gtk.cpp, gui/gui.cpp, - server/Makefile.am, server/button_character_instance.h, - server/gnash.h, server/impl.cpp, server/impl.h, - server/mouse_button_state.h, server/sound.cpp, server/sound.h, - server/sprite_instance.cpp, server/asobj/Sound.cpp, - server/asobj/SoundFfmpeg.cpp, server/asobj/SoundGst.cpp, - server/asobj/SoundMad.cpp, server/parser/Makefile.am, - server/parser/button_character_def.cpp, - server/parser/button_character_def.h, - server/parser/movie_def_impl.cpp, - server/parser/sound_definition.cpp, - server/parser/sound_definition.h, server/swf/tag_loaders.cpp, - server/vm/ASHandlers.cpp, server/vm/action.cpp, - testsuite/Makefile.am, testsuite/MovieTester.cpp, - testsuite/MovieTester.h, testsuite/sound_handler_test.h, - testsuite/actionscript.all/LoadVars.as, - testsuite/misc-ming.all/Makefile.am, - testsuite/misc-mtasc.all/hello.as, - testsuite/movies.all/Makefile.am, testsuite/samples/Makefile.am: - Files scramble. sound_handler has now it's own header, sound.{cpp,h} - has been moved to parser/sound_definition.{cpp,h}. - -2007-02-26 Markus Gothe - - * extensions/fileio/Makefile.am: Added {PTHREAD,BOOST}_CFLAGS - -2007-02-26 Sandro Santilli - - * server/impl.cpp, server/swf/tag_loaders.{cpp,h}: - Add support for IMPORTASSETS2 (an SWF8 tag). - -2007-02-26 Sandro Santilli - - * server/parser/sprite_definition.h: don't check - for movie definition being NULL as we're not allowing - this anymore. - * server/parser/sprite_definition.cpp (ctor) *require* - a movie_definition as we'll need it for a few things, - including getVersion.. - * server/generic_character.h: store character_def - by intrusive_ptr ! - * server/sprite_instance.{cpp,h}: new add_textfield method; - fix add_empty_movieclip to provide a movie_definition to - sprite-definition constructor; handle dynamic sprites - when calling getBytestLoaded/getBytesTotal. - -2007-02-26 Sandro Santilli - - * testsuite/actionscript.all/Inheritance.as: - a couple of additional tests for accessing - a function's prototype after a call to - 'extends'. - * testsuite/misc-ming.all/RollOverOutTest.c: don't - use Ming-specific 'gotoFrame' ActionScript syntax. - * testsuite/misc-ming.all/gotoFrame2Test.as: don't - use Ming-specific 'gotoFrame' ActionScript construct. - With newer Ming versions (0.4.0.beta4 up) the gotoAndPlay() - call will be converted to GOTOFRAME2 nonetheless. - * server/vm/ASHandlers.cpp (ActionGotoExpression: - Frame are 1-based when referred to by Flash coders. - * testsuite/samples/Makefile.am: - Enabled run of GotoAndPlayTest.swf self-contained - testcase. - -2007-02-26 Sandro Santilli - - * server/parser/morph2_character_def.cpp (display): - survive malformed SWF (mismatching number of paths - or edges in start and end shape); (read): warn - about malformed swf. Fixes bug #19085. - -2007-02-26 Sandro Santilli - - * testsuite/misc-mtasc.all/: Makefile.am, inheritance.as: - Test inheritance using MTASC. - * server/swf_function.cpp: 'super' in function2 register is now - tested, don't warn anymore. - -2007-02-25 Sandro Santilli - - * libbase/URL.cpp (encode,decode): support ' ' <=> '+' conversion. - * server/asobj/LoadVars.cpp: add support for LoadVars.sendAndLoad(). - -2007-02-25 Sandro Santilli - - * libbase/curl_adapter.cpp: implemented seek_to_end - for curl-based stream. - * server/as_object.cpp (enumerateProperties): - Fix wrong 'this_ptr' send to PropertyList::enumerateKeyValue() - -2007-02-25 Sandro Santilli - - * libbase/URL.{cpp,h}: add encode() and decode() - public static functions. - * server/asobj/Global.cpp (escape/unescape): - Use URL::encode and URL::decode. - -2007-02-25 Sandro Santilli - - * server/PropertyList.{cpp,h}: add - enumerateKeyValue() method; renamed - enumerateValues to enumerateKeys (makes more sense). - * server/as_object.{cpp,h}: - add enumerateProperty() overloaded function to - write properties to a std::map - * testsuite/server/PropertyListTest.cpp: add - test for enumerateKeyValue(). - -2007-02-25 Sandro Santilli - - * server/asobj/NetConnection.{cpp,h}: - Allow build w/out libcurl. - * extensions/fileio/Makefile.am: fix - 'make check' and 'make dist' rules. - * server/asobj/LoadVars.cpp: implemented - LoadVars.loaded property. - * testsuite/actionscript.all/LoadVars.as: - Test LoadVars.loaded. - -2007-02-25 Markus Gothe - - * macros/libslist: Check in lib32 before lib64. - * utilities/processor.cpp: Fixed optopt as extern ifndef _GNUC_ - * macros/boost.m4: Generic approach to test date-time. - * testsuite/libbase/Makefile.am: Fixed $(NULL)-bug. - * server/asobj/Date.cpp: Removed extra ; thus letting gcc compile - it with -pedantic. - * libbase/embedVideoDecoder.h: Removed errornous ','. - * server/asobj/LoadVars.cpp: Fixed "LoadVars.cpp:160: error: ISO C++ - forbids variable-size array 'buf'" - * server/asobj/Number.cpp: \%s -> %s. - -2007-02-24 Sandro Santilli - - * testsuite/actionscript.all/Math.as: - Fix testcase to reflect actual behaviour when SWF target - version is < 7. - * server/asobj/LoadVars.cpp: - Made code more robust, and hopefully also cleaner. - * utilities/processor.cpp: - Fix waitforadvance handling. Wait 5 seconds before - kicking movie to next frame. This allows for testing - intervals and similar time-dependent features. - * testsuite/actionscript.all/LoadVars.as: - Add test for LoadVars.load, LoadVars.getBytesTotal, - LoadVars.getBytesLoaded and LoadVars.onLoad. - -2007-02-23 Sandro Santilli - - * server/asobj/LoadVars.cpp: - Use Timers to avoid premature deletion - of the LoadVars object while it's loading - threads are still alive. - -2007-02-23 Udo Giacomozzi - - * configure.ac: Fix some minor typos - -2007-02-23 Rob Savoye - - * configure.ac: Add --with-pixelformat=option to set the AGG pixel - format via the command line to override the defaults if - desired. Exit if one of the values for --with-pixelformat is - bogus. - -2007-02-23 Sandro Santilli - - * testsuite/media/: vars.txt, vars2.txt: data - files for use with LoadVars and loadVariables - tests. - * server/as_function.h: add a call() function - to make operator() calls nicer when having - an as_function pointer. - * server/asobj/LoadVars.cpp: implement getBytesLoaded, - getBytesTotal, onLoad and onData events, load() method. - * server/StreamProvider.{cpp,h}: turn into - a singleton, add getStream() version taking - post data. - * server/impl.cpp: use the StreamProvider singleton. - -2007-02-23 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Use PIXELFORMAT_xxx defines - introduced by Rob - -2007-02-22 Rob Savoye - - * configure.ac: Set the pixel type when using AGG for better - efficiency by looking at the GUI type. Print out MySQL paths if - extensions are enabled. Don't build klash if KDE isn't found. - -2007-02-22 Udo Giacomozzi - - * server/sprite_instance.cpp: Respect m_old_invalidated_bounds even - when invisible. - -2007-02-22 Sandro Santilli - - * libbase/curl_adapter.cpp: - Use a member to store post data, as it - needs a longer lifetime for libcurl to work. - * testsuite/libbase/Makefile.am: - Don't run CurlStreamTest by 'make check' - as it's not ready for automatic testing. - * testsuite/libbase/CurlStreamTest.cpp: - Turn the test into a tool supporting POST - operations (for manual testing it). - -2007-02-22 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp: Removed the use of ffdec_mp3 since - it isn't recommended by gstreamer. Added warnings if the used - version of the fluendo-mp3-plugin is too low. - -2007-02-22 Udo Giacomozzi - - * backend/render_handler_agg.cpp, backend/render_handler_agg_style.h: - Switched to pre-multiplied pixel values. Fixes some anti-aliasing - issues and improves rendering performance, especially for gradients. - * backend/render_handler_agg.cpp: - Avoid re-initialisation of AGG path class inside for-loop. - * extensions/fileio/fileio.cpp: Fixed fgets() to avoid segfaults; - call fclose() in destructor to close file descriptor in any case. - * server/movie_root.h: Provided write access for m_timer - * gui/fb.cpp: Update global timer to make getTimer() work - at least with the FB GUI - -2007-02-22 Sandro Santilli - - * libbase/curl_adapter.{cpp,h}: - Add support for http POST (untested). - -2007-02-21 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: - Define MEDIADIR - * testsuite/actionscript.all/check.as: - Provide MEDIA() macro to easy access to - paths in testsuite/media directory. - -2007-02-21 Sandro Santilli - - * libbase/log.{cpp,h}: add log_debug and used - for GNASH_REPORT_FUNCTION. - * server/asobj/Global.cpp, server/vm/ASHandlers.cpp: - Changed trace() function to use log_trace. - -2007-02-21 Tomas Groth Christensen - - * backend/sound_handler_{gst,sdl}.cpp: Removed newline from warnings, and - added more user help. - * macros/ffmpeg.m4: Yet another go at bug #16663. - -2007-02-21 Tomas Groth Christensen - - * configure.ac, macros/ffmpeg.m4: Another go at bug #16663. - * backend/sound_handler_gst.cpp: Added warnings when using fluendos - mp3 plugin for gstreamer, since it doesn't support soundstreams. - -2007-02-21 Sandro Santilli - - * server/sprite_instance.cpp (do_actions): report actions - execution with -va. - * server/vm/ASHandlers.cpp: Store number of arguments - into an unsigned integer. Fixes an abort with a malformed - SWF. - * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: - Don't expect failures anymore ! - -2007-02-21 Tomas Groth Christensen - - * configure.ac, macros/ffmpeg.m4: Output warning when old ffmpeg-version - detected. Will hopefully fix bug #16663. - * gui/Player.cpp: Set the soundhandler to NULL when shutting down, Will - hopefully fix bug #18545. - * server/asobj/NetStreamFfmpeg.cpp, server/asobj/SoundFfmpeg.cpp, - server/asobj/SoundMad.cpp: Disconnect cleanly from the soundhandler, - if it exists. - * server/sound.{cpp,h}: Made sound_stream_tag into a state tag. - * testsuite/sound_handler_test.cpp: Increment the counting variables - stopped_all and started_all. - -2007-02-21 Sandro Santilli - - * server/Makefile.am, - server/swf/DefineFontAlignZonesTag.{cpp,h}: - Initial implementation of DefineFontAlignZones - tag loader (unfinished). - * server/impl.cpp: use unfinished loader for - DEFINEFONTALIGNZONES. - * server/stream.h: add skip_to_tag_end() method. - -2007-02-21 Sandro Santilli - - * server/font.{cpp,h}, server/impl.cpp, - server/swf/tag_loaders.{cpp,h}: - Add support for DEFINEFONT3 tag (not much done, - as Alexis report it to be equal to DEFINEFONT2 - in definition - needs support of DEFINEALIGNZONES - tag to be fully supported. - -2007-02-21 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, gotoFrame2Test.as: - Stubbed Udo's test as Ming source and build rule and test runner. - -2007-02-21 Udo Giacomozzi - - * testsuite/samples/GotoAndPlayTest.{as,swf}: Testcase for - gotoAndPlay() bug - -2007-02-21 Sandro Santilli - - * server/sound.{h,cpp}: made start_sound_tag a "state" - tag. This seems to fixes eventSoundTest1.swf, altoguth - it's runner still fails (a bug in the tester, most likely). - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: - Fixed input filename (sorry guys). - -2007-02-20 Sandro Santilli - - * server/sprite_instance.cpp (get_topmost_mouse_entity): - Check also drawable bounds ! - * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: - Don't expect failure with filled shapes making - the MovieClip grab mouse envets. Add another test - showing that non-filled shapes (simple lines) still - fail in this. - -2007-02-20 Sandro Santilli - - * server/sprite_instance.cpp (get_invalidated_bounds): - Include bounds of drawable instance. - * server/vm/with_stack_entry.h: add non-const - version of object() accessor. - * server/vm/ActionExec.{cpp,h}: add getTarget() - method to properly set "this" pointer for function - calls. - * server/vm/ASHandlers.cpp (ActionCallFunction): - Properly set the "this" pointer by fetching it - from ActionExec "thread" (looks in 'with' stack). - -2007-02-20 Sandro Santilli - - * testsuite/actionscript.all/with.as: add test for function - call in 'with' context (fails!). - * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: - Fix input filename; expect the failures (we'll be happy - to see XPASS messages :) - -2007-02-20 Tomas Groth Christensen - - * server/gnash.h: Added support for the new test-soundhandler. - * testsuite/sound_handler_test.{h,cpp}: Added. A soundhandler for - testing gnash. - * testsuite/Makefile.am: Added the new test-soundhandler. - * testsuite/MovieTester.{cpp,h}: Added support for the new - test-soundhandler. - * testsuite/misc-ming.all/{eventSoundTest1.c,eventSoundTest1-Runner.cpp}: - Added. Tests simple event sounds. - * testsuite/misc-ming.all/Makefile.am: Added the eventSoundTest1 - testcase and its runner. - * testsuite/media/sound1.mp3: Added. Used in the eventSoundTest1 - testcase. - -2007-02-20 Sandro Santilli - - * testsuite/misc-ming.all/: DrawingApi.as => DrawingApiTest.as, - DrawingApiTestRunner.cpp, Makefile.am: - Add a runner for DrawingApi test (failing). - -2007-02-20 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - RollOverOutTest-Runner.cpp, root_stop_testrunner.cpp: - Allow run of test runners from external dirs. - * configure.ac: report failign gstreamer detection - to refer to failign 0.10 or higher gstreamer - detection. - * testsuite/simple.exp: have CR also break lines. - * testsuite/misc-ming.all/attachMovieTestRunner.cpp: - Oops, SWF6 is converting stuff to lowercase, so - we need to get_member( "mousedown"/"mouseup" ) - rather then "mouseDown"/"mouseUp". - Don't expect a failure anymor ! :) - -2007-02-20 Sandro Santilli - - * testsuite/misc-ming.all/attachMovieTest.c: - print instance name on mouse down/up events. - * server/button_character_instance.cpp (on_button_event): - survive on unhandled event handler. - * server/character.{cpp,h}: add getter_setter for - onMouseDown, onMouseUp and onMouseMove; add has_mouse_event() - method. - * server/movie_root.{cpp,h}: - Add mouse listeners. Change key listeners to use std::set - (more appropriate) and to use intrusive_ptr (safer); - Notify mouse listeners on move and click events, don't - duplicate notification on *active* entity as these events - (mouse up,down,move) are not restricted to entity under the - mouse. - * server/sprite_instance.{cpp,h}: (on_event): if a builtin - handler is invoked, don't go look for functions; register - as a mouse listener if have mouse event handlers. - -2007-02-20 Udo Giacomozzi - - * extensions/fileio/fileio.cpp: Fixed some compiler warnings - -2007-02-19 Sandro Santilli - - * testsuite/misc-ming.all/: attachMovieTest.c, - attachMovieTestRunner.cpp: - Add onMouseDown and onMouseUp handlers to - exported symbol. Confirms bug #19040. - -2007-02-19 Rob Savoye - - * macros/boost.m4: Tweak patch for bug #18788 to work when cross - configuring. - -2007-02-19 Wil Mahan - - * configure.ac, macros/boost.m4: add check for libboost-date-time - (see bug #18788). - -2007-02-19 Tomas Groth Christensen - - * macros/ffmpeg.m4: The minimum LIBAVCODEC_VERSION is now 51.11.0. - Also we can now handle if VP6 (FFMPEG_VP6) or avcodec_decode_audio2() - (FFMPEG_AUDIO2) is not supported by the used version of ffmpeg. - * backend/sound_handler_sdl.cpp: Added support for FFMPEG_AUDIO2 - * libbase/embedVideoDecoderFfmpeg.cpp: Made use of the constructor and - deconstructor. Added support for FFMPEG_VP6. - * libbase/embedVideoDecoderGst.cpp: Made use of the constructor and - deconstructor. - * server/asobj/NetStreamFfmpeg.cpp: Added support for FFMPEG_AUDIO2. - * server/asobj/Sound.cpp: Use the supplied name when searching for exports. - * server/asobj/SoundFfmpeg.cpp: Added support for FFMPEG_AUDIO2. - Made the deconstructor work better. - * server/asobj/SoundGst.cpp: Made the deconstructor work better. - -2007-02-19 Sandro Santilli - - * server/: DynamicShape.{cpp,h}, sprite_instance.{cpp,h}: - Implement beginFill() and endFill() - * testsuite/misc-ming.all/DrawingApi.as: non-automatic - source for testing the drawing api. Feel free to add - calls there :) - -2007-02-19 Udo Giacomozzi - - * server/fill_style.h: add missing return type - * gui/fb.cpp: add support for eGalax/eTurbotouch touchscreens; - use persistent buffer for PS/2 mice also - -2007-02-19 Sandro Santilli - - * server/fill_style.{cpp,h}: add setSolid() method. - -2007-02-19 Sandro Santilli - - * server/parser/shape_character_def.{h,cpp}: removed calls - for dynamic drawing. Use DynamicShape instead. - * server/: Makefile.am, DynamicShape.{cpp,h}: - New subclass of shape_character_def to abstract dynami drawing - * server/sprite_instance.{cpp,h}: - Implement lineStyle, moveTo, lineTo methods of MovieClip - class. This works by maintaining a DynamicShape member. - * server/parser/BitmapMovieDefinition.{cpp,h}: use - a DynamicShape rather then a shape_character_def. - -2007-02-19 Sandro Santilli - - * server/shape.{cpp,h}: new empty() and close() - methods. - -2007-02-18 Rob Savoye - - * plugin/.klash/Makefile.am: Install klashpartui.rc, - klash_part.desktop, and pluginsinfo in their correct - directories. bug #190821. - -2007-02-17 Sandro Santilli - - * server/parser/shape_character_def.{cpp,h}: - Changed signature of add_fill_style and - add_line_style to take into account reuse - of existing styles and to abstract offset - semantic (1-based). - * server/parser/BitmapMovieDefinition.cpp: - Update call to add_fill_stle; don't make - assumption about offset of the newly added - style. - -2007-02-16 Martin Guy - - * doc/C/sources.xml: Correct Debian dev package names. - * server/asobj/Date.cpp: Remove commentary copied from sephiroth; - it was lifted straight from MacroMedia copyright material - (see http://www.brajeshwar.com/reference/as2) - * server/asobj/Date.cpp: Document incompatabilities with FlashPlayer. - * server/asobj/Math.cpp: Remove unused and duplicate code. - * server/asobj/Math.cpp: Don't abort on missing args; return NAN - * testsuite/actionscript.all/Math.as: Add test suite for Math methods. - * testsuite/actionscript.all/Makefile.am: Add Math.as to tests to run. - -2007-02-16 Sandro Santilli - - * testsuite/misc-ming.all/consecutive_goto_frame_test.c: - Visually trace action execution, use C-style comments. - * server/sprite_instance.cpp (advance_sprite): - always update oldDisplayList, not only when in PLAY state ! - * testsuite/misc-ming.all/action_execution_order_test.c: - Check UNLOAD being called only *once* (proper management - of oldDisplayList). - -2007-02-16 Sandro Santilli - - * testsuite/misc-ming.all/consecutive_goto_frame_test.c: - reduce frame rate to 1 frame per second. - Shows that all actions (up to the final stop) are - executed at the first advancement (are *supposed* to work like that) - * server/sprite_instance.cpp (add_display_object): - don't check for "events" match when comparing existing - char at given depth. Fixes move_object_test.swf. - * testsuite/misc-ming.all/: Makefile.am, move_object_test.c: - Test unnamed instances handling on restart, and also test - for syntetized instance names. - -2007-02-16 Udo Giacomozzi - - * server/sprite_instance.cpp: Removed name check to get sprites - moved to their correct position after a loop - -2007-02-16 Sandro Santilli - - * server/dlist.{h,cpp}: don't dispatch UNLOAD event - unless explicitly requested by caller. - * server/sprite_instance.cpp: properly dispatch - UNLOAD event on just-removed chars. - * testsuite/misc-ming.all/action_execution_order_test.c: - Added an additional test for order of onLoad event call. - -2007-02-16 Sandro Santilli - - * server/sprite_instance.cpp: - Warn only once about unsupported stuff; Provide - the *unimplemented* MovieClip.moveTo method. - * testsuite/actionscript.all/MovieClip.as: don't - expect failure in checking moveTo. - -2007-02-16 Sandro Santilli - - - * server/asobj/: Color.cpp, Sound.cpp: - Warn only once about unsupported stuff; don't terminate - log_ with a newline (will be added); properly - tag ActionScript errors (log_aserror, and protect by - IF_VERBOSE_ASCODING_ERRORS). - * server/sprite_instance.{cpp,h}: Fixed (hopefully) - the action execution order. Implementation is far - from elegant, but gives the idea of how it should work, - and actually passed our test for it, w/out breaking - anything else. - * testsuite/misc-ming.all/action_execution_order_test.c: - Add an additional test to verify that function definitions - are not specially handled as it comes to action execution - order. Don't expect failures anymore. - * server/dlist.{cpp,h}: add clear_except() override taking - a DisplayList as argument. Add a call_unload argument - for both clear_except() methods; add empty() method; - add clear() override taking a DisplayList as argument. - * utilities/processor.cpp: add -f switch to control - the number of "advance" calls on the top movie. - -2007-02-15 Sandro Santilli - - * server/parser/movie_definition.h: documented get_frame_size(). - * server/parser/BitmapMovieDefinition.h (get_{width,height}_pixels): - use TWIPS_TO_PIXELS for consistency with movie_definition. - * server/parser/BitmapMovieDefinition.cpp (getShapeDef): use 1 twip - per image pixel while drawing. - -2007-02-15 Rob Savoye - - * doc/C/gtkext.xml: Chapter on the Gtk extension. - * doc/C/mysqlext.xml: Chapter on the MySQL extension. - * doc/C/fileext.xml: Chapter on the File I/O extension. - * doc/C/Makefile.am: Add new files to dependencies. - - * doc/C/extensions.xml: New file on the extension mechanism, and - on writing extensions. - * doc/C/gnash.xml: Add extensions chapter. - - * extensions/gtk2: New directory for Gtk2 API extension. - * extensions/gtk2/hello.as: The well known Gtk "Hello" example - program written in ActionScript. - * extensions/gtk2/gtkext.{cpp,h}: Wrappers for the Gtk2 API to - export it into Gnash. - -2007-02-14 Udo Giacomozzi - - * server/BitmapMovieInstance.cpp, server/parser/BitmapMovieDefinition.cpp: - Corrected JPG scale - -2007-02-14 Sandro Santilli - - * server/: movie_instance.cpp, movie_root.cpp: move - tu_random reset from movie_instance to movie_root - (random number generation should be taken care at global level); - Have movie_instance::advance call ::construct() rather - then manually executing frame tags. - * testsuite/misc-ming.all/action_execution_order_test.c: - Add an additional complexity to the test, checking - for proper DisplayList construction to happen *before* - actions execution. - * server/asobj/xmlnode.cpp: fix getter-setters for read-only - properties to survive attempts to set (logging the aserror). - -2007-02-14 Rob Savoye - - * testsuite/actionscript.all/XMLNode.as: Fix tests for newly work - XLNode class. - * server/asobj/xmlnode.{cpp,h}: Make nextSibling, previousSibling, - firstChild, and lastChild work correctly. - -2007-02-14 Sandro Santilli - - * server/swf/tag_loaders.{cpp,h}: implement serialnumber_loader. - * server/impl.cpp: register SERIALNUMBER loader. - * server/stream.{h,cpp}: add read_string_with_lenght() function - taking length as argument; add get_tag_length() function - returning length of current tag. - -2007-02-14 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp, server/asobj/NetStreamFfmpeg.{h,cpp}, - server/gnash.h: Changed the aux_streamer_ptr callback to return bool. - * libbase/gstgnashsrc.h, server/asobj/NetStreamGst.cpp: Moved definition - of gnash_plugin_desc to registering file to avoid multiple definitions. - * server/asobj/SoundGst.{cpp,h}, server/asobj/SoundFfmpeg.{cpp,h}, - server/asobj/SoundMad.{cpp,h} Added FFMPEG, Gstreamer and libmad - backends for the Sound class. - * server/asobj/Sound.{cpp,h}: Added support for the new backends. - * server/asobj/Makefile.am: Added SoundGst.{h,cpp}, SoundFfmpeg.{h,cpp}, - and SoundMad.{h,cpp}, - * server/asobj/NetConnection.{cpp,h}: Made accept as_object as argument - instead of NetStream, to allow Sound to use NetConnection. - -2007-02-14 Sandro Santilli - - * server/shape.h: add more public functions for - manipulation. - * server/parser/morph2_character_def.cpp: try to - avoid direct access to shape private wonnabes; - simplified code, hopefully more readable now. - * server/parser/shape_character_def.cpp: try - to avoid direct access to shape pritave wonnabes. - -2007-02-14 Sandro Santilli - - * server/shape.{cpp,h}: added primitives for - drawing API: drawLineTo, drawCurveTo. - Method names track Ming interface. - * server/parser/BitmapMovieDefinition.cpp: - Use the path drawing api, draw a thicker outline - (outline works, fill not). - -2007-02-14 Sandro Santilli - - * server/sprite_instance.cpp (goto_frame): - Don't trash actions following gotoFrame() calls - (fixes multiple_doactions_and_goto_frame_test.c). - Added comments about problems with consecutive_goto_frame_test. - * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c: - Don't expect the failure anymore :) - -2007-02-14 Tomas Groth Christensen - - * server/asobj/ASSound.{cpp,h}: Renamed to Sound.{h,cpp}. - * server/asobj/Global.cpp, server/asobj/Makefile.am, win32/VC8/gnash.vcproj, - win32/VC8/npgnash.vcproj: Updated to use Sound.{h,cpp} instead of - ASSound.{h,cpp}. - -2007-02-14 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: run the multi_doactions - gotoframe test. - * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c: - expect the failure. - * server/BitmapMovieInstance.{cpp,h}: use sprite_instance::display, - don't override it. instead, place the bitmap shape in the - displaylist. - * server/parser/BitmapMovieDefinition.{cpp,h}: change - constructor to take an image rather then a bitmap_character_def - (the latter has a poor interface). - * server/impl.cpp: updated construction of BitmapMovieDefinition. - * server/parser/shape_character_def.h: new add_line_style() - method, for programmatic definition of shapes. - -2007-02-14 Zou Lunkai - - * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c - another testcase for goto_frame. - -2007-02-13 Rob Savoye - - * configure.ac: Disable dmalloc check for now. Configure - extension/fileio directory. - * extensions/Makefile.am: Build in the fileio directory. - - * server/asobj/xmlnode.cpp: Implement toString(). Make appendChild - actually work. - * server/asobj/xml.cpp: Re-implement toString(). Make - createElement() and createTextNode() actually work. - * server/asobj/xmlnode.h, xml.h: Include stringstream, and add to - stringify() prototype. - * server/asobj/xml.cpp: - * server/vm/ActionExec.cpp: Renable the stack dump messages for - -va. - * testsuite/actionscript.all/XML.as: Replace all the create* and - appendChild() tests now that this functionality actually works. - * server/Makefile.am: Add boost and pthread libs for cross compiling. - * server/asobj/Makefile.am: Add glib and gstreamer cflags, needed - when cross compiling with Gstreamer support. - - -2007-02-13 Sandro Santilli - - * server/parser/shape_character_def.h: new add_path() and - add_fill_style() methods, to allow for programmatic - definition of shape chars (will likely need more of these - for implementing the Drawing API). - * server/sprite_instance.h: add a protected place_character - method, to fiddle with displaylist w/out character *ids*. - * server/shape.h (class path): add setLeftFill, setRightFill - and setStartPoint methods; document some more. - * server/sprite_instance.{cpp,h}: - Drop unused registeredClass arg in constructor. - * server/parser/sprite_definition.cpp: - update call to sprite_instance constructor. - -2007-02-13 Sandro Santilli - - * server/: Makefile.am, fill_style.{cpp,h}, - styles.{cpp,h}: moved fill_style class in its - own file. Removeod unused code, provided - a fill_style constructor for creating clipped - bitmap fills. - * server/render.h: had doxygen comments point - to the correct place (render_handler). - -2007-02-13 Sandro Santilli - - * server/parser/: Makefile.am, BitmapMovieDefinition.h: - Class used to return a movie_definition from load of a JPEG. - * server/: Makefile.am, BitmapMovieInstance.{cpp,h}: - Instance of a BitmapMovieDefinition (a movie_instance). - * server/impl.cpp: move the unimplemented stuff over - to the new BitmapMovie classes. - * testsuite/misc-ming.all/loadMovieTestRunner.cpp: - Don't expect a failure in loading the external JPEG - (it loads, just doesn't display). - -2007-02-13 Sandro Santilli - - * testsuite/misc-mtasc.all/.cvsignore: new file. - * testsuite/misc-ming.all/consecutive_goto_frame_test.c: - expect the current failures, just to allow 'make check' - to continue working (known bugs need be 'expected', if - they unexpectedly pass 'make check' will exit with a - FAILURE code so we can joy and remove the expectance). - * testsuite/misc-mtasc.all/: Makefile.am, hello.as: - Generalized Makefile, stuff Dejagnu.swf in first frame - and dejagnu_so_fini.as in last frame using 'makeswf'. - Ready to start with mtasc tests. - -2007-02-13 Udo Giacomozzi - - * gui/gui.cpp: Make full redraw on ENABLE_REGION_UPDATES_DEBUGGING - configurable - * gui/fb.cpp, gui/fbsup.h: Initial support for mouse - * server/character.h: Avoid redrawing when matrix did not change - * backend/render_handler_agg.cpp: Correctly handling NULL clipping - rectangle - * server/character.cpp, server/character.h, - server/sprite_instance.cpp: distinguish between own and child's - invalidation state to avoid useless redrawing (should be a big - performance gain in certain cases) - -2007-02-13 Rob Savoye - - * extensions/fileio/Makefile.am, fileio.cpp, fileio.h, test.as: - New files for direct File I/O extension for Gnash. - -2007-02-12 Sandro Santilli - - * macros/mtasc.m4: provide some detection for mtasc - (CLASSPATH detection needs more work). - * configure.ac: detect mtasc availability. - * Makefile.am: dump MTASC info on 'make dumpconfig'. - * testsuite/Makefile.am: descend in misc-mtasc.all - * testsuite/misc-mtasc.all/Makefile.am: initial Makefile - for mtasc. - * testsuite/misc-mtasc.all/hello.as: simple test - (build with 'make hello.swf'). - -2007-02-12 Sandro Santilli - - * server/button_character_instance.cpp (on_button_event): - Survive MOUSE_DOWN and MOUSE_UP events. - * server/movie_root.cpp: (generate_mouse_button_events): - Dispatch events MOUSE_DOWN and MOUSE_UP togheter with PRESS - and RELEASE (see bug #19040). - * server/sprite_instance.cpp (can_hanle_mouse_envent): - Consider MOUSE_DOWN and MOUSE_UP events (see bug #19040). - -2007-02-12 Tomas Groth Christensen - - * server/asobj/ASSound.{cpp,h}, server/asobj/Global.cpp: Updated the - AS Sound class to the new init method. - -2007-02-12 Sandro Santilli - - * server/sprite_instance.{cpp,h}: reverted - goto_frame patch introducing regression failures. - See bug #19020. - -2007-02-12 Sandro Santilli - - * server/tesselate.cpp: std::fabsf => std::abs. - * server/execute_tag.h: doxygen documentation, - add new execute_action() function. - * server/sprite_instance.{cpp,h}: changed signature - of execute_frame_tags() to allow executions of - action tags only. - -2007-02-12 Markus Gothe - - * server/debugger.h: &val, &val -> &var, &val - * server/matrix.cpp: Using namespace std; - -2007-02-12 Sandro Santilli - - * server/character.h: documented ::advance() method. - * testsuite/misc-ming.all/action_execution_order_test.c: made - more verbose, reduced frame rate to better see what goes on, - don't use C++ comments. - * testsuite/misc-ming.all/Makefile.am: add consecutive_goto_frame_test - to the 'make check' loop. - * libbase/utility.h: std::logf => std::log. - -2007-02-12 Zou Lunkai - - * testsuite/misc-ming.all/consecutive_goto_frame_test.c - add a new testcase for testing consecutive ActionGotoAndStop. - - -2007-02-12 Markus Gothe - - * libbase/utility.h: Added note on log2 - -2007-02-11 Deanna Phillips - - * server/asobj/Number.cpp: Removed use of fpclassify. - -2007-02-11 Sandro Santilli - - * server/sprite_instance.cpp: stubbed unloadMovie ActionScript - function. - * server/asobj/MovieClipLoader.cpp: properly register - the MovieClipLoader global class (use builtin_function, - not a "dumb" c_function. - * testsuite/actionscript.all/: Makefile.am, MovieClipLoader.as: - simple test for MovieClipLoader (just inheritance and functions - availability). - -2007-02-11 Markus Gothe - - * server/asobj/Number.cpp: Reverted stupid mistake. - -2007-02-11 Sandro Santilli - - * macros/pthreads.m4: use -pthread for linux, as suggested by boost - error. - -2007-02-11 Martin Guy - - * server/asobj/Date.cpp: Disable use of tzset/timezone that does not - compile on BSD, contrary to the GNU glibc manual. - -2007-02-11 Sandro Santilli - - * server/: impl.cpp, swf.h: renamed IMPORT2 as IMPORTASSETS2, tracking - Ming naming convention; add ENABLEDEBUGGER2 definition (and null - loader). - * server/asobj/Number.cpp: don't redefine fpclassify: _fpclassify - won't build on an ubuntu dapper; fpclassify is defined in math.h, - already included. - -2007-02-10 Rob Savoye - - * libbase/Makefile.am: Add glib and gstreamer cflags, needed when - cross compiling with Gstreamer support. - * macros/gnashpkgtool.m4: Search_libs after a directory search. - * macros/pkg.m4: Use pathlist to find pkg-config. - * server/Makefile.am: Add glib and gstreamer cflags, needed when - cross compiling with Gstreamer support. - * server/debugger.cpp,: Tweak usage - * server/parser/Makefile.am: Add libxml, glib, and gstreamer - cflags, needed when cross compiling with Gstreamer support. - * server/vm/Makefile.am: Add glib and gstreamer cflags, needed - when cross compiling with Gstreamer support. - * utilities/Makefile.am: With GST for sound, include glib and - gstreamer libraries. - -2007-02-10 Markus Gothe - - * server/asobj/Math.cpp: using namespace std; - * server/asobj/Number.cpp: using namespace std; Fixes for C99->C++. - * libbase/postscript.cpp: using namespace std; - * libbase/tu_file.cpp: namespacing. - -2007-02-10 Udo Giacomozzi - - * gui/fb.cpp: fixed some compilation problems when DOUBLE_BUFFER is - disabled; fixed _validbounds so that the movie is visible again; - added 2 pixel border to invalidated bounds to fix anti-aliasing - problems; set scaling to view movie full-screen; added/fixed - support for 24 and 32 bit modes - * render_handler_agg.cpp: added pixel format BGRA32 - -2007-02-10 Sandro Santilli - - * server/sprite_instance.cpp: remove characters - not in current DisplayList from _frame0_chars when - looping back. See patch #5620. - * testsuite/misc-ming.all/Makefile.am: - fixed typo in loadMovieTestRunner dependency. - -2007-02-10 Zou Lunkai - - * testsuite/misc-ming.all/place_and_remove_object_insane_test.c - add a new check that fails current Gnash and some comments. Only - xchecks are supposed to be insane. - -2007-02-09 Rob Savoye - - * doc/C/debugger.xml: New file about the Flash debugger. - * doc/C/sources.xml: Add --disable-debugger option. - * doc/C/gnash.xml: Add info about the -g option. Add an entity for - the new debugger chapter. - * doc/C/gnash-man.xml: Add info about the -g option. - - * server/debugger.{cpp, h}: Implement breakpoint functions. Add a - call stack. - * server/vm/ASHandlers.cpp: Break and watch point here. - * server/vm/ActionExec.cpp: Don't watchpoint here anymore. - - * macros/ffmpeg.m4: Check for the version of ffmpeg and print a - warning if it's too old to use. - * configure.ac: Print warning if you have ffmpeg, but it's a - version older than 5.29.0. #18663. - -2007-02-09 Bastiaan Jacques - - * libbase/tu_types.h: Add the BYTE_ORDER name used on Mac OSX. - -2007-02-09 Tomas Groth Christensen - - * libbase/Makefile.am: Added embedVideoDecoderGst.{cpp,h}. - * libbase/embedVideoDecoderGst.{cpp,h}: Added. Use Gstreamer to decode - embedded video. - * libbase/embedVideoDecoder.h, libbase/embedVideoDecoderFfmpeg.cpp: - Added support for more codecs. - * server/parser/Makefile.am, server/parser/video_stream_def.cpp, - server/parser/video_stream_def.h: Added support for using Gstreamer - to decode embedded video. - -2007-02-09 Sandro Santilli - - * testsuite/actionscript.all/dejagnu_so_init.as: made use - of frame loop a compile-time define for having another way - to test setInterval. - * testsuite/misc-ming.all/: Makefile.am, intervalTest.as, - intervalTestRunner.cpp: add test *runner* for intervalTest.swf - -2007-02-09 Sandro Santilli - - * testsuite/MovieTester.cpp: advance the movie_root, not - the topmost sprite ! This properly run interval timers. - * server/movie_root.{cpp,h}: Store Timer objects - by value, not by pointer (make memory management easier); - I might change this in the future, but for now it works - fine. Possible future changes include: reserving a number - of slots for timers (possibly setting a limit), reusing - slots of expired timers (needs a testcase to see if that's - allowed). - * server/timers.{cpp,h}: Big cleanup; got rid of timer_as_object; - use integer values for times, reduced function calls (store timeouts - in microseconds directly); documented. - * server/asobj/xmlsocket.cpp: fix use of Timer class. - * testsuite/misc-ming.all/: Makefile.am, intervalTest.as: new - test for setInterval() and clearInterval(). Lacks a test *runner* - but the manually running it clearly shows it works with this commit - (and not before). Note that self-contained tests are already - present, but a MovieTester based runner is required for proper - testing. - -2007-02-09 Martin Guy - - * server/asobj/Math.cpp: Methods for constants have uppercase names - -2007-02-09 Sandro Santilli - - * server/parser/: movie_def_impl.h, movie_definition.h: - Don't include timers.h. - * server/asobj/Global.cpp: add setInterval and clearInterval - global functions. - * testsuite/actionscript.all/Global.as: test existance of - setInterval and clearInterval function. - -2007-02-08 Rob Savoye - - * server/debugger.cpp: Dump the name of as_objects on the stack - too. Some objects are created internally, so don't have a symbol - table entry. - * server/as_object.h: Return the raw properties handle so the - debugger can use it. Add set_std_string method to let one add - standard STL strings. - * server/debugger.cpp, debugger.h: Add support for setting - variables or registers from the debugger console. Fix the symbol - table to actually work, so now function names are displayed when - doing a stack frame dump instead of just the address. Add minimal - support for dumping information about the movie. - * server/vm/ASHandlers.cpp: Grab the correct address when adding - symbols to the debugger. - -2007-02-08 Sandro Santilli - - * server/timers.{h,cpp}: add execution operator. - * server/movie_root.{h,cpp}: removed do_something method, - replaced by Timer's execution operator. Changed add_interval_timer - to take a Timer& rather then a void*. Fixed clear_interval_timer - to avoid modifying the Timer list consequently making interval - ids invalid (all commented, check out for details). - * server/sprite_instance.{h,cpp}: removed {add,clear}_interval_timer - and do_somthing methods. Callers should use the ones in movie_root. - * server/asobj/xmlsocket.cpp: don't register setInterval and - clearInterval functions as they should be globals ! - -2007-02-08 Tomas Groth Christensen - - * server/video_stream_instance.cpp, server/parser/video_stream_def.cpp: - Make sure current video really is from a VideoFrame tag, before trying to - decode. - -2007-02-08 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, loadMovieTestRunner.cpp: - Test runner for loadMovie.swf. - -2007-02-08 Bastiaan Jacques - - * server/debugger.cpp: Simple cleanup: remove unneeded casts. - -2007-02-08 Sandro Santilli - - * server/asobj/MovieClipLoader.cpp (loadClip): use the new - sprite_instance::loadMovie() method. - * server/movie_root.cpp: keep root sprite alive during actions - execution. - * server/sprite_instance.{cpp,h}: complete implementation of - MovieClip.loadMovie(). - -2007-02-08 Martin Guy - - * server/asobj/Number.cpp: Only do string-to-number conversion when - text value is required, not on every math operation; moved text - conversion code out of class definition into its own function. - * server/asobj/Number.cpp: Added text conversion of NaN and Infinities. - -2007-02-08 Sandro Santilli - - * server/event_id.h: add id() accessor, properly use the id_code enum. - * server/sprite_instance.cpp (can_handle_mouse_event): handle - case insensitiveness for SWF<7 fixing bug exposed by - loadMovieTest.swf; (sprite_load_movie): add - a few more checks, needs more work. - * testsuite/misc-ming.all/: Makefile.am, loadMovieTest.c: - simple testcase for MovieClip.loadMovie(); exposes a bug - in event handling too. No runner for it (yet). - -2007-02-08 Tomas Groth Christensen - - * libbase/embedVideoDecoder.h, libbase/embedVideoDecoderFfmpeg.cpp: - Added more video codecs. - * server/asobj/NetStreamFfmpeg.cpp: Check if url is readable. - * server/asobj/NetStreamGst.cpp: Check if a NetConnection object exists. - * server/parser/video_stream_def.cpp: Fixed a warning. - * testsuite/actionscript.all/rtmp.as: Made it actually test something. - -2007-02-08 Tomas Groth Christensen - - * libbase/Makefile.am: Added embedVideoDecoder.h, - embedVideoDecoderFfmpeg.{h,cpp} - * libbase/embedVideoDecoderFfmpeg.{h,cpp}: Added. Decoder for embedded video - using ffmpeg. - * server/impl.cpp: Added support for parsing swf embedded in a player (.exe) - * server/asobj/NetStreamFfmpeg.{cpp,h}: Fixed some warnings. - * server/parser/movie_def_impl.h: Removed unused soundstream list. - * server/video_stream_instance.{cpp,h}, - server/parser/video_stream_def.{cpp,h}, server/swf/tag_loaders.cpp: - Added support for embedded video. - -2007-02-08 Sandro Santilli - - * server/character.{h,cpp} (get_relative_target_common): - support "_parent". - * testsuite/actionscript.all/MovieClip.as: add test for _parent - member of actionscript created movieclips. - -2007-02-07 Sandro Santilli - - * testsuite/actionscript.all/Global.as: expect failures with - 'unescape'... anyone confirming the results with other players - is welcome. - * testsuite/MovieTester.{cpp,h}: add pressKey() and releaseKey() - methods. - * testsuite/misc-ming.all/: KeyTest-Runner.cpp, KeyTest.as, - Makefile.am: test for Key events. - * testsuite/actionscript.all/Object.as: add test for overriding - addProperty() member of an object. - -2007-02-07 Martin Guy - - * server/asobj/Data.cpp: Completed reverse engineering of get/set - methods - * configure.ac: Added check for ftime() - * testsuite/actionscript.all/Date.as: Add tests for get/set methods - -2007-02-07 Sandro Santilli - - * server/debugger.h: const-correctness fixes. - * server/parser/action_buffer.h: buffer accessor return by const - pointer. - * server/asobj/Key.cpp (notify_key_event): fix update - of the _global.Key object, properly handle case of function names - (TODO: produce an automated testcase for this!). - * server/sprite_instance.cpp (movieclip_ctor): don't attach MovieClip - properties, as those are only good for real sprites. - * server/swf/tag_loaders.cpp: use log_swferror where appropriate, - (swf_event::read): tolerate malformed header. - -2007-02-07 Sandro Santilli - - * server/types.cpp (rgba::read): made more readable. - * server/vm/fn_call.h: add dump_args() method. - * server/asobj/Object.cpp: use log_aserror() where appropriate, - dump function args when invalid. Don't giveup when number of - args is greater then required. - -2007-02-07 Sandro Santilli - - * testsuite/actionscript.all/Object.as: add tests for invalid calls - to addProperty() [ found in hello.swf from Laszlo ] - * server/asobj/Object.{cpp,h}: export getObjectInterface() - * server/asobj/as_object.{cpp,h} (get_prototype): return - Object class interface when hit top of inheritance chain; - make sure to never access m_prototype directly but always - use get_prototype() instead. This ensures that *every* object - ends up being an Object instance. - * testsuite/actionscript.all/Function.as: a few more tests to - ensure that functions are instance of Object. - * testsuite/actionscript.all/: MovieClip.as, Inheritance.as: - Don't expect failures while checking for objects being - instance of Object class. - -2007-02-07 Sandro Santilli - - * server/swf/tag_loaders.cpp (define_shape_loader): neater parse - print. - * server/types.{cpp,h}: add output operator and toString - method for rgba class. - * server/styles.cpp (fill_stle::read): neater color print. - * server/parser/shape_character_def.cpp (read): - neater parse print. - -2007-02-06 Rob Savoye - - * server/as_value.h: Add is_as_function() . - * server/debugger.cpp: Try to lookup a symbol name for each - address when dumping the stack. Add support for a symbol table for - all functions and "new" objects and an "i s" command to dump the - symbol table. "i f" now dumps the stack frame, it was "i s" - before. - * server/parser/action_buffer.h: Add accessors for the code - buffer. - * server/vm/ASHandlers.cpp: Don't need std:: since we're using the - std namespace. Add a symbol for function definitions. - * server/vm/ActionExec.cpp: Stash the pc pointer for later instead - of passing it in on the command line. - * utilities/parser.cpp, processor.cpp: Add support for the debugger. - -2007-02-06 Sandro Santilli - - * server/debugger.{h,cpp}: (disassemble): first argument - can safely be passed as a 'const' pointer. - * server/parser/action_buffer.h: added get_buffer() to - return an unsugned char. - * server/vm/ActionExec.cpp (operator()): use - action_buffer::get_buffer() to fetch an appropriate argument - for Debugger::disassemble. - -2007-02-06 Martin Guy - - * server/asobj/Data.cpp: Fixed bug in setUTCHours(), - make utc/localtime specification compulsory in inner workings. - * server/asobj/Number.cpp: Convert numbers to strings the same way as a - certain commercial Flash Player does. - * configure.ac: Add check for memmove, used in Number.cpp - -2007-02-06 Rob Savoye - - * configure.ac: Add --disable-debugger option. - * server/debugger.h, debugger.cpp: New files for Flash debugger - support. - * gui/gnash.cpp: Add -g option to start the debugger console. - * server/as_environment.h: Add methods to set registers. - * server/parser/action_buffer.cpp: Add to existing string value, - don't replace it. - * server/vm/ActionExec.cpp: Add support for the Flash - debugger. Simplify the methods where case conversion is done. - -2007-02-06 Sandro Santilli - - * server/as_environment.cpp (get_variable_raw): - Don't provide "_global" when SWF version is < 6. - * testsuite/actionscript.all/getvariable.as: don't expect - failures in SWF5 mode (_global related) - * testsuite/actionscript.all/Global.as: use check_equals - when possible, fix for missing SWF5 _global, remove - escape() tests with SWF > 5 as I can't confirm correct - result. - * testsuite/actionscript.all/delete.as: fix for SWF5 run - (_global related). - -2007-02-05 Tomas Groth Christensen - - * server/asobj/NetConnection.cpp: Make sure we don't setup a connection - that already exists. - * server/asobj/NetStreamFfmpeg.{cpp,h}: Fixed a potential hanging thread. - * server/asobj/NetStreamGst.{cpp,h}: Switched from pthreads to boost. - Fixed a potential hanging thread. - -2007-02-05 Sandro Santilli - - * server/PropertyList.cpp: delete overridden properties in import(); - properly clear current container on assignment operator (also fixed - it's signature). Properly delete Property in delProperty(). - * server/PropertyList.h: Properly document Property ownership. - -2007-02-05 Zou Lunkai - - * server/movie_root.cpp, server/asobj/xml.cpp, - server/asobj/xmlnode.cpp. - typos, get rid of unnecessary warnings with vc8 compiler - -2007-02-05 Markus Gothe - - * macros/pthreads.m4: Fixed a quirky LIBS/CFLAGS-bug. - * libbase/log.cpp: Removed BOOST_HAS_THREADS. - * cygnal/cygnal.cpp: Removed implicit include. - * cygnal/statistics.h: Removed unsed include. - -2007-02-03 Sandro Santilli - - * server/GetterSetter.{cpp,h}: fixed assignment operator (a bad typo!). - * server/dlist.cpp: call character::construct() everytime an object - is placed on stage, making the code much more readable and clean - (IMHO). - * server/sprite_instance.{h,cpp}: implement 'construct' method - to take care of properly handling user-defined registered - classes for sprites and to execute tags in frame0; attach - properties to *instances* rather then to the MovieClip - exported interface. - * server/character.h: add a 'construct' method. - * testsuite/misc-ming.all/: registerClassTest.c, - registerClassTestRunner.cpp: add new tests, a fix - for gnash will follow shortly. - * server/parser/sprite_definition.h: add getRegisteredClass() - method. - -2007-02-03 Martin Guy - - * server/asobj/Data.cpp: Fixed fmod issues. - -2007-02-03 Martin Guy - - * server/asobj/Data.cpp: Pretty much complete rewrite of nonworking - module forced by change of internal representation from many little - date fields to milliseconds since epoch. Not fully working yet. - * configure.ac: include tests for localtime_r and tzset. - -2007-02-02 Markus Gothe - - * server/asobj/Data.cpp: Fixed fmod issue. - -2007-02-02 Martin Guy - - * testsuite/actionscript.all/Global.as: add checks for malformed - encoded URLs - -2007-02-02 Tomas Groth Christensen - - * server/asobj/NetStreamFfmpeg.cpp: Fixed a deadlock when deleting - netstream before playback started. - -2007-02-02 Rob Savoye - - * plugin/klash/Makefile.am: Simplify heavily as most of the KDE - settings we don't need for a simple kpart. - -2007-02-02 Sandro Santilli - - * server/as_object.h (set_prototype): made public, as any - protection is useless as long as set_member("__proto__") - still changes the prototype. - -2007-02-02 Martin Guy - - * server/Date.cpp: Eliminate Date class; port to date_as_object - -2007-02-02 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: add a few more checks - for properties. - * testsuite/actionscript.all/Inheritance.as: don't expect - failures with Date object; add a test about constructors - calling order. - * server/asobj/: Date.{cpp,h}, Global.cpp: - Ported Date object to new layout; make Date.UTC a not-exported - class-static - * testsuite/actionscript.all/Date.as: don't expect a failure - for Date.UTC. - * server/: character.h, sprite_instance.h: get_current_frame() - and has_looped() removed from character class (meaningless). - Added some comments about restart(). - * plugin/klash/Makefile.am: defined kde_moduledir - and kde_servicesdir as required by automake 1.9.6. - Used KDE_MODULESDIR and KDE_SERVICESDIR, which are - currently *not* defined - at least it builds though. - -2007-02-01 Martin Guy - - * server/Date.cpp: Add date_utc unimplemenrted stub for - ActionScript Date.UTC method - -2007-02-01 Rob Savoye - - * configure.ac: Use the new KDE and QT macros. - * macros/kde.m4: Rewrite completely to be more standard with how - all the other tests work. - -2007-02-01 Martin Guy - - * server/asobj/Date.cpp: #if 0 out unused function stubs - and implement missing setDate method - -2007-02-01 Martin Guy - - * server/asobj/{Date,Global,string}.cpp: Convert all assert()s that - triggered by illegal number of args in runtime ActionScript - to IF_VERBOSE_ASCODING_ERRORS() warnings with and keep going, - giving safe default return values. - -2007-02-01 Bastiaan Jacques - - * server/asobj/NetStreamFfmpeg.h: Switch multithread_queue over to - using boost threads. Add a comment about some strange code in - push()... - -2007-02-01 Martin Guy - - * server/asobj/Global.cpp: Implement ActionScript 5 "escape" method - * testsuite/actionscript.all/Global.as: Add test case for "escape" - -2007-02-01 Bernhard Rosenkraenzer - - * Makefile.am: Add the plugin directory to our SUBDIRS when we don't - have GTK but when we do want Klash. - * plugin/klash/klash_part.cpp: Move visibility annotations to from - the class implementation into the declaration. - -2007-02-01 Martin Guy - - * server/asobj/Global.cpp: Rewrite lame code in string conversions: - remove insane case statement and avoid unnecessary use of floating - point - -2007-02-01 Martin Guy - - * testsuite/actionscript.all/Global.as: fix bug in parseInt octal test - (now succeeds) - -2007-02-01 Sandro Santilli - - * testsuite/misc-ming.all/: registerClassTest.c, - registerClassTestRunner.cpp: made test more - complex, showing that the *constructor* of - the registered classes is called ! - This currently fails. - -2007-02-01 Sandro Santilli - - * server/parser/movie_def_impl.cpp (read_all_swf): - Perform a last check for "orphaned" actions, which are - action blocks NOT followed by a SHOWFRAME. - * doc/C/internals.xml (Writing self-contained SWF tests): - Document new optional argument for check() and xcheck(). - * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): - Allow second argument to check() and xcheck() for an explicit - label. - -2007-02-01 Sandro Santilli - - * server/as_object.h (get_primitive_value): return - an OBJECT value by default (not a number). - * server/as_value.cpp (operator==): avoid infinite - recursion now that get_primitive_value is allowed - to return an OBJECT again. - * server/asobj/Numbec.cpp: override get_primitive_value - to return a NUMBER value. - * testsuite/actionscript.all/Object.as: don't expect - failures for valueOf tests. - -2007-02-01 Sandro Santilli - - * testsuite/actionscript.all/Object.as: add tests for toString - and valueOf. The latter doesn't work yet. - * server/asobj/Object.cpp: add valueOf and toString methods, - make addProperty availability version-dependent (only if SWF > 5) - * server/as_object.{cpp,h}: add generic and reusable - actionscript method handlers for toString() and - valueOf(). - * server/asobj/Number.cpp (attachNumberInterface): - define toString() and valueOf() methods. - * testsuite/actionscript.all/Number.as: test toString() - and valueOf(). - -2007-01-31 Sandro Santilli - - * server/sprite_instance.cpp (sprite_attach_movie): - tolerate bogus third argument to attachMovie(). - Fixes bug #18920. - -2007-01-31 Martin Guy - - * configure.ac: Remove check for png.h; it is not a Gnash dependency. - It is a sub-dependency of gtk and pango, not required for gtk-less - builds. - -2007-01-31 Sandro Santilli - - * server/mouse_button_state.h: symbolic button states. - * server/movie_root.cpp (generate_mouse_button_events): - use symbolic names for button states. - * server/as_object.cpp (set_member_default): more verbose warning - for invalid properties found in the inheritance chain. - -2007-01-31 Bastiaan Jacques - - * backend/render_handler_agg.cpp, gui/{gui.cpp, gtk.cpp}: Do not - subtract 1 from the rendering width and height (fixes bug #18904). - * gui/README: update to current status. - * gui: Rename Gui::set_invalidated_region to setInvalidatedRegion to - match naming style. - * gui/fltk{.cpp, sup.h, _glue_agg.cpp, _glue_agg.h}: Add a menu bar - to the FLTK window. Make the AGG glue inherit from fltk::Widget, so - it can be added to the FLTK window without interfering with menu - drawing. Since the same hasn't yet been done for the Cairo glue, - disable Cairo/FLTK for now. Account for the menu height when passing - the mouse position to the rest of Gnash. Delay initialisation of the - Glue until we are ready to add it to the FLTK window. Until we can - solve rendering issues, disable region based clipping for AGG. - Note that some FLTK menu items are not yet implemented. - * gui/gtk{.cpp, _glue_agg.cpp}: Remove the unused valid_coord method. - * gui/gui{.cpp, .h}: Declarations in the header, implementation in - the .cpp file. Shuffle the order of declarations so they are grouped - by type. - * server/movie_root.h: set_invalidated_region is used across libraries, - so visibility should be DSO_EXPORT. - * server/sprite_instance.cpp: Assert that our pointer is non-NULL - before attempting to dereference it. - -2007-01-31 Sandro Santilli - - * server/button_character_instance.{h,cpp}: - Use getter-setter properties, and avoid override - of get_member/set_member methods. - * server/character.{cpp,h}: define more generic - getter-setters. - * server/sprite_instance.cpp: use character class - statics for onload and onrollout events - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: - expect less failures :) - -2007-01-31 Sandro Santilli - - * server/sprite_instance.cpp (goto_frame): fix - check for target frame being already loaded. - * server/button_character_instance.cpp (on_event): - added verbose output for unsupported button events. - * testsuite/misc-ming.all/: ButtonEventTest.c, - ButtonEventTest-Runner.cpp: added some (failing) - tests for user defined event handlers. - -2007-01-30 Zou Lunkai - - * testsuite/misc-ming.all/goto_frame_test.c: - add test for consecutive goto - -2007-01-30 Ann Barcomb - - * Added: devtools/lib/Gnash/Distribution.pm and - devtools/lib/Gnash/Utils.pm - These libraries will be used to support the devtools/testsuite - tests, which are tests intended to increase conformance with - coding standards. - * Added devtools/testsuite/uncuddled_else.t - It is a test which searches for instances of uncuddled elses - in C++ source files. - -2007-01-30 Martin Guy - - * config.mk.in, compatibility_include.h: Remove unused GAMESWF defines - -2007-01-30 Sandro Santilli - - * server/: character.{h,cpp}, sprite_instance.cpp: - Made generic gettersetter definitions statics - in the 'character' class. Ready for reuse in button - instances and whichever other ActionScript class - associated with a character (_x,_y,_width...). - -2007-01-25 Martin Guy - - * configure.ac: Make libjpeg presence mandatory and fail otherwise; - otherwise compilation fails. - -2007-01-25 Martin Guy - - * configure.ac: Fix message about Debian packages required for boost - -2007-01-30 Sandro Santilli - - * server/: video_stream_instance.{h,cpp}, - server/asobj/: NetConnection.cpp, NetConnection.h, NetStream.cpp, - NetStream.h, NetStreamFfmpeg.cpp, NetStreamFfmpeg.h, NetStreamGst.cpp, - NetStreamGst.h: - Refactored NetStream inheritance model, got rid of - netstream_as_object and netconnection_as_object wrappers. - -2007-01-30 Sandro Santilli - - * server/parser/movie_def_impl.cpp (incrementLoadedFrames): - handle malformed SWF containing more SHOWFRAME then expected; - (readHeader): allocate more slots for actions to make malformed - SWF handling easier. - * server/asobj/: NetConnection.cpp, NetStream.cpp: - Cleanups and robustness improvements. - * server/parser/movie_def_impl.cpp (read_all_swf): - Don't discard anything past the last SHOWFRAME, - as Ming seems to still put EXPORTASSETS after it - (possibly bogus, but we want to accept it). - -2007-01-30 Tomas Groth Christensen - - * server/asobj/NetStreamGst.cpp: Fixed wrong return type. - -2007-01-30 Sandro Santilli - - * server/asobj/xml.cpp: removed stale #endif. - -2007-01-29 Rob Savoye - - * configure.ac: Remove --disable option. Bug #18905: - * libamf/amftest.cpp: Remove HAVE_LIBXML ifdefs, we always - want XML support. - * libbase/log.h, log.cpp: Remove HAVE_LIBXML ifdefs, we always - want XML support. - * server/asobj/xmlsocket.h: Remove HAVE_LIBXML ifdefs, we always - want XML support. - * server/vm/action.cpp: Remove HAVE_LIBXML ifdefs, we always want - XML support. - * utilities/parser.cpp, processor.cpp: Remove HAVE_LIBXML ifdefs, - we always want XML support. - -2007-01-25 Martin Guy - - * configure.ac, README: Remove code and documentation for - --disable-xml - -2007-01-25 Martin Guy - - * configure.ac, server/asobj/xml.cpp: Remove broken - --enable-xmlreader and --enable-dom leaving only dom. - -2007-01-29 Sandro Santilli - - * server/parser/movie_def_impl.cpp (read_all_swf): when last - expected SHOWFRAME tag is hit, discard the rest and warn - user if next tag is not an END. This happens when Ming users - forget to call SWFMovie_nextFrame() as last thing before output. - -2007-01-29 Ann Barcomb - - * Removed reference to '--disable-xml' option in doc/C/sources.xml. - It is required now. - -2007-01-29 Sandro Santilli - - * server/parser/movie_def_impl.h (add_execute_tag, add_init_action): - Add an assertion to catch out-of-bounds accesses. - -2007-01-29 Zou Lunkai - - * testsuite/misc-ming.all/goto_frame_test.c: - add checks about the _currentframe property before - and after goto_frame actions; change xcheck to check. - * server/sprite_instance.cpp sprite_instance.h: - fixed goto_frame_test(bug #18845). the next step is to - make testcase more complicated - -2007-01-27 Tomas Groth Christensen - - * server/asobj/Global.cpp: NetConnection switched to the new init method. - * server/asobj/NetConnection.{cpp,h}: Switched to the new init method. - Moved URL checking to NetConnection, and added support for different ways - to setup the URL. - * server/asobj/NetStreamFfmpeg.{cpp,h}, server/asobj/NetStreamGst.cpp: - Removed the URL checking, and moved it to NetConnection. Added "support" - for the "mp3:" prefix (untested). - -2007-01-26 Rob Savoye - - * configure.ac: Look for libexpat too to resolve a stupid library - dependency on some systems. - * gui/Makefile.am: Add EXPAT_LIBS for GTK builds. Add XFT and X11 - libs for FLTK2 builds - * macros/x11.m4: New file for X11. The default one from aclocal - doesn't support cross configuration very well, so now we have our - own. Also look for Xinerama to keep Debian Etch happy. - * macros/firefox.m4: Add an --with-gnashexe to specify an optional - path to find the gnash executable if it's not in $prefix/bin. - * plugin/Makefile.am: - * plugin/plugin.cpp: Use GNASHBINDIR instead of PREFIX to be clearer. - -2007-01-25 Sandro Santilli - - * backend/render_handler.h (Detection of regions update page): - note that set_invalidated() must be called *prior* actual - modifications; minor typos and rewordings. - * server/sprite_instance.cpp (on_event): don't attempt to call - event handlers functions when they are simply *undefined*. - * testsuite/MovieTester.cpp: call display() before advancing - to make invalidated bounds computation properly work. - * testsuite/misc-ming.all/simple_loop_testrunner.cpp: - don't expect a failure about invalidated bounds at loopback. - * server/character.h: more info about invalidated bounds - methods and members. - -2007-01-25 Martin Guy - - * configure.ac: Regularize indentation, reorder things - -2007-01-25 Rob Savoye - - * plugin/Makefile.am: Add more header paths so we can be cross - compiled. - -2007-01-25 Sandro Santilli - - * server/sprite_instance.cpp (goto_frame): - hopefully made code more readable; added warning - for gotoFrame invoking a yet-to-be-loaded frame; - added comments submitted by Zou Lunkai; - undefined OLD_GET_MEMBER accidentally defined by - some of the previous commits. - -2007-01-25 Sandro Santilli - - * testsuite/misc-ming.all/simple_loop_test.c: anchor - the characters at 0,0 and fix compiler warnings. - * testsuite/misc-ming.all/simple_loop_testrunner.cpp: - fix invalidated bounds checking (but still fails - with both bogus and correct version of - sprite_instance::execute_frame_tags - odd!) - * server/character.h: more info about set_invalidated() - * server/sprite_instance.cpp (execute_frame_tags): properly - call set_invalidated() when resetting DisplayList. - -2007-01-24 Martin Guy - - * Makefile.am: fltk cares about Xft; gtk doesn't. - * configure.ac: Move fltk gui test for Xft outside if(gui-gtk) clause - * configure.ac: Also accept "none" as alias for "no" for --enable-sound - and --with-mp3-decoder to match values reported by --version. - Mention "none", not "no", in --help. - * gui/gtk.cpp: Shorten About text to remove comments about other Flash - players; add main compile-time configurations to About box. - * gui/gtk.cpp: Extend About dialog copyright to 2007 - * gui/gnash.cpp: Update copyright in --version to 2007 - * gui/gnash.cpp: Remove unimplemented options -e and -f - (klash stubs never implemented) - * gui/Player.cpp: Remove old version of Player::run, #if 0'ed out and - mostly the same as the new implementation - -2007-01-24 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, simple_loop_test.c, - Simple_loop_testrunner.cpp: new test for simple loop. - Seems to work internally, but reveals a bug in invalidated - bounds computation !! - -2007-01-24 Ann Barcomb - - * Replaced outdated references to -a in the manual (doc/C) - with current usage. - -2007-01-24 Sandro Santilli - - * server/character.h: add isDynamic() and setDynamic() - function to tag actionscript-created characters; - have accept_anim_moves return false for dynamic chars. - * server/dlist.{cpp,h}: new add() and addAll() helper methods. - * server/sprite_instance.cpp (execute_frame_tags): - keep script objects when reinitializing DisplayList - on loop-back; (sprite_attach_movie, sprite_duplicate_movieclip, - add_empty_movieclip): mark created characters as dynamic. - * testsuite/misc-ming.all/: Makefile.am, attachMovieLoopingTest.c, - attachMovieLoopingTestRunner.cpp: test for DisplayList reset - on loopback when dynamic characters are present. - * testsuite/misc-ming.all/action_execution_order_test.c: - expect failure of the only test in there... - -2007-01-24 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - action_execution_order_test.c, attachMovieLoopingTest.c, - attachMovieLoopingTestRunner.cpp: - More tests, with failures (didnt' bother using xcheck as - I'm working on them). - -2007-01-24 Sandro Santilli - - * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: - Last commit fixed a couple of tests in this testcase. - * server/: character.h, sprite_instance.{cpp,h}: - Understood, documented and cleaned up the concept of - "ActionScript-transformed" characters; Fix property handlers - to properly register having been transformed by script. - Fixes elvis.swf and bitmap.swf. - * testsuite/misc-ming.all/: Makefile.am, attachMovieTestRunner.cpp, - loop_test-Runner.cpp, registerClassTestRunner.cpp: - Allow running tests from any directory. - -2007-01-23 Sandro Santilli - - * server/sprite_instance.cpp (ctor): fix handlign of registerClass - (at least for the new testcase). - * testsuite/misc-ming.all/: Makefile.am, registerClassTest.c, - registerClassTestRunner.cpp: new testcase for registerClass. - -2007-01-23 Tomas Groth Christensen - - * server/asobj/NetStream.{h,cpp}, server/asobj/NetStreamFfmpeg.{cpp.h}: - Use int64_t instead of long. - * server/asobj/NetStreamGst.{cpp,h}: Use int64_t instead of long. - Switched to use gst_element_seek() for seeking, which is supported by - older version of gstreamer. - -2007-01-23 Sandro Santilli - - * server/as_object.cpp ({get,set}_member_default): - handle ActionExceptions. - * testsuite/generic-testrunner.sh: be more verbose about - exit failures. - -2007-01-23 Sandro Santilli - - * libbase/GnashException.h: add ActionException class. - * server/sprite_instance.cpp, server/asobj/Date.cpp: - throw an ActionException if methods or gettersetter properties are invoked - against the wrong instance type. - * server/vm/action.cpp (call_method): catch ActionException - so return for invalid calls is always undefined. - * testsuite/actionscript.all/Date.as: don't expect a failure - on dateInstance.UTC being undefined. - * testsuite/actionscript.all/Inheritance.as: Test access of - builtin methods or gettersetter properties from user defined - objects. - -2007-01-23 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Also resample if samplerate is correct - but number of channels is not (mono => stereo). - * server/asobj/Global.cpp: Initialize NetStream using the new method. - * server/asobj/NetConnection.h: Now compiles without Curl. - * server/asobj/NetStream.{cpp,h}: Initialize NetStream using the new method. - Implemented the time-property. - * server/asobj/NetStreamFfmpeg.{cpp,h}: Switched from pthreads to boost. - Hopefully fixed a thread-join-bug (#18571). - Use ffmpeg/libavcodec's audio resampler since gnashs own resampler only - supports a limited samplerates. - Implemented seek() and time(). - * server/asobj/NetStreamGst.{cpp,h}: Implemented seek() and time(). - -2007-01-23 Sandro Santilli - - * server/as_object.cpp (copyProperties): use set_member - while importing properties to properly scan the - inheritance chain. - * server/PropertyList.h: add visitValues() templated function. - * server/sprite_instance.cpp (sprite_attach_movie): - Copy properties from initialization object *after* - placement to ensure matrix is properly updated. - * testsuite/misc-ming.all/: attachMovieTest.c, - attachMovieTestRunner.cpp: - Made dejagnu-enabled, test for actual position - of attached movieclips. - -2007-01-22 Sandro Santilli - - * testsuite/actionscript.all/Inheritance.as: add a new test triggering - an assertion failure due to 'extends' modifying inheritance chains - and importing a getter_setter not meant for non-sprite objects. - * testsuite/actionscript.all/: Inheritance.as, MovieClip.as: expect - failures on 'any instanceOf Object' after fix to - 'as_object::instanceOf'. - * server/as_object.h: add const version of get_prototype. - * server/as_function.cpp (getPrototype): use get_member to access - the prototype, in case it was set by ActionScript. - * server/as_object.cpp (instanceOf): fix broken implementation always - returning true :/ - -2007-01-22 Sandro Santilli - - * testsuite/actionscript.all/Inheritance.as: additional - test for 'new Function' construct. - * server/sprite_instance.cpp (attachMovieClipInterface, get_member): - handled most standard properties by means of calls to the new - 'init_property' call. Fixes run of the new attachMovieTest testcase - and makes code easier and more reusable (next step is to reuse - the getter-setter for other builtin classes like TextField, Button - or the like). - * testsuite/misc-ming.all/: attachMovieTest.c, - attachMovieTestRunner.cpp: - test 3rd argument to attachMovie (initObject). - Fixed by change in sprite_instance above. - * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: - Expect a failure accessing '_x' property of a clip, not sure - about importance of it being the test insane. - -2007-01-22 Zou Lunkai - - * testsuite/misc-ming.all/: Makefile.am, goto_frame_test.c: - Failing test for gotoFrame action. - -2007-01-22 Ann Barcomb - - * Partially merged branch 'testing-documentation-refactor' for - files doc/C/sources.xml and doc/C/internals.xml. The change - involved moving 'running tests' from the test-writing section - into the user's installation section. - -2007-01-21 Rob Savoye - - * Makefile.am: Organize the output of dumpconfig somewhat. Make - some lines optional based on the configuration to save space. - * NEWS: Add that cross compiling is now supported. - * README: Mention trying cvs Head befor bug reporting. - * configure.ac: Check for the build and host systems. We don't - have to hack cross_compile. it works correctly now. Use - $host_alias instead $target_alias for the directory search - paths. Look for PNG, OLPC needs it. Define a restricted path for - cross configuring and export it for the other m4 scripts. - * doc/C/sources.xml: Clarify cross configuring based on current - technique. - * gui/Makefile.am: PTHREAD_LIBS must be after BOOST_LIBS. - * libamf/Makefile.am: Remove unused libraries from LDFLAGS. - * macros/curl.m4: Only look for curl-config in the pathlist - variable. - * macros/glib.m4: Look for glibconfig.h in the right place. - * macros/gtk2.m4: Add -lgobject and -lgmodule for cross - compiling. - * macros/incllist, libslist: Look in $host_alias, not - $target_alias. - * macros/libXML.m4: Only look for xml2-config in the pathlist - variable. - * macros/ming.m4: Only look for ming-config in the pathlist - variable. - * macros/pthreads.m4: Use correct comment syntax. Also look for - pthread.h and libpthread so we cross configure correctly. - * macros/sdl.m4: Only look for sdl-config in the pathlist - variable. - * plugin/klash/Makefile.am: Don't build klash here anymore. - * utilities/Makefile.am: Link in XML2 libs. - -2007-01-19 Sandro Santilli - - * server/asobj/xmlnode.cpp (attachXMLNodeInterface): - add_property -> init_property. - * server/sprite_instance.{h,cpp}: MovieClip.attachMovie() implemented. - * testsuite/misc-ming.all/: Makefile.am, attachMovieTest.c, - attachMovieTestRunner.cpp: testcase and runner for - MovieClip.attachMovie(). - -2007-01-19 Sandro Santilli - - * server/asobj/xmlnode.cpp (xmlnode_new): cast double to int - before casting to an enum [ fix for gcc-3.3.5 ] - * server/sprite_instance.cpp: cleanups, including use - of log_aserror when appropriate. - * server/as_object.cpp: commented out debugging output. - -2007-01-18 Sandro Santilli - - * extensions/mysql/mysql_table.cpp, server/array.cpp, - server/array.h, server/as_function.cpp, server/as_object.cpp, - server/as_object.h, server/button_character_instance.cpp, - server/button_character_instance.h, - server/edit_text_character.cpp, server/edit_text_character.h, - server/event_id.h, server/gnash.h, server/movie_root.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/swf_function.cpp, server/video_stream_instance.cpp, - server/video_stream_instance.h, server/asobj/ASSound.cpp, - server/asobj/Boolean.cpp, server/asobj/Camera.cpp, - server/asobj/Color.cpp, server/asobj/ContextMenu.cpp, - server/asobj/CustomActions.cpp, server/asobj/Date.cpp, - server/asobj/Error.cpp, server/asobj/Global.cpp, - server/asobj/Key.cpp, server/asobj/Key.h, - server/asobj/LoadVars.cpp, server/asobj/LocalConnection.cpp, - server/asobj/Math.cpp, server/asobj/Microphone.cpp, - server/asobj/Mouse.cpp, server/asobj/MovieClipLoader.cpp, - server/asobj/NetConnection.cpp, server/asobj/NetStream.cpp, - server/asobj/NetStream.h, server/asobj/NetStreamFfmpeg.cpp, - server/asobj/NetStreamGst.cpp, server/asobj/Number.cpp, - server/asobj/Object.cpp, server/asobj/Selection.cpp, - server/asobj/SharedObject.cpp, server/asobj/Stage.cpp, - server/asobj/System.cpp, server/asobj/TextSnapshot.cpp, - server/asobj/Video.cpp, server/asobj/gen-asclass.sh, - server/asobj/string.cpp, server/asobj/xml.cpp, - server/asobj/xmlnode.cpp, server/asobj/xmlsocket.cpp, - server/vm/ASHandlers.cpp, server/vm/ActionExec.cpp, - server/vm/ActionExec.h, server/vm/action.cpp, - server/vm/action.h, testsuite/actionscript.all/XML.as, - testsuite/server/GetterSetterTest.cpp: - (1) Change {get,set}_member{,_default} as_object members - to take a std::string rather then a tu_string and to avoid - case conversion of key based on target SWF version - (2) Provide init_{member,property} as_obejct members to initialize - AS class methods/props and take care of SWF#-based case-conversion; - use where appropriate. - (3) Provide {get,set}ObjectMember methods in ActionExec to take - care of SWF#-based case conversion when called from AS handlers. - -2007-01-18 Bastiaan Jacques - - * server/asobj/xml.cpp: Make sure we actually have an XMLNode pointer - before attempting to clone it. Do not attempt to setup a frame unless - XML parsing succeeded. Fixes bug #18746. - -2007-01-18 Sandro Santilli - - * server/asobj/xml.{cpp,h}: third pass of new layout port: - don't override get_member, rely on getter/setters instead. - -2007-01-18 Sandro Santilli - - * server/asobj/: Global.cpp, xml.{cpp,h}: second pass of new layout - port: use xml_class_init and hide method functions. - -2007-01-18 Sandro Santilli - - * server/asobj/xml.{cpp,h}: first pass of new layout port. - * testsuite/actionscript.all/XML.as: first unexpected success. - -2007-01-18 Sandro Santilli - - * server/asobj/: xml.cpp, xmlnode.{cpp,h}: drop xmlnode_as_object, - making XMLNode a direct subclass of as_object; Implement or stub - many properties as actual *properties* (new layout). - * testsuite/actionscript.all/XMLNode.as: other unexpected successes. - -2007-01-18 Sandro Santilli - - * server/asobj/xmlnode.{cpp,h}: (nodeValueSet): always replace - previous value. (xmlnode_nodevalue, xmlnode_nodename): act - both as a setter and a getter. - * testsuite/actionscript.all/XMLNode.as: another unexpected success. - -2007-01-18 Sandro Santilli - - * server/asobj/: Global.cpp, xml.cpp, xmlnode.{cpp,h}: - Port XMLNode class to current correct architecture. - * testsuite/actionscript.all/XML.as: unexpected pass ;) - -2007-01-18 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Fixed a bug for 8=>16 bit conversion. - * server/asobj/NetConnection.cpp: Removed a printf. - * server/asobj/NetStreamFfmpeg.cpp: Stop the decoding thread properly, - hopefully fixes bug #18571. - * misc: Tried adding some cvs id tags (again)... - -2007-01-18 Sandro Santilli - - * server/asobj/xml.cpp: use fn_call interface for - function arguments access rather then as_environment one. - -2007-01-17 Sandro Santilli - - * macros/gnashpkgtool.m4: accept pkg-config finding for CFLAGS - (the bug was introduced by last commit of this file) - * testsuite/actionscript.all/Makefile.am: don't distribute - prebuilt test cases. - * missing: fix stub for missing 'makeinfo' - * macros/ming.m4: prepend MING_PATH to PATH when - scanning for 'makeswf'. - -2007-01-17 Bastiaan Jacques - - * gui/Makefile.am: Stop calling the KDE GUI executable Klash; use - gnash instead. - * gui/kde{.cpp, sup.h}: Make a new class named qwidget derived from - QGLWidget. This allows us to create the QApplication before - instantiating an object derived from QWidget, thereby fulfilling - QT requirements. And, this way, we can also pass it argv and argc. - * plugin/klash/Makefile.am: Stop building the klash binary. The klash - code is obsolete and hasn't compiled for a while. - * plugin/klash/klash_part.cpp: Use the gnash binary instead of klash. - * backend/render_handler.h: Add get_scale() method, to retrieve the - renderer's current scaling. - * backend/render_handler_agg.cpp: Add a better trunc() implementation - from Sandro. Implement drawVideoFrame(); scaling is not yet supported. - Implement get_scale(). - * server/render{.h,.cpp}: initialise s_render_handler to NULL so as to - avoid reading uninitialised memory. Add and implement - render::get_scale(). - -2007-01-17 Sandro Santilli - - * backend/Makefile.am, libbase/Makefile.am: - ZLIB_CFLAGS => Z_CFLAGS, ZLIB_LIBS => Z_LIBS - * configure.ac: include ZLIB vars in summary. - * macros/gnashpkgtool.m4: make sure to define HAVE_header when - a package header is found. - * testsuite/samples/clip_as_button2-TestRunner.cpp: enable - verbosity *before* attempting to load the movie, to know - more about why the movie could not be loaded. - * .cvsignore, cygnal/.cvsignore, extensions/mysql/.cvsignore, - testsuite/actionscript.all/.cvsignore, - testsuite/misc-ming.all/.cvsignore, - testsuite/movies.all/.cvsignore, testsuite/samples/.cvsignore, - testsuite/server/.cvsignore: - Ignore generated files. - * testsuite/libbase/Makefile.am: don't attempt to run Curl test - if no curl is enabled. - * libbase/zlib_adapter.cpp: fix build for !TU_CONFIG_LINK_TO_ZLIB. - -2007-01-16 Bastiaan Jacques - - * configure.ac, Makefile.am, gui/Makefile.am: Stop abusing - gnashpkgtool.m4 and use GNASH_PKG_FIND. Update the users of the FLTK - compiler and linker flags to use FLTK2_flag. - * gui/fltk.cpp: Code cleanups. Fix the menu rendering bug by moving - drawing calls into draw(). Actually enable the region rendering code. - Redraw the whole window when it is moved. - * gui/{fltk_glue_agg.h, fltk_glue_agg.cpp, fltksup.h}: Trivial code - cleanups. - * gui/fltksup.h: Remove the Mozilla exception. - * macros/sdl.m4: Fix typos. - -2007-01-15 Tomas Groth Christensen - - * libbase/gstgnashsrc.{c,h}: Fixed some warnings. - * server/asobj/NetStreamGst.{cpp,h}: Fixed some warnings, and removed - some unused code. - * server/video_yuv.cpp: Removed since it function has been moved to - image::yuv. - * testsuite/movies.all/yapc2006.swf: Removed since it's just too big! - -2007-01-15 Sandro Santilli - - * server/font.h: proper include to avoid undefined - references to drop_ref(). - -2007-01-15 Sandro Santilli - - * server/asobj/TextSnapshot.cpp: fixed methods - casing. - * testsuite/actionscript.all/TextSnapshot.as: - fixed checks taking SWF version into account. - -2007-01-15 Zou Lunkai - - * server/vm/ASHandlers.cpp (ActionDefineFunction, - ActionDefineFunction2): don't push named function literals - on the stack (do it only for anonymous functions). - See patch #5685. - -2007-01-15 Sandro Santilli - - * testsuite/server/Makefile.am: explicitly link to libgnashvm. - -2007-01-15 Sandro Santilli - - * server/as_environment.{cpp,h}: added padStack - method to help stack underrun fixes. - * server/vm/: ASHandlers.{cpp,h}, ActionExec.{cpp,h}: - Moved stack underrun handling from ASHandlers to - ActionExec, taking "stack frame" in consideration. - The fix for stack underron will now insert undefined - variables in *front* of the stack frame, not at the - end. The effect is that *final* arguments of tags are - undefined, not *initial*. - * testsuite/actionscript.all/Makefile.am: - Enabled build of swap.as testcase. - -2007-01-15 Zou Lunkai - - * testsuite/actionscript.all/swap.as: new test for - stack underrun handling. - -2007-01-14 Sandro Santilli - - * server/vm/ActionExec.{cpp,h} (getVariable, setVariable, - setLocalVariable): convert variable name to - lowercase if SWF version is < 7. This should relief us - from doing it in as_object::get_member_default (TODO: check it out). - * server/sprite_instance.cpp (get_member): - handle '_root', '_level0' and 'this' references. - * server/vm/ASHandlers.cpp (CommonSetTarget): use - as_environment::get_variable() rather then find_target() - to resolve target name (more hiding, automatic use of the - new implementaion). - * server/as_environment.{cpp,h}: (get_variable): - allow objects to be used as path components, scan _global for - first element of path. Uses a newly added find_object_slashsyntax - and find_object_dotsyntax methods, with interface similar to find_target, - but w/out insisting on getting a sprite_instance. - (find_target): return NULL on invalid paths. - * testsuite/actionscript.all/getvariable.as: some new tests. - -2007-01-13 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: don't attempt to - build "quickcheck" runners with 'make all'. - -2007-01-13 Tomas Groth Christensen - - * backend/render_handler_ogl.cpp: No need to flip the frame twice. - * libbase/Makefile.am, libbase/gstgnashsrc.{c,h}: Added gstgnashsrc.{c,h} - for feeding gstreamer through callbacks. - * server/Makefile.am, server/asobj/Makefile.am, - server/asobj/NetStream.h, server/asobj/NetStreamGst.{cpp,h}: Added - NetStreamGst for decoding of external videofiles using Gstreamer. - * server/asobj/NetConnection.{cpp,h}: Rewritten to use curl (based on - curl_adapter) - * server/asobj/NetStreamFfmpeg.cpp: Use NetConnection instead of - StreamProvider. Fixed a 100%-CPU-use-bug. Stopped fliping the videoframe. - -2007-01-12 Sandro Santilli - - * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: - simplified testcase to show actual Gnash problem. - -2007-01-12 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionPushData): include - dictionary offset when printing actions. - * testsuite/misc-ming.all/ming_utils.h: cleanup documentation - for dejagnu-like macros, fix check_equals and xcheck_equals - macros so they actually print the "obtained" result. - * testsuite/misc-ming.all/Makefile.am: enable run of - the insane testcase. - -2007-01-12 Zou Lunkai - - * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: - new insane testcase (surprisingly works though). - -2007-01-12 Bastiaan Jacques - - * server/asobj/NetStreamFfmpeg.cpp: Don't delete the RGB video data - buffer until we've actually finished using it. Doh! - -2007-01-12 Sandro Santilli - - * server/vm/ActionExec.{h,cpp}: don't really - limit the size of 'with' stack. Only use the - limit information to warn user when ActionScript errors - verbosity is enabled. - * testsuite/actionscript.all/with.as: don't assume 'with' - stack limits are driven by SWF# (it will depend on the player - version instead). - * testsuite/actionscript.all/Color.as: - Use typeof() for stricter checking, fix case of methods. - * server/asobj/Color.cpp: fix case of methods. - * testsuite/actionscript.all/System.as: _global.System is - an object, not a class. Use typeof() for stricter checking. - * server/asobj/System.cpp: fix case of methods, make System - an object, not a class. - * testsuite/actionscript.all/Selection.as: _global.Seleciton is - an object, not a class. Use typeof() for stricter checking. - * server/asobj/Selection.cpp: fix case of methods, make Selection - an object, not a class. - * testsuite/actionscript.all/NetStream.as: don't check unavailability - of the class based on SWF version as the player is allowed to - provide new classes reguardless of it. Use typeof to strictly check - methods existance, check case-sensitiveness of methods. - * server/asobj/NetStream.cpp: fix case of methods. - * testsuite/actionscript.all/Makefile.am: add 'quickcheck' - rule, running *one* gnash process for each version. - Currently some tests fail, but that's likely due to - persistance of variable set in previous testcases - (they are compiled in separate frames of the same movie). - * testsuite/actionscript.all/check.as: include filename - in test result report (easier to see what goes on, altought - bigger output); make dump of rcsid hushable. - -2007-01-11 Sandro Santilli - - * server/as_environment.cpp (get_variable_raw): accept - slashes in variable names (see getvariable.as). - * testsuite/actionscript.all/: Makefile.am, getvariable.as - New testcase for GetVariable action type. Gnash aborts - against it. - -2007-01-11 Sandro Santilli - - * server/as_environment.cpp (get_variable): revert patch - forcing use of 'with' stack as it breaks other testcases. - Will need further analisys. - -2007-01-11 Sandro Santilli - - * server/sprite_instance.{cpp,h}: (ctor) optionally take - an additional argument for giving the instance an arbitrary - interface (rather then MovieClip). - * server/parser/sprite_definition.{cpp,h}: add registerClass() - method to request all subsequent instances of the sprite - get a specified interface. - * server/asobj/Object.cpp: complete registerClass() [ testing ]. - -2007-01-11 Sandro Santilli - - * server/as_environment.cpp (get_variable): use 'with' stack when - finding path component of a path.to.variable (seems to fix - a use case in player2.swf). - * server/styles.cpp: warn only once about 1st gradient fill - style position != 0. Use log_swferror when appropriate. - -2007-01-11 Sandro Santilli - - * server/asobj/Global.cpp: always provide the Function - and System classes. Add a note about possibly bogus - approach of making classes available based on SWF - version. - * testsuite/actionscript.all/Camera.as: expect - a failure on availability of Camera class for - old version (will likely change again in the future - if we confirm that availability of classes doesn't - depend on SWF version). - -2007-01-11 Sandro Santilli - - * server/asobj/Stage.cpp: Stage is not a class, but - just an object! - * testsuite/actionscript.all/Stage.as: fix taking - SWF version into account. - * server/asobj/ContextMenu.cpp: fixed method cases - * testsuite/actionscript.all/ContextMenu.as: fix taking - SWF version into account. - * server/asobj/SharedObject.cpp: fixed method cases - * testsuite/actionscript.all/SharedObject.as: fix taking - SWF version into account. - * testsuite/actionscript.all/: Error.as, LoadVars.as: - fix tests taking SWF version and case into account. - * server/asobj/LoadVars.cpp: fix method case. - * server/asobj/Error.cpp: tostring => toString - * server/asobj/Global.cpp: moved most classes to appropriate - versioned SWF section. - * configure.ac: reverted a change in FLTK lib detection - committed by accident. - -2007-01-10 Sandro Santilli - - * configure.ac: fltk gui requested and fltk2 dev package not found - is a nogo. - -2007-01-10 Bastiaan Jacques - - * gui/{fltk.cpp, fltksup.h}: Initial FLTK GUI implementation. - * gui/{fltk_glue_agg.cpp, fltk_glue_agg.h}: Agg glue for the FLTK GUI. - * gui/{fltk_glue_cairo.cpp, fltk_glue_cairo.h}: Cairo glue for the - FLTK GUI. - * configure.ac: Allow the FLTK/Agg combination. Detect the FLTK - library when the FLTK GUI was selected. Don't allow OpenGL/FLTK. - * gui/Makefile.am: Build the FLTK GUI when requested. - * gui/Player.cpp: Enable the FLTK GUI. - * gui/gtk.cpp: Use an anonymous namespace for dbglogfile to avoid - symbol collisions. - * gui/gtk.cpp, gui/gui{.h, .cpp}: Move GtkGui::menuitem_sound_callback - to class Gui so other GUIs can use it. - * gui/fltk*: Update to the new license header sans Firefox exception. - -2007-01-10 Sandro Santilli - - * gui/Player.cpp, libbase/zlib_adapter.cpp, libbase/zlib_adapter.h, - server/gnash.h, server/impl.cpp, server/parser/movie_def_impl.cpp, - server/parser/movie_def_impl.h, utilities/parser.cpp, - testsuite/MovieTester.cpp: - Use std::auto_ptr to have input tu_file ownership transferred up to - the point where it belongs (a parser unit, or an adapter). - -2007-01-10 Bastiaan Jacques - - * gui/gtk{.cpp, sup.h}: Reimplement the open file dialog, and - this time include support for legacy GTK versions. It doesn't - yet actually open the selected file. - -2007-01-10 Sandro Santilli - - * testsuite/actionscript.all/Video.as: xcheck => check - (not available when swfversion<6) - * server/dlist.{h,cpp}: added sort() method to resort - when depth of characters is externally changed. - * server/sprite_instance.{h,cpp}: simplified state save - of frame0 displaylist, with the side-effect of properly - keeping ref-counting of frame0 character instances. - -2007-01-10 Sandro Santilli - - * libbase/: extension.cpp, sharedlib.cpp: hush compiler warnings - about unused parameters. - * server/asobj/Global.cpp (ctor): stubbed organization of - ActionScript classes in SWF target versions (volunteers - to filling it up?). - * testsuite/actionscript.all/: LocalConnection.as, Camera.as, - NetStream.as, System.as, NetConnection: - test that the class are unavailable when target version - is < their entry point. - -2007-01-10 Sandro Santilli - - * backend/render_handler_tri.cpp, server/array.cpp, - server/sprite_instance.cpp, server/text.cpp, - server/swf/tag_loaders.cpp: House cleaning - (compiler warnings..) - -2007-01-10 Sandro Santilli - - * server/styles.cpp (sample_gradient): fix interpolation. - -2007-01-09 Bastiaan Jacques - - * configure.ac: Fix typo. Comment out configure output regarding - the Agg compatibility layer, as it appears to be unused. - * macros/agg.m4: `test' Can have only one instance of the -a - argument, so add a separate test and match indentation. - * macros/kde.m4: Stop trying to use the undefined GNASH_PATH_ZLIB - and instead rely on the ZLIB macro which configure executes. - -2007-01-10 Sandro Santilli - - * server/Makefile.am, server/bitmap_info.h, server/gnash.h, - server/parser/bitmap_character_def.h, - server/parser/movie_definition.h: - Put 'bitmap_info' clases in its own header. - -2007-01-09 Rob Savoye - - * server/asobj/Global.cpp: Always add XML support. Include - config.h. - * server/asobj/xml.cpp, xml.h, xmlattrs.h, xmlattrs.cpp, - xmlnode.h, xmlnode.cpp, xmlsocket.h, xmlsocket.cpp: Don't make - building XML optional, it's part of the Flash spec. - -2007-01-09 Sandro Santilli - - * server/swf_function.{cpp,h}: use symbolic - names for Function2 flags. - -2007-01-09 Sandro Santilli - - * server/swf_function.cpp (operator()): - Fix 'this' reference in function2 (both register and local var, - only the latter tested but I'd assume the former would also work). - Remove "UNTESTED" notice for super in function2 local var as it's - now tested using latest Ming. - -2007-01-09 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionSetRegister, ActionPushData): - when setting/getting registers in function2 context and local - registers are not available, fallback to using global register. - -2007-01-09 Bastiaan Jacques - - * macros/agg.m4: When pkg-config is available and it knows Agg, - check for the agg-2.5 header in case we're dealing with an - improperly named Agg package. - -2007-01-08 Sandro Santilli - - * server/as_environment.h: add num_local_registers() and - resize_local_registers() methods. - * libbase/log.{cpp,h}: added log_swferror and log_aserror - functions. - -2007-01-08 Rob Savoye - - * Makefile.am: Change ZLIB_ to Z_, so it works with - gnashpkgtool. - * configure.ac: Autoconf isn't correctly determining when we - are cross compiling, so do our own test. Set $incllist and - $libslist to the output of a text file listing all the paths. Use - GNASH_PATH_JPEG, GNASH_PATH_SDL, and GNASH_PATH_GLIB again.Use - GNASH_PATH_LIBXML again so we can be cross configured. - * macros/jpeg.m4: Add this back in as the name munging leaves - gnashpktool with the wrong setting. - * macros/sdl.m4: Add this back in so we correctly determine the - SDL version regardless of the format. - * cygnal/Makefile.am: Add LIBLTDL to LDFLAGS. - * gui/Makefile.am: Add GTK_ for GTK specific CFLAGS and - LDFLAGS. Link in libgnashamf too. - * gnash/libamf/Makefile.am: Remove a bunch of libraries we don't - actually need. - * macros/agg.m4: Use global incllist and libslist. Drop test for - version 2.3. - * macros/boost.m4: Use global incllist instead of pathlist. Move - AC_CHECK_HEADERS and AC_CHECK_LIB to after directory search. - * macros/curl.m4: Don't use pkg-config when cross compiling. Use - global incllist and libslist. - * macros/ffmpeg.m4: Use global incllist instead of pathlist. Move - AC_CHECK_HEADERS and AC_CHECK_LIB to after directory search. Don't - use pkg-config when cross compiling. - * gnashpkgtool.m4: Don't use pkg-config when cross compiling. Use - global incllist and libslist. Add additional test for header file - without the package name as the top level directory. - * macros/gtk2.m4, pango.m4: Don't use pkg-config when cross - compiling. Use global incllist and libslist. - * macros/gtkglext.m4, mysql.m4, opengl.m4: Use global incllist and - libslist. - * macros/libXML.m4: Change --with option names to incl and libs to - match everything else. Only traverse header paths once. - * macros/ming.m4: If we don't have ming-config, find stuff our - usual way. - * macros/mysql.m4: Use global incllist and libslist. - * macros/opengl.m4: Use global incllist and libslist. - * utilities/Makefile.am: Add Boost and PTHREAD libs, along with - gnashamf. These are needed when cross compiling. - * macros/incllist: List of directories to use for header file searches. - * macros/libslist: List of directories to use for library searches. - -2007-01-08 Bastiaan Jacques - - * macros/ffmpeg.m4: Fix a rather unfortunate typo that was causing - configure to look for liblibavformat rather than libavformat. - -2007-01-08 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionDefineFunction2): - check consistency of code_size, handling bogus SWF. - -2007-01-08 Sandro Santilli - - * testsuite/actionscript.all/Inheritance.as: added a couple more - tests to the 'extends' section, curtesy of Zou Lunkai. - * testsuite/actionscript.all/Function.as: added test for 'this' - reference in Object's context. By Zou Lunkai. - -2007-01-06 Sandro Santilli - - * server/vm/ASHandlers.cpp: removed unused code. - * server/vm/ActionExec.cpp: made action verbosity a bit more compact; - cleanup the stack after block execution. - * testsuite/actionscript.all/MovieClip.as: new test for MovieClip - being an Object instance. - -2007-01-04 Markus Gothe - - * Fixed bug #18694 + added extra info. - -2007-01-04 Sandro Santilli - - * server/asobj/Object.cpp: stubbed registerClass(). - * server/sprite_instance.cpp (movieclip_ctor): allow 'new MovieClip'. - * testsuite/actionscript.all/MovieClip.as: test 'new MovieClip'. - * server/impl.cpp, server/swf/tag_loaders.{h,cpp}: - Implemented parsing (not use) of FILEATTRIBUTES (69) - and METADATA (77) tags. - -2007-01-04 Sandro Santilli - - * server/parser/shape_character_def.cpp (read): - use symbolic names for tags (not yet for flags: TODO); - (read_fill_styles): don't choke on malformed SWF. - * server/styles.{h,cpp} (sample_gradient): made private, - changed arg type to be stricter, cleaned up; - (fill_style::read) don't choke on malformed SWF. - * testsuite/actionscript.all/check.as: Ming can compile 'asm' - blocks since 0.4.0.beta3, not beta2 (as of Ming's NEWS file). - -2007-01-03 Ann Barcomb - - * Removed 'Level of Conformance' from doc/C/internals.xml. - This information will go in the wiki. Temporarily created - conformance.xml in the same directory which contains the - removed material. - -2007-01-03 Bastiaan Jacques - - * libbase/tu_opengl_includes.h: Make building against X11/OpenGL work - even when we're using MACH, i.e. on OSX, but only when the GTK GUI - is used. (Because there's a good chance we're using X11 when GTK is - involved; however, there is an experimental GTK/Cocoa port, so this - is not a definitive fix and we may have to revisit this issue some - day.) To do this, all we have to do is to make sure GL/glx.h is - included. - -2007-01-03 Ann Barcomb - - * Corrected Firefox version and canvas information - in doc/C/internals.xml - -2002-01-03 Markus Gothe - - * cygnal/http.cpp: removed extra ';'. - * cygnal/alloc.cpp: throw stuff. - -2007-01-02 Markus Gothe - - * utilities/processor.cpp if not GCC define optarg as extern. - * server/asobjs/NetStreamFfmpeg.cpp: Fixed static_cast of - AV_NOPTS_VALUE. Dynamic allocation of the buffer, since it's wasn't - valid ISO C++ before. - -2007-01-02 Ann Barcomb - - * Created directory devtools, which will contain - things like editor styles, tests for style conformity, - server-side CVS hooks, etc. - -2007-01-02 Ann Barcomb - - * Removed zoomhenge.mbox; information abstracted to - README. - -2007-01-02 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: provide - MING_VERSION_CODE define. - * testsuite/actionscript.all/check.as: toggle define - MING_SUPPORTS_ASM and MING_SUPPORT_ASM_EXTEND based - on MING_VERSION_CODE - * testsuite/actionscript.all/String.as: don't assume - that ming supports ASM, rely on the define set in - check.as instead. - * testsuite/actionscript.all/Inheritance.as: - Add test for ActionExtend (optionally enabled - based on MING_SUPPORTS_ASM_EXTENDS define) - -2007-01-02 Sandro Santilli - - * macros/ming.m4: synced with the version in Ming repository. - Basically add MING_VERSION and MING_VERSION_CODE variable, - we'll use them to detect wheter 'asm' or specific features - are supported. - * Makefile.am: show Ming stuff on 'make dumpconfig' - * configure.ac: print Ming stuff on summary, properly invoke - the Ming macro (renamed from GNASH_PATH_MING to AC_PATH_MING). - -2007-01-02 Sandro Santilli - - * server/as_function.{h,cpp}: _properties member kept by - intrusive_ptr to simplify implementation (never - directly call add_ref/drop_ref); added private - setPrototype() method for possible future use - to keep "prototype" AS member in sync with - _properties class member; Added extends() method. - * server/as_object.{h,cpp}: m_prototype member kept - by intrusive_ptr to simplify implementation (never - directly call add_ref/drop_ref) and made private; - provided get_prototype() accessor to it. - * server/swf_function.cpp: updated accesses - of as_object::m_prototype. - * server/vm/ASHandlers.cpp (ActionExtends): implemented - (needs more testcases). - -2007-01-02 Bastiaan Jacques - - * gui/gtk.cpp: I've commented out the GTK file chooser code because: - - It doesn't actually make Gnash open the file. - - It requires GTK >= 2.4, and we want to preserve compatibility - - with GTK 2.2 for embedded, old and thin systems. - -2007-01-01 Sandro Santilli - - * server/dlist.{h,cpp}: added clear_except() function - to remove all but a specified set of character - instances from the list; deprecated clear_unaffected() - method. - * server/sprite_instance.{h,cpp}: take note of which - character instances are created by execution of first - frame tags and exclude them from the DisplayList cleanup - performed at each restart. Simplifies the advance_sprite - pretty much. - * testsuite/misc-ming.all/place_and_remove_object_test.c: - don't expect any failure. - -2007-01-01 Sandro Santilli - - * server/as_function.cpp (getPrototype): - added check for 'prototype' member overwrite (debugging). - * server/swf_function.{h,cpp}: provide variable 'super' in - function1 and 2 contexts (local variable or register); - fixed the 'this' variable-or-register in function2 contexts - to point - * testsuite/actionscript.all/Inheritance.as: don't expect - a failure in using the 'super' variable (not function2!) - -2006-12-31 Sandro Santilli - - * server/as_function.cpp: allow Function construction - using 'new' - * testsuite/actionscript.all/Inheritance.as: don't expect - 'new Function' to fail. Fix for SWF<6 - * server/vm/ActionExec.{h,cpp}: simplified constructor for - function calls. - * server/swf_function.{h,cpp}: updated calls to ActionExec - constructor. - * testsuite/actionscript.all/Inheritance.as: added test - for using 'super' from within a function (failing). - * testsuite/misc-ming.all/ming_utils.h: - Include filename in test result messages. - * testsuite/misc-ming.all/: Makefile.am, place_object_test.c, - place_object_testrunner.cpp: Test turned into a self-contained - one. - -2006-12-30 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - place_and_remove_object_test.c: - turned last testcase into a self-contained - one. - * doc/C/internals.xml: updated section about writing Ming-based - self-contained tests and using the generic-testrunner.sh script. - * testsuite/misc-ming.all/ming_utils.{h,c}: - Added compile_actions() method, removed check/check_equals - function and substituted with - check/check_equals/xcheck/xcheck_equals macros (so you - get the source file line number of failing cases). - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - updated calls to check/check_equals - * server/as_object.h (get_numeric_value): return 0 if - get_text_value() returns NULL. - * testsuite/generic-testrunner.sh: accept -r switch - for passing it to gprocessor (useful when you are testing - restart conditions). - * utilities/processor.cpp: add -r switch to control - allowed number of runs (restarts). - -2006-12-30 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, - place_and_remove_object_test.c: - Added new test from Zou (missing a testrunner). - -2006-12-30 Bastiaan Jacques - - * macros/boost.m4: When the --with-boost-lib configure - flag is specified, don't forget to append the library - name to the specified path. - -2006-12-29 Sandro Santilli - - * cygnal/cygnal.cpp: removed compiler warnings. - -2006-12-29 Bastiaan Jacques - - * gui/gtk.cpp: Don't add the drawing area to a container - twice. This eliminates a GTK warning. - -2006-12-29 Sandro Santilli - - * autogen.sh: check return from libtoolize call, - giving up if non-zero (excessive zeal?). - -2006-12-28 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am, - testsuite/misc-ming.all/Makefile.am, - extensions/Makefile.am, extensions/dejagnu/Makefile.am: - Some fixes for 'distcheck' rule. - -2006-12-28 Sandro Santilli - - * testsuite/samples/Makefile.am: removed references - to loop_test.swf, generated in misc-ming.all lately. - -2006-12-28 Sandro Santilli - - * server/sprite_instance.{h,cpp}: cleanup and document - add_display_object method reintroducing use of - the replace_if_depth_is_occupied parameter. - * server/swf/tag_loaders.cpp (place_object_2::execute): don't - let new characters replace existing ones at same depth - when placing them. This fixes all existing testcases - in misc-ming.all. - * testsuite/misc-ming.all/: loop_test-Runner.cpp, - place_object_testrunner.cpp: don't expect failures. - -2006-12-28 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, place_object_test.c, - place_object_testrunner.cpp: new test by Zou Lunkai for - depth replacement and automatic runner for it (by myself). - -2006-12-28 Sandro Santilli - - * testsuite/misc-ming.all/root_stop_testrunner.cpp: - carriage returns removed; fixed wrong assumption, - added more tests (no more expected failures). - -2006-12-26 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, loop_test-Runner.cpp, - loop_test.c: added source of loop_test testcase, updated - tester. - * testsuite/samples/: Makefile.am, loop_test-Runner.cpp, - loop_test.swf: removed code moved to misc-ming.all. - -2006-12-25 Tomas Groth Christensen - - * backend/render_handler_ogl.cpp: Made the OpenGl backend - actually use RGB for video... - -2006-12-24 Sandro Santilli - - * server/swf.h: add name for tag 777 (from a contribution to Ming). - * server/sprite_instance.cpp, - testsuite/misc-ming.all/root_stop_testrunner.cpp, - testsuite/samples/loop_test-Runner.cpp: - temporary hack to fix elvis.swf, breaking other - stuff... just a shuffle to let elvis be with us - for Christmas :) - -2006-12-24 Sandro Santilli - - * testsuite/check.h: always use the stub replacement of Dejagnu - as we need 'xpass' and 'xfail' which are not available in - latest distributed version of dejagnu.h ... - * testsuite/misc-ming.all/root_stop_testrunner.cpp: - marked failures as expected. - * server/sprite_instance.cpp: debug messages hopefully - made a bit less confusing. - -2006-12-23 Tomas Groth Christensen - - * backend/render_handler_ogl.cpp: Changed the OpenGL render, - so that it uses RGB frames for video instead of YUV, since - there's some color issues with YUV->RGB convertion. - -2006-12-22 Sandro Santilli - - * server/: execute_tag.h, sprite_instance.cpp, swf/tag_loaders.cpp: - Simplified get_depth_id_of_replace_or_add_tag() interface to NOT - use negative numbers (return 0 for non-place-or-replace-chars). - -2006-12-22 Zou Lunkai - - * gui/sdl_agg_glue.cpp (render): fix black - display - see bug #18425. - -2006-12-22 Sandro Santilli - - * gui/sdl.cpp: don't report run of renderBuffer() - too much noise. - * testsuite/misc-ming.all/Makefile.am: enabled run of - root_stop_testrunner by 'make check' - -2006-12-22 Zou Lunkai - - * testsuite/misc-ming.all/root_stop_test.c: updated - testcase. - * testsuite/misc-ming.all/root_stop_testrunner.cpp: - test runner for root_stop_test.swf - -2006-12-21 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: added rules - to build root_stop_test.swf - -2006-12-21 Zou Lunkai - - * testsuite/misc-ming.all/root_stop_test.c: new testcase - for bug #18549. - -2006-12-21 Rob Savoye - - * macros/ffmpeg.m4: Also check for the dc1394_control library, - needed on Ubuntu with ffmpeg. - -2006-12-21 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Fixed bug #18244: Forgot to - write to the correct index, and to set a variabel to 0 in a loop. - * server/asobj/NetStreamFfmpeg.cpp: Removed the use of - AVFormatParameters, since it doesn't seem to be needed, and might - make older versions of ffmpeg useable. - -2006-12-21 Sandro Santilli - - * server/as_value.h (set_null): return a reference to self, - to make building a null as_value cleaner. - * server/asobj/xml.cpp, testsuite/actionscript.all/XML.as: - fix a couple of existing tests (minor thing). - * server/as_value.h: fixed extra qualification - 'gnash::as_value::' on member 'typeOf'. - -2006-12-21 Sandro Santilli - - * server/sprite_instance.h: add a static integer keeping - number of unnamed character placements and a function - to return a syntetized name for them. - * server/sprite_instance.cpp (add_display_object): always - provide a name for placed object, syntetizing it if - not provided. This is needed for MOVIECLIP as_values, - now that they basically store a clip's target. - This is experimental, Zou should have a testcase for - this, which would help making it stable. - -2006-12-21 Sandro Santilli - - * testsuite/actionscript.all/String.as: check that no automatic - converstion to String object is performed on a string literal - when instanceOf is called on it. - * server/as_value.{cpp,h}: made get_type() private, provided new - is_number(), is_string(), strictly_equals() and typeOf() methods; - automatically convert string and number primitive values - to String and Number objects from to_object() function. - * server/array.cpp, server/as_environment.cpp, - server/as_function.cpp, server/as_object.cpp, - server/sprite_instance.cpp, server/asobj/Key.cpp, - server/asobj/MovieClipLoader.cpp, server/asobj/xml.cpp, - server/vm/ASHandlers.cpp: - replaced calls to as_value::get_type() with as_value::is_(), - cleaned up some functions to delegate to as_value or to rely - on implicit cast. - -2006-12-21 Sandro Santilli - - * server/as_value.h: m_type, m_string_value and values union - made private. - * testsuite/misc-ming.all/VarAndCharClashTest.as: - added new tests checking integrity of a *reference* - to the movieclip. - -2006-12-20 Sandro Santilli - - * server/as_value.cpp (to_sprite): don't segfault if the - sprite path doesn't reference an existing target. - * testsuite/samples/clip_as_button2-TestRunner.cpp: - handled failures of MovieTester initialization - (see bug #18567). - * server/as_value.{cpp,h}: add MOVIECLIP primitive type. - * server/vm/ASHandlers.cpp (ActionTypeOf): - do the right thing for MOVIECLIP values. - -2006-12-20 Sandro Santilli - - * server/sprite_instance.cpp (sprite_swap_depths): - Use as_value::is_object() rather then comparing get_type(). - This helps when as_value will support MOVIECLIP types. - * server/as_environment.cpp (find_target(const as_value&)): - Use as_value::is_object() rather then comparing get_type(). - This helps when as_value will support MOVIECLIP types. - * server/sprite_instance.cpp (get_member): fixed - CHECK_FOR_NAME_CLASHES block. - * testsuite/movies.all/README: filled 'origin' field - for gravity.swf and gravity-embed.swf. - -2006-12-19 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: added test for - timeline-variable (thanks to Zou Lunkai). - * server/as_environment.cpp (set_variable_raw, get_variable_raw): - give local vars precedence. - * server/vm/ASHandlers.cpp: use ActionExec methods for variables - manipulation. - * server/vm/ActionExec.{cpp,h}: added variable manipulation - functions. - * testsuite/misc-ming.all/timeline_var_test.c: added - additional check for timeline variables. - -2006-12-19 Ann Barcomb - - * removed testsuite/movies.all/elvis.swf due to license uncertainty. - -2006-12-19 Sandro Santilli - - * server/vm/with_stack_entry.h: made all data members private. - * server/as_environment.{cpp,h}: ScopeStack typedef, improved - dox on variable setters/getters. - * server/asobj/Makefile.am: added libltdl include dir. - * server/as_environment.{cpp,h} (get_version): - simplified and clarified dox. - -2006-12-18 Rob Savoye - - * gui/Player.h, Player.cpp: Start adding support for playing - movies from the menu item. From patch #5640. - * gui/gtk.cpp: If running standalone, add a menu bar (task #6124), - and a Preferences box (task #6125). Use Submenus instead of menu - items for right-click menu. Based on (patch #5640 by Sebastiá - Matas) Use separete functions to create each menu so they can be - shared between the MenuBar and the Popup Menu. - -2006-12-18 Sandro Santilli - - * server/sprite_instance.cpp (execute_action): don't reset - local frame top as there's nothing like a 'movie-frame' local - scope. See bug #18523. - * testsuite/misc-ming.all/timeline_var_test.c: don't expect failures. - * server/as_environment.cpp (get_variable_raw): target members take - precedence over local variables. - * testsuite/misc-ming.all/: Makefile.am, timeline_var_test.c: - added Dejagnu.swf capabilities (for visual debugging). - -2006-12-18 Sandro Santilli - - * testsuite/actionscript.all/dejagnu_so_init.as: fix removal - of onEnterFrame callback (don't use 'this'). - * testsuite/misc-ming.all/Makefile.am: enabled - timeline_var_test-Runner - * testsuite/check.h: added stubs for xpass/xfail and defined - xcheck/xcheck_equals/xcheck_equals_label (unfortunately - xfail/xpass are not in latest dejagnu release so we'll either - have to force dejagnu upgrade or always use the stubs instead... - latter being not a bad idea IMHO). - * server/vm/ASHandlers.cpp (ActionPushData): cleanups, including - verbose actions output and symbolic names for push types. - * server/sprite_instance.cpp: use 1-based frame numbers in - action executions reports (VERBOSE ACTION). - * testsuite/misc-ming.all/timeline_var_test.c: turn into - a self-contained test (still not Dejagnu.swf based). - * utilities/processor.cpp: allow 10 loop backs before - kicking to one-after latest frame processed. - * utilities/Makefile.am, testsuite/server/Makefile.am: - link to libgnashvm.la. - -2006-12-18 Markus Gothe - - cygnal/cygnal.cpp: Added getopt.h etc. - -2006-12-17 Rob Savoye - - * configure.ac: USe new GNASH_PATH_MYSQL instead of - GNASH_PKG_FIND. Fix debug display. Don't build extensions by - default. Don't build extensions by default. - * server/asobjs/Global.cpp: If extensions are enabled, scan the - plugin directories and load them. - * Makefile.am: Only build in the extensions or cygnal directories - if enabled. Add MYSQL to dumpconfig. Dump $SUBDIRS list too. - * libbase/network.cpp: Change from log_msg() to - GNASH_REPORT_FUNCTION. - * gui/Makefile.am: Add MYSQL_LIBS if extensions are enabled. - * utilities/Makefile.am: Add MYSQL_LIBS if extensions are enabled. - * macros/mysql.m4: New file to find MySQL dependancies. Uses - mysql-config, and then a path search if that fails. - * extensions/Makefile.am: Don't try to build MySQL extension if - MySQL isn't installed. - * extensions/mysql/Makefile.am: Use new MYSQL_* flags from new - macro. - * extensions/mysql/mysql_db.cpp: Attach the Interfaces when - initializing. - * extensions/mysql/test.as: Don't try to run if extensions are - disabled. - * extensions/dejagnu/test.as: Don't try to run if extensions are - disabled. - * extensions/dejagnu/Makefile.am: Add libgnashvm. - * extensions/dejagnu/dejagnu.cpp: Attach the Interfaces when - initializing. - * libbase/log.cpp: Only check for verbose not being zero when tracing. - * server/vm/Makefile.am: Install the gnashvm library, so - extensions work again. - -2006-12-17 Markus Gothe - - * libamf/amf.cpp: reinterive cast. - * libgeometry/Range2D.h: static_cast + using namespace std (for wicked - compilers, like MIPSPRO ;)). - * libbase/hash_wrapper: fixed namespace for find(). - * macros/gtk2.m4: Typos, fixed lib-finding. - -2006-12-16 Rob Savoye - - * configure.ac: Add tests for MySQL. Print MYSQL flags from - configure tests. Drop enable testing option. Add mysql and cygnal - configure output directories. Remove unused options for http - server. Add option to disable building cygnal. Add option to - disable building extensions. - - * cygnal: New directory for media server. - * cygnal/cygnal.cpp: Main entry for server. - * cygnal/Makefile.am: Makefile for media server. - * cygnal/README: Server specific info file for developers. - * cygnal/stream.cpp, stream.h: Streaming data class. - * cygnal/netstats.cpp, netstats.h: Collect statistics on - network performance. - * cygnal/statistics.cpp, statistics.h: Collect statistics on each - movie being played for performance tweaking and bandwidth shaping. - * cygnal/http.c, http.h: Support for a simple subset of HTTP, - enough to respond to GET requests. - * cygnal/alloc.cpp: Threadsafe new & delete to keep STL containers - working in a multi-threaded application. - - * gui/Makefile.am: Switch from the rectangular gnash_128_96.ico to - the square "Gnashing G" icon. It looks better in the toolbar. - * gui/gtksup.h: Add about box callback prototype. - * gui/gui.h: Add menu_about(). - * gui/gtk.cpp: Switch from the rectangular gnash_128_96.ico to - the square "Gnashing G" icon. Add about box, patch by Sebastiá - Matas, #5640. - -2006-12-15 Rob Savoye - - * extensions/Makefile.am: Build MySQL extension. - * libbase/extension.cpp: Don't continue if the search directory - doesn't exist. - - * server/array.cpp: Add the size operator, which wasn't being added - as a member. - * extensions/mysql/mysql_table.h: Remove. - * extensions/mysql/mysql_db.cpp, mysql_db.h: Tottally - rewritten. Work as a Gnash extension. Add methods for MySQL API, - as well as a generic getData() method for simple queries. - * extensions/mysql/test.as: Test the MySQL extension. - * extensions/mysql/test.sql: MySQL schema for test case. - * extensions/dejagnu/Makefile.am: Use libdir instead of - prefix. Include from asobjs too, and also link in - libgnashvm. Don't build Sharedtest. - * extensions/dejagnu/dejagnu.cpp: Setup the members - correctly. Don't attach twice for this class. - * extensions/dejagnu/test.as: Use pass and fail. - -2006-12-14 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: - rules for building timeline variable scope - test (missing a test runner!) - -2006-12-14 Zou Lunkai - - * testsuite/misc-ming.all/timeline_var_test.c: - testcase for timeline variables scope - (could be turned into a self-contained test!) - -2006-12-14 Sandro Santilli - - * testsuite/actionscript.all/Function.as: fixed for SWF5 target. - -2006-12-14 Sandro Santilli - - * server/as_environment.{cpp,h}: add dump_local_variables - method. - * server/vm/ActionExec.cpp: include dump of local variables - IF_VERBOSE_ACTION. - -2006-12-14 Sandro Santilli - - * testsuite/actionscript.all/Function.as: re-enabled - lots of tests that were commented out with previous - commit of this file (Oops). - * server/vm/ActionExec (operator()): - handle stack smashing and warn about elements left on - the stack after a function call. - -2006-12-14 Sandro Santilli - - * server/as_environment.{h,cpp}: add an additional - argument to findLocal() to specify wheter the seek - should descend in upper frames; descend when getting, - deleting and setting variables; don't descend when - setting or declaring a *local* variable (set_local, - declare_local). - * testsuite/actionscript.all/Function.as: added tests - for timeline-local variable access from within a function - (see bug #18523). - -2006-12-13 Sandro Santilli - - * server/parser/action_buffer.cpp: neater output - for constant pool (-va). - -2006-12-13 Sandro Santilli - - * server/sprite_instance.cpp (sprite_create_empty_movieclip): - accept more then 2 args, just discarding the one in excess. - * testsuite/actionscript.all/MovieClip.as: don't expect - failures when createEmptyMovieClip is called with more then - 2 args. - -2006-12-13 Sandro Santilli - - * testsuite/Makefile.am: don't attempt to build Dejagnu.swf - if Ming isn't enabled. - * testsuite/actionscript.all/Makefile.am: don't attempt - to run tests if Ming isn't installed, that support is - currently broken, this is a quick fix to enable users - to run some test even w/out Ming. - * testsuite/: movies.all/Makefile.am, samples/Makefile.am: - don't require Ming to run tests in these dirs; add - required BOOST cflags. - -2006-12-13 Sandro Santilli - - * doc/C/gnashrc.xml, libbase/log.h, libbase/rc.cpp, libbase/rc.h: - Add 'ASCodingErrorsVerbosity' and 'MalformedSWFVerbosity' - settings in gnashrc, IF_VERBOSE_MALFORMED_SWF() and - IF_VERBOSE_ASCODING_ERRORS() now use these settings - (not overridable from command line). - * server/character.cpp (get_relative_target_commont): - don't warn about refenrecing on-up from root movie - unless verbose ascoding errors are requested. - -2006-12-13 Sandro Santilli - - * server/as_environment.cpp: added debugging lines for - find_target (compile-time enablable). - * server/vm/ASHandlers.{h,cpp}: added CommonSetTarget(). - * server/font.cpp (font::read_font_info): warn only once - about DefineFontInfo2 being partially implemented... - * server/swf/tag_loaders.cpp: removed additional newlines in log - messages; (define_sound_loader) raise a warning when no sound - handler is set, becasue characters will be missing from the - Dictionary; (export_loader): turn export error into a warning. - -2006-12-13 Sandro Santilli - - * server/sprite_instance.cpp (set_member): don't attempt to set the - value of a character in the DisplayList, see VarAndCharClashTest.swf - testcase; (get_member): give object members precedence over - characters in DisplayList -- should be tested what happens with - "inherited" members.. - * testsuite/misc-ming.all/VarAndCharClashTest.as: don't expect - any failure. - -2006-12-13 Sandro Santilli - - * testsuite/misc-ming.all/VarAndCharClashTest.as: - added more tests, dissipating some of the cloud... - -2006-12-12 Sandro Santilli - - * testsuite/misc-ming.all/: Makefile.am, VarAndCharClashTest.as: - Code and Makefile rule generating a self-contained testcase for - variables and characters name clashes (failing in Gnash). - Note how powerful 'makeswf' is :D - -2006-12-12 Sandro Santilli - - * server/: button_character_instance.cpp, sprite_instance.cpp: - introduce button actions execution IF_VERBOSE_ACTION; include - total frame count in sprite's frame action executions. - -2006-12-12 Sandro Santilli - - * server/: button_character_instance.h, character.h, - edit_text_character.h, generic_character.h, sprite_instance.cpp, - sprite_instance.h, video_stream_instance.h: - const-corrected can_handle_mouse_event() and get_event_handler(). - -2006-12-12 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: some more - (verified) tests for MovieClip.useHandCursor. - -2006-12-12 Sandro Santilli - - * server/sprite_instance.cpp: stubbed all interfaces - tested for existance in MovieClip.as (drawing api, mainly). - * testsuite/actionscript.all/MovieClip.as: don't expect - failures while testing existance of newly added stubs; - Move globalToLocal test in SWF5 section (verified). - -2006-12-12 Sandro Santilli - - * server/sprite_instance.cpp: stubbed MovieClip.getBounds(). - * testsuite/actionscript.all/MovieClip.as: added incomplete - test for MovieClip.getBounds(). - -2006-12-12 Sandro Santilli - - * server/as_object.h: added get_primitive_value() virtual - functions. - * server/as_value.{cpp,h}: added to_primitive(). - * server/character.h: made set_name virtual to allow handling - from subclasses. For the same reason _name is now protected - (from private). - * server/sprite_instance.{h,cpp}: override get_text_name() - and set_name(). - * server/asobj/string.cpp: override get_primitive_value(). - * testsuite/actionscript.all/MovieClip.as: add test for - cast to primitive. - -2006-12-12 Sandro Santilli - - * server/asobj/string.cpp: added get_text_value - override. - -2006-12-12 Ann Barcomb - - * The Dejagnu format--as described in the test section of the - Docbook documentation--is now fully explained. - -2006-12-11 Sandro Santilli - - * testsuite/movies.all/: ORIGIN merged into README. - -2006-12-11 Ann Barcomb - - * Added test movie 'testsuite/movies.all/yapc2006.swf', a - large movie which does not currently play very well. - -2006-12-11 Sandro Santilli - - * testsuite/samples/: Makefile.am, README, loop_test-Runner.cpp, - loop_test.swf: Added contributed SWF test and associated test runner. - See patch #5620. - -2006-12-11 Ann Barcomb - - * Modified plugin list in documentation, - based upon comments from Bastiaan. - -2006-12-11 Sandro Santilli - - * server/swf/tag_loaders.cpp (place_object_2): - some cleanup of class definition. - -2006-12-10 Sandro Santilli - - * server/PropertyList.{h,cpp} (delProperty): - changed return type to std::pair - to let caller know wheter delete failed because - the property was not found OR because it was - protected from deletion. - * server/as_object.{h,cpp} (delProperty): same - as with PropertyList: return std::pair - with same semantic. - * server/as_environment.cpp (del_variable_raw): - don't keep scanning the 'with' stack if any object - actually had the given property defined, even if - protected from deletion. - * server/vm/ASHandlers.cpp: updated calls to - as_object::delProperty(). - * testsuite/server/PropertyListTest.cpp: updated - calls to PropertyList::delProperty. - * testsuite/actionscript.all/delete.as: added test for - protected member deletion. - -2006-12-09 Sandro Santilli - - * server/button_character_instance.{cpp,h}: added missing - get_width() and get_height() overrides. - * server/button_character_instance.cpp, server/dlist.cpp, - server/parser/action_buffer.cpp: cleanup debugging lines. - -2006-12-09 Sandro Santilli - - * server/as_environment.cpp (del_variable_raw): try to delete from - _global if anything else fails. - * testsuite/actionscript.all/delete.as: xcheck => check as delete - from _global now works fine. - -2006-12-09 Sandro Santilli - - * testsuite/actionscript.all/delete.as: added "scoped delete" as of - bug #18482, but using ActionDelete rather then ActionDelete2 which - is used in the bug item testcase. Gnash is currently failing to - delete a variable in _global. - -2006-12-09 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionDelete): be more robust - on malformed SWF (actually not sure about correctness, - but at least our testcase behave as the official - player does). - * testsuite/actionscript.all/delete.as: xcheck => check. - -2006-12-09 Timothy Lee - - * configure.ac: Detect the Cairo library when the Cairo backend is - enabled (and also when GTK GUI is being used). - * backend/render_handler_cairo.cpp: - Removes Xlib-specific header and test code. - Fixes viewport clipping problem. - Removes offscreen buffer and renders directly through Cairo. - This opens the possibility of using OpenGL/Glitz acceleration in Cairo - by calling set_handle() with different types of handles. - An added benefit of this change is that the bitmap created by the - SDL glue now becomes the direct target of Cairo's rendering, - without the redundant offscreen buffer in-between. - * gui/gtk_glue_cairo.{cpp,h}: - The GTK glue now manages an offscreen bitmap for the backend to render on. - Window resizes now causes the offscreen bitmap to be resized as well. - -2006-12-08 Sandro Santilli - - * testsuite/simple.exp: raised timeout to 4 minutes. - * server/as_environment.cpp (findLocal): it seems I missed something. - bring back the crappy code while keeping the external interface - cleaner (will check later what's the difference there..). - -2006-12-08 Sandro Santilli - - * server/: swf.h, vm/ASHandlers.{cpp,h}: - Renamed ACTION_DELETE to ACTION_DELETE2 - and ACTION_DELETEVAR to ACTION_DELETE, to reflect - official nomenclature (Ming's listswf also uses - this names) - -2006-12-08 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionDelete): use the new - ActionExec::delVariable() method. Fixes bug #18482. - (ActionDeleteVar) use the new as_object::delProperty() - method, but no testcases for it... - -2006-12-08 Sandro Santilli - - * server/as_environment.{cpp,h}: obsoleted crappy find_local function, - substituted with iterators-based equivalent; typedef'd - LocalFrames; added del_variable_raw method. - * server/vm/ActionExec.{cpp,h}: added delVariable() method, invoking - as_environment::del_variable_raw with current 'with' stack. - -2006-12-08 Sandro Santilli - - * server/as_object.{cpp,h}: added delProperty() member. - * server/PropertyList.{cpp,h}: added delProperty() member. - * testsuite/server/PropertyListTest.cpp: added test for delProperty(). - -2006-12-08 Sandro Santilli - - * server/as_prop_flags.h: added methods for - clearing flags, encoded bit values in an enum, - better documentation and implementation cleanup. - * testsuite/server/: Makefile.am, as_prop_flagsTest.cpp: - Added testcase for as_prop_flags class. - -2006-12-08 Sandro Santilli - - * testsuite/MovieTester.cpp (getInvalidatedBounds): - use a float factor for scale (1/20 was being converted - to 0). Don't clear invalidated bounds (or a NULL - range would always be returned). - -2006-12-08 zoulunkai , - - * server/sprite_instance.cpp (advance_sprite): - don't re-execute tags in first frame when looping. - -2006-12-08 Sandro Santilli - - * libbase/log.{cpp,h}: add a templated operator << for - printing *any* class that has an output operator defined. - It could replace most operator<< methods, but I won't go - there for now... just happy with derived Range2d printing facility. - * testsuite/{samples,movies.all,misc-ming.all}/Makefile.am: - add libtestsuite.la to DEPENDENCIES of test runners. - * libgeometry/Range2d.h: properly inlined specialized - round{Min,Max} functions. - * testsuite/MovieTester.{h,cpp}: changed getInvalidatedBounds - to return bounds in PIXELS rather then TWIPS (to - conform with mouse movement notification) - -2006-12-08 Sandro Santilli - - * libgeometry/Range2d.h: implemented cast between range types, - with float=>{int,unsigned int} cast ensuring resulting range - is not smaller then original. - * testsuite/libgeometry/Range2dTest.cpp: added tests for - Range2d type cast. - -2006-12-08 Sandro Santilli - - * libgeometry/Range2d.h: changed scale() functions to take a float, - to allow for fractional scales; implemented specializations - for int and unsigned int types to ensure rounding doesn't make - the range smaller. - Fixed many functions erroneously returning *this by value rather - then by reference. - * testsuite/libgeometry/Range2dTest.cpp: added tests for scale() - function verifying the rounding for integer types. - -2006-12-08 Sandro Santilli - - * libgeometry/Range2d.h: added scale() functions to scale both - horizontally and vertically in a single call. - -2006-12-07 Sandro Santilli - - * testsuite/actionscript.all/String.as: more - tests for ActionSubString (invalid calls...) - * server/vm/ASHandlers.cpp (ActionSubString): - do the right thing on invalid calls. - -2006-12-07 Sandro Santilli - - * server/asobj/string.cpp (string_set_length), - server/sprite_instance.cpp (sprite_hit_test): - fixed IF_VERBOSE_ASCODING_ERRORS macro use syntax. - * server/parser/: movie_def_impl.{h,cpp}, sprite_definition.cpp - (add_frame_name): don't inline it. - * server/vm/action.cpp (attach_extern_movie): - store sprites in intrusive pointers (fixes some - testInvariant failures). - * server/as_environment.cpp (dump_global_registers): - don't print anything if none of the registers are defined. - * testsuite/actionscript.all/String.as: - Added test for SUBSTRIN tag, but only - enabled if MING_SUPPORTS_ASM is defined - (which never happens atm.. should add that). - * server/vm/ASHandlers.cpp (ActionSubString): - when size argument is too big fix it rather - then returning undefined. - * server/as_environment.cpp (find_target): - fixed handling of paths ending with a slash - (example: '../'). - * server/vm/ASHandlers.cpp (ActionGetProperty): - raise a warning if the target is not found - (ASCODING ERROR) - * server/as_environment.{cpp,h}: registers - debugging functions moved to implementation - file, don't print local registers if empty. - * server/asobj/NetStream.cpp (ctor): don't - abort on ActionScript coding errors. - -2006-12-06 Rob Savoye - - * libbase/sharedlib.cpp: Don't call lt_dlexit when destructing. - * server/asobj/Global.cpp: Look for extensions. - * extensions/dejagnu/Makefile.am: Use libdir instead of - prefix. Include from asobjs too, and also link in - libgnashvm. Don't build Sharedtest. - * extensions/dejagnu/dejagnu.cpp: Setup the members - correctly. Don't attach twice for this class. - * extensions/dejagnu/test.as: Use pass and fail. - * libbase/extension.cpp: Remove the plugin suffix. - * libbase/sharedlib.cpp: Don't exit libltdl in the destructor. - -2006-12-07 Ann Barcomb - - * doc/C/internals.xml, gnashrc.xml: - Explicitly documented that there are two sound support - settings. Addresses documentation task #6129. - -2006-12-07 Sandro Santilli - - * server/: movie_root.cpp, sprite_instance.cpp: - Added debugging output. - * utilities/processor.cpp: don't always kick - a STOPPED movie, wait for a specified number - of seconds before kicking it (defaults to 5). - Fixes bug #18475. - -2006-12-07 Sandro Santilli - - * server/: edit_text_character.cpp, movie_root.cpp, - movie_root.h: streamlined headers inclusions. - -2006-12-06 Sandro Santilli - - * testsuite/server/PropertyListTest.cpp: updated test - to reflect the new case-sensitive implementation - of PropertyList class. - -2006-12-06 Sandro Santilli - - * gui/gui.cpp (advance_movie): add support for sequentially - displaying all frames of a movie (compile-time define). - * gui/gui.cpp (display): when debugging invalidated bounds - show only the last invalidated region. this slows the - rendering, but when debugging you probably don't care. - BTW, this commit also makes NO debugging the default. - -2006-12-06 Sandro Santilli - - * server/sprite_instance.cpp (get_invalidated_bounds): - cleaned up debugging output to use rect::toString. - * server/movie_root.cpp (get_invalidated_bounds): remove - the dirty workaround to invalidated bounds bug. - * server/character.{h,cpp} (set_invalidated_bounds): propagate - invalidity to parent (seems to fix the invalidated bounds - bug introduced by last big refactoring). - * server/rect.{cpp,h}: added toString() method. - -2006-12-06 Sandro Santilli - - * backend/render_handler_d3d.cpp, gui/Player.cpp, gui/fbsup.h, - gui/gtk_glue_cairo.h, gui/kdesup.h, gui/sdl_ogl_glue.h, - libbase/URL.cpp, libbase/log.cpp, libbase/rc.cpp, - libbase/sharedlib.cpp, plugin/plugin.cpp, server/as_object.h, - server/font.h, server/gnash.h, server/render.cpp, - server/sprite_instance.h, server/swf.h, server/timers.cpp, - server/asobj/NetConnection.cpp, server/parser/action_buffer.h, - server/swf/tag_loaders.cpp, server/vm/ASHandlers.cpp, - server/vm/ASHandlers.h, server/vm/ActionExec.h: - Minor cleanups to reduce Doxygen warnings. - -2006-12-06 Sandro Santilli - - * testsuite/server/GetterSetterTest.cpp: fix segfault - by initializing the VM with a dummy v6 movie definition. - -2006-12-06 Sandro Santilli - - * server/Makefile.am, server/drag_state.h, gui/Player.cpp, - gui/gui.cpp, gui/gui.h, server/button_character_instance.cpp, - server/character.cpp, server/character.h, - server/edit_text_character.cpp, server/impl.cpp, server/impl.h, - server/movie_instance.cpp, server/movie_instance.h, - server/movie_root.cpp, server/movie_root.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/asobj/Key.cpp, server/parser/movie_def_impl.cpp, - server/parser/movie_def_impl.h, - server/parser/movie_definition.h, - server/vm/ASHandlers.cpp, server/vm/VM.cpp, server/vm/VM.h, - server/vm/action.cpp, utilities/processor.cpp: - Redesigned movie_root so that it doesn't derive from sprite_instance - anymore, but it is rather a wrapper around the *single* *absolute* - root movie for a specific run. Changed VM to return that single - movie_root by ref using the getRoot() method; - Sorry if this changelog is too short, but was a lot of work, and - tried my best at keeping doxygen comments in sync. - Also, note that invalidated bounds seems broken now, - movie_root::get_invalidated_bounds() always return the WORLD rect - as a quick fix, but we have to fix that. - * testsuite/MovieTester.cpp, testsuite/server/PropertyListTest.cpp, - testsuite/server/Makefile.am, testsuite/DummyMovieDefinition.h: - Added a dummy movie definition for use in unit tests, - PropertyListTest still fails because we handle case sensitiveness - in as_object, not in PropertyList.. - - -2006-12-06 Sandro Santilli - - * server/movie_root.h (get_invalidated_bounds): use rect::set_world() - rather then using a custom value for big bounds. - * testsuite/MovieTester.{cpp,h}: add getInvalidatedBounds function. - * libgeometry/Range2d.h (Intersect): removed spurious code. - * server/rect.h: added getRange() method. - - -2006-12-05 Sandro Santilli - - * server/rect.cpp (expand_to_rect): handled world rects. - * server/asobj/MovieClipLoader.cpp (loadClip): use smart - pointers (to avoid testInvariant failures in sprite_instance). - * server/types.{cpp,h} (rgba::print): made a const method. - * .cvsignore, extensions/.cvsignore, plugin/klash/.cvsignore, - testsuite/libgeometry/.cvsignore, utilities/.cvsignore, - testsuite/.cvsignore, testsuite/libbase/.cvsignore, - testsuite/libgeometry/.cvsignore, testsuite/misc-ming.all/.cvsignore, - testsuite/server/.cvsignore, - New/updated cvs ignore files. - * plugin/klash/Makefile.am: added libgeometry - directory in include list. - * server/rect.h: added output operator. - * backend/render_handler_agg.cpp (ctor): - properly initialized m_drawing_mask member. - -2006-12-05 Tomas Groth Christensen - - * backend/render_handler.h, backend/render_handler_agg.cpp, - backend/render_handler_cairo.cpp, server/render.h, - backend/render_handler_ogl.cpp, server/render.cpp: Removed - YUV_video, and added videoFrameFormat() and drawVideoFrame(). - * libbase/image.cpp, libbase/image.h: Added yuv. - * server/Makefile.am: Removed video_yuv.cpp - * server/gnash.h: Removed YUV_video. - * server/video_stream_instance.cpp: Changed to use the new - videoframe rendering method. - * server/asobj/Makefile.am: Added NetStreamFfmpeg.{cpp|h} - * server/asobj/NetStream.{cpp|h}: Removed the ffmpeg code, - and made a non-decoding class (NetStreamBase). - * server/asobj/NetStreamFfmpeg.{cpp|h}: Created the files, - which contains the ffmpeg specific code, moved from - NetStream.{cpp|h}. Now uses StreamProvider to handle files, - and connects in a seperate thread to avoid blocking. - -2006-12-05 Sandro Santilli - - * server/movie_root.h: Added more information for the - class (using repository for planning, let me know if - you find this disturbing). - * server/parser/movie_definition.h: Added more information - for the class (Doxygen class description). - -2006-12-04 Sandro Santilli - - * server/parser/: movie_def_impl.h, movie_definition.h, - sprite_definition.h: provided a default implementation - for most movie_definition methods, to make deriving - from it easier. Removed some unneeded overload from - sprite_definition (the new default implementations are - good enough). Cleaned up and improved doxygen comments. - -2006-12-03 Sandro Santilli - - * testsuite/libgeometry/Range2dTest.cpp: add tests for - growBy(). - * libgeometry/Range2d.h: fix growBy() to properly handle - numerical overflows ( see relative tests ). - -2006-12-02 Sandro Santilli - - * libgeometry/Range2d.h: Add growBy() and shrinkBy() methods. - Make all mutators return a reference to *this (nicer use sytax). - * backend/render_handler_agg.cpp, gui/gtk.cpp: set back the - drawn bounds 2 pixel grow needed for antialiasing. - -2006-12-02 John Franklin - - * backend/render_handler_agg.cpp (render_handler_agg ctor): - initialize x/y scale to 1/20 by default. - -2006-12-02 Sandro Santilli - - * gui/fb.cpp, gui/gtk.cpp: don't render anything - if _drawbounds.isNull() - we should make sure - that _drawbounds is expanded to cover 'newly' exposed - regions, and that it is reset to NULL after each - call to renderBuffer. - -2006-12-02 Sandro Santilli - - * backend/render_handler.h, backend/render_handler_agg.cpp - backend/render_handler_tri.cpp, backend/render_handler_tri.h - gui/gtk.cpp, gui/gtksup.h, gui/gui.cpp, gui/gui.h, gui/fbsup.h, - gui/fb.cpp: - Use Range2d rather then 4 integers for clip bounds, - keep trac of *valid* range for pixel values, add some questions - as comments in the code. Please forgive me if this will break - something but we're in a stage we'll have to break things - for making them better ... - -2006-12-02 Sandro Santilli - - * server/rect.h: added is_world() and get_world() methods. - -2006-12-01 Sandro Santilli - - * testsuite/: actionscript.all/swf_exists.exp, libbase/libbase.exp, - server/server.exp: removed, ../simple.exp is better ! - * testsuite/: libbase/Makefile.am, server/Makefile.am: - use ../simple.exp for testing. - -2006-12-01 Sandro Santilli - - * backend/render_handler_agg.cpp (set_invalidated_region): - Temporary hack to fix bug #18416, and a way to - show Udo a usage case. The real solution is use - Range2d instead of m_clip_{x,y}{max,min}. - -2006-12-01 Sandro Santilli - - * server/Makefile.am, server/rect.cpp, server/rect.h, - server/asobj/Makefile.am, server/parser/Makefile.am, - server/parser/movie_definition.h, server/parser/video_stream_def.h, - server/vm/Makefile.am, utilities/Makefile.am, testsuite/Makefile.am: - Rewritten gnash::rect class to use Range2d. - -2006-12-01 Sandro Santilli - - * backend/render_handler.h, server/render.h: - some doxygen notes for bounds_in_clipping_area. - -2006-12-01 Sandro Santilli - - * configure.ac, libgeometry/Makefile.am, libgeometry/Range2d.h, - testsuite/Makefile.am, testsuite/libgeometry/Makefile.am, - testsuite/libgeometry/Range2dTest.cpp, testsuite/server/Makefile.am: - New Range2d template class and associated unit test. - -2006-12-01 Sandro Santilli - - * configure.ac: make missing BOOST_LIBS - a nogo (we need threads now). - -2006-12-01 Vitaly Alexeev - - * backend/render_handler_ogl.cpp, - * libbase/image_filters.cpp, - * libbase/tu_config.h, - * libbase/log.cpp, - * libbase/network.cpp, - * libbase/container.cpp, - * server/sprite_instance.cpp, - * server/movie_instance.cpp, - * server/dlist.cpp, - * server/dlist.h, - * server/parser/movie_def_impl.cpp, - * server/vm/ASHandlers.cpp - Cleaning of Vitaly dust from comments - -2006-11-30 Sandro Santilli - - * libbase/: Makefile.am, sharedlib.cpp: - boost::lightweight_mutex => boost::mutex - * backend/render_handler_agg.{cpp,h}: - some cleanups (including a missing virtual destructor) - and some assertions checking, to make reproducing - bug #18416 easier. - -2006-11-30 Patrice Dumas - - * autogen.sh: add libltdl once. - -2006-11-30 Markus Gothe - - * backend/sound_handler_sdl.{h,cpp}: hash<> to hash_wrapper<> change. - * fontlib.h: Don't include "container.h". - -2006-11-30 Sandro Santilli - - * server/parser/movie_def_impl.cpp (resolve_import): - remove unneeded round-trip with static casts. - * server/edit_text_character.{h,cpp}, - server/parser/edit_text_character_def.h: - use unsigned integers for curosr and max text length. - * server/parser/movie_def_impl.{h,cpp}: implement - a thread-safe get_bytes_loaded taking seek-backs - into account. - -2006-11-30 Sandro Santilli - - * server/parser/Makefile.am: added BOOST_LIBS as - we now use boost threads. - * server/parser/movie_def_impl.{h,cpp}: be less - lock-intensive in load. Note that this exposes - a problem with get_bytes_loaded, play elvis.swf - to see. I'm committing anyway as a mileston, - will fix get_bytes_loaded later. - -2006-11-30 Sandro Santilli - - * testsuite/actionscript.all/gen-index-wiki.sh: - include a link to the source code. - * server/parser/movie_def_impl.cpp (read_all_swf): - catch std exceptions (including parsing exceptions). - * server/styles.cpp (read): throw ParserException when - an unsupported fill style type is read. - * libbase/GnashException.h: add a ParserException class. - * backend/Makefile.am: add BOOST_CFLAGS (see bug #18398) - -2006-11-29 Patrice Dumas - - * macros/kde.m4: Remove plies of useless code we don't need. - -2006-11-29 Rob Savoye - - * config.sub, config.guess: Let autogen.sh install these. - * libltdl: Remove directory and let libtoolize install this - instead. - * autogen.sh: Add --ltdl to libtoolize. - -2006-11-29 Sandro Santilli - - * testsuite/actionscript.all/: Makefile.am, gen-index.sh, - gen-index-wiki.sh: fix index.wiki generation rule. - * testsuite/anaylse-results.sh: sort directories, to make - cross-systems comparison easier. - * testsuite/simple.exp: handle deadlocks or infinite loops - in testcases. - * testsuite/simple.exp: handle premature death and non-zero - return of testcases. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - Add tests for dynamically changing a TextField's variable name. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp - Updated and simplified (the most part is done in the sefl-contained - testcase anyway). - * server/edit_text_character.{cpp,h}: - Allow programmatically setting a TextField's - variable name. - -2006-11-29 Sandro Santilli - - * server/edit_text_character.cpp: properly set - TextField interface (to finish); implement 'variable' - propery. - * updated .cvsignore files, moved binary only swf - from testsuite/actionscript.all to testsuite/samples. - * server/movie_root.cpp (advance): - Don't check delta_time, rather always call advance of - current_root. My plan is to have movie_root be just a - wrapper around movie_instance. - * testsuite/MovieTester.cpp: - Activate verbosity to allow for self-contained testcases - to be taken into account; give initial kick to movie. - * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, - DefineEditTextVariableNameTest-Runner.cpp, - RollOverOutTest-Runner.cpp: - Omit the initial ::advance(), MovieTester will take - care of that. - -2006-11-28 Sandro Santilli - - * testsuite/Makefile.am: added -Iserver/vm - needed for MovieTester.cpp - * testsuite/MovieTester.cpp (ctor): fixed - reference to root movie (it's still pretty - confusing) - -2006-11-28 Markus Gothe - - * server/shape.cpp: hash<> -> hash_wrapper<>. - -2006-11-28 Sandro Santilli - - * testsuite/MovieTester.cpp (ctor): properly initialize - the virtual machine. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - test TextField.variable. - * testsuite/misc-ming.all/ming_utils.c (add_xtrace_function): - register 'xtrace' on the _root movie. - * gui/Player.cpp: fix handling of the -d switch. - -2006-11-28 Sandro Santilli - - * server/character.cpp (do_mouse_drag): indentation - * server/character.h (drag_state): documented - coordinate space for drag bounds. - * server/vm/ASHandlers.cpp (ActionStartDragMovie): - convert pixels to twips when reading drag boundaries. - -2006-11-28 Sandro Santilli - - * server/button_character_instance.{cpp,h}: - Don't override get_mouse_state with an equivalent - implementation. - * server/rect.{cpp,h}: Add clamp(point) method. - * server/: character.{cpp,h}, movie_root.{cpp,h}, - sprite_instance.{h,cpp}: - Change signature of get_mouse_state() and get_drag_state() - to use references rather then pointers; Improve - definition of drag_state class to use our rect - class for bounds and to store character in a smart pointer. - * server/vm/ASHandlers.cpp (ActionStartDragMovie): - flip drag boundaries coordinates if given in the wrong - order (fixes bug #18394). - -2006-11-28 Sandro Santilli - - * gui/Player.cpp (load_movie) : don't start loader thread - also for stdin reads. Fixes bug #18393. - * server/: impl.{cpp,h}, parser/movie_def_impl.{cpp,h}, - parser/sprite_definition.cpp, swf/TagLoadersTable.{cpp,h}: - Another global removed: 's_tag_loaders', replaced - with TagLoadersTable turned into a singleton. - -2006-11-28 Markus Gothe - - * Applied a bunch of RiscOS-patches. - -2006-11-28 Sandro Santilli - - * macros/libtool.m4: removed so that ltmain.sh - always matches the one found in system. - (libtoolize --force --copy will replace ltmain.sh) - -2006-11-28 Patrice Dumas - - * remove or conditionalize CPPFLAGS and LIBS - * add distributed files or dirs - * use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL in autogen.sh - * add dependencies on libs for gnash, to avoid parallel make error - * change <..> to ".." for includes from source - -2006-11-28 Sandro Santilli - - * server/impl.cpp (globals): base_url auto_ptr made - module-static. - * autogen.sh: make 'Running' messages show all args. - * server/sprite_instance.cpp (ctor): initialize - all members (m_sound_stream_id in particular - needed it). - -2006-11-27 Markus Gothe - - * Reverted naming-changes. - * libgeometry/kd_tree_dynamic.cpp: hash_wrapper(). - * utilities/parser.cpp: hash_wrapper(); - * libbase/hash_wrapper.h: template-wrapper for add() and get() to - replacing hash()-code with . - -2006-11-27 Sandro Santilli - - * server/parser/sprite_definition.cpp (read): - don't choke if DEFINESPRITE tag contains more - SHOWFRAME then expected. - * server/: gnash.h, impl.cpp: export the movie creation - functions taking additional argument to control - start of the loader thread. - * server/parser/movie_definition.h: completeLoad() - definition moved in base class. - * server/parser/movie_def_impl.cpp (create_instance): - don't execute actions of frame 0, delegate that - to movie_instance::advance. - * server/movie_instance.cpp (advance): execute - actions in frame 0 on first call. - * gui/Player.cpp (run), utilities/processor.cpp (play_move): - complete root movie load *after* the VM is initialized. - -2006-11-27 Sandro Santilli - - * server/sprite_instance.cpp (get_member): - clean up _name and _droptarget handling. - (btw, we should use addProperty for these). - * testsuite/actionscript.all/MovieClip.as: - fixed tests for SWF5 target. - * testsuite/actionscript.all/dejagnu_so_init.as: - implement dejagnu initialization checker function - with setInterval (in addition to onEnterFrame). - This makes SWF5 targets work fine. - * server/parser/movie_def_impl.cpp (create_instance): - don't force the instance name to be _root ! - * server/sprite_instance.{h,cpp}: added support - for the _target property; report execution of - frame tags when in verbose action mode. - * testsuite/actionscript.all/MovieClip.as: added - tests for the _target property. - * server/asobj/Video.cpp: attachvideo => attachVideo. - * server/asobj/string.cpp: lastindexof => lastIndexOf. - * testsuite/actionscript.all/: XMLNode.as, MovieClip.as: - fixed tests to match reality. - -2006-11-26 Sandro Santilli - - * server/sprite_instance.cpp (attachMovieClipInterface): - only activate the methods available for the target SWF - version. Added stubs for getURL, startDrag, stopDrag - and attachAudio. - * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): - don't "visualize" expected successes. - * server/vm/ASHandlers.cpp (ActionTypeOf): - return "movieclip" when object is a sprite_instance. - * testsuite/actionscript.all/MovieClip.as: - typeof(mc) == "movieclip" succeeds. - * testsuite/actionscript.all/: Object.as, XML.as: - don't expect case-based failure. - * server/as_object.{h,cpp}: added getVM() function, - store a reference to the VM in class definition. - * testsuite/misc-ming.all/ming_utils.c: add a note - function to dejagnu module interface. - * doc/C/internals.xml: cleanups in the 'writing testcases' - sections, new section about using Dejagnu.swf for writing - testcases using non-Ming compilers. - -2006-11-26 Udo Giacomozzi - - * backend/render_handler_agg.cpp (draw_glyph): - allow glyphs to be used for drawing masks. - Fixes bug #18242. - -2006-11-26 Sandro Santilli - - * backend/render_handler_agg_style.h (agg_style_base): - add missing virtual destructor. Fixes bug #18309. - -2006-11-26 dolphinling - - * server/edit_text_character.cpp: - code cleanups. - -2006-11-26 Markus Gothe - - * server/rect.h DSOEXPORT expand_to_transformed_rect(). - * libbase/smart_ptr.h: Removed TU's rights since we don't use his - code. - -2006-11-25 Udo Giacomozzi - - * backend/render_handler.h, backend/render_handler_agg.cpp: - Don't start drawing a character when it's outside the clipping - rectangle. - * server/render.h, server/render.cpp: - Added interface to bounds_in_clipping_area() - * server/sprite_instance.cpp: Don't draw sprites (and their - childs) outside the clipping rectangle. - - -2006-11-25 Sandro Santilli - - * server/asobj/Global.cpp, testsuite/actionscript.all/Global.as: - isNan => isNaN. - * testsuite/actionscript.all/Boolean.as: - fix method names capitalization. - * server/asobj/gen-asclass.sh: keep method names - capitalization. - * server/asobj/Boolean.cpp (attachBooleanInterface): - fix method name capitalization. - * server/as_object.{h,cpp} (setPropFlags, set_member_flags): - fix property case handling, documented it. - * testsuite/simple.exp: show NOTES with verbosity - level == 1. - -2006-11-25 Michael Meier - - * testsuite/actionscript.all/String.as: fixed to match - expected behaviour. - * server/asobj/string.cpp: implement 'length' with the - add_property() interface. - -2006-11-25 Markus Gothe - - * backend/render_handler_ogl.cpp: #ifdef'd VITALY to get OGL working. - * configure.ac: List FLTK and RISCOS as params to --enable-gui. - * libbase/rc.h: DSOLOCAL -> DSOEXPORT. - * configure.ac: Try-out of finding zlib with generic macro. - * macros/: major clean-up... - -2006-11-24 Rob Savoye - - * config.guess: Update so it recognizes - armv5tel-unknown-linux-gnu for embedded arm targets when building - natively. - -2006-11-24 Sandro Santilli - - * plugin/plugin.cpp: wait for gdb if GNASH_OPTIONS - environment variable contains the substring 'waitforgdb'; - cleanups. - * testsuite/actionscript.all/Date.as: - case-sensitiveness tests pass now. - -2006-11-24 Patrice Dumas - - * Makefile.am, backend/Makefile.am, gui/Makefile.am, - libamf/Makefile.am, libbase/Makefile.am, libgeometry/Makefile.am, - packaging/redhat/gnash.spec, plugin/Makefile.am, - plugin/klash/Makefile.am, plugin/mozilla-sdk/Makefile.am, - server/Makefile.am, server/asobj/Makefile.am, - server/parser/Makefile.am, server/vm/Makefile.am, - testsuite/actionscript.all/Makefile.am, - testsuite/libbase/Makefile.am, - testsuite/misc-ming.all/Makefile.am, - testsuite/movies.all/Makefile.am, testsuite/samples/Makefile.am, - testsuite/server/Makefile.am, utilities/Makefile.am: - Use AM_CPPFLAGS instead of INCLUDES at most as possible, - try to be more selective in linking, - remove unused KLASH_DIRS in top-level Makefile.am, - remove one $(LIBADD_DL) since this variable is not set, - remove some redundancy, bring the spec file in sync with 0.7.2 branch, - avoid protecting everything in testsuite/movies.all/Makefile.am, - only what is dependent on ming. - -2006-11-24 Sandro Santilli - - * server/vm/ASHandlers.cpp (ActionDelete): - don't force 2 elements on stack, since only one is needed. See - bug #18365. - -2006-11-24 Rob Savoye - - * libbase/sharedlib.cpp: Use & instead of a pointer to an - as_object. const_cast basename. - * configure.ac: Test for libgen.h. - * extensions/dejagnu/Makefile.am: Add libgnashvm to ldflags. - * extensions/dejagnu/dejagnu.cpp, dejagnu.h: Use & instead of a - pointer to an as_object. - * libbase/extension.h, extension.cpp: Use & instead of a pointer - to an as_object. - -2006-11-24 Markus Gothe - - * libbase/sharedlib.cpp: Fixed include for basename and casting to - const char *. - -2006-11-24 Sandro Santilli - - * server/vm/VM.{cpp,h}: added isInitialized() method. - * gui/gui.cpp (resize_view): don't abort :) - * server/asobj/Date.cpp: use proper case when registering class - interface. - * server/PropertyList.h: be case sensitive ! - * server/as_object.cpp (set_member_default, get_member_default): - convert memer names to lowercase when VM is targetted at - SWF version < 7. - -2006-11-24 Sandro Santilli - - * server: as_environment.cpp, as_function.cpp, as_function.h, - impl.cpp, swf_function.cpp, asobj/GMath.h, asobj/Global.cpp, - asobj/Global.h, asobj/Key.cpp, asobj/Key.h, asobj/Makefile.am, - asobj/Math.cpp, asobj/MovieClip.cpp, asobj/MovieClip.h, - asobj/System.cpp, asobj/System.h, vm/ActionExec.cpp, - vm/VM.cpp, vm/VM.h, vm/action.cpp, vm/action.h: - Got rid of another global: 's_global'; various cleanups for - ActionScript classes.. Whooo! - -2006-11-24 Vitaly Alexeev - - * libbase\sharelib.cpp: fixed VC++ compiler errors - * libbase\extension.cpp: fixed VC++ compiler errors - * libltdl\ltdl.c: fixed VC++ compiler errors - -2006-11-24 Sandro Santilli - - * server/Global.h = server/asobj/Global.h - * server/as_object.{cpp,h}: off-lined constructors and - destructor, with constructor asserting the presence - of an unitialized VM; made set_prototype() a protected member - to allow sprite_instance to attach a MovieClip prototype. - * server/sprite_instance.{cpp,h}: conform to the ActionScript - classes API, wipe the as_builtins crap; assert the presence - of an initialized VM in constructor. - * server/asobj/Global.cpp: invoke movieclip_class_init() - * testsuite/actionscript.all/MovieClip.as: added check - for MovieClip class. - * gui/: Makefile.am, Player.cpp: - use the new VM interface for initialization. - * server/impl.cpp: deprecate set_current_root(), implement - get_current_root() with a call to the VM singleton. - * server/sprite_instance.cpp (ctor): assert that a VM has - been initialized (for debugging) - * utilities/: Makefile.am, processor.cpp - use the new VM interface for initialization. - * server/vm/: Makefile.am, VM.{cpp,h}: new class aimed at - holding VM-related globals. - -2006-11-24 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: added "class YUV_video_ogl_NV" - that uses opengl extensions for fast video rendering - * server\swf\tag_loaders.cpp: fixed case of "sound_id < 0" - * server\button_character_instance.cpp: fixed case of "sound_id < 0" - * backend\sound_handler_sdl.cpp: sound is stereo now - * server\asobj\NetStream (cpp, h): added "pause" & fixed bugs, - video is tested on FC4 - * win32\VC8\gnash.vcproj: added server\am dir - * testsuite\samples\player.swf: added pause - -2006-11-24 Sandro Santilli - - * server/gnash.h: ok, include as_value, but document what's needed - * server: {xmlattres,xmlnode,xmlsocket}.{h,cpp} => asobj - -2006-11-24 Sandro Santilli - - * configure.ac, server/ActionExec.cpp, server/ActionExec.h, - server/Makefile.am, server/action.cpp, server/action.h, - server/array.h, server/button_character_instance.cpp, - server/edit_text_character.cpp, server/fn_call.h, server/gnash.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/swf_function.cpp, server/with_stack_entry.h, - server/asobj/Makefile.am, server/asobj/MovieClipLoader.cpp, - server/parser/Makefile.am, server/parser/action_buffer.cpp, - server/parser/action_buffer.h, server/swf/ASHandlers.cpp, - server/swf/ASHandlers.h, server/vm/.cvsignore, - server/vm/ASHandlers.cpp, server/vm/ASHandlers.h, - server/vm/ActionExec.cpp, server/vm/ActionExec.h, - server/vm/Makefile.am, server/vm/action.cpp, - server/vm/action.h, server/vm/fn_call.h, - server/vm/with_stack_entry.h, testsuite/server/Makefile.am: - New vm/ dir and libgnashvm.so convenience library; - Obsoleted as_environment::execute (use ActionExec instead). - -2006-11-24 Sandro Santilli - - * configure.ac: comment out extension dir (no Makefile.am - in there atm) - * testsuite/actionscript.all/: Object.as, Date.as: - expect failures on case sensitiveness. - * gui/Makefile.am: don't directly link convenience - libaries. - * server/: as_environment.cpp, swf_function.cpp: - fixed includes - -2006-11-23 Rob Savoye - - * libbase/Makefile.am: Add new extension files. Pass a directory - based on $prefix as a constant for Gnash extensions. - * libbase/sharedlib.h: Add as_object typed entry point. Optionally - pass in the search path for most methods. Find as_object typed - entry point differently than a generic symbol. - * libbase/sharedlib.cpp: Many changes, it basically works - now. Don't do in SharedLib class what should be done in the - Extension class. Initialize libltdl in the constructor, so it's - done before anything else. Support a path as a parameter, or use - GNASH_PLUGINS for a colon seperate path. - * libbase/extension.h, extension.cpp: New files for Gnash - extension plugins. - * extensions/Makefile.am: New file. Recurse into extension - directories. - * extensions/dejagnu/Makefile.am: Build DejaGnu extension for - Gnash. - * extensions/dejagnu/dejagnu.cpp, dejagnu.h: New files for DejaGnu - extension. This is mostly just a template on creating custom - ActionScript extensions for Gnash. - * Makefile.am: Add extension directory, but don't build for now - from the top level. - - * configure.ac: Look for 64 bit OpenBSD systems, and set - WORDSIZE. Configure extension directory. - -2006-11-23 Sandro Santilli - - * server/sprite_instance.cpp: removed compiler warnings. - * server/: timers.{h,cpp}, sprite_instance.h: includes cleanup. - (shouldn't this be under asobj, btw ?) - * server/parser/: movie_def_impl.h, movie_definition.h: - forward declarations. - -2006-11-23 Sandro Santilli - - * server/parser/bitmap_character_def.h: removed action.h include - * Makefile.am: fix 'make dumpconfig' output when using GST sound. - * server/parser/movie_def_impl.cpp: removed compiler warnings. - * libbase/sharedlib.h: removed unneeded includes - * server/character.h: removed action.h include - * server/asobj/MovieClipLoader.h: removed all includes - * server/impl.cpp (set_current_root): don't allow multiple calls - to this function, we're not read for it yet. - * testsuite/actionscript.all/Object.as: object members are - case-sensitive starting at SWF7 ! - * testsuite/actionscript.all/Date.as: method names are case-sensitive - starting at SWF7 ! - * testsuite/actionscript.all/CustomActions.as: disabled all - tests as the class is only intended for use in the Flash - authoring tool, see http://sephiroth.it/reference.php?id=156&cat=1 - * testsuite/actionscript.all/Camera.as: updated after run reports. - * testsuite/actionscript.all/dejagnu.as: don't override rcsid - set in testcases. - * testsuite/actionscript.all/check.as: make all traces - visual (trace == info). - -2006-11-22 Rob Savoye - - * configure.ac: Check for powerpc Darwin, and set __powerpc64__ so - the Mozilla headers still work to do a gtk build. Fixes #18353. - * plugin/mozilla-sdk/include/prcpucfg.h: Include config.h. - -2006-11-22 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: - fixed some typos, use the same relative - path to Dejagnu.swf for both offline and - online testcases. - * testsuite/generic-testrunner.sh: made more - verbose - * testsuite/Makefile.am: add rule to build - Dejagnu.swf "on-dir-up" (so we don't need - two different versions of actionscript - testcases with different path to it. - -2006-11-22 Sandro Santilli - - * testsuite/actionscript.all/gen-index.sh: use - first argument as name of the 'all-inclusive' - test. - * testsuite/actionscript.all/Makefile.am: isolate - unit tests to avoid a broken support to influence - results of other units; changed online-tests rule - to avoid unneeded rebuilds and use version-specific - filenames. - * testsuite/generic-testrunner.sh: allow for multiple - SWF files to be tested. - * server/: xmlattrs.h, xmlnode.cpp, xmlnode.h: - use delete [] when allocating with new []. - (why aren't we using std::string, btw ?) - -2006-11-22 Sandro Santilli - - * testsuite/actionscript.all/Function.as: tweaked - tests to take into account differences in numerical - computations between SWF target version. - * testsuite/actionscript.all/XML.as: fixed test. - * testsuite/actionscript.all/Video.as: - attach => attachVideo, expect Video - class to non exist with SWF < 6 - -2006-11-22 Bastiaan Jacques - - * libbase/sharedlib.cpp: getcwd() should be passed a buffer of - size at least equal to PATH_MAX. Fix an invalid dereference of - the buffer pointer, too. - -2006-11-22 Sandro Santilli - - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: updated - to perform the tests in all frames. - * testsuite/misc-ming.all/ButtonEventsTest.c: added two more - frames to the testcase adding shapes at lower (frame1) and - higher (frame2) depth then the button. The aim is debugging - what I think VV tried to fix in DisplayList::visitBackward. - * testsuite/check.h: add an 'info' macro as a proxy to dejagnu's - note() function, with a fallback stub. - * testsuite/actionscript.all/MovieClip.as: fix some expected - values to match the defaults. - * testsuite/actionscript.all/Mouse.as: instantiation - should not be allowed (probably). - * testsuite/actionscript.all/Microphone.as: updated to - properly check the get() method. - * testsuite/actionscript.all/Date.as: check UTC to be - a method of the Date class, not inherited by instances. - * testsuite/actionscript.all/ContextMenu.as: check that - support starts with SWF7. - * testsuite/actionscript.all/Camera.as: updated to - properly check the get() method. - -2006-11-22 Michael Meier - - * server/asobj/string.cpp: implemented string methods - slice, concat, slice, lastindexof; added String - property length - * testsuite/actionscript.all/String.as: tests for the - newly implemented features. - -2006-11-21 Sandro Santilli - - * server/asobj/Makefile.am: added missing FFMPEG_LIBS dependency. - * plugin/klash/klash.cpp: fixed after movie_interface and - movie deprecation. - * testsuite/actionscript.all/dejagnu_so_init.as: - fix information about *which* version of Ming contains - the bug preventing proper load of Dejagnu.swf lib. - * Makefile.am: fix 'make dump' output. - * testsuite/actionscript.all/Makefile.am: fixed dependencies - for explicitly generated SWF (ASTESTS_OUT). - * configure.ac: suggest 'texinfo' package for building dox - (contains 'makeinfo') - * server/array.h: documented ::slice function - * server/array.cpp: more fixes. - * testsuite/actionscript.all/array.as: added some tests for - invalid calls to Array.slice() - * server/array.cpp (slice): handled some unexpected user input. - * testsuite/actionscript.all/Makefile.am (make check): - run the all-inclusive testcases (one for each target version). - * server/mouse_button_state.h: added missing - character.h include. - -2006-11-20 Sandro Santilli - - * server/: Makefile.am, movie.h, movie_interface.h, - server/parser/bitmap_character_def.h: removed - obsoleted movie.h and movie_interface.h files. - -2006-11-20 Sandro Santilli - - * gui/Player.cpp, gui/Player.h, gui/gui.cpp, - gui/gui.h, server/action.cpp, server/action.h, - server/as_object.h, server/button_character_instance.cpp, - server/button_character_instance.h, server/character.h, - server/dlist.cpp, server/dlist.h, server/edit_text_character.cpp, - server/edit_text_character.h, server/execute_tag.h, - server/generic_character.cpp, server/generic_character.h, - server/gnash.h, server/impl.cpp, server/impl.h, - server/mouse_button_state.h, server/movie.h, - server/movie_interface.h, server/movie_root.cpp, - server/movie_root.h, server/sound.cpp, server/sound.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/timers.cpp, server/xmlsocket.cpp, - server/asobj/MovieClipLoader.cpp, - server/parser/movie_def_impl.cpp, - server/parser/movie_def_impl.h, server/parser/movie_definition.h, - server/parser/sprite_definition.h, server/swf/ASHandlers.cpp, - server/swf/tag_loaders.cpp, testsuite/MovieTester.cpp, - testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, - testsuite/misc-ming.all/RollOverOutTest-Runner.cpp, - utilities/processor.cpp: - Got rid of 'movie' and 'movie_interface' classes. - Feel much better now. - Make check succeeds, but I'm sure we lost something... - please anyone help checking in the next days. - -2006-11-20 Sandro Santilli - - * server/event_id.h: include gnash.h for gnash::key def. - * server/shm.h: streamlined header inclusion. - -2006-11-20 Sandro Santilli - - * server/xml.{h,cpp}: changed signatures taking event_id - so to take it by const ref; reduced headers inclusion. - * server/xmlattrs.h: reduced headers inclusion. - -2006-11-20 Sandro Santilli - - * server/parser/button_character_def.h: added missing rect.h - include. - * server/asobj/: NetConnection.h, System.h: - streamlined headers inclusion. - * server/asobj: Global.cpp, SharedObject.{h,cpp}, Stage.{h,cpp}, - Video.{h,cpp}, TextSnapshot.{cpp,h}: - ported ActionScript class stubs to new layout. - -2006-11-20 Sandro Santilli - - * server/asobj/: Key.h, LocalConnection.h: - streamlined headers inclusion. - * server/asobj: Global.cpp, Error.{h,cpp}, LoadVars.{h,cpp}, - Microphone.{h,cpp}, Mouse.{cpp,h}, Selection.{cpp,h}: - ported ActionScript class stubs to new layout. - -2006-11-20 Sandro Santilli - - * server/asobj/Date.h: streamlined headers inclusion. - * server/asobj: Global.cpp, Camera.{h,cpp}, Color.{cpp,h}, - ContextMenu.{h,cpp}, CustomActions.{cpp,h}: - ported ActionScript class stubs to new layout. - * doc/C/gnashrc.xml: fixed description of whitelist/blacklist - settings. - -2006-11-20 Vitaly Alexeev - - * plugin\win32\plugin.cpp: reanimated - * win32\VC8\npgnash.vcproj: reanimated - -2006-11-20 Vitaly Alexeev - - * server\parser\movie_def_impl.cpp: - usleep(x) ==> Sleep(x/1000) for win32; - 'return _thread == 0' is invalid in win32 that 'pthread_t' - is typedef struct { - void * p; /* Pointer to actual object */ - unsigned int x; /* Extra information - reuse count etc */ - } ptw32_handle_t; - * server\video_stream_instance.h: typo - * gui\gui.cpp: typo - * backend\render_handler_ogl.cpp: GL/glx.h is absent in win32 - * backend\sound_handler_sdl.cpp: sdl_audio_callback() is switched - off for win32 because of segmentation fault - * server\video_stream_instance.cpp: typo - * reconfigured win32 dir - -2006-11-20 Sandro Santilli - - * gui/gnash.cpp (parseCommandLine): don't remove log file ! - * server/URLAccessManager.cpp (host_check_blackwhite_lists): - if whitelist is non-empty and host is not listed there, forbid - access. - * libbase/rc.cpp (dump): typo fixed - * testsuite/actionscript.all/gen-index.sh: add more info - in the versioned SWF index page. - * testsuite/actionscript.all/Boolean.as: don't expect - failures anymore, it works now. - * server/parser/movie_def_impl.cpp (get_exported_resource): - tweak timeouts to give thread switching a chance; more - debugging. - -2006-11-20 Michael Meier - - * server/asobj: Global.cpp, Boolean.cpp, Boolean.h: - implemented Boolean ActionScript class. - -2006-11-19 Rob Savoye - - * backend/render_handler_ogl.cpp: Include glx.h so - glXGetCurrentContext is defined on Darwin. - -2006-11-18 Markus Gothe - - * libbase/smart_ptr.h: Fixed "error: extra ';'". - -2006-11-18 Markus Gothe - - * configure.ac: Applied patches for RISC OS support. Fixed gui - ro->riscos. - * gui/Makefile.am gui/Player.cpp gui/sdl_agg_glue.cpp libbase/Thread.cpp - libltdl/ltdl.c macros/pkg.m4 server/shm.cpp server/shm.h - server/parser/button_character_def.h utilities/Makefile.am - utilities/dumpshm.cpp: Applied patches for RISC OS support. - * gui/ro.cpp, gui/ro_glue_agg.cpp, gui/ro_glue_agg.h, gui/ro_glue.h, - gui/rosup.h: Added RISC OS support. - -2006-11-18 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.c: fixed xfail - to increment expected failures rather then 'unexpected' ones. - * server/asobj/gen-asclass.sh: typos fixed; added - missing constructor for target objects; - 'unimplemented' messages printed with log_warning - -2006-11-18 Tomas Groth Christensen - - * server/movie.h, server/sound.cpp, server/sprite_instance.{cpp,h}, - server/swf/ASHandlers.cpp: Instead of stopping all sounds when - framejumping or on sprite-stop, now only stop soundstreams. The - id of the current playing stream is stored in the sprite. - -2006-11-17 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: fixed - 'online-tests' rule. - -2006-11-17 Tomas Groth Christensen - - * backend/Makefile.am, backend/sound_handler_gst.{cpp,h}: Split - the gstreamer backend into a .cpp-file and a .h-file. Also - applied Hiroyuki Ikezoe patches, and did a bit of cleanup. - * backend/sound_handler_sdl.cpp: More cleanups. - -2006-11-17 Sandro Santilli - - * server/asobj/gen-asclass.sh: typo fixed. - -2006-11-17 Sandro Santilli - - * server/shm.cpp (Shm::attach): don't use PROT_EXEC to - mmap call (permission denied on some systems) - * server/parser/movie_def_impl.{cpp,h}: - -2006-11-17 Sandro Santilli - - * server/parser/movie_def_impl.cpp (get_exported_resource) : - fixed use of timeout. - -2006-11-17 Sandro Santilli - - * server/parser/movie_def_impl.cpp (get_exported_resource) : - use a timeout to handle circular IMPORT chains. - * server/parser/movie_def_impl.{cpp,h}: - Added MovieLoader::isSelfThread() method, more assertion - checking, made LOAD_MOVIES_IN_A_SEPARATE_THREAD work again. - * server/swf/tag_loaders.cpp (import_loader): updated messages - to be less confusing. - -2006-11-17 Tomas Groth Christensen - - * backend/sound_handler_sdl.{h,cpp}: Re-structured the code a bit - to make pointer handling safer, and changed from structs to - classes. General cleanups... Added doxygen comments. - -2006-11-17 Sandro Santilli - - * server/swf/tag_loaders.cpp (import_loader): don't allow - a movie to import it's own exported symbols. - * server/impl.cpp (create_library_movie): normalize real url - when using it as a cache label. - * server/impl.cpp (create_library_movie): don't start loader - thread before the created movie is added to the library. - This is to handle a parser that tries to load again the - same stream being parsed (self-import) - * gui/gui.cpp (ctor): properly initialize members, in particular - the _renderer one, to ensure delete is not called on an undefined - pointer at destruction time. - * server/parser/movie_def_impl.{cpp,h}: decomposed - read() method in readHeader() and completeLoad(); - added a MovieLoader::started() method. - -2006-11-17 Tomas Groth Christensen - - * plugin/plugin.cpp: Remove Mozilla license exemption. - -2006-11-17 Sandro Santilli - - * testsuite/actionscript.all/dejagnu_so_init.as: raise - timeout to 5 seconds, assuming 20FPS. - * testsuite/actionscript.all/Makefile.am: simplified - rules for online-tests creation - * testsuite/actionscript.all/gen-index.sh: assume - we have an 'alltests.swf' file containing *all* tests. - -2006-11-17 Sandro Santilli - - * testsuite/misc-ming.all/Dejagnu.c: make xtrace window larger - toller, and set SWF size accordingly. - * testsuite/actionscript.all/rtmp.as: don't add a custom - xtrace function, rather use the one provided with the framework. - * testsuite/misc-ming.all/ming_utils.c (add_xtrace_function): - make the textfield selectable (for copy 'n paste). - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: more cleanups, - initial rules for all-inclusive SWF testcases (try it out! - rule names: astests-v{5,6,7,8}.swf) - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/dejagnu_so_init.as: add - totals() in fallback implementation (when load of Dejagnu.swf - fails) - * testsuite/actionscript.all/dejagnu.as: be compatible with - DEJAGNU shared lib. - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/: check.as, dejagnu_so_init.as: - if USE_DEJAGNU_MODULE is defined have dejagnu_so_init.as - print SWF and Player version (so we can print once for a - set of testcases compiled on multiple frames) - * testsuite/actionscript.all/: LocalConnection.as, XML.as, XMLNode.as: - added rcsid. - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: fixed dependencies - for SWF targets, cleanups. - -2006-11-16 Sandro Santilli - - * server/parser/movie_def_impl.{cpp,h}: - get_exported_resource() changed to take incremental - loading into account, by making sure the whole - stream has been parsed before returning a failure - (the EXPORT tag might be at the end of the stream!) - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/check.as: moved most dejagnu_so - specific code. - * testsuite/actionscript.all/dejagnu_so_init.as: - take slowness of loading into account by using a frameloop - waiting for dejagnu module to be initialized, with a timeout - to fallback to 'trace' mode. - -2006-11-16 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.c - (add_xtrace_function): - don't duplicate visual traces to trace channel; - (get_dejagnu_actions) : - export (x)pass()/(x)fail()/report() on the _root, don't - visually print expected successes. - * testsuite/actionscript.all/check.as: - when USE_DEJAGNU_MODULE is defined, really use the - module's *dejagnu*-like interface (includes printing summary). - -2006-11-16 Sandro Santilli - - * testsuite/actionscript.all/: dejagnu_so_init.as, check.as: - check for initialized Dejagnu module moved from init.as to - check.as (we know it will NOT be initialized in first frame) - and made warning message much more verbose. - * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): - Set the 'dejagnu_module_initialized' variable on the _root movie. - -2006-11-16 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): - Set a 'dejagnu_module_initialized' variable to one after - initialization; it can then be used by loaders for consistency - checks. - * testsuite/actionscript.all/dejagnu_so_init.as: - Add consistency checks: complain if __shared_assets is - undefined (using makeswf with wrong switches?), - and if __shared_assets.dejagnu_module_initialiezed evaluates - to false (using bogus Ming version?). - -2006-11-16 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: build Dejagnu.swf - on 'make check' - * testsuite/actionscript.all/: dejagnu_so_fini.as, - dejagnu_so_init.as: - New wrappers around Dejagnu.swf shared library to make - it's use effective. - * testsuite/actionscript.all/check.as: use Dejagnu.swf - shared library if USE_DEJAGNU_MODULE is defined, provide - fallback to bare 'trace' if it is not-working (due to bogus - 'makeswf' found in Ming-0.4.0beta22. Obsolete USE_XTRACE. - * testsuite/actionscript.all/Makefile.am: change *.swf rule - to use the Dejagnu.swf module (includes defining USE_DEJAGNU_MODULE - and wrapping source in dejagnu_so_init.as and dejagnu_so_fini.as. - -2006-11-16 Sandro Santilli - - * macros/agg.m4: don't assume AGG is installed - if agg_gradient_lut.h is not found. - -2006-11-15 Rob Savoye - - * macros/agg.m4: Look in the agg2 subdirectory for - agg_gradient_lut.h. - -2006-11-16 Sandro Santilli - - * testsuite/misc-ming.all: ming_utils.{c.h}: add - a get_dejagnu_clip() function. - * testsuite/misc-ming.all: Makefile.am, Dejagnu.c: - initial version of a loadable Dejagnu module for SWF - (needs more work) - -2006-11-15 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.{c,h}: - removed add_xtrace_function from header, - changed add_dejagnu_functions to take a font object and - to create the xtrace window w/out the drawing api (so - that gnash is able to use it); added get_default_font function. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - use pixel coordinates, use get_default_font function, - cleanups. - -2006-11-15 Sandro Santilli - - * backend/render_handler_agg.cpp: comment out unneeded - assertion (see https://savannah.gnu.org/bugs/?18119#comment2) - -2006-11-15 Sandro Santilli - - * server/edit_text_character.cpp: warn only once - about missing 'no word wrap' implementation. - -2006-11-15 Sandro Santilli - - * server/movie_root.cpp (goto_labeled_frame): print - an error asking users to report url of movie triggering - the call (I plan to change implementation of it). - * server/sprite_instance.cpp (goto_labeled_frame): - make invalid label a "malformed swf" warning. - -2006-11-15 Sandro Santilli - - * server/sprite_instance.{h.cpp}: use a std::list - for ActionList (now typedef'd) as it's more appropriate - since we execute it from the start and execution can - append items to it; typdef both PlayList and ActionList. - This seems to fix bug #17793. - * server/parser/: movie_definition.h, movie_def_impl.h, - sprite_definition.h: typedef PlayList and use that. - -2006-11-14 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Make sure the decoded data is - always able to fill the return buffer. - -2006-11-14 Sandro Santilli - - * libbase/container.h: don't redefine _LIB_PTHREAD_TYPES_H. - -2006-11-14 Patrice Dumas - - * server/Makefile.am, server/asobj/Makefile.am, - testsuite/Makefile.am, testsuite/server/Makefile.am: - other missing BOOST_CFLAGS - -2006-11-14 Sandro Santilli - - * testsuite/misc-ming.all/: ming_utils.{c,h}, - DefineEditTextVariableNameTest.c: - Moved general testcase generator facilities to ming_utils - lib. - * doc/C/internals.xml: new sections about writing Ming-based - self-contained SWF testcases and MovieTester-based testcases. - (Ann, help!) - -2006-11-14 Bastiaan Jacques - - * server/parser/Makefile.am: parser uses Boost, so add BOOST_CFLAGS - to INCLUDES. - * backend/render_handler_agg.cpp: add a not quite correct trunc() - implementation (which nevertheless serves our purposes) for - platforms which don't define it. - -2006-11-14 Sandro Santilli - - * testsuite/misc-ming.all/ming_utils.c (add_dejagnu_functions): - improved functions to use a TestState class, including - a totals() function. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - added checks for sprites size and final call to runtest.totals(). - * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, - Makefile.am: - reintroduced DefineEditTextVariableNameTest-Runner to also test - frame advancements (removed every test already checked by - self-containsd SWF testcase) - -2006-11-14 Sandro Santilli - - * plugin/klash/klash.cpp: fetch dbglogfile before use - (fixes bug #18290) - -2006-11-13 Markus Gothe - - * macros/gtkglext.m4: Fixed bug #18286. - -2006-11-13 Patrice Dumas - - * server/: Makefile.am, StreamProvider.cpp, impl.cpp, movie_root.h, - asobj/Makefile.am, parser/Makefile.am, swf/tag_loaders.cpp: - remove lot of CFLAGS, some LIBS and #include. - -2006-11-13 Sandro Santilli - - * server/edit_text_character.cpp (registerTextVariable): - update warning about VariableName referencing an unknown character. - * server/edit_text_character.cpp: have M_TEXT member getter - use get_text_value (so to get a chance of registering - variable name) - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - change last expected failures to successes. - -2006-11-13 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: - make sure DefineEditTextVariableNameTest-Runner is created prior - to use. - * server/edit_text_character.{h,cpp}: added primitive support - for VariableName targets referring to yet-to-be-instantiated - characters. - * testsuite/generic-testrunner.sh: new file to generate runners - for self-contained SWF testfiles. - * testsuite/misc-ming.all/Makefile.am: run DefineEditTextVariableName - test again (uses the generic-testrunner.sh file) - -2006-11-13 Sandro Santilli - - * testsuite/simple.exp: check for XPASSED before PASSED. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - make the DefineEditTextVariableNameTest.swf file a self-contained - testcase. - * testsuite/misc-ming.all/: Makefile.am, - DefineEditTextVariableNameTest-Runner.cpp: - removed unneeded test runner for DefineEditTextVarible - (the SWF is now a self-contained test) - * testsuite/simple.exp: fix handling of XPASSED/XFAILED results. - * testsuite/misc-ming.all/ming_utils.{c,h}: - added add_dejagnu_functions() method and fixed - xtrace() function to *append* rather then replace - the trace lines. - -2006-11-13 Hiroyuki Ikezoe - - * utilities/Makefile.am: add missing BOOST include flags. - -2006-11-13 Bastiaan Jacques - - * server/swf/ASHandlers.cpp: Remove old comment and unneeded const - keyword. - -2006-11-13 Sandro Santilli - - * server/as_environment.cpp (find_target): more informative - message about failure. - * server/edit_text_character.cpp (registerTextVariable): - don't abort if VariableName references an unknown character, - instead print an error calling for help interpreting this - case in the correct way :) - * server/sprite_instance.{cpp,h}: drop all self-assignments - to intrusive_ptr used as a mean to keep ourselves alive - (sounds dangerous and confusing); added a testInvariant() - inline method and called from all function modified in such - a way. - -2006-11-12 Markus Gothe - - * backend/render_handler_ogl.cpp: sprintf -> snprintf. - -2006-11-12 Bastiaan Jacques - - * server/swf/ASHandlers.cpp: Fix compilation errors by initialising - the singleton on the stack. - -2006-11-11 Sandro Santilli - - * server/swf/ASHandlers.cpp (SWFHandlers::instance): store - the allocated singleton in a std::auto_ptr<>, so to avoid - leaks report (gprocessor w/out args is now leak-free). - -2006-11-11 Sandro Santilli - - * libbase/smart_ptr.h: removed smart_ptr definition, added - function helpers and include for boost::intrusive_ptr - * backend/render_handler_tri.cpp, server/action.cpp, server/action.h, - server/array.cpp, server/as_environment.cpp, server/as_function.cpp, - server/button_character_instance.cpp, - server/button_character_instance.h, server/character.h, - server/dlist.cpp, server/dlist.h, server/font.cpp, server/font.h, - server/fontlib.cpp, server/gnash.h, server/impl.cpp, - server/mouse_button_state.h, server/movie_root.cpp, - server/movie_root.h, server/sprite_instance.cpp, - server/sprite_instance.h, server/styles.cpp, server/styles.h, - server/swf_function.cpp, server/with_stack_entry.h, server/xml.cpp, - server/asobj/ASSound.cpp, server/asobj/Key.cpp, server/asobj/Key.h, - server/asobj/MovieClipLoader.cpp, server/asobj/Number.cpp, - server/asobj/Object.cpp, server/asobj/System.cpp, - server/asobj/string.cpp, server/parser/bitmap_character_def.h, - server/parser/button_character_def.cpp, server/parser/character_def.h, - server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, - server/parser/movie_definition.h, server/parser/sprite_definition.h, - server/swf/ASHandlers.cpp, server/swf/tag_loaders.cpp: - Updated to use boost::intrusive_ptr instead of tu's smart_ptr - * testsuite/libbase/Makefile.am, testsuite/libbase/smart_ptrTest.cpp: - removed unit test for smart_ptr (obsoleted) - * server/asobj/gen-asclass.sh: stub generator for ActionScript classes. - -2006-11-11 Sandro Santilli - - * Makefile.am (mudflap and mudlfap-check rules): - use mudflapth as gnash's a threaded application. - * testsuite/libbase/TCXXRc.cpp: use "check.h" if dejagnu - isn't found. - -2006-11-11 Sandro Santilli - - * gui/Player.cpp, gui/gnash.cpp, gui/gtk.cpp, - gui/gtk_glue_gtkglext.cpp, gui/sdl_agg_glue.cpp, - libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, - libbase/rc.h, server/as_function.cpp, server/dlist.cpp, - server/movie_root.cpp, server/asobj/NetConnection.cpp, - server/swf/ASHandlers.cpp, utilities/parser.cpp, - utilities/processor.cpp: - removed extra semicolons - -2006-11-11 Sandro Santilli - - * gui/Player.cpp, gui/gnash.cpp, gui/gtk.cpp, - gui/gtk_glue_gtkglext.cpp, gui/sdl_agg_glue.cpp, libamf/amf.cpp, - libamf/rtmp.cpp, libbase/log.cpp, libbase/log.h, libbase/network.cpp, - libbase/rc.cpp, libbase/rc.h, libbase/sharedlib.cpp, - server/as_function.cpp, server/dlist.cpp, server/movie_root.cpp, - server/asobj/NetConnection.cpp, server/parser/action_buffer.cpp, - server/swf/ASHandlers.cpp, testsuite/libbase/TCXXRc.cpp, - testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp, - testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, - testsuite/misc-ming.all/RollOverOutTest-Runner.cpp, - testsuite/movies.all/gravity_embedded-TestRunner.cpp, - testsuite/samples/clip_as_button2-TestRunner.cpp, - testsuite/server/GetterSetterTest.cpp, - testsuite/server/PropertyListTest.cpp, - utilities/parser.cpp, - utilities/processor.cpp: - global rcfile hidden as function-static of the new - static RcInitFile::getDefaultInstance() method. - -2006-11-11 Markus Gothe - - * backend/Makefile.am: Applied patch from Hiroyuki Ikezoe. - -2006-11-11 Sandro Santilli - - * Makefile.am: added mudflap-check rule (make check - won't work after make mudflap) - * libbase/rc.{cpp,h}: made static initialization - of default RcInitFile predictable, by having - it happen at first call to a newly introduced - getDefaultInstance() static function. This - fixes one of many invalid accesses reported by - mudflap (see bug #18100) - * gui/: Player.cpp, gnash.cpp, plugin/klash/klash.cpp, - server/URLAccessManager.cpp, utilities/: parser.cpp, - processor.cpp: - fetch global RcInitFile by using the new - RcInitFile::getDefaultInstance() - -2006-11-10 Markus Gothe - - * backend/Makefile.am, gui/Makefile.am, libamf/Makefile.am, - libbase/Makefile.am, libgeometry/Makefile.am, server/Makefile.am, - server/asobj/Makefile.am, server/parser/Makefile.am, - utilities/Makefile.am: Added _la_LDFLAGS = -avoid-version. - Closed bug: #18235. - - * libbase/sharedlib.cpp: Fixed - "error: ISO C++ forbids comparison between pointer of type 'void *' - and pointer-to-function" - - * macros/agg.m4: Check for agg_gradient_lut.h. - -2006-11-09 Sandro Santilli - - * utilities/processor.cpp: call gnash::clear() as last step to help - finding leaks. - * server/asobj/Number.cpp: hush warnings. - * gui/gnash.cpp (parseCommandLine): fixed sound setting. - -2006-11-09 Markus Gothe - - * macros/atk.m4, macros/boost.m4, macros/cairo.m4, - macros/gnashpkgtool.m4, macros/gtk2.m4 macros/gtkglext.m4, - macros/pango.m4, macros/sdl.m4 macros/xft.m4: Bugs, typos, indentation. - -2006-11-09 Sandro Santilli - - * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: - add test for 'sound' and 'soundPlugin' directives - (and test for case-insensitive matching). - -2006-11-09 Sandro Santilli - - * gui/gnash.cpp, libbase/rc.h, plugin/klash/klash.cpp, - utilities/parser.cpp, utilities/processor.cpp: - Reverted privatization of RcFile.loadFiles(). - We actually want to keep control of that call, at - least for the unit testing... - -2006-11-09 Sandro Santilli - - * plugin/klash/klash.cpp, utilities/: parser.cpp, processor.cpp: - remove explicit rcfile.loadFiles() call. - * libbase/rc.cpp: set pluginSound on by default - -2006-11-09 Sandro Santilli - - * libbase/rc.h: loadFiles() made private - * libbase/rc.cpp: call loadFiles from constructor - * gui/Player.cpp (init_sound): don't call rcfile.loadFile(); - don't use rcfile for setting sound config, trust class user - for that. - * gui/gnash.cpp (parseCommandLine): use rcfile for sound - setting only if no -r switch is given - * plugin/plugin.cpp: don't use any -r switch so that config - file completely drive the run. - -2006-11-09 Sandro Santilli - - * libbase/rc.cpp: rc file parsing made case-insensitive. - * server/font.cpp (readDefineFont2): allow seek-back in stream - while reading shape glyphs (fixes bug #16311). - -2006-11-09 Bastiaan Jacques - - * libbase/curl_adapter.cpp: Allow libcurl to follow HTTP redirects. - Don't forget to store curl_easy_setopt()'s return value, in addition - to checking it. - -2006-11-09 Sandro Santilli - - * server/URLAccessManager.cpp (host_check): use log_security() - and (IMHO) clearer messages; use standard algorithms for - whitelist/blacklist query. - * libbase/log.{cpp,h}: added log_security() for security-related - messages. - -2006-11-09 Markus Gothe - - * server/URLAccessManager.cpp: -> for C++ ;). - -2006-11-09 Hiroyuki Ikezoe - - * backend/render_handler_cairo.cpp: stub required - video interface. - -2006-11-09 Sandro Santilli - - * server/URLAccessManager.cpp: added missing include. - -2006-11-08 Sandro Santilli - - * server/URLAccessManager.cpp: fixed segfault in host_check, - cleaned up and made more robust (hopefully) - -2006-11-08 Markus Gothe - - * backend/sound_handler_gst.cpp: Applied patch from Hiroyuki Ikezoe. - -2006-11-08 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: hack for glRasterPos2f() - * server\asobj\NetStream.cpp: pthread_join() should be caused - in only case when video streamer is started - -2006-11-08 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Made ffmpeg error handling - more robust. Fixed a deadlock. Added a notice that upgrading - ffmpeg might fix mp3-errror. Made stop_all_sounds() thread safe. - Make mp3-decoding with mad work when the stream is not fully - loaded when playback starts. - -2006-11-08 Sandro Santilli - - * libbase/smart_ptr.h: *fixed* invariant testing (well, at - least we know that it works fine) - -2006-11-08 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: The elementary yuv-video opengl - render which should work on all platform (very slow). - The second attempt to commit - -2006-11-08 Sandro Santilli - - * testsuite/libbase/smart_ptrTest.cpp: test static initialization - of smart_ptr (segfaults!!) - * libbase/smart_ptr.h: added invariant testing - * testsuite/libbase/CurlStreamTest.cpp: added missing - config.h include. - * testsuite/libbase/: Makefile.am, smart_ptrTest.cpp: - added unit test for smart_ptr<>. - * configure.ac: move the AC_DEFINE([GUI_*]) calls *after* - the possible fallback to SDL (see bug #15540) - * server/: array.cpp, as_function.cpp, asobj/: MovieClip.cpp, - MovieClipLoader.cpp, Number.cpp, Object.cpp, System.cpp, - string.cpp: change static pointers to static *smart* pointers - so we're sure they don't get deleted due to assignment to - some other short-lived smart_ptr and that they are released - at exit. - -2006-11-08 Sandro Santilli - - * server/text.cpp, server/parser/text_character_def.cpp: - resolve style fonts at parse time (not use time) - reduce - number of warnings given. - * backend/render_handler_ogl.cpp: revert last commit, which - made this a binary file !!! - * gui/Makefile.am, utilities/Makefile.am: don't list - LIBLTDL as a *dependency* (it's in LIBADD already) - * server/parser/movie_def_impl.cpp: issue a warning - when version of SWF being read is > 7. - -2006-11-07 Sandro Santilli - - * libbase/ref_counted.h: drop support for weak proxies. - * libbase/smart_ptr.h: drop all but smart_ptr - * server/button_character_instance.cpp (on_button_event): - simplify access to our environment. - * server/: character.{h,cpp}, generic_character.h, sprite_instance.cpp: - store our parent in a smart_ptr<> (rather then a dumb one) - * server/impl.cpp: don't force refcount increment on newly - created movies (or we'll never get rid of them) - * server/mouse_button_state.h: store active and topmost - entities in a smart_ptr<> (rather then weak_ptr<>); it - might introduce minor behavioural bugs, but it's safer. - * server/movie_root.cpp: minor assertion checking - * server/asobj/Key.{h,cpp}: store smart_ptr<> elements - in listeners vector (rather then weak_ptr<>). - -2006-11-07 Sandro Santilli - - * libbase/log.h: don't warn about ASCODING errors by default - * server/sprite_instance.cpp (sprite_hit_test): warn - only once about hitTest not being implemented. - -2006-11-07 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: The elementary yuv-video opengl - render which should work on all platform (very slow) - * libbase\URL.cpp: #include removed for win32 - * server\asobj\NetStream.cpp: a bit cleunup - - -2006-11-07 Udo Giacomozzi - - * backend/render_handler.h, gui/gui.cpp, gui/gui.h: - Further described invalidated bounds - -2006-11-07 Sandro Santilli - - * server/action.cpp, server/swf/ASHandlers.cpp: turn - more actionscript coding errors into warning and - wrap them in IF_VERBOSE_ASCODING_ERRORS. - -2006-11-07 Sandro Santilli - - * server/parser/movie_def_impl.cpp: fix support - for completely disabling using a separate - thread for loading (just undef the - LOAD_MOVIES_IN_A_SEPARATE_THREAD macro) - -2006-11-06 Rob Savoye - - * libltdl: New directory for libtool library, which is supposed to - be included with the source of the application, although in our - case it only gets build of libltdl is already installed in the - system. - * utilities/parser.cpp: Fix typo of executable name. - * Makefile.am: Add libltdl as a SUB_DIR. Don't build plugin - in KDE or GTK isn't found. Print out the proper KDE flags. Display - build options as determined by configure. - * configure.ac: Run configure in libltdl too. Autochange to SDL - gui if GTK or KDE isn't found. Don't build klash unless QT and KDE - are installed. - * gui/Makefile.am: Add LIBLTDL support to AM_LDFLAGS. Define - constants for build options so we can print them from Gnash. Add - -export-dynamic (now required) to gnash and klash executables. - * gui/gnash.cpp: Display build options from configure with - --version or --help. - * libbase/Makefile.am: Add LIBLTDL support. Add new files for - shared libraries. Add LIBLTDL support to AM_LDFLAGS. - * utilities/Makefile.am: Add -export-dynamic (now required) to - gparser and gprocessor executables. - * libbase/sharedlib.h, sharedlib.cpp: New files for loading of - shared libraries into Gnash so we can support our own plugins. - * libbase/URL.cpp: Include sys/param.h to get PATH_MAX for - arm-linux. - * macros/cairo.m4: Look in $prefix too so we can be cross - configured. - * macros/curl.m4: Don't use curl-config when cross-compiling. - * plugin/klash/Makefile.am: Use the more standard KDE_CFLAGS and - KDE_LIBS. Build klash here again, the version on gui is totally - broken. - * plugin/Makefile.am: Put back in the KLASH conditional so klash - actually gets built. - * utilities/parser.cpp: Fix the wrong name of the executable in - the debug message. - -2006-11-06 Sandro Santilli - - * server/sprite_instance.cpp (sprite_create_text_field): - don't abort on "invalid?" calls. Warn if requested. - * testsuite/actionscript.all/Function.as: fixed test for - SWF >= version 7. - * server/as_function.cpp (function_apply): don't abort - on invalid calls, warn about them if requested. - * testsuite/actionscript.all/Function.as: added tests for - invalid Function.apply() calls. - * server/parser/sprite_definition.h: dirty patch for dirtier - programmatically-created MovieClip implementation. - * testsuite/actionscript.all/MovieClip.as: expect failures. - * testsuite/actionscript.all/MovieClip.as: added more tests - for createEmtyMovieClip - expose the segfault bug in it. - * testsuite/misc-ming.all/: DefineEditTextVariableNameTest-Runner.cpp, - DefineEditTextVariableNameTest.c: added test for assigning - an empty string to a textfield. - * server/edit_text_character (format_text): properly - handle empty-text. - * backend/render_handler_agg_style.h: comment-out - add_bitmap with NULL input warning. - * server/styles.{h,cpp}: warn about bitmap fills with - invalid character_id. - -2006-11-06 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Protected clear_framebuffer() - against negative width and height arguments - -2006-11-05 Rob Savoye - - * gui/gui.h: Add stuff for Emacs mode. - * gui/gtk.cpp: Handle control keys better, so Gnash doesn't core - dump. Work around #18207. - -2006-11-05 Sandro Santilli - - * testsuite/actionscript.all/String.as: - added testcases for automatic string => String casts. - * server/asobj/: Number.{h,cpp}: expose - Number instance constructor. - * server/asobj/: gstring.h, string.cpp: - expose String instance constructor. - * server/swf/ASHandlers.c (call_method): - implicitly cast STRING values to String - objects and NUMBER values to Number objects - (to be possibly moved in as_value::to_object) - -2006-11-05 Sandro Santilli - - * server/sprite_instance.cpp: stubbed attachMovie, added - comment about possible improvement of sprite_duplicate_movieclip, - added some use of the new IF_VERBOSE_ASCODING_ERRORS macro - * libbase/log.h: added IF_VERBOSE_MALFORMED_SWF and - IF_VERBOSE_ASCODING_ERRORS macros. - * server/swf/ASHandlers.cpp (ActionSubstring): early - return if input string is undefined or null, base - is out of range, size is negative or invalid (overflow - input length when added to base); attempt - to support negative base args (untested: ming unable - to output such opcode). See bug #18204. - -2006-11-05 Markus Gothe - - * macros/mad.m4: Fixed bogus test-case... - * macros/pthreads.m4: Added -D_SGI_MP_SOURCE (for IRIX). - * plugin/klash/klash.cpp: bool do_sound = true. - -2006-11-04 Rob Savoye - - * testsuite/check.h: Include config.h. Optionally include - dejagnu.h. Add stubs if it's not found. - * testsuite/libbase/NoSeekFileTest.cpp: Include - config.h. Optionally include either dejagnu.h or check.h. - * testsuite/libbase/URLTest.cpp: Include - config.h. Optionally include either dejagnu.h or check.h. - * testsuite/server/GetterSetterTest.cpp: Include - config.h. Optionally include either dejagnu.h or check.h. - * testsuite/server/MatrixTest.cpp: Include - config.h. Optionally include either dejagnu.h or check.h. - * testsuite/server/PropertyListTest.cpp: Include - config.h. Optionally include either dejagnu.h or check.h. - -q2006-11-04 Sandro Santilli - - * server/sprite_instance.cpp (ctor): code cleanup. - * testsuite/libbase/NoSeekFileTest.cpp: added missing unistd.h - include. - -2006-11-04 Vitaly Alexeev - - * libbase\noseek_fd_adapter.cpp: size_t ==> int - (Thanks Sandro) - -2006-11-04 Udo Giacomozzi - - * backend/render_handler_agg.cpp: removed compatibility include as - it is not enough anyway; optimized screen and mask clearing - * server/parser/edit_text_character_def.h: added read method for - m_no-select - * server/edit_text_character.cpp: don't catch mouse events when - text feld is not selectable - * server/button_character_instance.cpp, - server/parser/button_character_def.cpp, - server/parser/button_character_def.h: Character depths are now - respected while drawing - -2006-11-04 Markus Gothe - - * backend/render_handler_ogl.cpp: Added matrix for YUV->RGB-conversion. - * macros/gnashpkgtool.m4: Look in the $prefix path for includes and - libraries. This lets specifying --prefix become the default path to - search in for cross compiling. - * macros/zlib.h: Fixed typo, corrected output. - * macros/pkg.m4, macros/libXML.m4: Typo: - cross_compling -> cross_compiling. - * server/impl.cpp: moved register_tag_loader() to the right place... - * macros/ffmpeg.m4: Clean-ups and fixed linking... - -2006-11-03 Sandro Santilli - - * server/parser/button_character_def.{cpp,h}: fixed last - fix attempting to still properly read the stream even - in case of an error. - -2006-11-03 Sandro Santilli - - * server/impl.cpp, server/swf.h: register "fixme" loaders - for known SWF8 opcodes; fix a typo in previous commit of swf.h. - * server/parser/movie_def_impl.cpp: be more quiet when not - in verbose parse mode. - * server/button_character_instance.cpp (ctor): don't resolve - characters associated to button records, that is now done - by button_record read function. - * server/parser/button_character_def.{h,cpp} (button_record::read): - resolve characters immediately, returning false if impossible. - -2006-11-03 Rob Savoye - - * macros/curl.m4: Don't use curl-config when cross - compiling. Break when the header is found, and don't forget to - actually add the library to LDFLAGS. - * autogen.sh: Don't pass -I macro if the directory doesn't - exist. This is useful for nested configure scripts. - * macros/agg.m4, atk.m4, boost.m4, curl.m4, glib.m4, gtk2.m4, - gtkglext.m4, jpeg.m4, kde.m4, libXML.m4, pango.m4, png.m4, sdl.m4: - Look in the $prefix path for includes and libraries. This lets - specifying --prefix become the default path to search in for cross - compiling. - * macros/pkg.m4: When cross compiling, don't use pkg-config, as it - only gets host values. - -2006-11-03 Sandro Santilli - - * server/swf.h: added some new SWF8 opcodes. - * server/as_function.cpp (ctor): always increment refcount on - prototype object. - -2006-11-03 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Removed debug output - -2006-11-03 Vitaly Alexeev - - * server\asobj\NetStream.cpp: processing of - the end of video is added - -2006-11-03 Vitaly Alexeev - - * server\video_stream_instance.(h,cpp): added - get_invalidated_bounds() method - * gui\gui.cpp: removed win32 hack - -2006-11-03 Vitaly Alexeev - - * libbase\noseek_fd_adapter.cpp: ssize_t ==> size_t - * libbase\container.h: Has forgotten to clean marks - * server\asobj\NetStream.cpp: Has forgotten to clean marks - * server\gnash.h: Has forgotten to clean marks - -2006-11-03 Markus Gothe - - * server/asobj/Math.cpp, server/as_value.h: Added #include . - * server/asobj/NetStream.h: #ifdef USE_FFMPEG. - * backend/render_handler_ogg.h: Removed unused include... - -2006-11-03 Vitaly Alexeev - - * server\asobj\NetStream.h, cpp: updated video timing - * testsuite\sample\player.swf: 4 video simultaneously - * win32\gnash\gnash.vcproj: added new files - -2006-11-03 Sandro Santilli - - * testsuite/actionscript.all/swf_exists.exp: use 'gnash' - rather then 'gprocessor' (gprocessor is currently broken, btw) - -2006-11-03 Sandro Santilli - - * server/: [too many files] - Changed some 'tu' containers to 'std' ones... - * server/: action.h, event_id.h, Makefile.am: extracted event_id - class from action.h header. - * server/StringPredicates.h: added StringNoCaseEqual. - * server/as_value.{h,cpp}: to_std_string method added. - * libbase/noseek_fd_adapter.cpp: signed vs. unsigned warnings - fixes. - -2006-11-03 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: When using ffmpeg for - mp3-decoding, keep trying until error or something has been - decoded. - -2006-11-03 Sandro Santilli - - * server/: Makefile.am, PropertyList.h, StringPredicates.h: - Move std::string comparator in a separate file. - * server/as_environment.{h,cpp}: use a std::map for variables - rather then a stringi_hash; made _variables private. - -2006-11-03 Sandro Santilli - - * server/as_function.{h,cpp}: properly update refcount - of function prototype object; improved documentation. - -2006-11-03 Sandro Santilli - - * utilities/processor.cpp: drop support for multiple - input files (due to weakness of libserver due to - unwrapped globals - namely base_url); properly - set base url. - -2006-11-03 Hiroyuki Ikezoe - - * backend/sound_handler_gst.cpp: fix to critical error - exposed by playing samples/sound1.swf - -2006-11-02 Sandro Santilli - - * server/movie_interface.h: adde constructor for proper - initialization of invalidated bounds staff; added TODO - labels for moving the whole API to character class. - -2006-11-02 Sandro Santilli - - * configure.ac, testsuite/Makefile.am, - testsuite/movies.all/Makefile.am, - testsuite/movies.all/gravity_embedded-TestRunner.cpp: - New automated testing for gravity_embedded.swf - -2006-11-02 Sandro Santilli - - * testsuite/MovieTester.cpp: properly set base_url to - allow movies being tested to load other movies. - -2006-11-02 Sandro Santilli - - * testsuite/simple.exp: new file being a copy - of the equal ming.exp and samples.exp files. - * testsuite: misc-ming.all/ming.exp, samples/samples.exp: - replaced by simple.exp above - * testsuite/: misc-ming.all/Makefile.am, samples/Makefile.am: - use unified expect script. - -2006-11-02 Udo Giacomozzi - - * testsuite/samples/gradients-test.swf: Added a extensive - test for gradient rendering. - * backend/render_handler_agg_style.h: correct and faster - implementation of radial fills - * backend/render_handler.h: New function to receive scale - change notifications - * backend/render_handler_agg.cpp: Properly handle rescaling - * gui/gtk_glue_agg.cpp, gui/gtk_glue_agg.h: Implemented - proper rescaling - * gui/gtksup.h, gui/gui.cpp, gui/gui.h: Redraw on rescale - * server/matrix.cpp, server/matrix.h: Added function to - scale with different x/y values - -2006-11-02 Hiroyuki Ikezoe - - * backend/sound_handler_gst.cpp: segfault fix (bug #18167) - -2006-11-01 Sandro Santilli - - * backend/sound_handler_sdl.{h,cpp}: - use more unsigned types (remove compiler warnings); - properly check sdl_audio_callback 'length' argument; - minor style nits. - -2006-11-01 Vitaly Alexeev - - * server\asobj\NetStream.h, cpp: clean up - -2006-11-01 Vitaly Alexeev - - * backend\sound_handler_sdl.cpp: open audio if it is closed - -2006-11-01 Hiroyuki Ikezoe - - * backend/sound_handler_gst.cpp: - Fixed some memory leaks and proper use of - integers (signed/unsigned) - * doc/C/gnashrc.xml: - typo fix (pluginSound => pluginsound) - -2006-11-01 Markus Gothe - - * TODO: Added note on GTK1-support for the plugin. - -2006-10-31 Markus Gothe - - * backend/render_handler_ogl.cpp: Clean up and added comments to - understand what the combiner registers do. - -2006-10-31 Sandro Santilli - - * server/asobj/MovieClipLoader.cpp: fixed event handlers calls - so that they include the target_mc argument. - -2006-10-31 Sandro Santilli - - * server/asobj/MovieClipLoader.cpp: lots of cleanup, implemented - generic handling for event handlers (addListener, removeListener, - dispatchEvent); added dispatch of onLoadInit event. - * server/asobj/MovieClipLoader.cpp: lots of cleanup, implemented - generic handling for event handlers (addListener, removeListener, - dispatchEvent); added dispatch of onLoadInit event. - * server/swf_function.cpp: make quiet (in sync with 0.7.2) - * server/asobj/: Global.cpp, MovieClipLoader.cpp, MovieClipLoader.h: - a bit of cleanup for the MovieClipLoader class, to use the - new ActionScript builtin classes architecture. Stubbed addListener - and removeListener methods. - -2006-10-31 Sandro Santilli - - * testsuite/actionscript.all/MovieClip.as: added test - for getNextHighestDepth(). - * server/:sprite_instance.{h,cpp}: - implemented getNextHighestDepth() ActionScript method; - changed init_builtins() to take a version number; called - init_builtins only when really needed, as in constructor - the as_environment get_version() method will fail as - the top-level movie_root would not have an associated - root movie yet (complex, yes... ) - Made the getNextHighestDepth() AS method only available - when target movie is SWF7 or higher. - * server/: dlist.{h,cpp}: - added getNextHighestDepth() method. - * server/as_environment.cpp (get_version): more assertions - (we have an initialization problem there) - * testsuite/movies.all/README: updated info about gravity-embed.swf - (after last modification) - -2006-10-31 Udo Giacomozzi - - * testsuite/movies.all/gravity-embed.swf: improved by providing - explicit size control buttons and debugging textfield. - * backend/render_handler_agg.cpp: Outline sizes now respect the - transformation matrix - -2006-10-31 Sandro Santilli - - * testsuite/movies.all/README: updated info about gravity.swf - (after last fix) - -2006-10-31 Udo Giacomozzi - - * testsuite/movies.all/gravity.swf: fixed actionscript - referencing undefined variable. - * testsuite/movies.all/gravity-embed.swf: new testcase - -2006-10-31 Sandro Santilli - - * testsuite/movies.all/README: some info about the movies - * libbase/noseek_fd_adapter.cpp (fill_cache): fixed compiler - warnings, plugged leaks, throw an exception on errro. - -2006-10-31 Markus Gothe - - * server/shm.h DSOEXPORT ctor and dtor. - * server/gnash.h: DSOEXPORT get_sound_handler. - * server/shape.cpp: DSOEXPORT edge::is_straight. - -2006-10-31 Udo Giacomozzi - - * backend/render_handler_agg.cpp, - backend/render_handler_agg_style.h: Implemented masks for - AGG renderer - -2006-10-31 Sandro Santilli - - * backend/sound_handler_gst.cpp (stop_all_sounds): fixed infinite - loop due to comparison being always true. - -2006-10-30 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Fixed starting soundstreams - from any frame when using libmad. - -2006-10-30 Udo Giacomozzi - - * testsuite/samples/: subshapes.swf, README: - added new test file for multiple shape layer - combination. - -2006-10-30 Markus Gothe - - * AUTHORS: added Hannes. - * configure.ac: Removed 0.7.1 from the version info, let's stick with - cvs+BUILDDATE. - * macros/boost.m4: Applied patch from Bernhard Rosenkraenzer. - * macros/glib.m4, macros/pango.m4: Fixed output. - * macros/atk.m4: fixed issue due to typo (lack of '$'). - * backend/sound_handler_gst.cpp: Added stubs for aux-streaming. - * server/rect.h: DSOEXPORT rect()/is_bool() for visibility. - -2006-10-30 Hannes Mayr - * server/asobj/NetStream.cpp: added include for sleep() - -2006-10-30 Sandro Santilli - - * testsuite/actionscript.all/swf_exists.exp: added more debugging - lines on -v -v : dunno why but seems broken again on my debian - stable :-( - * server/PropertyList.h: added include for toupper. - -2006-10-29 Markus Gothe - - * libbase/tu_opengl_includes.h: Fixed bug #18145. - -2006-10-29 Rob Savoye - - * All GPL'd files: Remove Mozilla exemption. Maybe someday - they'll not be so scared of the GPL. - * server/gnash.h, server/asobjs/NetStream.h, NetStream.cpp: Use - uint8, not Uint8 as it's defined within Gnash, and Uint8 isn't - defined at all. - * libamf/protocol.h: Add private data for accumulating byte - counts. - * libamf/rtmp.cpp: Accumulate byte counts. - -2006-10-29 Vitaly Alexeev - - * libbase\container.h: added hash::erase() - * server\gnash.h: added attach_aux_streamer & detach_aux_streamer - * server\asobj\NetStream.h, cpp: added audio streamer for video - * backend\sound_handler_sdl.h, cpp: added attach_aux_streamer & detach_aux_streamer - * win32\gnash\gnash.vcproj: added new files - -2006-10-29 Vitaly Alexeev - - * backend/render_handler_ogl.cpp: GL_NEAREST ==> GL_LINEAR - -2006-10-28 Rob Savoye - - * macros/ffmpeg.m4: Also look for libavformat, which is needed on - some systems to support the new video code. - -2006-10-28 Udo Giacomozzi - - * backend/render_handler_agg.cpp: added bogus YUV_video to make - it compile again; fixed some warnings - * backend/render_handler_ogl.cpp, server/Makefile.am, - server/video_stream_instance.cpp, server/parser/Makefile.am: - Extended makefiles, moved YUV_video to it's own file so that - Gnash compiles again for other backends - -2006-10-28 Markus Gothe - - * macros/gnashpkgtool.m4: Typo. - * backend/render_handler_ogl.cpp, libbase/ogl.h: Replaced TU-wrapper - code with the real stuff. - -2006-10-27 Sandro Santilli - - * server/asobj/Makefile.am: added includes from backend - (NetStream uses renderer - should be avoided ?) - -2006-10-27 Markus Gothe - - * server/asobj/NetStream.{h,cpp}: Uint8 -> uint8_t. #ifdef USE_FFMPEG. - Fixed typo of StreamProvider.h for case-sensitive-compilers. - Sleep -> sleep. #ifndef __GNUC__ fmod = std::fmod. - * backend/render_handler_ogl.cpp: Don't use GLew since it useless... - TODO: rewrite NV-ext to generic OGL so it works. Removed ';' to - conform to -pedantic -Werror. Changed name on quad to iquad to avoid - "cc-1101 CC: ERROR File = render_handler_ogl.cpp, Line = 150 - "quad" has already been declared in the current scope." - -2006-10-27 Vitaly Alexeev - - porting to win32: - * server\as_function.cpp - * server\array.cpp - * server\asobj\Global.cpp - * libbase\noseek_fd_adapter.cpp - * backend\sound_handler_sdl.h - -2006-10-27 Vitaly Alexeev - - opengl videostream implementation (4-7 ms per frame) - requirements: NVIDIA card with aux buffers, glew library - - updated: - * server\parser\button_character_def.h, - * server\gnash.h, - * server\asobj\LocalConnection.h, - * server\asobj\LocalConnection.cpp, - * server\parser\movie_def_impl.h, - * server\movie_root.h, - * server\asobj\NetStream.h, - * server\asobj\NetStream.cpp, - * libbase\network.h, - * libbase\network.cpp - * server\render.h - * server\parser\sprite_definition.h - * server\swf\tag_loaders.h - * libbase\tu_types.h - * gui\gui.cpp - * server\impl.cpp - * libbase\log.cpp - * server\movie_root.cpp - * server\render.cpp - * backend\render_handler.h - * backend\render_handler_ogl.cpp - * server\swf\tag_loaders.cpp - * win32\gnash\gnash.vcproj - - added: - * server\parser\video_stream_def.h - * server\parser\video_stream_def.cpp - * server\video_stream_instance.h - * server\video_stream_instance.cpp - * testsuite\sample\player.swf - -2006-10-27 Markus Gothe - - * backend/render_handler_ogl.cpp: Revived code for OGL antialiasing, - albeit #if 0 until I've got the time to work on this. Added ctor stub. - -2006-10-27 Sandro Santilli - - * testsuite/actionscript.all/Date.as: fixed testcase - (get => getDate, set => setDate, getUTC => getUTCDate, - setUTC => setUTCDate) - -2006-10-27 Sandro Santilli - - * server/Property.h: improved documentation, added isGetterSetter, - modified other methods to take as_object by *reference* (not - pointer, as we dont' accept NULLs). - * testsuite/server/PropertyListTest.cpp: updated to match new - interface. - * server/PropertyList.{h,cpp}: added getProperty(key) method; - removed "as_object" member and accepted it as an argument of - setValue/getValue: this allow for inherited properties (the "owner" - is not the object containing the property list when this is just - a prototype); fixed copy constructor to clone container elements, - implemented assigment operator, fixed clear() method to delete - container elements; tried to handle some const-correcness. - Will need a final cleanup and simplification pass. - * server/as_object.{h,cpp}: added private findProperty() and - findGetterSetter() methods, for crawling the inheritance chain; - fixed set_member_default() to look for getter/setters in - the inheritance chain before falling back to "override" mode; - added doxygen comments. - * testsuite/actionscript.all/Object.as: added Property inheritance - tests. - -2006-10-27 Hannes Mayr - - * gtk_glue_agg.cpp: Fixed rendering for screens with 8-bit and - 16-bit color depth. - -2006-10-26 Sandro Santilli - - * server/as_object.h: new add_property() method - * server/asobj/Object.cpp (object_addproperty): completed. - * testsuite/actionscript.all/Object.as: xcheck => check :) - -2006-10-26 Sandro Santilli - - * server/GetterSetter.{cpp,h}: getValue/setValue method made const - (problems with const-correctness of as_function are handled in - the implementation file with use of const_cast<>) - * server/: Makefile.am, Property.h: new class for properties, - obsoletes as_member. - * server/PropertyList.{cpp,h}: changed container to store - pointers to the new polymorphic Property class; added pointer - to as_object owner for calls to getter/setter properties. - * testsuite/server/PropertyListTest.cpp: fixed test to work - with new interface (requirement for an as_object in ctor) - * server/as_object.h: fix constructors to properly initialize - the PropertyList. - * server/as_member.h: removed, as obsoleted - * server/Makefile.am: removed obsoleted reference to as_member.h - -2006-10-26 Markus Gothe - - * macros/gnashpkgtool.m4: Added GNASH_PKG_LIBS. Added GNASH_PKG_FIND. - * macros/boost.m4: Added "2>/dev/null". - -2006-10-26 Sandro Santilli - - * server/textformat.h: added missing forward declarations. - * server/asobj/Global.cpp: added missing header. - * server/builtin_function.h (constructor): added default value of - NULL for exported interface. - * server/: GetterSetter.{h,cpp}, Makefile.am: added new class for - getter-setter properties. - * testsuite/server/: GetterSetterTest.cpp, Makefile.am: unit test - for the new class. - -2006-10-26 Sandro Santilli - - * server/: Makefile.am, as_object.{cpp,h}: use the PropertyList class - rather then the simple stringi_hash<> (replaces TU things - with standard things, btw) - * server/PropertyList.{cpp,h}, testsuite/server/Makefile.am, - testsuite/server/PropertyListTest.cpp: new class for use - by as objects + associated test. - * server/as_value.h: added output operator. - * server/as_member.h: added is_read_only() method; changed - get_member_flags() to return a reference (+added a const - and non-const version). - -2006-10-26 Udo Giacomozzi - - * server/gnash.h, server/styles.cpp, server/styles.h, - server/types.cpp: Added new methods for read access to - some members and for faster color transform. - * backend/render_handler_agg.cpp, - backend/render_handler_agg_bitmap.h, - backend/render_handler_agg_style.h: Fully implemented - bitmap and gradient fill styles and split main AGG - renderer file for better readability. - * backend/render_handler.h, backend/render_handler_agg.cpp, - gui/gtk.cpp, gui/gtk_glue.h, gui/gtk_glue_agg.cpp, - gui/gtk_glue_agg.h, gui/gtksup.h, gui/gui.cpp, - gui/gui.h, gui/sdl_agg_glue.cpp, gui/sdl_agg_glue.h: - Reverted Bastiaan's changes (set_invalidated_region) - * server/dlist.cpp: Improved invalidated bounds method - * server/button_character_instance.cpp: Fixed invalidated - bounds detection on button state change - -2006-10-25 Sandro Santilli - - * server/as_object.h: get_member() method taking - an as_member pointer made private (toward getter/setter - properties). - * configure.ac: don't check for cairo if not required - (and a minor typo fix) - * server/as_prop_flags.h (set_flags): changed interface - to return bool, documented and simplified implementation. - -2006-10-25 Markus Gothe - - * macros/jpeg.m4: Fixed double -I-bug. - -2006-10-25 Sandro Santilli - - * server/as_object.{h,cpp}: added enumProperties() and - copyProperties() public methods, m_members member made - private (toward getter/setter properties). - * server/sprite_instance.cpp (sprite_duplicate_movieclip): - use the as_object::copyProperties() to avoid direct access - to object members (lacks a testcase for validation) - * server/swf/ASHandlers.cpp (enumerateOjbect): call the - as_object::enumerateProperties() to avoid direct access - to object members (validated with existing testcase); - dropped the not-more-needed enumerateObjectRecursive - function (the one provided by as_object uses a stack - rather then recurs, btw). - -2006-10-24 Sandro Santilli - - * server/asobj/Object.cpp: hide Object.addProperty member. - -2006-10-24 Sandro Santilli - - * server/asobj/Object.cpp: added stub for addProperty() AS function. - * server/asobj/Object.{cpp,h}: added init_object_instance() function - to create an instance of the Object as class. - * server/swf/ASHandlers.cpp (ActionInitObject): use the new - init_object_instance() function. - * testsuite/actionscript.all/Inheritance.as: one more expected success - becomes an actual success. - * testsuite/actionscript.all/Object.as: add a few more tests for - inheritance. - -2006-10-24 Sandro Santilli - - * testsuite/actionscript.all/: merged inheritance.as into - Inheritance.as - * server/asobj/: Global.cpp, Makefile.am, Object.{cpp,h}: - added Object class. - -2006-10-24 Sandro Santilli - - * testsuite/samples/samples.exp: dejagnu driver for - tests in sample dir (actually a copy of ming.exp) - * configure.ac, testsuite/Makefile.am, - testsuite/samples/Makefile.am: enable Makefile - under testsuite/samples dir. - * testsuite/samples/clip_as_button2-TestRunner.cpp: - added test runner for clip_as_button2.swf - -2006-10-24 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Fix typos. - -2006-10-24 Sandro Santilli - - * testsuite/MovieTester.{cpp,h}: added findDisplayItemByDepth() - * server/dlist.h: added const version of get_character_at_depth(). - * server/dlist.cpp (dump): added character type (using RTTI). - * gui/gtk.cpp, gui/gui.h: added 'INPUT' cursor type (to be used - in input text fields) - * server/: Makefile.am, generic_character.cpp, generic_character.h: - added a new implementation file for generic_character, fixed - can_handle_mouse_events to delegate to parent, - had get_topmost_mouse_entity check for can_handle_mouse_events - to completely skip hit test if that returns false (fixes #17935) - * server/movie_root.{h,cpp}: moved isMouseOverActiveEntity() from - header to implementation file. - * server/smart_ptr.h: made conversion from weak_ptr to smart_ptr - a const method, added operator* for smart_ptr - * server/parser/movie_def_impl.cpp (create_instance): minor cleanups. - -2006-10-24 Markus Gothe - - * configure.ac: Fixed finding correct X11-ABI and X11-lib-path on IRIX. - * macros/gnashpkgtool.m4: Implemented GNASH_PKG_INCLUDES. - -2006-10-23 Sandro Santilli - - * server/swf/ASHandlers.cpp (ActionTypeOf): add support - for C_FUNCTION values. - * server/server/edit_text_character.cpp (registerTextVariable): - don't assume our parent is a sprite, use the new get_environment() - function to get to a variable scope instead. - * server/character.h: added get_environment virtual function - (every character should have an associated variable scope) - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: add checks - for MouseOverMouseEntity. - * testsuite/MovieTester.{cpp,h}: added isMouseOverMouseEntity() method. - * server/action.{cpp,h} (event_id class): added is_mouse_event() - method. - * testsuite/actionscript.all/with.as: add a few more tests - for access of variable in higher-level scopes. - * server/: movie_interface.h, movie_root.h: added - isMouseOverActiveEntity interface and implementation. - * gui/gui.cpp (notify_mouse_moved): call isMouseOverActiveEntity - to switch cursor type. - * libbase/smart_ptr.h (weak_ptr): made equality operator an inspector, - added inequality operator. - -2006-10-2 Markus Gothe - - * configure.ac: Fixed finding correct X11-ABI and X11-lib-path on IRIX. - * macro/jpeg.m4: Fixed a bug. - * macro/kde.m4: Fixed typos. - * macro/opengl.m4: Fixed typo (I wonder how we got away with this one?). - -2006-10-23 Sandro Santilli - - * testsuite/actionscript.all/Number.as: removed expected failures - (all we have passes now, there are a lots of other tests to - add for that class, anyway) - * server/as_value.cpp: (operator==): handle comparison of C_FUNCTION - types - * server/as_value.cpp: (operator==): fix handling of object/non-object - comparison (when object is first operand). - * server/asobj/Number.cpp: override get_numeric_value(). - * server/as_object.h: added get_numeric_value() virtual - method (convert to number). - * server/as_value.h: added is_object() method (abstracts - difference between AS_FUNCTION and OBJECT types. - * server/swf.h: comment on semantic of ACTION_NEWEQUALS. - -2006-10-22 Sandro Santilli - - * server/asobj/: Global.cpp, Makefile.am, Number.cpp, Number.h: - new Number ActionScript class (to be finished) - -2006-10-22 Bastiaan Jacques - - * libbase/log.h: size_t cannot be long long, so don't check for it. - * configure.ac: Don't check for long long as it's unused. - * gui/gui{.h,.cpp}: Add setCursor() to be used to set the mouse cursor. - * gui/{gtk.cpp, gtksup.h}: Implement setCursor() for GtkGui. - * configure.ac: Have the description of --enable-write make sense. - * gui/{gui.h, sdl.cpp}: Gui::init() should return true on success. - Document this in gui.h and implement it in sdl.cpp. - * gui/Player.cpp: Remove obsolete comment. - * backend/render_handler.h: Add get_invalidated_region(). - * backend/render_handler_agg.cpp: Implement get_invalidated_region(). - * gui/{gtk.cpp, gtk_glue_agg.cpp, gtk_glue_agg.h, gtksup.h, gui.cpp, - gui.h}: Remove duplicate implementation of set_invalidated_region(); - instead, call get_invalidate_region() from the relevant glue. Call - render_handler::set_invalidated_region() directly instead of the Gui - implementation. - * gui/sdl_agg_glue{.cpp, .h}: Implement region clipping based - rendering. - -2006-10-22 Rob Savoye - - * configure.ac: Group --disable-klash and --enable-plugin - together. Reverse the test to run KDE tests. - - * gui/Makefile.am: Don't link with -no-undefined to reduce - dependancy problems. - * plugin/Makefile.am, klash/Makefile.am: Don't link with - -no-undefined to reduce dependancy problems. - * backend/Makefile.am: List additional headers in - noinst_HEADERS. - * libbase/Makefile.am: Add ref_counted.h. - * macros/agg.m4: Look in $includedir instead of $prefix. - * macros/libXML.m4: Use double quotes when setting LIBXML_CFLAGS. - -2006-10-22 Markus Gothe - - * configure.ac: Don't look for KDE if not --enable-plugin. - Wrong amount of args to 'test'. AC_DEFINE(KLASH...). - Added checking and setting HAVE_SHM_UNLINK. Added check for - shmdt. - * utilities/dumpshm.cpp: Fixed !__GNUC__ stuff. - Look at server/shm.cpp and implement it likewise. - * server/shm.cpp: Actually HAVE_SHM_UNLINK is appriate here. - * plugin/mozplugger/mozpluggerrc.patch: added -j -k and 'stream'. - -2006-10-21 Rob Savoye - - * gnash/NEWS: Update with new fetures. - * server/shm.cpp: Don't core dump anymore by not trying to open - the same memory segment twice. - * utilities/dumpshm.cpp: Shared memory utility. Lists, deletes, - and dumps internal data from Gnash shared memory segments. - * server/shm.h: Add more accessors for private data. - * server/asobj/LocalConnection.cpp: Dump all the networking crap, - that's for NetConnection. - * server/asobj/LocalConnection.h: Derive class from Shm base class - instead of Network base class. - * testsuite/actionscript.all/LocalConnection.as: Use dejagnu.as. - * utilities/Makefile.am: Add dumpshm program. - - * configure.ac: Build klash if the plugin is enabled, and KDE is - found. Use --disable-klash with --enable-plugin to change this - behaviour. - -2006-10-21 Bastiaan Jacques - - * server/gnash.h: Declare sound_handler::is_muted(). - * backend/{sound_handler_gst.cpp, sound_handler_sdl.cpp, - sound_handler_sdl.h}: Implement is_muted(). - * gui/gtk.cpp: Use is_muted() instead of a static Gui variable to - determine whether or not sound is muted. - -2006-10-21 Markus Gothe - - * macros/ffmpeg.m4: Fixed AC_MSG_*-style. - * macros/mad.m4: Added pkg-config support... - -2006-10-20 Rob Savoye - - * macros/ffmpeg.m4: If we find ffmpeg, it has dependancies on - other libraries, so find libvorbisenc and libgsm or Gnash won't - link on Ubuntu with sound enabled. Use pkg-config also for libdts, - vorbisenc, and theora, all dependancies on Ubuntu. - * macros/boost.m4: Don't let the boost lib get added to LIBS, we - want to handle it seperately. - -2006-10-20 Markus Gothe - - * server/as_enviroment.cpp: Removed MIPSPRO #pragma. CC will fail - due to a fundamental template-instantiation error. *Fixed*! - -2006-10-20 Sandro Santilli - - * testsuite/actionscript.all/rtrace.as: fixed typo, make sure - to have 1 second (not a tenth of it) of inactivity before - sending the report. - * server/movie_root.{cpp,h} (notify_mouse_moved, notify_mouse_clicked): - delegate return code to fire_mouse_events, changed to return bool; - (fire_mouse_events): delegate return to generate_mouse_events, - changed to return bool. Ok, final effect is we *sometime* return - false (when NO event is actually triggered). Still partial as an - implementation but a little step forward. - * testsuite/actionscript.all/swf_exists.exp: strip PASSED/FAILED - from test output labels. - -2006-10-20 Sandro Santilli - - * doc/C/sources.xml: Update configure option behaviour. - * testsuite/actionscript.all/swf_exists.exp: catch errors - in 'makeswf' call. - * testsuite/actionscript.all/swf_exists.exp: made it work - again with tcl versions in debian stable :D - Also, reintroduced test id labels in pass/fail messages. - * libbase/log.{cpp,h}: LogFile operator << for 'std::endl' (?) fixed - to return LogFile (not std::ostream). - * testsuite/actionscript.all/Makefile.am: added 'check.as' and - 'xtrace.as' dependencies. - -2006-10-19 Sandro Santilli - - * testsuite/actionscript.all/Number.as: use OUTPUT_VERSION, - not SWFVERSION (the former is set by Makefile rule, the - latter will be available in upcoming Ming releases) - * testsuite/actionscript.all/Makefile.am: add with.as to - GENERATED variable, and a comment about why we need that. - * testsuite/actionscript.all/with.as: deeply test just the - 'with' action. - * server/swf/ASHandlers.cpp (ActionSetVariable, ActionGetVariable): - pass the with_stack to get_variable/set_variable calls. - * server/as_environment.h: made set_variable and get_variable - methods taking a with_stack back to public. - -2006-10-19 Sandro Santilli - - * server/swf/ASHandlers.cpp (unsupported_action_handler): more - verbosity; (ActionWith): cleaned up; (ActionGetVariable): added - note about probable reason for 'with' failing (will work on - that next) - -2006-10-19 Sandro Santilli - - * server/ActioExec.{cpp,h}: added getWithStackLimit() method, - fixed pushWithStackEntry() to use the limit (documented why - in comments); fixed initialization list ordering. - -2006-10-19 Sandro Santilli - - * server/swf/ASHandlers.cpp: fix ActionExec use after privatization - of some members. - * server/ActionExec.{cpp,h}: more doxygen comments, with_stack - made private and provided interfaces for pushing entries - and getting a const ref to it. made _is_function2 data member - private. - -2006-10-19 Sandro Santilli - - * gui/gui.cpp: use return value of mouse move and click events - notifier to decide wheter to trigger redisplay. - * server/gnash.h: added note in key event handler about the - need to conform to the event handling described in the new - doxygen page. - * server/movie.h, server/movie_root.cpp, server/movie_root.h: - switched mouse movement and click event notification functions - to the new interface (note: they always return true currently) - * server/movie_interface.h: added a doxygen page about events - handling, changed notify_mouse_moved() and notify_mouse_clicked() - to return a bool as to wheter redisplay is needed. - -2006-10-18 Udo Giacomozzi - - * gui/gui.h, gui/gui.cpp: Immediate redraw after mouse click - -2006-10-18 Rob Savoye - - * gui/gtk.cpp: Include rc.h, to get the default sound - setting. Toggle the sound using mute() & unmute() via the menu - item. Add static variable for the sound toggle. Don't add the - "Toggle Sound" item if sound is disabled on the command line with - -r 1. - -2006-10-18 Udo Giacomozzi - - * gnash/server/button_character_instance.cpp, - gnash/server/character.h, gnash/server/dlist.cpp, - gnash/server/edit_text_character.cpp, - gnash/server/generic_character.h, - gnash/server/movie_interface.h, - gnash/server/sprite_instance.cpp: Invalidated region - detection reviewed - -2006-10-18 Sandro Santilli - - * macros/agg.m4: make sure agg_include_dir is an absolute path. - -2006-10-18 Stefan Schweizer - - * gui/Makefile.am: klash_DEPENDENCIES += libgnashplayer.la. - -2006-10-18 Sandro Santilli - - * backend/render_handler_cairo.cpp: - don't directly access rect private members. - * gui/fb.cpp, backend/render_handler_agg.cpp: - don't directly access rect private members. - * gui/gui.cpp: let initial _last_invalidated_rect be null; - don't directly access rect private members. - * server/rect.h: added constructor taking all coordinates. - * backend/render_handler_ogl.cpp: don't directly access rect - "to-be" private members. - * server/: fontlib.cpp, movie_root.cpp: don't directly access - rect "to-be" private members. - * gui/gtk.cpp: don't directly access rect "to-be" private members. - * server/rect.h: added shift_x, shift_y, scale_x and scale_x - methods (toward making data members private). - * server/rect.h: added getters for all ordinates (toward making - them private). - * server/as_environment.h: minor cleanups. - * server/as_environment.cpp: fix signed/unsigned comparison warning, - fixed a small typo in debugging message. - * libbase/log.: always check for SIZEOF_SIZE_T == SIZEOF_INT - before comparing against SIZEOF_LONG and SIZEOF_SHORT. - * configure.ac: print an error on invalid --enable-sound value. - -2006-10-18 Markus Gothe - - * gui/gnash.cpp, gui/sdl.cpp, utilities/parser.cpp, - utilities/processor.cpp: #ifndef __GNUC__ keeps the bisons away. - * utilities/Makefile.am: Removed unnecessary linkage (which even - make the binaries break on IRIX). - -2006-10-18 Sandro Santilli - - * server/xml.cpp (setupFrame): static cast pointer arg for %p to - void * (fixes compiler warning) - * macros/sdl.m4: fix handling of --with-sdl-incl (add the missing -I - switch). - * configure.ac: check for getopt.h - * gui/: gnash.cpp, sdl.cpp, - utilities/: parser.cpp, processor.cpp: - don't redeclare geopt stuff is getopt.h is available. - * macros/sdl.m4: fixed typo ("$/" => "$i/") - -2006-10-18 Bastiaan Jacques - - * configure.ac: Have configure export SIZEOF defines for various - integer types. - * libbase/log.h: Define SIZEOF_SIZE_T based on the size of its - integer type definition, so as to avoid warnings caused by integer - size difference variations in platforms. - * gui/kde_glue.h: Remove OpenGL include. - * gui/kde_opengl_glue.cpp: Add OpenGL include. - -2006-10-18 Sandro Santilli - - * Makefile.am: @CC => $(CC) - * server/rect.cpp (expand_to_transformed_rect): do nothing - when rect to expand to is null. - -2006-10-18 Hannes Mayr - - * configure.ac: Added Option 'no' to --enable-sound's help output. - -2006-10-18 Markus Gothe - - * configure.ac, libbase/tu_types.h: Check for endian.h. - * macros/libtool.m4, - config.guess, config.sub, ltmain.sh: Updated to latest version from - 2005 / serial 48. - * macros/pthreads.m4: added check for pth-config. - -2006-10-17 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Removed call to GCC specific STL - vector function. - * server/swf/ASHandlers.cpp: Removed redundant soundstop in - ActionGotoFrame(). - - -2006-10-17 Markus Gothe - - * server/as_enviroment.cpp: If MIPSPRO #pragma do_not_instantiate. - * libbase/tu_types.h: Fixed endian.h-includness for max. portability. - * backend/sound_handler_sdl.h: -> - * backend/sound_handler_sdl.cpp: -> - * macros/sdl.m4: Fixed wrong search-path. - * gui/Player.cpp: Removed getopt_win32.h include. - * gui/gnash.cpp: Added declaration of getopt, optind and optarg. - * gui/sdl.cpp, gui/gnash.cpp, utilities/parser.cpp, - utilities/processor.cpp: extern "C" {getopt()}. - -2006-10-17 Rob Savoye - - * testsuite/actionscript.all/with.as: Minor changes. - * macros/kde.m4: Remove test for vsnprintf, as this breaks on - Ubuntu, and this is tested for elsewhere anyway, so it's - redundant. - -2006-10-17 Sandro Santilli - - * server/swf/ASHandlers.cpp (ActionGetVariable): optimizations: - avoid pop/push; avoid unneeded as_value copies. - * server: Makefile.am, rect.cpp rect.h: put rect class in it's own - files, fixed width() and height() to return 0 when rect is - null. - * gui/gui.h, server: font.h, gnash.h, movie_interface.h, types.cpp, - parser/: character_def.h, edit_text_character_def.h, - shape_character_def.h, text_character_def.h: updated all includes - to use new rect.h file. - * gui/gui.cpp (display): added missing return (doesn't tell much - actually) - * server/gnash.h, server/types.cpp (rect class): added is_null(), - set_null() methods and check for it in all public functions; - added enclose_point() method; added some TODO items. - * server/edit_text_character.h (reset_bounding_box): avoid - directly accessin rect class data members. - * server/movie_root.h (get_invalidated_bounds): use set_null() - to reset bounds when browsing for invalidated rectangle, - avoid directly accessing rect class data members. - * server/parser/shape_character_def.cpp (compute_bound): - avoid directly accessin rect class data members, use - rect::set_null() to initialize bounds. - -2006-10-17 Bastiaan Jacques - - * gui/Makefile.am: when we are building the KDE GUI, build - target klash.moc before anything else. - * gui/sdl_ogl_glue.cpp: variable depth is now called _bpp. - -2006-10-17 Sandro Santilli - - * gui/gui.{cpp,h}: notify_mouse_moved made non-static; call - display() after mouse move notification to immediately - show changed triggered by any event handler. This is an - overkill and needs better architecture, but at least it is - correct now. - * gui/gui.{cpp,h}: extracted a display() function out of - advance_movie(), for possible reuse from event notifiers. - * server/edit_text_character.cpp: commented out debugging line - * testsuite/misc-ming.all/ButtonEventsTest.c: set movie rate - to 0.2 frames per second, to test redraw-on-event (not working - as it should). - * gui/Player.cpp (run): exit with an error if gui initialization - failed. - * gui/fb.cpp (init): return false if pixel format is not - supported. - -2006-10-17 Markus Gothe - - * configure.ac: Added use of AC_LANG{PUSH,POP}(C++). - * Makefile.am: Install doc/gnash.1 as man page. - * doc/gnash.1: Imported www-version. - -2006-10-16 Rob Savoye - - * server/xml.cpp: Fix parseXML so it takes a string, and properly - sets up the stack with the values parsed from the XML. - * testsuite/actionscript.all/XML.as: Tests pass now, no expected - failures anymore. - * testsuite/actionscript.all/with.as: New test case for making - sure the 'with' Flash keyword works, which currently it doesn't. - -2006-10-16 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, - backend/sound_handler_sdl.h, server/gnash.h: Added support for - muting and unmuting soundhandlers. - -2006-10-16 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Fixed stop_all_sounds() and - stop_sound(). - * server/sprite_instance.cpp: When a movie is stopped/paused - or jumps to a new frame the audio playback now stops. - -2006-10-16 Sandro Santilli - - * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: - expect immediate execution of mouse event handlers. - * server/button_character_instance.cpp (on_button_event): - execute events handler immediately, not at next 'advance' - * configure.ac: comment out unused OGG and PNG checks - * testsuite/server/Makefile.amadd libgnashbase explicit - linking as the one deduced by libgnashserver seems - to be bogus (points to the installed one). - * testsuite/misc-ming.all/ming_utils.c: include ming_utils.h - * configure.ac: don't complain if mp3_decoder is set but no - sdl sound was requested (since mp3_decoder=ffmpeg by default). - Just set it to none instead.. - -2006-10-16 Hannes Mayr - - * gui/gtk.cpp: Use set_invalidated_region() only with AGG renderer - until world_to_pixel() is implemented for triangle-based renders. - -2006-10-16 Rob Savoye - - * doc/C/gnashrc.xml: New section on the Gnash configuration file - and it's settings. - * doc/C/gnash.xml: Add section on the Gnash configuration file. - - * gui/gtksup.h: Add prototype for menuitem_sound_callback. - * gui/gtk.cpp: Add menuitem_sound_callback, and a "Toggle Sound" - menu item. - * gui/Player.cpp: Enable sound by default, but also check the - $HOME/.gnashrc file. - * libbase/rc.cpp, rc.h: Add support for "sound" and "pluginsound" - config settings. - * configure.ac: Enable the SDL-ffmpeg sound system by default. - -2006-10-16 Udo Giacomozzi - - * gui/gui.h, gui/gui.cpp: Added want_redraw() function - * backend/render_handler.h, backend/render_handler_agg.cpp: - Added get_pixel() function - -2006-10-16 Hannes Mayr - - * gui/gtk_glue_agg.cpp, gui/gtk.cpp, gui/gtksup.h: Added regions support - to the GTK-AGG GUI. - -2006-10-16 Tomas Groth Christensen - - * doc/C/internals.xml: Updated the docs about the SDL soundhandler - * backend/sound_handler_gst.cpp: Dummy support for sound envelopes - * backend/sound_handler_sdl.cpp, backend/sound_handler_sdl.h, - server/button_character_instance.cpp, server/gnash.h, - server/sound.cpp, server/sound.h, server/asobj/ASSound.cpp, - server/parser/button_character_def.cpp, - server/parser/button_character_def.h: Added support for volume - control using sound envelopes. - -2006-10-16 Sandro Santilli - - * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, - ButtonEventsTest.c, Makefile.am: new test for button - events. - * testsuite/MovieTester.{cpp,h}: added call to set_current_root - (seems needed by notify_mouse_clicked) and new pressMouseButton() - and depressMouseButton() methods. - * server/movie_root.cpp (generate_mouse_button_events): use - C++ style casts, assert that a "current root" has been set. - * server/: action.cpp, action.h: added ROLLOVER and ROLLOUT standard - members. - * server/sprite_instance.cpp: set and get ROLLOVER and ROLLOUT - events within get_member and set_member (fixes RollOverOutTest) - * testsuite/misc-ming.all/Makefile.am: enable RollOverOutTest-Runner - on 'make check' - * testsuite/misc-ming.all/: Makefile.am, RollOverOutTest-Runner.cpp, - RollOverOutTest.c: new test for RollOver and RollOut events - * testsuite/misc-ming.all/ming_utils.{c,h}: added make_fill_square() - function. - * testsuite/MovieTester.{cpp,h}: added movePointerTo() method - to generate mouse events. - * server/types.cpp, server/matrix.cpp: don't check IF_VERBOSE_PARSE - in types' ::print method, have that checked by caller. - -2006-10-16 Hannes Mayr - - * gui/gtk_glue_agg.cpp, gui/gtk_glue.h: Code cleanup, fixed unused - parameter warnings. - -2006-10-16 Udo Giacomozzi - - * gui/fbsup.h, gui/fb.cpp: Implemented clean exit for FB GUI - -2006-10-16 Bastiaan Jacques - - * plugin/klash/klash.cpp: Fix compilation issues by ensuring that - `windowid' is actually defined. - * macros/docbook.m4: Make an invalid directory passing message refer - to the relevant directory. - * configure.ac: Permit only the KDE GUI when klash is requested. KDE - is not a renderer, so don't test for it. - * gui/{kde_glue.h, kde_glue_opengl.cpp, kde_glue_opengl.h, - gui/kdesup.h}: Remove OpenGL-specific code from KdeGlue, so as to - allow glues other than OpenGL to inherit from KdeGlue; propagate this - change to subclasses. Also fix some typos. - * plugin/klash/Makefile.am: Deprecate the klash binary from - plugins/klash in favour of gui/klash. - * configure.ac: Allow SDL-GUI to be built with Agg. Fix typo. - * gui: Implement the Agg renderer for SDL-GUI. This does not yet - include region updating. - * gui/README: Update to reflect recent changes. - * gui/gnash.cpp: Remove assertion for invalid bit depths. Renderer - glues must decide if a bit depths is appriopriate and signal the user - if necessary. - * gui/sdl_cairo_glue{.cpp, .h}: Remove OpenGL code. - * gui/sdl_agg_glue.cpp: Don't call free() on a operator new-allocated - buffer. - -2006-10-16 Markus Gothe - - * backend/render_handler_agg.cpp: Added log_error on unknown - pixelformat. Added RGBA16/RGBA32 pixel-formats. - * gui/gtk_glue_agg.cpp: Added RGBA16/RGBA32 pixel-formats. - * plugin/klash/klash.cpp: Fixed windowid in accordance to Bastiaan's - code clean-up in action.cpp - -2006-10-15 Patrice Dumas - - * testsuite/Makefile.am: Add anaylse-results.sh to the - distibution. - * testsuite/anaylse-results.sh: Make sure the test log exists - before trying to parse it. - * testsuite/actionscript.all/Makefile.am: Also clean the out.swf - file. - * testsuite/libbase/Makefile.am: Also clean the site.exp.bak - file. - * testsuite/misc-ming.all/Makefile.am: Clean the debug log, and - testing log files. - * testsuite/misc-ming.all/PlaceObject2Test.c: Deal with the - warning, and don't comment out argc and argv. - * testsuite/server/Makefile.am: Clean the debug log, and testing - log files. - - -2006-10-15 Rob Savoye - - * testsuite/actionscript.all/swf_exists.exp: Use local_exec() - instead of spawn/expect. This works better with batch tests. - * testsuite/actionscript.all/check.as: Add xcheck and - xcheck_equals to handle expected failures. - * testsuite/actionscript.all/dejagnu.as: Add xpass and xfail to - handle expect failures. - * testsuite/actionscript.all/Boolean.as, Date.as, Global.as, - Inheritance.as, MovieClip.as, NetConnection.as, Number.as, - Object.as, Selection.as, array.as, delete.as, inheritance.as: Use - xcheck and xcheck_equals for tests expected to not work yet. - * testsuite/actionscript.all/XML.as, XMLNode.as: Use xpass and - xfail for tests expected to not work yet. - -2006-10-15 Sandro Santilli - - * gui/sdl_ogl_glue.cpp: fixed unused parameters warning. - -2006-10-15 Bastiaan Jacques - - * configure.ac: Print KDE configuration flags when using KDE. - * gui/Makefile.am: Correct the order of KDE linker flags. - * gui/gui.cpp: Fix a typo. - * macros/docbook.m4: Substitute variables used in Makefiles, so they - can be used by `make'. - * server/action.cpp: Remove unused GUI code. - * configure.ac, macros: Implement all configuration option - descriptions using AC_HELP_STRING for a pretty alignment. - -2006-10-15 Markus Gothe - - * backend/render_handler_agg.h: Chmod -x. - * AUTHORS: Updated in accordance with the www. - * doc/C/sources.xml, win32/npgnash/npgnash.vcproj, plugin/klash/README, - backend/sound_handler_mp3.cpp, backend/sound_handler_sdl.cpp, - win32/gnash/gnash.vcproj, backend/sound_handler_sdl.h,config.mk.in, - doc/C/internals.xml, gui/Makefile.am, libamf/Makefile.am, Makefile.am, - plugin/klash/Makefile.am, plugin/Makefile.am,server/asobj/Makefile.am, - server/Makefile.am, server/parser/Makefile.am, - testsuite/actionscript.all/Makefile.am: - Removed references to SDL-mixer. - -2006-10-14 Sandro Santilli - - * server/movie_root.h, server/movie_interface.h, server/movie.h: - notif_mouse_moved() function documentation improved and - moved only in movie_interface (parent class). - -2006-10-14 Markus Gothe - - * libgeometry/Makefile.am, server/asobj/Makefile.am, server/Makefile.am, - server/parser/Makefile.am: Removed unused $(ENGINE_INCLUDE). - -2006-10-14 Markus Gothe - - * server/shape.h: DSOEXPORT class mesh_set - * server/styles.h: DSOEXPORT class fill_style. - * server/gnash.h: DSOEXPORT void expand_to_rect(const rect& r); - DSOEXPORT movie_definition* create_movie(tu_file* in, - const std::string& url); - * gui/gui/gtk_glue_cairo.h: Fixing undef'd virtual. - * backend/render_handler_cairo.{cpp, h}: DSOEXPORT void - set_handle(cairo_t* handle); DSOEXPORT gnash::render_handler* - create_handler(); - * macros/gnashpkgtool.m4: Initial import. - -2006-10-13 Rob Savoye - - * macros/boost.m4: Do stupid and complex searching for the Boost - version number, followed by digging around via 'ls' to find the - right Boost thread library no matter what it's called. For now, - the results of this test are unused by current code. - -2006-10-13 Markus Gothe - - * gui/sdl.cpp, gui/sdl_ogl_glue.cpp: Fixed some #defines that were - reverted. Removed basename(). - * macros/ogg.m4: Typo. - * macros/boost.m4: Clean up and fixed missing AC_LANG{PUSH,POP}(C++). - * gui/gtk_glue_gtkglext.h: Fixed non-def'd virtual. - * libbase/container.h: Adding namespace gnash{}. Avoiding confusion. - * libgeometry/kd_tree_dynamic.cpp: hash -> gnash::hash. - -2006-10-13 Udo Giacomozzi - - * testuite/movies.all/gravity.swf: Added test movie - -2006-10-13 Hannes Mayr - - * configure.ac: AGG is now supported by GTK GUI too. - -2006-10-13 Bastiaan Jacques - - * gui/{sdl_*, Makefile.am}: Add OpenGL and Cairo glues for SDL. - Clean up sdl.cpp. - -2006-10-13 Hannes Mayr - * gui/gtk.cpp, gui/gtksup.h, gui/gtk_glue.h, gui/gtk_glue_agg.cpp, - gtk_glue_agg.h, Makefile.am: Added support for GTK with AGG renderer. - -2006-10-13 Sandro Santilli - - * gui/sdl.cpp, gui/sdlsup.h: added support for expose and - resize events. (resize does nothing, just logs it). - * backend/render_handler_cairo.cpp (line_style_width): handle - "hairline" width. - * backend/render_handler_ogl.cpp (line_style_width): handle "hairline" - width. - * gui/gui.cpp (resize_view): set _width and _height. - * testsuite/libbase/Makefile.am, testsuite/misc-ming.all/Makefile.am, - testsuite/server/Makefile.am: update dejagnu rule to use - check_PROGRAMS rather then noinst_PROGRAMS. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - add border to the textfield (to test for bug# 17992). - * testsuite/libbase/Makefile.am, testsuite/misc-ming.all/Makefile.am, - testsuite/server/Makefile.am: only build tests on 'make check' - -2006-10-13 Markus Gothe - - * autogen.sh: avoid using the '-path' primary to find(1) as it's an - extension to posix.2 and is not supported on some operating systems - such as Solaris and IRIX. - * configure.ac: Die on --enable-strict && --enable-renderer=agg. - -2006-10-13 Sandro Santilli - - * gui/gui.h, gui/fbsup.h, gui/fb.cpp: changed set_invalidated_region - to take rect by const reference (a const value didn't make sense) - * gui/gtk.cpp: redraw buffer on expose events. - * backend/render_handler.h (draw_poly): documented the fact - that the polygon's corner need not be closed (am I right?) - * macros/atk.m4: fixed missing -I switches in include, cleaned - up verbosity. - * backend/render_handler.h, backend/render_handler_tri.h: - added links new pages, cleaned up doxygen comments. - * doc/Doxyfile.in: exclude mozilla-sdk and win32 paths from - doxygen parsing - -2006-10-13 Udo Giacomozzi - - * backend/render_handler.h: Added documentation - * backend/render_handler.h, backend/render_handler_agg.cpp, - backend/render_handler_tri.h: code cleanup - * backend/render_handler.h, backend/render_handler_agg.cpp, fb.cpp: - split AGG buffer initialization from constructor - -2006-10-13 Markus Gothe - - * macros/png.m4: Added pkg-config support. - -2006-10-12 Udo Giacomozzi - - * render_handler_agg.cpp, gui/fb.cpp: Implemented clipping for - AGG backend - -2006-10-12 Rob Savoye - - * testsuite/libbase/Makefile.am: Redefine the check-DEJAGNU target - to execute the testcase directly if DejaGnu isn't installed. - * testsuite/libbase/libbase.exp: New test driver for libbase test - cases. - * testsuite/server/Makefile.am: Redefine the check-DEJAGNU target - to execute the testcase directly if DejaGnu isn't installed. - * testsuite/server/server.exp: New test driver for server tests. - * testsuite/misc-ming/Makefile.am: Redefine the check-DEJAGNU target - to execute the testcase directly if DejaGnu isn't installed. - * testsuite/misc-ming/ming.exp: New test driver for Ming tests. - - -2006-10-10 Rob Savoye - - * gui/images/gnash_G_v3.ico: Updatedb "Gnashing 'G'" square - icon in color. - * gui/gtk.cpp: Use updated icon image used when minimized. - -2006-10-13 Sandro Santilli - - * server/character.h: clarified semantic of get_width() and - get_height(). - * server/generic_character.h: fixed get_width() and get_height() - to return "local untransformed" size. - * server/sprite_instance.cpp (get_member): fixed M_WIDTH and - M_HEIGHT members fetch using a plain call to get_width() and - get_height() [ only additionally adding twips_to_pixel transform] - * gui/gui.cpp: added IF_DEBUG_REGION_UPDATES and - ENABLE_REGION_UPDATES_DEBUGGIN macros, for future - compiletime + runtime conditional support. - * gui/gui.{cpp,h}: advance_movie reverted to a static, to make - current gtk gui work fine (there's no point of being non-static - *and* take a 'this' argument). - * macros/ogg.m4: added missing -I, -L and -l (!); - quoted 'test' args. - -2006-10-12 Markus Gothe - - * gui/sdl.cpp: fixed includes for getopt() and basename(). - include tu_opengl_includes.h - * macros/agg.m4: Added pkg-config support :D. - -2006-10-12 Udo Giacomozzi - - * gui/fb.cpp, gui/fbsup.h, gui/gui.cpp, gui/gui.h, - server/button_character_instance.cpp, server/button_character_instance.h, - server/character.c, server/character.h, server/dlist.cpp, - server/dlist.h, server/edit_text_character.cpp, - server/edit_text_character.h, server/generic_character.h, - server/gnash.h, server/movie_interface.h, server/movie_root.cpp, - server/movie_root.h, server/sprite_instance.cpp, - server/sprite_instance.h, gnash/server/types.cpp, - server/parser/button_character_def.h, erver/parser/character_def.h, - server/parser/edit_text_character_def.h, server/parser/movie_def_impl.h, - server/parser/sprite_definition.h, server/parser/text_character_def.h: - Enhanced "rect" class and implemented a method to detect updated regions - on the stage. - - -2006-10-12 Sandro Santilli - - * configure.ac: don't check for GLEXT unless gtk/opengl combination - is requested. - * macros/atk.m4: added missing switches in lib detection; - always look for atk version and topdir as those might eventually - be needed by subsequent library seeking; removed bogus if/else/fi - blocks; added some # }{ labels to help debugging. - * server/gnash.h: document enclose_transformed_rect() function. - -2006-10-12 Markus Gothe - - * libbase/postscript.cpp, libbase/triangulate_impl.h, libbase/tu_math.h - libbase/utility.h, libgeometry/collision.cpp, libgeometry/cull.cpp, - libgeometry/geometry.cpp, libgeometry/kd_tree_dynamic.cpp, - libgeometry/kd_tree_packed.cpp: Removed special-SGI std-declareation. - std::math_function in-code instead. - * server/asobj/Math.cpp, libbase/tu_math.h: Fix for !__GNUC__. - -2006-10-12 Sandro Santilli - - * server/dlist.{h,cpp}: dump() inpsector correctly made const. - -2006-10-12 Patrice Dumas - - * testsuite/Makefile.am: only build libgnashtestsuite.la - on 'make check'. - -2006-10-12 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: made .swf testfiles - dependencies for the corresponding runners. - * testsuite/misc-ming.all/Makefile.am, - testsuite/misc-ming.all/PlaceObject2Test.c, - testsuite/misc-ming.all/ming_utils.c, - testsuite/misc-ming.all/ming_utils.h: - moved ming utility function from test file to ming_utils. - -2006-10-12 Markus Gothe - - * configure.ac: Check if strlcpy and strlcat already is defined. - Fixes problems with redefinition on systems where they exists. - -2006-10-12 Sandro Santilli - - * backend/render_handler_agg.cpp: added missing config.h include, - fixed mispelled HAVE_AGG_SCANLINES_COMPOUND_LAYERED - * gui/fbsup.h, gui/fb.cpp: moved class documentation from - implementation to header file, for better doxygen consumption. - -2006-10-12 Patrice Dumas - - * configure.ac: check for KDE stuff if klash build is - requested. - -2006-10-12 Sandro Santilli - - * gui/Makefile.am, libbase/Makefile.am, - testsuite/libbase/Makefile.am, utilities/Makefile.am: - removed BOOST_LIBS as we're not using them anymore. - * macros/curl.m4: define USE_CURL if curl libs are found - * server/StreamProvider.cpp: rely on USE_CURL from config.h - so we're sure we won't end up with undefined references. - * plugin/plugin.cpp: raise maxargc to 16, split -r3 - into two arguments (-r) and (3). - -2006-10-11 Markus Gothe - - * configure.ac: Check for __FUNCTION__, __PRETTY__FUNCTION and - __func__. - * libbase/tu_types.h, plugin.h: Redefine __FUNCTION__. - -2006-10-11 Sandro Santilli - - * testsuite/Makefile.am: descend in actionscript.all last - (quick hack to avoid premature failure of check run) - * testsuite/libbase/Makefile.am: use $(top_builddir) to find - .la files, don't use -I for libs! - -2006-10-11 Sandro Santilli - - * testsuite/misc-ming.all/Makefile.am: added the new files, - fixed yet another $(top_srcdir) misuse. - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c, - testsuite/misc-ming.all/ming_utils.c, - testsuite/misc-ming.all/ming_utils.h: - extracted useful Ming functions from a single test, for reuse. - -2006-10-11 Sandro Santilli - - * backend/render_handler_agg.cpp: fixed typo in compatibility - layer inclusion. - * configure.ac, Makefile.am, macros/agg.m4: report need for - AGG compatibility layer. - -2006-10-11 Sandro Santilli - - * macros/gtkglext.m4: added missing -L to GLEXT_LIBS when - --with-glext-lib is given. - * backend/render_handler_agg.cpp: - use HAVE_AGG_SCANLINES_COMPOUND_LAYERED define to toggle inclusion - of compatibility header. - * macros/agg.m4: check availability of the - render_scanlines_coumpound_layered function and set - HAVE_AGG_SCANLINES_COMPOUND_LAYERED accordingly. - * configure.ac: exit with error on invalid gui/renderer selection - combination. - -2006-10-11 Markus Gothe - - * backend/Makefile.am, testsuite/Makefile.am, gui/Makefile.am, - libamf/Makefile.am, libgeometry/Makefile.am, plugin/Makefile.am, - plugin/klash/Makefile.am, server/Makefile.am, utilities/Makefile.am, - server/asobj/Makefile.am, server/parser/Makefile.am: - Added $(top_builddir). - -2006-10-11 Sandro Santilli - - * server/asobj/Global.cpp (as_global_parseint): fixed invalid - free. - -2006-10-11 Sandro Santilli - - * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, - testsuite/misc-ming.all/Makefile.am: first movie tester. - * testsuite/Makefile.am, testsuite/MovieTester.cpp, - testsuite/MovieTester.h: initial implementation of - a movie tester class. - -2006-10-11 Sandro Santilli - - * server/sprite_instance.h: added getDisplayList() method usefull - for testing. - * server/edit_text_character.{cpp,h}: implemented get_width() and - get_height(). - * server/character.h: added comment to get_width() and get_height() - virtual function (return in TWIPS). added a warning log when - a subclass did not override these. - * macros/gtk2.m4: fix handling of --with-gtk2-libs (and commented-out - the caching call due to ignorance about it :) - * configure.ac: print GTK, PANGO and GLIB and ATK variables if gtk - gui is requested (even if not with opengl renderer) - * configure.ac, testsuite/Makefile.am, testsuite/server/Makefile.am, - testsuite/server/MatrixTest.cpp: added initial unit test for - matrix class. - * server/matrix.{cpp,h}: added equality and output operators. - * server/Makefile.am, server/gnash.h, server/matrix.cpp, - server/matrix.h, server/movie.h, server/types.cpp: - moved matrix class in its own files and added/fixed - documentation. - -2006-10-11 Markus Gothe - - * macros/agg.m4: Added /usr/pkg/include. - * testsuite/server/Makefile.am: Fixed bug. - * libbase/log.cpp: Fixed lightweight locking. - -2006-10-10 Sandro Santilli - - * server/character.h, server/generic_character.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/parser/character_def.h, server/parser/shape_character_def.cpp, - server/parser/shape_character_def.h: - const-corrected get_height(), get_height_local(), get_width() and - get_width_local() - -2006-10-10 Sandro Santilli - - * testsuite/check.h: added check() macro - * testsuite/misc-ming.all/DefineEditTextVariableNameText.c: - added traces of some _width and _height proprieties. - * server/dlist.h: added const version of get_character_by_name - and size() methods. - -2006-10-10 Markus Gothe - - * macros/sdl.m4: Removed AC_DEFUN([GNASH_PATH_SDL_MIXER]. Added - AC_MSG_RESULT(VERSION). - * macros/zlib.m4: Added AC_MSG_RESULT. - * macros/atk.m4: Added AC_MSG_RESULT. Fixed detection - (I love pkg-config). - * macros/sdl.m4: Added pkg-config-support. - * macros/ogg.m4: Pkg-config tweaks. - * macros/boost.m4: AM_CONDITIONAL should be set IFF headers are found. - Added /usr/pkg/include to paths. - * macros/curl.m4: Added id-tag. - * macros/glibmm.m4, macros/libXML++.m4: Removed! - * macros/glib.m4: Extended pkg-config support. - * macros/gtk2.m4: Extended pkg-config support. - * macros/cairo.m4: Extended pkg-config support. - * macros/gtkglext.m4: Extended pkg-config support. - * configure.ac: #define HAVE_STRINGCASECMP 1, Fixed BOOST. - -2006-10-10 Sandro Santilli - - * testsuite/Makefile.am, testsuite/check.h, - testsuite/libbase/URLTest.cpp, testsuite/libbase/Makefile.am: - Moved dejagnu utility macros into a separate header file - (check.h) and updated URLTest so to use that. - -2006-10-10 Sandro Santilli - - * server/parser/edit_text_character_def.h: specified coordinate space - for get_width and get_height return values. - * backend/render_handler.h: doxygen comments cleanup (ensure briefs) - * server/text.cpp: added some debugging labels, you can enable - them defining GNASH_DEBUG_TEXT_RENDERING (just a placeholder - as we'll eventually need to fix the text antialiasing problem) - -2006-10-10 Udo Giacomozzi - - * backend/render_handler_agg.cpp: Added asserts for parameters and - fixed draw_poly() which was always filling the polygon. - -2006-10-10 Sandro Santilli - - * configure.ac: fix USE_FFMPEG and USE_MAD defines. - * gui/Makefile.am: refer to the ico file in CVS... - * macros/agg.m4: added missing result of headers check; add a - a check for need of a compatibility layer (testing) - * macros/ffmpeg.m4: use libdts and libavutil if found. don't look - for any of them if pkg-config could find out by himself. - * configure.ac: added --with-mp3-decoder, only check for mp3 decoder - if needed. - * backend/Makefile.am: HAVE_FFMPEG => USE_FFMPEG_ENGINE, - HAVE_MAD => USE_MAD_ENGINE - * doc/C/sources.xml: documented --with-mp3-decoder (replaces the - missing --enable-engine) - -2006-10-09 Sandro Santilli - - * gui/gtk.cpp, gui/gtksup.h: fixed run() method to honour - gui.h interface (removed argument, unused anyway) - -2006-10-09 Rob Savoye - - * doc/C/internals.xml: Add libgui mention. - * doc/C/sources.xml: Add info about agg, ffmpeg, and boost - dependancies and configure options. - * doc/C/gnash.xml: Update out of date version number. - - * plugin/plugin.cpp: Pass -r 3 to the player so we have sound when - using the plugin. - * utilities/Makefile.am: Optionally add the sound engine flags to - the link list. - * gui/Makefile.am: Optionally add the sound engine flags to the - link list. - * macros/ffmpeg.m4: Rewrite to support new --enable-engine - option. Look for libavcodec, libavutil, and libdts seperately, - they aren't necessarily in the same package - * macros/mad.m4: Remove --enable-mad option, use - --enable-engine=mad now instead. Don't define USE_MAD here. - * configure.ac: Add --enable-engine to select the decoding engine - to use for sound support. use sound_engine in addition to - sound_handler. - - * macros/zlib.m4: Update test to use AC_CHECK_HEADER and - AC_CHECK_LIB correctly. For bug #17954. - -2006-10-09 Rob Savoye - - * macros/agg.m4, boost.m4, cairo.m4, curl.m, ffmpeg.m4, - gstreamer.m4, gtkglext.m4, libXML.m4, mad.m4, - pango.m4, png.m4, sdl.m4, zlib.m4: Add /opt/local/include to all - include paths, and /opt/local/lib for opendarwin. - * macros/atk.m4, gtk2.m4, ogg.m4: Add /opt/local/include to all - include paths, and /opt/local/lib for opendarwin. Use pkg-config - if it exists. - -2006-10-09 Sandro Santilli - - * backend/render_handler_agg_compat.h: added compatibility - header for agg package found in debian testing. - * gui/fb.cpp: implemented correct timing - -2006-10-09 Udo Giacomozzi - - * backend/render_handler_agg.h, gui/fb.cpp: Added header file - for create_render_handler() - -2006-10-09 Bastiaan Jacques - - * gui: Some more cleanup. Work KdeGui in a usable state. - -2006-10-09 Sandro Santilli - - * gui/fb.cpp, gui/fbsup.h: fixed createWindow() function to reflect - new Gui interface. Removed unused parameters warnings. - * macros/gstreamer.m4: fix invocation of pkg-config (use it IFF - PKG_CONFIG is set, not if it is NOT set :/) - * gui/gui.h: forced generation of brief description for doxygen. - * backend/sound_handler_sdl.h: removed unused - include. - * configure.ac: add some package names for required ffmpeg libs. - (names for yum are missing). - -2006-10-09 Bastiaan Jacques - - * gui: First attempt at a cleanup of Gui and friends; document - class Gui. Adjust related classes to match the changes to Gui. - * gui/sdl.cpp: Fix the flipped OpenGL rendering bug. - -2006-10-09 Sandro Santilli - - * macros/ffmpeg.m4: check for libdts too (required); always run - the standard AC_CHECK_LIB. - * macros/ffmpeg.m4: don't force linking of libavutil, don't trash - results of a previous detection. - * configure.ac: don't check for gstreamer unless gst sound - was requested. - -2006-10-09 Markus Gothe - - * macros/ogg.m4, macros/ffmpeg.m4: Removed $pkg. - -2006-10-09 Sandro Santilli - - * backend_render_handler_agg.cpp: commented out unused - get_cache_of() method (relies on uncommitted changes to - character class); fixed draw_shape_character_old to allow - build. - * backend/render_handler_agg.cpp (line_style_width): - log unimplemented (current code assigned to undefined variable). - * configure.ac: don't complain about GtkGLExt unless GTK/opengl - setup is requested. - * configure.ac: use better warning messages about SDL sound handling - and ffmpeg/mad choices. - * configure.ac: fixed refs to the obsoleted --enable-mp3 switch - and $mp3 variable. - * configure.ac: GLIB is needed also for GST sound, not only - for GTK gui (anything else?) - * macros/ogg.m4: use PKG_CONFIG *after* having manually looked. - this prevents the checks for actual existance of the lib from - confusing an LDFLAG with a path, resulting in an error (LDFLAGS - contain spaces). - * backend/render_handler.h, backend/render_handler_agg.cpp, - backend/render_handler_tri.cpp, backend/render_handler_tri.h: - Changed corner_count argument of draw_poly() method to an - unsigned type (fixes some compiler warnings, and seems more - correct to me). - -2006-10-08 Markus Gothe - - * server/parser/shape_character_def.cpp: removed unused include. - * server/parser/shape_character_def.h: Added ID-tag. removed unused - include. - * backend/render_handler_tri.cpp: added id-tag. static_cast from float - to short int. Mem-fixes + Scoping. - * backend/render_handler_agg.cpp: added id-tag, static_cast to int16*. - * backend/render_handler_tri.h: added id-tag. - * backend/render_handler.h: added virtual desctror and id-tag. - * server/asobj/string.cpp, server/fontlib.cpp: static_cast(). - * server/edit_text_character.cpp: static_cast(). - * libbase/image_filters.cpp: static_cast() + C++-mem-handling. - -2006-10-07 Bastiaan Jacques - - * backend/sound_handler_sdl{.cpp, .h}: Code cleanup: move declarations - into a seperate header file. - -2006-10-07 Sandro Santilli - - * backend/render_handler_tri.{h,cpp}: moved initialization - of static const float from header to implementation (required - by ISO C++ for non-integral types). - -2006-10-07 Udo Giacomozzi - - * server/render.h, server/shape.h, server/styles.h, - server/parser/character_def.h, backend/render_handler.h, - server/edit_text_character.cpp, server/render.cpp, - server/shape.cpp, server/styles.cpp, server/text.cpp, - server/parser/morph2_character_def.cpp, - server/shape_character_def.cpp: - Changed to support new renderer design - -2006-10-07 Tomas Groth Christensen - - * Makefile.am, configure.ac, backend/Makefile.am, - backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, - macros/ffmpeg.m4, macros/mad.m4, plugin/Makefile.am, - server/gnash.h, server/swf/tag_loaders.cpp, - utilities/Makefile.am: Commited the new soundbackend, based - on SDL and optionally ffmpeg or libmad. Also changed the - buildsystem to reflect the change. - -2006-10-07 Bastiaan Jacques - - * configure.ac: Replace --enable-lotsa-warnings with --enable-strict, - because strict is a more descriptive name for what lotsa-warnings - actually does. - -2006-10-07 Markus Gothe - - * configure.ac: Fixed typo. '!=' -> '='. - * macros/ffmpeg.m4, macros/gstreamer.m4: check if pkg --exists. - * macros/sdl.m4: Fixed finding libpath. - * macros/atk.m4: Typo. - * plugin/plugin.h: Define __FUNCTION__ and __PRETTY_FUNCTION__ if not. - * configure.ac: Check and set #SIZEOF_SIZE_T. - * backend/Makefile.am: Include XML_{CFLAGS,LIBS} for GST. - -2006-10-07 Tomas Groth Christensen - - * configure.ac: Fixed typo, so that we check for OpenGL when - it is the selected renderer. - * backend/Makefile.am: Fixed type, so that the OpenGL libs - are linked. - -2006-10-06 Rob Savoye - - * configure.ac: Make config tests for gui or rendered enabled or - disabled based on the selected ones. Define all conditional - variables here, since the tests may not get executed now. This - makes configuring faster. - * backend/Makefile.am: Add AGG support. - * gui/Makefile.am: Add AGG support. - * gui/README: Add Framebuffer and AGG notes. - * macros/cairo.m4, ffmpeg.m4:, gtkglext.m4, kde.m4, opengl.m4: - Don't define conditional variables here. - -2006-10-06 Sandro Santilli - - * server/render.cpp: don't abort when parsing w/out any - renderer registered (the NullGui will rely on this) - * gui/sdl.cpp (run): use _xsize, _ysize when notifying mouse move. - * gui/gtk.cpp (motion_notify_event): take xscale/yscale - into account, (configure_event): invoke Gui::resize_view - with an object. - * gui/gui.{h,cpp}: split _scale into x/y components, - resize_view method made non-static so it can update - _xscale and _yscale. - -2006-10-06 Markus Gothe - - * server/ref_counted, libbase/ref_counted.h: Moved file. - * server/Makefile.am: Removed ref_counted.h. - * server/impl.cpp, server/ref_counted.h: Moved code to ref_counted.h - -2006-10-06 Bastiaan Jacques - - * gui/Makefile.am: Automake directives may not be indented, so remove - the indentation. - -2006-10-06 Sandro Santilli - - * libbase/log.cpp: remove useless xml includes - * gui/Makefile.am: don't link against unecessary libs - * backend/Makefile.am: don't link against unecessary libs - -2006-10-06 Hannes Mayr - - * macros/jpeg.m4: fixed typo. - -2006-10-05 Patrice Dumas - - * testsuite/misc-ming.all/Makefile.am: Change clean to clean-local. - * packaging/redhat/gnash.spec: Add new buildrequires in specfile - and use gstreamer sound backend. - * libbase/Makefile.am: Remove reference to smart_ptr.hpp - -2006-10-05 Rob Savoye - - * configure.ac: Add --enable-write option to optionally write the - Flash movie to disk when using the plugin. - * plugin/plugin.h, plugin.cpp: Optionally write the streaming - Flash movie to disk. - * macros/boost/m4: Look for the Boost thread library using a - variety of names. - * macros/boost.m4: Also look for libboost_thread-mt if - libboost_thread doesn't exist. - -2006-10-05 Sandro Santilli - - * server/as_object.cpp (setPropFlags): added support for - property arg being a comma-separated list string, minor - cleanups to reduce memory copies. - -2006-10-05 Markus Gothe - - * libbase/log.cpp: Added #define BOOST_HAS_THREADS. - * libbase/smart_ptr.hpp: Removed. - -2006-10-05 Sandro Santilli - - * server/swf/ASHandlers.cpp: handle print requests (with an - "unimplemented" message, but better then nothing) - * testsuite/actionscript.all/swf_exists.exp: build and run - each test with SWF target versions 5 to 7. - -2006-10-05 Sandro Santilli - - * testsuite/actionscript.all/swf_exists.exp: allow inclusion - of non-text chars in messages (needed to also print line - number of tests). - -2006-10-05 Sandro Santilli - - * testsuite/actionscript.all/swf_exists.exp: add test filename - in output. - -2006-10-05 Sandro Santilli - - * testsuite/actionscript.all/swf_exists.exp: make compatible - with expect/tcl found in debian stable. - * gui/gnash.cpp: fixed typo in usage string (-k for height) - -2006-10-04 Sandro Santilli - - * server/swf/ASHandlers.cpp: cleanly handle recursion (with - loops check) in enumerate actions. - * server/asobj/Global.cpp (as_global_object_ctor): fix - copy constructor of the Object class. - * testsuite/actionscript.all/Object.as: added copy-reference - tests. - * server/as_object.cpp (set_member_default): minor cleanups. - * testsuite/libbase/Makefile.am: added required boost lib - (couldn't find a way to have the dependency derived from - libgnashbase.la) - * libbase/Makefile.am: added required boost libs - * testsuite/actionscript.all/Object.as: add enumeration test. - -2006-10-04 Sandro Santilli - - * server/asobj/Global.cpp (as_global_assetpropflags): - delegate work to as_object::setPropFlags(). - * server/as_object.{cpp,h}: add setPropFlags() method. - * server/xml.h (get_member): invoke get_member_default() when - the requested member is not a builtin. - * testsuite/actionscript.all/Object.as: add test for - getter/setter (addProperty) - -2006-10-03 Sandro Santilli - - * gui/NullGui.h: changed constructor to take do_loop arg. - * gui/Player.cpp: propagate the do_loop setting to the NullGui - (gnash -r0 -1 works now) - -2006-10-03 Sandro Santilli - - * server/asobj/Global.cpp (as_global_assetpropflags): - removed complain about ASSetProfFlag not implemented - for a NULL property argument (seems actually implemented) - * server/swf/ASHandlers.cpp (ActionEnumerate): log 'testing' - rather then 'unimplemented' (seems actually working). - -2006-10-03 Patrice Dumas - - * testsuite/actionscript.all/Makefile.am, - testsuite/libbase/Makefile.am: - - distribute XMLNode.as, *.as files included in other *.as files, - *.swf used in checks, but not generated from .as. - - use CLEANFILES and clean-local: instead of a rewritten - 'clean' target. - -2006-10-03 Rob Savoye - - * plugin/plugin.cpp: Use cout instead of dbglogfile to reduce - dependancies. - * plugin/Makefile.am: Don't link in log.cpp directly. - * plugin/plugin.cpp: Use cout instead of Gnash debugging library - since Firefox doesn't print to stdout anyway unless you build from - source. This removes all dependancies on Gnash libraries. - * macros/boost.m4: Look for mutex.hpp instead of weak_ptr.hpp. - * configure.ac: Print the packages to install to add Boost - threads. - - * gui/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. - * libbase/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. - * utilities/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. - * libbase/log.cpp: Use Boost::mutex to make debug logging support - thread-safe. - -2006-10-03 Sandro Santilli - - * gui/gnash.cpp (usage): document -j and -k switches. - * backend/render_handler_cairo.cpp: removed compiler warnings. - -2006-10-03 Patrice Dumas - - * gui/Makefile.am: add gtk_glue.h to GTK_SRCS, comment - out missing kde_glue_cairo files. - -2006-10-03 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: fixed clean rule, - avoid to build .swf movies by a simple 'make' call. - -2006-10-03 Patrice Dumas - - * Makefile.am, libbase/Makefile.am, testsuite/libbase/Makefile.am, - testsuite/misc-ming.all/Makefile.am: - simplify check handling by putting testsuite in SUBDIRS and mark; - check programs as check_ instead of noinst_; add smart_ptr.hpp to - distributed files - -2006-10-03 Sandro Santilli - - * testsuite/libbase/NoSeekFileTest.cpp: fixed test, added test - for named cache file. - * testsuite/libbase/Makefile.am: improved clean rule. - * libbase/noseek_fd_adapter.cpp: fixed named-cache operation - (cache file was not opened for read) - -2006-10-03 Patrice Dumas - - * macros/ffmpeg.m4: Fixed failure. - -2006-10-03 Sandro Santilli - - * libbase/noseek_fd_adapter.{cpp,h}: accept const char* as - cache filename. - * server/parser/movie_def_impl.{cpp,h}: wiped out SDL threads stuff. - -2006-10-03 Sandro Santilli - - * server/parser/movie_def_impl.cpp (create_instance): - ensure frame0 has been loaded before attempting to - execute the actions therein. - * server/parser/movie_def_impl.h: documented weird - side-effect of creating an instance of a movie_def_impl - (execution of actions in first frame) - -2006-10-03 Markus Gothe - - * server/parser/movie_def_impl.cpp: remove ensure_frame_loaded inlining. - * server/xml.cpp, server/xmlsocket.{cpp,h}, - server/impl.cpp, server/timers.h, server/spriteinstance.cpp, - server/asobj/MovieClipLoader.cpp, utilities/processor.cpp: - tu_string -> std::string. - -2006-10-03 Sandro Santilli - - * server/sprite_instance.cpp: removed unused blocks of code. - -2006-10-02 Sandro Santilli - - * gui/Player.cpp (run): set base url before parsing. - * server/swf/tag_loaders.cpp (import_loader): - resolve relative urls against base url - * server/ActionExec.cpp: more SIZET_FMT usage. - * server/samples => testsuite/samples: - moved sample movies under testsuite. - -2006-10-02 Rob Savoye - - * configure.ac: Look for ffmpeg paths. Add --enable-sound=ffmpeg - or --enable-sound=mad. - * macros/ffmpeg.m4: Look for ffmpeg paths. - * Makefile.am: Print ffmpeg paths for dumpconfig target. - -2006-10-02 Bastiaan Jacques - - * libamf/amf.h: Prevent character type overflow warnings by using int - type. - * libbase/log.h: Implement macro SIZET_FMT, to be used in printf-like - functions in which a size_t modifier is desired. This prevents - compiler warnings. - * all over the place: Utilise SIZET_FMT to clear up compiler warnings. - -2006-10-02 Sandro Santilli - - * server/fontlib.cpp: minor cleanups. - * server/parser/movie_def_impl.cpp: set startup_frames to 0 - (I feel lucky) - * gui/Player.cpp, gui/Player.h: make sure the sound_handler - is not destroyed before use, initialize sound handling and - gui when run() is invoked, not a construction time. - -2006-10-02 Bastiaan Jacques - - * plugin/plugin{.cpp, .h}: Pipe the SWF file to Gnash's standard - input. - -2006-10-02 Markus Gothe - - * server/movie_interface.h, server/button_character_instance.h: - Clean up. - * server/gnash.h: Added include for create_movie(tu_file*, - std::string&). - * server/xml.cpp, server/xmlnode.cpp, server/xmlattrs.cpp, - server/as_value.h, server/asobj/Global.cpp: Don't include - "smart_ptr.h". - -2006-10-02 Sandro Santilli - - * gui/Player.cpp: don't use cache files (they are broken anyway, - and with cache files disabled a bug is exposed that we must - fix before 0.7.2 release - #17385) - -2006-10-02 Sandro Santilli - - * gui/Player.{cpp,h}: some functions split and cleanups. - -2006-10-02 Sandro Santilli - - * gui/Player.cpp (Player::run): read from stdin when infile == "-" - * server/impl.cpp, server/gnash.h: exposed a create_movie(tu_file*, - std::string&) function to let callers use arbitrary data sources - for movie loading. - -2006-10-01 Bastiaan Jacques - - * testsuit/libbase/URLTest.cpp: Testcase for bug #17725. - -2006-10-01 Bastiaan Jacques - - * gui/gtk.cpp: Fix gtkgl assertion by making sure that the configure - event isn't fired before the drawing area is OpenGL-initialised. - -2006-10-01 Sandro Santilli - - * server/builtin_function.h: doxygen dox. - -2006-09-30 Rob Savoye - - * macros/boost.m4: Look for Boost paths. - * macros/agg.m4: Look for Antigrain paths. - * configure.ac: Look for Antigrain and Boost headers and - libraries. Add an "agg" option to --enable-renderer. - * Makefile.am: Print AGG and Boost flags for the dumpconfig. - -006-09-30 Markus Gothe - - * libbase/noseek_fd_adapter.cpp: fixed typecasting. - -2006-09-30 Sandro Santilli - - * libbase/noseek_fd_adapter.{h,cpp}, libbase/Makefile.am: - new tu_file adapter for nonseekable streams. - * testsuite/libbase/NoSeekFileTest.cpp: test unit for the - noseek_fd_adapter. - * testsuite/libbase/Makefile.am: enabled URLTest, NoSeekFileTest - and RcTest runs at 'make check' time (assigned to TEST variable) - -2006-09-29 Markus Gothe - - * configure.ac, libbase/container.h: fixed HAVE_STRCASECMP collision. - * libbase/container.h: Fixed non-void function not returning warning. - * server/xml.cpp: Fixed unused bool's ret = true; - * libbase/curl_adapter.cpp: %u->%lu. Add static_typecast. - -2006-09-29 Sandro Santilli - - * gui/Player.cpp: handle failures in movie loading. - * backend/render_handler_cairo.cpp: fixed unused parameter warnings. - * gui/gtk_glue_cairo.cpp: fixed unused parameter warnings. - * server/movie.h: fix set_display_callback signature (was changed - when erroneously commented out unused parameter) - * server/sprite_instance.h (attach_display_callback): removed - cast of set_display_callback() first arg (see above item). - * server/parser/movie_def_impl.cpp: cast to void* when printing - args with format %p - * server/xmlsocket.cpp: fixed unused variable warning. - -2006-09-29 Markus Gothe - - * libbase/triangulate_impl.h, server/ActionExec.cpp, server/fontlib.cpp - server/shm.cpp, server/xmlnode.cpp, server/parser/action_buffer.cpp, - server/swf/ASHandlers.cpp, utilities/processor.cpp: Added - static_cast() for %lu. - * gui/Player.h, server/action.h, server/as_value.h, server/asobj/Key.h, - server/movie_root.h, server/gnash.h, libbase/curl_adapter.h: - Added DSOEXPORT. - * libbase/triangulate_impl.h: %zd -> %lu. - * libamf/amf.h: comma at end of enumerator list. - * server/parser/action_buffer.cpp, server/ActionExec.cpp, - server/fontlib.cpp, server/swf/ASHandlers.cpp: %zd -> %lu. - * utilities/parser.cpp, utilities/processor.cpp: Fixed definition of - getopt() to compile with -pedantic in gcc. - -2006-09-28 Markus Gothe - - * libbase/smart_ptr.hpp: Added #define's to ensure it's not included - more than one time. - * plugin/plugin.cpp: Fixed warning on redefing MIN()/MAX(). Added - Id:-tag. - * gui/gtk_glue_gtkglext.cpp, gui/sdl.cpp, gui/kde_glue_opengl.cpp: - Removed unused "OVERSIZE". Added id-tags. - -2006-09-28 Sandro Santilli - - * libbase/curl_adapter.cpp: set curl user agent (gnash-VERSION). - * gui/Player.cpp: stop calling get_movie_info, and be really - streaming instead :) - * gui/gtk.cpp: reintroduced ifdef hell in a struggle to - have a renderer registered in Gui::init. - * gui/sdl.cpp: fixed compiler warnings. - * gui/gtk.cpp, gui/sdl.cpp: moved render handler creation - from createWindow() to init(). - * gui/gui.h: added doxygen comment about init() function - (the need to initialize the renderer) - -2006-09-28 Sandro Santilli - - * backend/render_handler_cairo.cpp, backend/render_handler_cairo.h: - set up a renderer::cairo namespace, split renderer construction - and window association (to be able to create a renderere before - knowing width and height of the window) - * server/gnash.h: commented out create_render_handler_cairo - (see render_handler_cairo.h for new interface) - * gui/gtk_glue_cairo.cpp : moved cairo window association code - from createRenderHandler() to prepDrawingArea(). - * gui/gtk.cpp : moved glue.prepDrawingArea call *after* window - creation. - * gui/sdl.cpp : updated call for cairo handler creation. - -2006-09-27 Markus Gothe - - * plugin/Makefile.am: set path to top-dir. - * README: Clarifying that Mozilla has to be built with gtk2. Put an - emphasis on not trying with gtk1. - -2006-09-27 Sandro Santilli - - * plugin/Makefile.am: don't link the plugin lib - to any gnash library as it only calls it trough - a system() call. Include libbase/log.cpp in sources - as it is used. - -2006-09-27 Sandro Santilli - - * doc/C/gnash.xml: updated -u and -U dox. - * server/asobj/MovieClipLoader.cpp (moviecliploader_loadclip): - resolve relative URLS against base url, not target movie url. - -2006-09-27 Sandro Santilli - - * server/impl.cpp, server/gnash.h: changed get_base_url() to - return a "const" URL. - * server/swf/ASHandlers.cpp (CommonGetUrl): use base url - for relative urls resolution. - -2006-09-27 Sandro Santilli - - * plugin/plugin.cpp: use the new -U switch when invoking - gnash (pass it the base url) - -2006-09-27 Sandro Santilli - - * server/gnash.h, server/impl.cpp: added set_base_url() and - get_base_url() function. - * gui/Player.{h,cpp}: added setBaseUrl method. - * gui/gnash.cpp: added -U switch to set base url. - -2006-09-27 Sandro Santilli - - * plugin/plugin.cpp: cleanup and use of getCurrentPageURL() - * plugin/mozilla-sdk/np_entry.cpp, plugin/mozilla-sdk/npn_gate.cpp: - Added NPN_GetStringIdentifier, NPN_GetProperty and - NPN_ReleaseObject interfaces (tested with firefox 1.0.4!) - * gui/gui.cpp: added missing render_handler.h include, removed - gnash.h include - * gui/gui.h: removed gnash.h include, added forward declaration - for render_handler - * plugin/plugin.cpp, plugin/plugin.h: added getCurrentPageURL - method (still untested, but compiles fine). - -2006-09-27 Vitaly Alexeev - - * gui/Player.cpp, - * libbase/getopt_win32.H, - * libbase/getopt_win32.cpp: - porting to win32 - -2006-09-27 Sandro Santilli - - * configure.ac: don't require gtkglext unless GTK/opengl - combination is requested. - -2006-09-26 Markus Gothe - - * server/timers.cpp: Removed unused header. Added ID-tag. - * server/asobj/Key.h: Removed unused header. Added ID-tag. - -2006-09-26 Sandro Santilli - - * backend/Makefile.am, backend/render_handler.h, - backend/render_handler_cairo.cpp, backend/render_handler_ogl.cpp, - server/Makefile.am, server/gnash.h, server/render.h, - server/parser/Makefile.am: - moved render_handler class definition in it's own file - under backend/ - * server/asobj/MovieClip.cpp: removed useless includes. - * backend/Makefile.am, backend/render_handler.h: - moved render_handler class definitino in it's own header. - -2006-09-26 Sandro Santilli - - * backend/Makefile.am, backend/gnash.cpp, backend/gtksup.cpp, - backend/gtksup.h: removed obsoleted files. - * server/font.{cpp,h}: reduced headers inclusion. - * backend/render_handler_cairo.cpp: make sure that - the bitmap_info we receive are actually bitmap_info_cairo - type (don't just assume it). - * server/parser/bitmap_character_def.cpp, - server/parser/bitmap_character_def.h: changed interface - to construct bitmap_info at construction time, and to - take image::rgb(a) by std::auto_ptr (fixes memory leaks). - * server/swf/tag_loaders.cpp: updated calls to bitmap_character_def. - * server/parser/movie_def_impl.h: doxygen comments update. - * server/Makefile.am, server/bitmap_character_instance.cpp, - server/bitmap_character_instance.h, - server/parser/bitmap_character_def.cpp, - server/parser/bitmap_character_def.h: - Removed bitmap_character_instance (bitmap characters never - get instantiated). Had bitmap_character directly derive - from ref_counted (it is *not* internally used as a character_def - becase it is stored in a separate container in movie_def_impl) - -2006-09-25 Sandro Santilli - - * gui/Player.cpp: make sure gui.createWindow() - is called *before* actual parsing (quick solution - to our renderer calls within the parser) - * server/parser/.cvsignore: new file - * server/render.cpp: abort when bitmap_info creation is - requested but a renderer is not defined. - * server/Makefile.am, server/parser/Makefile.am, - server/bitmap_character_instance.cpp, - server/bitmap_character_instance.h, - server/parser/bitmap_character_def.cpp, - server/parser/bitmap_character_def.h: - Split bitmap_character into definition and instance; - had bitmap_character_def initialized by image::rgb - and image::rgba instead as with bitmap_info, made bitmap_info - creation a lazy process inside get_bitmap_info (to be called - only *after* parsing, when renderer is registered). - * server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, - server/parser/movie_definition.h, server/parser/sprite_definition.h: - Renamed movie_definition methods to add/get bitmap_character_*defs* - * server/generic_character.h, server/styles.cpp, - server/parser/morph2_character_def.cpp, - server/swf/tag_loaders.cpp: - Updated creation of bitmap_character_def and calls to add them - to movie_definitions. - -2006-09-25 Vitaly Alexeev - - * gui/Player.cpp: reverted - -2006-09-25 Markus Gothe - - * libbase/getopt.c => libbase/getopt_win32.cpp. - * libbase/getopt.h => libbase/getopt_win32.h: - renamed to avoid collision with standard header file. - -2006-09-25 Vitaly Alexeev - - * gui/sdl.cpp, gnash.cpp, Player.cpp, - * libbase/getopt.c, getopt.h: - porting to win32 - -2006-09-24 Sandro Santilli - - * server/edit_text_character.{h,cpp}: added private - registerTextVariable() method to handle variablenames. - -2006-09-24 Markus Gothe - - * libbase/ogl.cpp: Removed unsed TU-file. - * libbase/tu_opengl_includes.h: Fixed Darwin glx.h-include, removed - PROC_NAME_PREFIX. - -2006-09-23 Bastiaan Jacques - - * gui/Makefile.am: libgnashplayer.so uses symbols from libgnashgui.so - and linking should reflect this relationship. - -2006-09-23 Bastiaan Jacques - - * libbase/log{.cpp, .h}: Implement LogFile << unsigned long, so the - build will succeed for platforms where size_t is defined to unsigned - long. - -2006-09-23 Vitaly Alexeev - - * server/sprite_instance.cpp, gnash.h, - * server/parser/movie_def_impl.cpp, sprite_definition.cpp: - The improved version of create_empty_movieclip(). - Thanks Sandro Santilli - -2006-09-23 Sandro Santilli - - * gui/Player.cpp: avoid using get_movie_info, so we don't - open the stream twice (including curl if it's a remote url) - -2006-09-23 Markus Gothe - - * libbase/smart_ptr.hpp: Imported and cleaned-up from boost. - -2006-09-23 Sandro Santilli - - * gui/Makefile.am, gui/gnash.cpp: build libgnashplayer, have gnash - executable use the new class. - * gui/gtk.cpp, gui/gtksup.h, gui/gui.h, gui/sdl.cpp, gui/sdlsup.h: - const-corrected createWindow() function. - * gui/Player.{h,cpp}: new class to simplify player startup. - * gui/gnash.cpp, gui/sdl.cpp: moved parsing of -c switch from - gnash to sdl gui. - -2006-09-22 Patrice Dumas - - * testsuite/Makefile.am, testsuite/actionscript.all/Makefile.am, - testsuite/libbase/Makefile.am: fix make distcheck. - -2006-09-22 Sandro Santilli - - * plugin/mozilla-sdk/np_entry.cpp, plugin/mozilla-sdk/npp_gate.cpp, - plugin/mozilla-sdk/pluginbase.h: commented out unused parameters. - -2006-09-21 Vitaly Alexeev - - * server/sprite_instance.cpp: has completed - sprite_create_empty_movieclip(), added sprite_remove_movieclip() - * server/parser/movie_def_impl.cpp: fixed range check error, - added DO_EMPTY_MOVIECLIP - * web/gnash/snapshots/gnash-win32.zip: added zlibwapi.dll - -2006-09-21 Sandro Santilli - - * server/edit_text_character.cpp (ctor): set textfield variable - when available. - * server/sprite_instance.{h,cpp}: added new set_textfield_variable - public method and a lazily-allocated map for textfield variables; - scan textfield variable names in both set_member and get_member. - -2006-09-21 Sandro Santilli - - * server/as_environment.{cpp,h}: parse_path() made a public - static method. - * server/edit_text_character.cpp, server/edit_text_character.h, - server/parser/edit_text_character_def.cpp, - server/parser/edit_text_character_def.h: - get_default_name() => get_variable_name(), moved - warning about missing VariableName support closer to where - we should implement it. - -2006-09-21 Udo Giacomozzi - - * server/shape.cpp (edge::tesselate_curve): don't add curves - on a straight edge. - -2006-09-21 Sandro Santilli - - * server/as_environment.{h,cpp}: doxygen comments, minor - interface cleanup (use references when appropriate) - * server/parser/edit_text_character_def.cpp: added comment - about why we're doing the wrong thing with VariableName - (related to bug#17806) - -2006-09-21 Deanna Phillips - - * plugin/Makefile.am: removed unneeded explicit copy of shared - object for OBSD. - -2006-09-21 Sandro Santilli - - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: - put the TextField inside a movieclip and it's associated - variable on the root. This is to ensure that using - the variable name as an instance name would clearly NOT work; - equip with xtrace and print more info. - * server/dlist.{cpp,h}: dump() method made public, print - character "name" as part of the dump. - -2006-09-20 Sandro Santilli - - * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c, - testsuite/misc-ming.all/Makefile.am: added test for VariableName - attribute of DefineEditText. - * server/parser/edit_text_character_def.cpp, - server/parser/edit_text_character_def.h: tu_string => std::string, - use new string reader methods. - * server/stream.{h,cpp}: added memory-friendly string reader - functions. - * server/parser/button_character_def.cpp: more symbolic - names. - -2006-09-20 Vitaly Alexeev - - * server/sprite_instance.cpp, - * server/sprite_instance.h, - * server/dlist.cpp, - * server/dlist.h: - added swapDepths(), getDepth(), unfinished createEmptyMovieClip() - methods - -2006-09-20 Markus Gothe - - * Fixed bug submitted by Onkar Shinde. - -2006-09-19 Vitaly Alexeev - - * server/sprite_instance.cpp: added duplicateMovieClip() method - -2006-09-19 Sandro Santilli - - * testsuite/actionscript.all/gen-index.sh: Changed embed.html - page generation to reflect new "remote tracing" feature. - * testsuite/actionscript.all/check.as: use rtrace rather - then xtrace when ONLINE is defined (must actually set - the correct testreport.php url in order to work). - * testsuite/actionscript.all/rtrace.as, - testsuite/actionscript.all/testreport.php: - code for online testcases automation. - * server/asobj/Math.cpp: added missing "log.h" include - * backend/render_handler_ogl.cpp: hush little compiler - (use explicit const_cast) - * server/sprite_instance.cpp (sprite_hit_test): stub for hitTest() - * server/sprite_instance.cpp (call_frame_actions): fixed - premature deletion of action buffers (also optimized somehow). - * testsuite/actionscript.all/Makefile.am, - testsuite/actionscript.all/gen-index.sh: generate - a page with all testcases for each SWF target. - * testsuite/actionscript.all/Makefile.am, - testsuite/actionscript.all/Number.as: - new testcase (small, but already failing for gnash) - * testsuite/actionscript.all/TODO: new file - * server/swf/ASHandlers.cpp (ActionEqual): fixed behavior. - * server/swf.h: Added info about ACTION_EQUAL. - * server/swf/ASHandlers.cpp (CommonGetUrl): added comments about - relative url resolution "known" bug. Added parsing of method - bitfield flags and warnings about unsupported features. - -2006-09-18 Sandro Santilli - - * libbase/URL.cpp: removed call to set_workdir. - -2006-09-18 Vitaly Alexeev - - * libamf/amf.cpp: function must return a value - * gui/sdl.cpp: Don't hog the CPU. - * web/gnash/snapshots/gnash.zip: renamed to gnash-win32.zip - * backend/sound_handler_sdl.cpp: fixed out of range bug - -2006-09-18 Sandro Santilli - - * server/swf/ASHandlers.cpp: added initial support for - GetUrl2 method 64. - -2006-09-18 Patrice Dumas - - * gui/gtksup.h: remove extra qualifier from private method. - -2006-09-18 Sandro Santilli - - * macros/curl.m4: always run AC_CHECK_HEADER and AC_CHECK_LIB - * server/as_value.h: added is_null() method. - * README: updated section about plugin compatibility. - -2006-09-18 Samuel Lidén Borell - - * gui/gtk.cpp, gui/gtksup.h: Forward GTK keyboard events - (Patch #5393) - -2006-09-18 Markus Gothe - - * libbase/container.h: #ifdef HAVE_STRCASECMP-bug-fix. - * Fixed bug #17786... - -2006-09-17 Rob Savoye - - * testsuite/actionscript.all/Makefile.am: Add test driver name to - the command line. Don't pass --srcdir, runtest doesn't need it - anymore, and it breaks the site.exp setting of the same value. - * testsuite/misc-ming.all/Makefile.am: Don't pass --srcdir, - runtest doesn't need it anymore, and it breaks the site.exp - setting of the same value. - * testsuite/actionscript.all/swf_exists.exp: Don't use the file - name, just let makeswf use the default output file, out.swf. - * Makefile.am: Don't have dejagnu as an option, just change to the - testsuite directory and run make check. - * configure.ac: Remove unused configure options. Have dumpconfig - display if libCurl has RTMP support. - * backend/Makefile.am: Remove dejagnu from AUTOMAKE_OPTIONS. - * doc/C/appendix.xmlfdl-appendix.xml, gnash.xml, - internals.xml, localconnection.xml, logging.xml, - netconnection.xml, opcodes.xml, plugin.xml, rtmp.xml, sources.xml, - : Change to , as the xmlto tools on FC5 don't - grok anymore. - * libamf/Makefile.am: Put amftest.cpp in EXTRA_PROGAMS. - * libamf/amf.cpp, amf.h: Use unsigned char instead of signed char - when pointing to RTMP message data. - * libbase/container.cpp, container.h: Define STRCASECMP in the - source file, not the header. - * libbase/network.cpp: Fix the warning message about not binding - to a port. Don't include fn_call.h or xml.h. - * libbase/network.h: Don't include fn_call.h or xml.h. - * macros/opengl.m4: Look in X11R6 too. - * plugin/Makefile.am: Remove dejagnu from AUTOMAKE_OPTIONS. - * server/asobj/NetConnection.h: Add private variables for the - connect message to the server. - * server/asobj/System.cpp, Video.cpp: Tweak the unimplemented - messages. - -2006-09-17 Patrice Dumas - - * libbase/Makefile.am: Don't include anything from the server - directory. - * libbase/log.cpp: Don't include gnash.h. - * libbase/network.h, cpp: Don't include xml.h. - -2006-09-17 Bastiaan Jacques - - * libbase/URL.cpp: Don't treat local filenames as query strings (bug - #17725). - -2006-09-17 Markus Gothe - - * autogen.sh: Applied patch from Mike Heffner. - -2006-09-17 Bastiaan Jacques - - * plugin/plugin.cpp: add NULL checks to avoid attempting to create an - std::string from a NULL character pointer (bug #17776). - -2006-09-16 Patrice Dumas - - * libbase/log.cpp, libbase/network.cpp, libbase/network.h: - removed useless includes. - -2006-09-16 Sandro Santilli - - * plugin/plugin.cpp: SIGINT => SIGTERM (fixes bug #17082) - -2006-09-15 Vitaly Alexeev - - * libbase/tu_config.h: __declspec(dllimport) temporarily is - commented because of VC++ compiler problems. - * web/gnash/snapshots/gnash.zip: added Standalone executable files - & dependences. - * web/gnash/snapshots/gnash.exe, npgnash.dll: removed. - -2006-09-15 Markus Gothe - - * Finished task #5848. Implementing GCC-visibility. - -2006-09-14 Vitaly Alexeev - - * server/swf/ASHandler.cpp: fixed bug #17738. - -2006-09-14 Markus Gothe - - * libbase/URL.cpp: Fixed bug #17727. - * configure.ac, libgeometery/bsp.cpp: Fixed bug #17748. - * libbase/tu_types.h: Fixed bug #17749. - * Removed usage of create_bitmap_info_empty(). - * server/asobj/Global.cpp, server/stream.cpp: Fixed mem leak. - * libbase/container.{h, cpp}: fixed termination '0' -> '\0'. - * backend/sound_handler_gst.cpp: Fixed mem-management. - * Fixed mozilla-sdk for use with the actual mozilla >=1.7.13. - * configure.ac: Check for GCC -fvisibility-support. - * libbase/tu_config.h: Visibility-hack (DSOLOCAL and DSOEXPORT). - -2006-09-13 Markus Gothe - - * libbase/smart_prt.h: Added dtor for weak_ptr. - -2006-09-11 Vitaly Alexeev - - * libbase\URL.cpp: parsing of win32 path - -2006-09-11 Vitaly Alexeev - - * libbase\URL.cpp: Current working directory of Flash is - a directory of the first swf file. - * server\action.h, action.cpp: attach_extern_movie() is reanimated - * server\swf\ASHandlers.h, ASHandlers.cpp: loadMovie() should be - compatible with Flash - * server\impl.h: a bit cleanup - -2006-09-09 Sandro Santilli - - * plugin/plugin.cpp: removed the waitpid call again - (see bug #17082). - -2006-09-08 Sandro Santilli - - * plugin/plugin.cpp, plugin/plugin.h: wait for child pid - (no more zombies). Avoid killing pid == -1 on gnash error ! - -2006-09-08 Sandro Santilli - - * gui/gnash.cpp: FlashVars == flashvars (this is how the browser - sends parameters) - * plugin/plugin.cpp, plugin/plugin.h: added support for - passing parameters. - * plugin/player.h: removed obsoleted file - -2006-09-08 Markus Gothe - - * testsuite/movies.all/zoomhenge.swf: Added. - * plugin/plugin.cpp: Declare maxargc as 'const'. Fixed memory - management for char *argv[]. - -2006-09-02 Rob Savoye - - * configure.ac: Check to see if libCurl supports RTMP. - * macros/curl.m4: Add support to use curl-config. Look to see what - protocols it supports. - -2006-09-02 Sandro Santilli -STRCASECMP - * gui/gnash.cpp, doc/C/gnash.xml: added -P switch to set - contextual parameters (see - http://www.permadi.com/tutorial/flashVars/index.html) - * libbase/URL.{cpp,h}, testsuite/libbase/URLTest.cpp: - added support for query strings (+tests). - * server/swf/ASHandlers.cpp (ActionGetUrl2): log a warning - when an undefined url parameter is on the stack. - * server/as_value.h: added is_undefined() method. - -2006-09-01 Sandro Santilli - - * plugin/plugin.{cpp,h}: Call gnash with -u switch to set - original movies url. - * gui/gnash.cpp, doc/C/gnash.xml: make the -u switch working - and documented. - * server/gnash.h, server/impl.cpp: - Changed create_movie and create_library_movie to optionally - take a "real" url (for use with caches). If given, the "real" - url will be used as a label for the "movie library". Note that - no host-checking is performed on the "real" url (only the - "effective" url will be checked). - * plugin/player.cpp: removed obsoleted file. - -2006-09-01 Tomas Groth Christensen - - * doc/C/internals.xml: Small doc fixes. - -2006-09-01 Sandro Santilli - - * server/swf/ASHandlers.cpp (CommonGetUrl): support - relative urls (testing). - * libbase/URL.{cpp,h}, testsuite/libbase/URLTest.cpp: - Added anchor support in URL class (+tests). - -2006-08-31 Rob Savoye - - * doc/C/Makefile.am: Add --encoding=us-ascii//TRANSLIT so control - characters don't slide in that prevent db2x_texixml from working. - - * gui/images: New directory for images. Patch #5346. - * gui/images/gnash_128_96.ico: New icon for GTK executable. Patch - #5346. - * gui/Makefile.am: Install icon image. Patch #5346. - * gui/gtk.cpp: Add icon to GTK executable. Patch #5346. - * gui/gtksup.h: Add methods for adding and finding pixmaps. Patch - #5346. - * plugin/Makefile.am: For OpenBSD, copy the actual shared libary - when installing since libtool doesn't appear to do this. Baswed on - patch #5345. - -2006-08-31 Sandro Santilli - - * server/swf/tag_loaders.cpp (frame_label_loader): added - primitive support for anchor-labels (just print a warning). - -2006-08-31 Markus Gothe - - * server/parser/movie_def_impl.cpp: Removed 'using namespace std;' - since it's not needed and cause problems on non-gcc-compilers. - * mozilla-sdk/include/jni.h: "using namespace std;" for va_list. - * plugin/plugin.cpp: Added include for tu_types.h - -2006-08-30 Patrice Dumas - - * Patch for the doc system. - -2006-08-30 Sandro Santilli - - * libamf/amf.{cpp,h}: changed amf_element_t.data type to - 'const' unsigned char. This fixed compiler warnings. - * server/gstring.h, server/asobj/gstring.h, - server/string.cpp, server/asobj/string.cpp, - server/Makefile.am, server/asobj/Makefile.am: - Moved string class files to asobj lib. - -2006-08-30 Vitaly Alexeev - - * libbase\tu_opengl_includes.h: added win32 opengl #define - * libbase\jpeg.cpp: a cleanup - * server\URLAccessManager.cpp: a cleanup - -2006-08-30 Markus Gothe - - * libbase/tu_types.h: rededifine __FUCTION__ - * libbase/rc.cpp: include tu_types.h where __PRETTY_FUNCTION__ is - decl. - * configure.ac: Check if sqrt() needs -lm. - * libbase/tu_math.h: Fixed IRIX 6.5-compability. - * server/asobj/Math.cpp: Include "tu_math.h" - * server/asobj/Gmath.h: Deconfuse MIPSPRO/SGI/IRIX. - * libgeometry/axial_box.h: Fixed picky-compiler warnings. - * libbase/network.cpp: renamed struct sockaddr fsin since not - allowed. - * utilities/processor.cpp, utilities/parser.cpp: Compability fixes. - * plugin/Makefile.am: Fixed bug that made non-gnu make crash. - * autogen.sh: Don't run automake with '--gnu'. It'll figure it out - self. - -2006-08-29 Patrice Dumas - - * packaging/redhat/gnash.spec: unusefull gnash-devel - subpackage removed; groups changed; other minor cleanups. - -2006-08-29 Vitaly Alexeev - - * libbase\jpeg.cpp: fixed bug #17507 - -2006-08-29 Markus Gothe - - * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp: - added typecasting. - * libbase/container.h Fixed bugs for compilers missing ext/hashmap. - * libbase/log.h Fixed bugs for non-gcc-compilers. - * libbase/tu_config.h: Added namespace to exit() since MIPSPro is - picky. - -2006-08-29 Sandro Santilli - - * server/morph.cpp, server/morph.h, - Makefile.am: removed obsoleted files. - -2006-08-28 Markus Gothe - - * Disabled building of static-libraries as default. - * libbase/tu_opengl_includes.h: Modern Non-SGI OGL-ABIs include - glext.h in gl.h. - * Fixed isinf() and isnan() for platforms that doesn't include it - in C++ (It however usually is in the later C99, esp. in IRIX). - -2006-08-28 Sandro Santilli - - * libbase/utility.{cpp,h} (dump_memory_stats): removed compiler - warning. - * server/ActionExec.cpp, server/action.cpp, server/impl.cpp, - server/sprite_instance.h: removed "stream.h" inclusion. - * server/morph.cpp: log_msg -> log_parse, minor indentations - * server/parser/movie_def_impl.cpp (resolve_import): - fixed infinite loop. - -2006-08-28 Markus Gothe - - * Merged in klash-patch sent by Patrice Dumas . - * Misc clean-ups in headers. - * server/parser/action_buffer.cpp, server/tesselate.cpp, - serasobj/System.cppver/ActionExec.cpp, libgeometry/bsp.cpp, - libbase/image.cpp, libamf/amf.cpp: - Removed unused . - -2006-08-27 Markus Gothe - - * server/swf/tagloaders, server/ActionExec.cpp - server/swf/ASHandlers.cpp, libgeometry/kd_tree_dynamic.cpp - libamf/amf.cpp, libamf/amftest.cpp: Changed '+= 1' to '++'. - * Removed headers from log.{cpp,h} since it speed up compilation - time. Try avoiding unnecessary includes of as much as - possible. - * utilities/parser.cpp, utilities/processor.cpp: Fixed strange -h - output. - -2006-08-27 Vitaly Alexeev - - * libbase\utility.h, - * server\types.cpp, sprite_instance.cpp, - edit_text_character.cpp, button_character_instance.cpp: - Macromedia Flash changes infinite to zero when works a matrix - -2006-08-27 Vitaly Alexeev - - * backend\gnash.cpp, - * server\swf\tag_loaders.h, - * libbase\tu_opengl_includes.h, - * libbase\image.h: - porting to WIN32 - -2006-08-27 Markus Gothe - - * Merged in klash-patch sent by Patrice Dumas . - * configure.ac: Added "-cvs-BUILDDATE" to VERSION for making life - more easy when people file bugs and such. - * Fixed an issue with the moz-plugin, i.e. library-naming. - * server/parser/movie_def_impl.cpp: Optimized freeing memory. - * gui/gnash.cpp, plugin/player.cpp, utilities/parser.cpp, - backend/gnash.cpp(deprecated!), utilities/processor.cpp: - Clean-up and minor bugfixes related to empty logfiles. - -2006-08-27 Sandro Santilli - - * server/movie_def_impl.{h,cpp}: fixed _swf_end_pos for compressed - movie (needed after zlib_adapter fix); enabled get_bytes_loaded. - * libbase/zlib_adapter.cpp: fixed tell() function to include - header size. - * Split button.{h,cpp} into button_character_instance.{cpp,h}, - mouse_button_events.h and parser/button_character_def.{cpp,h}; - headers inclusion shaking. - -2006-08-26 Markus Gothe - - * server/asobj/Global.cpp, libbase/image.cpp: Found and fixed - memory leakage. - * Optimized the zlib code, which is a bottleneck according to my - profiling. - * Fixed macros/pthread.m4 for portability to other architectures. - See: http://autoconf-archive.cryp.to/acx_pthread.html. - * Added macros/archflag.m4 for optimizations. - See: http://autoconf-archive.cryp.to/ax_gcc_archflag.html - * server/render.cpp, server/xmlnode.cpp, server/xmlnode.h, - server/xmlattrs.cpp, server/xmlattrs.h, server/xml.h: - Don't include "log.h" unless debugging is on. Speeding up - compilation, especially on non-gcc compilers, since - is considered a hog. - * server/as_enviroment.cpp, server/as_enviroment.h, - server/movie_instance.cpp, server/timers.h, server/action.h - server/parser/bitmap_character_def.h, server/character.h - backend/gtksup.h, gui/sdlsup.h, gui/kdesup, gui/gtksup.h, - gui/gui.cpp, libamf/rtmp.h, libbase/network.h, libbase/URL.cpp - plugin/plugin.h, server/swf/ASHandlers.h, server/xmlsocket.h - server/asobjs/Video.h, server/asobjs/TextSnapshot.h, - server/asobjs/System.h, server/impl.h, server/asobj/MovieClip.cpp - server/sound.cpp, server/string.cpp, server/textformat.h - server/shm.h: - Remove "log.h" since not used. - -2006-08-26 Sandro Santilli - - * server/URLAccessManager.cpp (allow): always allow from local host. - * server/morph2.{cpp,h}, server/parser/morph2_character_def.{cpp,h}, - server/Makefile.am, server/parser/Makefile.am, server/impl.cpp, - server/swf/tag_loaders.cpp: - moved morph2 definition class to parser dir. - * server/render.cpp: add a DEBUG_RENDER_CALLS macro to - enable function calls info log. - -2006-08-25 Vitaly Alexeev - - * server\character.h, dlist.h, edit_text_character.h, - generic_character.h, movie.h, sprite_instance.h, button.cpp - fixed events handling bug. 3kines.swf is played now. - -2006-08-25 Markus Gothe - - * Misc header clean-ups... - * Minor variable assignment optimizations. - * libamf/rtmp.cpp: Replaced "stdlib.h" with . - * libbase/network.cpp: Always include . - * plugin/plugin.cpp, plugin/player.cpp: #include . - -2006-08-25 Markus Gothe - - * gui/sdl.cpp, gui/kde.cpp, libbase/network.cpp: Replaced - for speeding up compilation. - * libbase/tu_file.cpp: Changed structs to classes. - * server/gnash.h, backend/render_handler_xbox.cpp, libbase/tu_file.cpp - libbase/image.cpp, libbase/ogl.cpp, server/xmlsocket.cpp, - server/movie_interface.h, server/as_object.h, server/action.h: - libbase/utility.h, libbase/tu_types.h, libbase/tu_math.h, - libbase/tu_file.h, libbase/dlmalloc.h, server/asobj/GMath.h: - Changed #include to . - -2006-08-25 Markus Gothe - - * backend/sound_handler_mp3.cpp, backend/sound_handler_sdl.cpp, - backend/sound_handler_gst.cpp, backend/render_handler_xbox.cpp - backend/render_handler_xbox.cpp, backend/render_handler_d3d.cpp, - backend/render_handler_cairo.cpp, libbase/jpeg.cpp, - libgeometry/kd_tree_dynamic.cpp: Changed structs to classes. - * libbase/jpeg.cpp, libbase/utf8.cpp, libgeometry/kd_tree_dynamic.cpp, - libgeometry/bsp.cpp, plugin/player.cpp plugin/plugin.cpp: - Changed #include to . - -2006-08-24 Markus Gothe - - * backend/render_handler_ogl.cpp: Changing structs to classes - with everything public, mostly for understanding and readability - (it's the same thing in C++ afaik). - * server/parser/movie_def_impl.cpp, backend/render_handler_ogl.cpp: - inlining unlock()/lock() and opengl_accessible(). - * Fixed task #5837. - -2006-08-24 Sandro Santilli - - * server/sprite_instance.cpp, server/swf/tag_loader.cpp, - server/parser/text_character_def.h, - server/parser/text_character_def.cpp, - server/text.h, server/text.cpp: - moved 'text_character_def' class under server/parser/ - -2006-08-24 Vitaly Alexeev - - * server\URLAccessmanager.cpp, StreamProvider.cpp, dlist.cpp, - * libbase\URL.cpp - porting to win32 - -2006-08-24 Sandro Santilli - - * configure.ac, gui/Makefile.am, gui/gtk.cpp, gui/gui.cpp, - server/Makefile.am, server/MovieClip.cpp, server/MovieClip.h, - server/Object.h, server/action_buffer.cpp, server/action_buffer.h, - server/bitmap_character_def.h, server/character_def.cpp, - server/character_def.h, server/edit_text_character_def.cpp, - server/edit_text_character_def.h, server/movie_def_impl.cpp, - server/movie_def_impl.h, server/movie_definition.h, - server/shape_character_def.cpp, server/shape_character_def.h, - server/sprite_definition.cpp, server/sprite_definition.h, - server/sprite_instance.h, server/asobj/Makefile.am, - server/asobj/MovieClip.cpp, server/asobj/MovieClip.h, - server/parser/Makefile.am, server/parser/action_buffer.cpp, - server/parser/action_buffer.h, server/parser/bitmap_character_def.h, - server/parser/character_def.cpp, server/parser/character_def.h, - server/parser/edit_text_character_def.cpp, - server/parser/edit_text_character_def.h, - server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, - server/parser/movie_definition.h, - server/parser/shape_character_def.cpp, - server/parser/shape_character_def.h, - server/parser/sprite_definition.cpp, - server/parser/sprite_definition.h, - server/parser/text_character_def.h: - Moved some of parser's files under their own dir/lib (not yet - finished); also moved MovieClip under asobj/, where it belongs. - -2006-08-23 Sandro Santilli - - * server/swf_function.h, server/swf_function.cpp: - added missing include, out-lined set_length to avoid - action_buffer.h include. - * server/impl.h, server/swf_event.h, sprite_instance.cpp: - moved swf_event class into its own header. - * server/swf/ASHandlers.cpp (CommonGetUrl): simplified and fixed - URL parsing code by use of the URL class; added check for - NULL urls and comments about future improvements; use the - newly-exported URLAccessManager::allow function - * server/URLAccessManager.h, server/URLAccessManager.cpp, - server/Makefile.am, server/StreamProvider.cpp: - moved URLAccessManager code into it's own file, export a - single allow(URL&) function of it, updated StreamProvider - accordingly - -2006-08-23 Markus Gothe - - * server/movie_def_impl.cpp: Use pthread_cancel(pthread_self()) - instead of pthread_exit(NULL). - -2006-08-23 Sandro Santilli - - * server/Makefile.am, server/movie_instance.cpp, - server/movie_instance.h, server/sprite_instance.cpp, - server/sprite_instance.h, server/movie_def_impl.cpp, - server/movie_root.cpp: - new 'movie_instance' class derived from 'sprite_instance' - and representing the "main" movie read from a SWF file. - * libamf/amf.cpp, server/dlist.cpp: fixed compiler warnings, or - added some notes about problems arised from them. - -2006-08-23 Bastiaan Jacques - - * configure.ac, plugin/Makefile.am: For OpenBSD, omit some linker - options to successfully build the plugin. - * plugin/plugin{.cpp, h}: Cleanup: Remove threading code, because it's - broken and generally useless. - -2006-08-23 Vitaly Alexeev - - * server\sprite_instance.cpp: action_list.size() may be changed - due to actions - -2006-08-23 Vitaly Alexeev - - * server\dlist.cpp: That there was no crash gnash - we iterate characters through the copy of displaylist - -2006-08-23 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: commented assert(bi->m_texture_id); - -2006-08-23 Markus Gothe - - * libbase/network.cpp, server/xmlsocket.cpp, - server/shm.cpp: Fixed #include for fcntl.h so it conforms - to the POSIX-standard. - * gui/sdl.cpp: Fixed basename() under IRIX. - * libbase/tu_types.h: Fixed #include under IRIX. - * server/action.cpp: added extern "C" for "gdk/gdk.h". - * server/asobj/GMath.h: - Fixed #define __MATH_H__ under IRIX and other platforms. - -2006-08-23 Vitaly Alexeev - - * server\sprite_instance.cpp, sprite_instance.h: - The second attempt to fix goto_frame() bug - -2006-08-22 Sandro Santilli - - * server/dlist.cpp: removed signed/unsigned comparison warning. - * server/gnash.h: removed unused parameter warnings. - * server/render.h: doxygen comments. - * libbase/Thread.cpp: removed unused parameter warnings. - * server/as_value.cpp: removed const cast warning. - * server/font.cpp, server/textformat.cpp: - removed unused parameter warning. - * libbase/image.cpp: removed initialization order warning. - * macros/kde.m4: never add -fno-rtti. - -2006-08-22 Vitaly Alexeev - - * server\sprite_instance: fixed goto_frame() bug (I hope :-) ) - -2006-08-21 Sandro Santilli - - * server/swf/tag_loaders.cpp (do_init_action_loader): - fixed short read when not in verbose parse mode. - * server/sprite_instance.cpp: fix compiler warnings. - * server/movie_def_impl.{cpp,h}: use USE_SDL_THREADS macro - to switch between SDL and straight POSIX threads calls (defaults - to straight POSIX). - -2006-08-21 Sandro Santilli - - * gui/gnash.cpp: fix bug #17467 - * server/gnash.h: doxygen comments on render_handler struct - * utilities/processor.cpp: don't show -vp and -va options if - verbose parsing and action is not compiled in (bug #17367). - * gui/gnash.cpp: fix -vp when VERBOSE_ACTION is undefined (bug #17367). - * server/movie_def_impl.cpp: implement MovieLoader::lock - and MovieLoader::unlock for SDL. Fix MovieLoader::wait_for_frame - for SDL. - * gui/sdl.cpp: fix movie advance delay - * server/gnash.h: fixed compiler warning about initialization order. - * server/movie_def_impl.cpp: - fixed SDL version of signal_frame_loaded. - * server/movie_def_impl.cpp: - added LOAD_MOVIES_IN_A_SEPARATE_THREAD define to switch between - threaded or sequential movie load. - -2006-08-21 Vitaly Alexeev - - * server\movie.h: fixed a bit bit but opposite bug - -2006-08-21 Vitaly Alexeev - - * backend\render_handler_ogl.cpp: a bit cleanup - -2006-08-21 Vitaly Alexeev - - * server\movie_def_impl.cpp, gnash.h: - * backend\render_handler_ogl.cpp: - * libbase\image.cpp, image.h: - attempting to do multithread opengl - -2006-08-21 Bastiaan Jacques - - * server/{action_buffer.cpp, swf/ASHandlers{.cpp, .h}: Solve problems - associated with initialisation of SWFHandler's static variables by - making the variables in-function statics. - -2006-08-21 Vitaly Alexeev - - * server\movie_def_impl.h, movie_impl.cpp: SDL MovieLoader stuff - -2006-08-20 Bastiaan Jacques - - * server/{action_buffer.cpp, swf/ASHandlers.cpp}: Initialise - SWFHandlers::_handlers before class SWFHandlers is instantiated (bug - #17476). - -2006-08-20 Sandro Santilli - - * utilities/processor.cpp: fixed bug #17367 - -2006-08-19 Rob Savoye - - * server/swf/ASHandlers.cpp (CommonGetUrl): Check the domain, and - don't go to the remote URL if it's in the blacklist. This ignores - all attempts to allow the non-local domain if listed. - -2006-08-19 Bastiaan Jacques - - * plugin/klash/klash_part.cpp: Make extra sure we don't kill all - processes. - -2006-08-19 Sandro Santilli - - * server/sprite_instance.h, server/sprite_instance.cpp - (execute_frame_tags, execute_frame_tags_reverse): - modified to take size_t for frame number; small cleanups - and optimizations by use of standard algorithms. - * server/button.cpp, server/morph2.cpp: added missing - IF_VERBOSE_PARSE wrapping. - * server/swf/ASHandlers.cpp: fixed read of 'skip' count in - ActionWaitForFrame handler. Commented out 'testing' logging - from both WaitForFrame handlers (I'd consider them tested). - * server/movie_def_impl.h, server/movie_def_impl.cpp, - server/sprite_instance.cpp: added MovieLoader::lock() - and unlock() functions, lock loader at every iteration - of read_all_swf() and from within wait_for_frame, - only ensure next frame is loaded (rather then loading - next *chunk* at every advance_root call). - -2006-08-18 Vitaly Alexeev - - * server\sprite_instance.cpp: a bit cleanup - -2006-08-17 Vitaly Alexeev - - * server\dlist.h, dlist.cpp, sprite_instance.cpp: - added deleting the display objects created during execution - of frames 2,... and not displayed in the 1-st frame. - Macromedia Flash does not call remove display object tag - for 1-st frame - * server\movie_def_impl.cpp: _loader.start() is switched off - temporarily on win32 - * win32\gnash\gnash.vcproj: updated gnash version - -2006-08-16 Vitaly Alexeev - - * server\character.h, sprite_instance.cpp: - If we already have object with same events on this plane, - then move it instead of replacing - -2006-08-16 Vitaly Alexeev - - * server\movie_def_impl.h, libamf\amf.cpp, libamf\rtmp.cpp: - porting to WIN32 - * win32\gnash\gnash.vcproj: added pthread.h - -2006-08-14 Sandro Santilli - - * server/movie_def_impl.cpp, server/movie_def_impl.h, - server/movie_definition.h, server/sprite_definition.h, - server/swf/tag_loaders.cpp: initial implementation of - movie loading into a separate frame. Needs more cleanup - work, but the intro1.swf and elvis.swf seems to be both - playing nice. - -2006-08-14 Sandro Santilli - - * server/swf/tag_loaders.h, server/swf/tag_loaders.cpp: - allow define_font_info_loader to be called for DEFINEFONTINFO2 - tag, updated doc. - * libbase/container.cpp: removed extra ';' - * server/font.cpp, server/font.h, server/impl.cpp, server/swf.h: - initial support for DefineFontInfo2 tag, stricter use of - SWF::tag_type type. - -2006-08-14 Rob Savoye - - * doc/C/rtmp.xml: Add RTMP chapter with graphic of the RTMP - protocol. - * doc/C/gnash.xml: Add entity for rtmp.xml. - * doc/C/Makefile.am: Add rtmp.xml. - * doc/C/amf.xml: Rewrite AMF chapter now that I understand how it - really works. - - * macros/atk.m4: Look for atk.h, not atkgl.h. - * macros/opengl.m4: Put the single tick mark before the rest of - the statement so it gets expanded correctly. - * macros/gtkglext.m4: Add -I when --with-opengl-incl is used. Also - set the version when using this option so the other tests still - work. - -2006-08-14 Tomas Groth Christensen - - * doc/C/internals.xml: Added info about how the soundhandlers works. - -2006-08-13 Sandro Santilli - - * server/edit_text_character_def.cpp, server/shape_character_def.cpp, - server/sprite_definition.cpp, server/styles.cpp, server/text.cpp, - server/tools.cpp, server/types.cpp, server/swf/tag_loaders.cpp: - remove newline ending from log_parse calls. - * server/stream.cpp (open_tag): add SWF offset in parse logging. - -2006-08-13 Sandro Santilli - - * libbase/log.cpp: fixed strip of CR ending in input operator. - * gui/gnash.cpp (fs_callback): removed unused parameter warning, - reduced log_msg calls. - * libamf/rtmp.cpp, libbase/network.cpp, libbase/network.h, - server/fontlib.cpp: removed compiler warnings. - -2006-08-13 Patrice Dumas - - * macros/pango.m4: fixed pango version detection. - -2006-08-13 Sandro Santilli - - * server/character.cpp, server/character.h: - safely handle ActionScript code referencing '..' - from the root character. - -2006-08-12 Rob Savoye - - * Makefile.am: Build klash if it's enabled, but the plugin - isn't. - * backend/Makefile.am: Add lib dependancies for libgnashbase and - libgnashserver. - * gui/Makefile.am: Spell DEPENDANCIES right. - * libamf/Makefile.am: Make amftest only build for testing. - * libbase/Makefile.am: Add mor dependent libraries, add ogl.h to - the package. - * macros/kde.m4: Fix how KDE_LDFLAGS gets set. - * server/Makefile.am: Add lib dependancies for libgnashbase and - libgnashasobjs. - * server/asobj/Makefile.am: Add lib dependancies for libgnashbase and - libgnashamf. - -2006-08-12 Sandro Santilli - - * server/Makefile.am, server/thread.h: removed duplicated code - (use libbase/Thread.h) - -2006-08-11 Sandro Santilli - - * gui/gtk.cpp: removed unused parameter warnings. - * backend/sound_handler_gst.cpp: removed compiler warnings; - minor optimizations and cleanups. - -2006-08-11 Vitaly Alexeev - - * plugin\win32\npgnash.rc: updated include file name - -2006-08-11 Vitaly Alexeev - - * libbase\curl_adapter.cpp: fixed VC++ compiler error - -2006-08-11 Vitaly Alexeev - - * server\swf\ASHandlers.cpp: removed assert(0), - no actionscript operation should lead to crash player, including - "x=new MyClass();". - -2006-08-10 Rob Savoye - - * gui/Makefile.am: Add more libraries to AM_LDFLAGS. - * libamf/Makefile.am: Remove the rest of the amftest. - * libamf/amf.cpp, amf.h, rtmp.cpp, rtmp.h: Much rearranging of - code, plus additional code till libamf actually works now. - * libamf/rtmp.h: Use gnash namespace instead of rtmp one. - * libbase/log.h, log.cpp: Add support to hexify to optionally - print ascii characters in a hex dump. - * libbase/network.cpp: Add WriteNet(). - * libbase/utility.h: Include math.h for Darwin. - * macros/gtkglext.m4: Use pkg-config if it exists. - * macros/kde.m4: Add -L to KDE_LDFLAGS. - * plugin/klash/klash.cpp: External variables are now defined - here. - * macros/pango.m4: Work around PPC Linux bug (YDL) with gtkglext - and pango library dependancies. - -2006-08-10 Vitaly Alexeev - - * gui\sdl.cpp, sdlsup.h: added key events handler and removed - showlogo(useless) - -2006-08-10 Bastiaan Jacques - - * plugin/plugin{.cpp,.h}: General plugin code cleanup. - -2006-08-10 Vitaly Alexeev - - * gui\sdl.cpp, sdlsup.h: added progress bar & showlogo stuf - -2006-08-10 Sandro Santilli - - * gui/gui.cpp: always call advance_root, no matter play_state - (the advance_root function should take care of that); reintroduce - check for gui loop - * libbase/curl_adapter.cpp: removed compiler warnings. - -2006-08-10 annonygmouse - - * gui/gtk.cpp, gui/gui.cpp: - make "CTRL- q, w, p" and ESC work again. - -2006-08-10 Sandro Santilli - - * server/asobj/NetConnection.cpp: added 'using namespace rtmp' - directory, erroneously removed by a previous commit. - * server/action_buffer.cpp: fixed hexify() call after it's - signature change. - -2006-08-09 Vitaly Alexeev - - * server\dlist.cpp: It is corrected (already again) - a bug leading the wrong order of execution actionscript code/events - -2006-08-09 Vitaly Alexeev - - * win32\readme.txt: warning was reduced - * npgnash.dll: updated - -2006-08-09 Vitaly Alexeev - - * plugin\plugin.cpp, plugin.h: added win32 multithread plugin stuff - * plugin\player.cpp, player.h : removed, becouse source it is moved - to plugin.cpp & plugin.h - * win32\npgnash.vcproj: updated options - * gnash.vcproj: removed, becouse it is moved to \win32\gnash folder - -2006-08-09 Bastiaan Jacques - - * plugin/plugin.cpp: Revise URL parsing to work for a single - option=value pair. - -2006-08-09 Bastiaan Jacques - - * plugin/plugin.cpp: Don't abort on URL arguments without a name; - merely ignore them (bug #17161). - -2006-08-09 Bastiaan Jacques - - * gui/gtk_glue_gtkglext.cpp: Fix typo. Properly dereference the - argument to getopt() (bug #17265). - * gui/gui.cpp: Remove an unused variable. - -2006-08-08 Rob Savoye - - * macros/atk.m4, curl.m4, glib.m4, gtk2.m4, jpeg.m4, libXML.m4, - mad.m4, pango.m4, sdl.m4: Add /opt/local,{include,lib}, which is - the path used by Darwin Ports. - * server/as_object.h: Add math.h for Darwin. - * server/movie_def_impl.h: Use %zu to print a size_t. - * server/sprite_instance.cpp: Add math.h for Darwin. - * server/asobj/Global.cpp: Include GMath.h now. - * server/asobj/Makefile.am: Renameed Math.h to Gmath.h. - * server/asobj/Math.cpp: Include GMath.h now. - * server/asobj/NetConnection.cpp: Removed lines 49-48. - * server/asobj/Math.h: Renamed to Gmath.h to avoid a name - collision on Darwin. - -2006-08-08 Vitaly Alexeev - - * gui\gnash.cpp: ported to win32 - * gui\NullGui.cpp: ported to win32 - * gui\sdl.cpp: ported to win32 - -2006-08-08 Vitaly Alexeev - - * plugin\mozilla-sdk\npplat.h: ported to win32 - * libamf\amf.cpp: fixed compiler warning - * libbase\container.cpp: stricmp --> _stricmp - * libamf\rtmp.cpp: ported to win32 - * libbase\tu_timer.cpp: added win32 include file - * ibbase\URL.cpp: cleanuped comment - * win32\gnash\gnash.vcproj: updated VC++ options - * win32\npgnash\npgnash.vcproj: updated VC++ options - -2006-08-08 Sandro Santilli - - * gui/gnash.cpp, utilities/processor.cpp: notify about -vp -va - requests being ignored when VERBOSE_ACTION and VERBOSE_PARSE - are undefined. - * server/dlist.cpp: commented out GNASH_REPORT_FUNCTION (we should - also make these no-op with a macro). - -2006-08-08 Sandro Santilli - - * libbase/log.cpp (log_action): don't check getActionDump(), - assume callers use IF_VERBOSE_ACTION instead. - * libbase/log.h: added IF_VERBOSE_ACTION and VERBOSE_ACTION - macros (latter is defined by default). - * server/ActionExec.cpp, server/action_buffer.cpp, server/array.cpp, - server/as_environment.cpp, server/button.cpp, server/morph.cpp, - server/styles.cpp, server/swf/ASHandlers.cpp: wrap all log_action - calls inside IF_VERBOSE_ACTION - -2006-08-08 Sandro Santilli - - * server/text.cpp: wrapper log_parse calls in IF_VERBOSE_PARSE. - * libbase/log.h: fixed IF_VERBOSE_PARSE macro - -2006-08-08 Sandro Santilli - - * libbase/log.cpp (log_parse): removed check for - dbglogfile.getParserDump() - it's checked by IF_VERBOSE_PARSE - macro. - * libbase/log.h: added IF_VERBOSE_PARSE macro, either no-op - or checks for dbglogfile.getParserDump(), depending on - VERBOSE_PARSE macro (defaults to 1). - * server/edit_text_character_def.cpp, server/font.cpp, - server/movie_def_impl.cpp, server/shape_character_def.cpp, - server/sprite_definition.cpp, server/stream.cpp, server/styles.cpp, - server/swf/tag_loaders.cpp: wrapped all log_parse calls inside - IF_VERBOSE_PARSE(). - -2006-08-07 Sandro Santilli - - * server/swf/ASHandlers.cpp: allow WaitForFrame actions - to always wait (and never skip actions) by mean of - a compile-time define. - * server/sprite_instance.cpp: simplified code in advance_root - to use the new specialized movie_definition::load_next_frame_chunk() - * server/movie_def_impl.cpp: implemented frame chunk loading, - with chunks currently set to 64 frames (FRAMELOAD_CHUNK def); - Added DEBUG_FRAMES_LOAD define. - * server/movie_definition.h, server/sprite_definition.h, - server/movie_def_impl.h: - Added load_next_frame_chunk() virtual method. - * server/ActionExec.cpp (skip_actions): simplified code. - * server/swf/ASHandlers.cpp (ActionBranchIfTrue): - assertion checking, minor cleanup. - * gui/gui.cpp: removed unused parameters warnings - * server/stream.h: added skip_bytes() method - * server/swf/tag_loaders.cpp: fixed compiler warnings. - -2006-08-07 Bastiaan Jacques - - * server/movie_def_impl.h: Fix return types to match declarations. - -2006-08-07 Sandro Santilli - - * server/asobj/NetConnection.cpp: added rtmp namespace in - search path (didn't build with g++ 3.3.5 otherwise) - -2006-08-06 Vitaly Alexeev - - * libbase/URL.cpp: added win32 path parsing - * win32: added new folder with VC++ projects of gnash & gnash plugin. - This folder also contains executable files: "gnash.exe" and firefox - plugin "gnash.dll". - * plugin/win32/: added new folder with stuff of Win32 Firefox plugin. - * gnash.vcproj: Remove as this now live in win32. - -2006-08-05 Rob Savoye - - * configure.ac: Rewrite strcasecmp to use AC_TRY_COMPILE instead - of AC_CHECK_HEADER which keeps failing on FC5-x86. - * libbase/container.cpp, container.h, jpeg.cpp, membuf.cpp, - network.cpp, rc.cpp, triangulate_impl.h, tu_file.cpp, utility.cpp, - zlib_adapter.cpp, axial_box.h, collision.cpp: Minor tweaks to - remove compiler warnings with the latest GCC on FC5. Printing - size_t should use %zd, and many unused parameters are commented - out to reduce warnings. - * libgeometry/kd_tree_dynamic.cpp, kd_tree_packed.cpp: Minor - tweaks to remove compiler warnings with the latest GCC on - FC5. Printing size_t should use %zd, and many unused parameters - are commented out to reduce warnings. - * macros/kde.m4: Use dnl to comment out serial, it's a reserved - word now. - * server/ActionExec.cpp, MovieClip.cpp, action_buffer.cpp, - as_environment.h, button.cpp, dlist.cpp, font.cpp, fontlib.cpp, - movie.h, movie_root.cpp, shape_character_def.cpp, /shm.cpp, - sound.cpp, sprite_definition.cpp, sprite_instance.cpp, - sprite_instance.h, xml.cpp, xmlnode.cpp, xmlsocket.cpp: Minor - tweaks to remove compiler warnings with the latest GCC on - FC5. Printing size_t should use %zd, and many unused parameters - are commented out to reduce warnings. - * server/asobj/NetConnection.cpp, NetConnection.h: Minor tweaks to - remove compiler warnings with the latest GCC on FC5. Printing - size_t should use %zd, and many unused parameters are commented - out to reduce warnings. - * server/swf/ASHandlers.cpp: Minor tweaks to remove compiler - warnings with the latest GCC on FC5. Printing size_t should use - %zd, and many unused parameters are commented out to reduce - warnings. - * utilities/parser.cpp: Minor tweaks to remove compiler warnings - with the latest GCC on FC5. Printing size_t should use %zd, and - many unused parameters are commented out to reduce warnings. - * plugin/klash/Makefile.am: Add libamf. - -2006-08-05 Sandro Santilli - - * server/ActionExec.cpp: handled case where pc gets far after stop_pc - * server/movie_def_impl.cpp: added comments about assertion in - ensure_frame_loaded() for target frame < loaded frame case. - * server/sprite_definition.h: fixed ensure_frame_loaded() to not - proxy to movie_definition but rather always return true (includes - comment about it) - * server/sprite_instance.cpp: added FRAMELOAD_CHUNK define to load - frames in chunks in advance_root(); reintroduced ensure_frame_loaded() - call in goto_frame() - * server/sprite_instance.h: added get_loaded_frame() public method. - * server/swf/ASHandlers.cpp: simplified WaitForFrame action handlers - to use the new sprite_instance::get_loaded_frame() method. - -2006-08-04 Sandro Santilli - - * server/swf/ASHandlers.cpp: implemented ActionWaitForFrame - and ActionWaitForFrameExpression() - * server/sprite_instance.cpp, server/sprite_instance.h: - added get_frame_number(as_value& frame_spec) for common - use in swf tags. - * server/movie_definition.h: added doxygen comment - * server/ActionExec.cpp, server/ActionExec.h: added - skip_actions() for use with WaitForFrame - * server/execute_tag.h: removed unused parameter warning. - * gui/NullGui.h: removed unused parameters warnings. - * server/character.h, server/movie_def_impl.cpp, - server/movie_def_impl.h, server/movie_definition.h, - server/movie_interface.h, server/movie_root.cpp, - server/movie_root.h, server/sprite_definition.h, - server/sprite_instance.cpp, server/sprite_instance.h: - Fixed more frame number types to be size_t rather then int; - added some doxygen comments; fixed ensure_frame_loaded calls - to not erroneusly using sprite frames rather then movie frames; - removed ensure_frame_loaded calls from goto_frame (will need - further thinking about it). - -2006-08-04 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: added rule to cleanup - temporary files created by new ming versions. - * server/sprite_instance.cpp (init_builtins): don't init builtins - more then once. - * testsuite/misc-ming.all/spritehier.c: fixed code to really - include 3 DoAction blocks. - -2006-08-04 Sandro Santilli - - * libbase/smart_ptr.h, server/action_buffer.h, server/character.h, - server/impl.h: removed unused parameter warning. - * testsuite/misc-ming.all/spritehier.c: updated to test - framesloaded/currentframe. - * server/sprite_instance.cpp: fixed _framesloaded - member to return loaded (not total) frames. - * server/sprite_definition.cpp: added check for - nested DefineSprite (malformed SWF). - -2006-08-03 Sandro Santilli - - * server/character.h, server/impl.cpp, server/movie.h, - server/movie_def_impl.cpp, server/movie_def_impl.h, - server/movie_definition.h, server/movie_interface.h, - server/movie_root.cpp, server/movie_root.h, - server/sprite_definition.cpp, server/sprite_definition.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/swf/ASHandlers.cpp: - Implemented incremental loading of movie (streaming); - fixed lots of references to frame numbers to be expressed - with size_t type rather then int. - - -2006-08-03 Sandro Santilli - - * server/swf/tag_loaders.cpp: warn only once and avoid parsing - tags when no GST sound backend is selected and unsupported sound - tags are encountered. - * server/gnash.h, server/impl.cpp, server/movie_def_impl.cpp, - server/movie_def_impl.h, server/sound.cpp, server/sound.h, - server/swf/tag_loaders.cpp, server/swf/tag_loaders.h: - Moved sound tag loaders to tag_loaders, moved s_sound_handler - instance to globals namespace, made adpcm_expand a static - method of sound_handler class. - -2006-08-03 Sandro Santilli - - * libbase/rc.cpp: initialize RcInitFile::_delay to 0 (undefined). - * server/as_environment.cpp, server/swf/ASHandlers.cpp: - removed superflous newlines at end of debug messages. - -2006-08-02 Sandro Santilli - - * server/font.cpp, server/font.h: tu_hash => std::map, minor - optimizations, more verbose parsing. - * gui/Makefile.am: use a GNASH_LIBS variable, to make future - additions cleaner. Fixes missed link of libamf.la in 'gnash' - executable, - -2006-08-01 Rob Savoye - - * libamf/Makefile.am: Don't bother to build amftest, now that I - can debug with live data. - - * libamf/amf.cpp, amf.h: Changes for cleaner 64 bit support. - * libamf/rtmp.cpp, rtmp.h: Read multiple packets till the entire - body is read in. - * macros/kde.m4: Remove 64 libraries as weel as 32 bit ones for - sed. - -2006-08-01 Rob Savoye - - * configure.ac: Change testing to disabled by default. - * Makefile.am: Always build libamf now, the networking code - requires it. - * gui/Makefile.am: Add libamf to the link line. - * gui/gnash.cpp: Add support for reading the config file. - * libamf/Makefile.am: Add RTMP support files. - * libbase/network.cpp: Add = operator. Add support for passing a - timeout to all functions using select(). - * libamf/rtmp.h, rtmp.cpp: New RTMP protocol support, both client - side and server side. - * libamf/protocol.h: Bases class for network protocols. - * libbase/network.h: Always compile in the accesors, the = - operator needs them. - * libbase/rc.cpp, rc.h: Add documentroot variable. - * plugin/Makefile.am: Add libamf to the link line. - * server/asobj/Makefile.am: Add libamf to the link line. - * server/asobj/NetConnection.cpp: Add establishing the RTMP - connection for connect(). - * utilities/Makefile.am: Add libamf to the link line. - -2006-08-01 Sandro Santilli - - * server/font.h: fixed extra qualification in declaration (bug #17247) - * configure.ac: output cleanups - * server/shape_character_def.cpp: cleanups in read_fill_styles - and read_line_styles. - -2006-08-01 annonygmouse - - * gui/gnash.cpp, gui/gtk.cpp, gui/gtksup.h, gui/gui.h, gui/sdl.cpp, - gui/sdlsup.h: add Gui::createWindow() function taking window - title, with default implementation discarding it. Changed - gui/gnash.cpp to use the new signature. - -2006-08-01 Sandro Santilli - - * server/font.h, server/font.cpp: split read of DefineFont and - DefineFont2 tags - * server/swf/tag_loaders.cpp: more use of symbolic names for SWF tags. - * server/samples/sound1.README: added description of sound1.swf. - * backend/Makefile.am, backend/sound_handler_mp3.cpp, - backend/sound_handler_sdl.cpp, server/Makefile.am, - server/sound_handler_mp3.cpp: - Moved sound_handler_mp3 from server/ to backend/, - enabled build (needs --enable-sound=sdl --enable-mp3) - * configure.ac: disable sound by default, set nogo=true - when sdl sound is requested but dependencies are not - met (bug#17225) - -2006-07-31 Sandro Santilli - - * gui/Makefile.am, gui/NullGui.cpp, gui/NullGui.h, - gui/gnash.cpp, gui/gui.h: - Moved NullGui class into its own files, implemented - frame delay in NullGui so that sound doesn't choke. - -2006-07-31 Sandro Santilli - - * gui/gui.h: added NullGui class definition. - * gui/gnash.cpp: use Gui trough a pointer, to allow for - dynamic polymorphism. Use NullGui when rendering is - disabled. - -2006-07-30 Rob Savoye - - * libbase/Thread.h, Thread.cpp: Base class for handling threads. - * server/network.h, network.cpp: Remove as they now live in - libbase. - * server/Makefile.am: Remove network. - * libbase/network.h, network.cpp: Move from server as this is - really a base class. - * server/Makefile.am: Add network to libbase library. - -2006-07-29 Sandro Santilli - - * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: - merged GetUrl and GetUrl2 common code into a CommonGetUrl - method. - * server/movie_root.cpp, server/movie_root.h: - assert that movie_root::get_url is never called. - -2006-07-29 Rob Savoye - - * macros/glib.m4: Use pkg-config if it exists. - -2006-07-29 Sandro Santilli - - * libbase/URL.cpp, libbase/URL.h, server/StreamProvider.cpp: - moved host security checking from URL class to StreamProvider - class. Do not check security for local files anymore, and - prevents checking security on temporary URL instances - (used for relative urls resolution) - -2006-07-29 Sandro Santilli - - * testsuite/libbase/Makefile.am, plugin/Makefile.am, - testsuite/libbase/Makefile.am: - commented out AM_LDFLAGS (rely on helper libs deps) - * backend/Makefile.am: make sure GLIB_LIBS is listed - before other libraries - * gui/Makefile.am, utilities/Makefile.am: - add GLIB_LIBS to AM_LDFLAGS to make sure - user-provided paths are used rather then the - ones found by libtool in dependent packages - (seems not the cleanest solution, but it worked for me) - -2006-07-29 Sandro Santilli - - * macros/pthreads.m4: don't add -I/usr/include - (should already be in the default search path) - * gui/gnash.cpp: fixed typo in -r help - * gui/Makefile.am: comment out AM_LDFLAGS (rely on dependencies - extracted from .la files) - * Makefile.am: add KDE_INCLUDES and KDE_LDFLAGS to - 'dumpconfig' output. - -2006-07-28 Rob Savoye - - * macros/opengl.m4: Make sure glu.h and libGLU also exist. - * macros/kde.m4: Don't force KDE_LDFLAGS to have /usr/lib. - * macros/libXML.m4: Remove /usr/lib from the output of - xml2-config. - * configure.ac: Only enable -pedantic -ansi when - --enable-lotsa-warnings is used when configuring. - -2006-07-28 Sandro Santilli - - * macros/libXML.m4: don't use -L when lib dir is /usr/lib - (this prevents polluting the libs search path). - Note that this won't work if xml2-config spits out -L/usr/lib, - but you can still override it with explicit --with-xml-libraries. - -2006-07-27 Sandro Santilli - - * utilities/Makefile.am: remove all LIBS references, deps - are derived from Gnash libs (simplifies things a lot) - * macros/glib.m4: Fix the fix of --with-glib-lib. - -2006-07-27 Rob Savoye - - * macros/glib.m4: Fix --with-glib-incl and --with-glib-lib options - to actually work. - -2006-07-27 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp: Made the log messages more - informative. - -2006-07-27 Bastiaan Jacques - - * configure.ac: Allow us to specify --enable-sound=none. Default to - -pedantic -Wno-long-long for GCC. - * backend/render_handler_ogl.cpp: Remove unneeded #includes. - * gui/gtk_glue_cairo{.cpp, h}: Move an include to the .cpp file, - where it's actually used. - * libbase/jpeg.cpp: Don't let jpeglib.h redefine HAVE_STDLIB_H. - * libbase/Makefile.am: Remove ogl{.cpp,h} from the build. - * macros/cairo.m4: Add -lcairo to the Cairo LDFLAGS, if needed. - * plugin/plugin.cpp: trivially fix warnings. - * server/shm.cpp: Remove an unused variable. - * server/asobj/Date.cpp: Make sure the recipient buffer size - matches the size parameter passed to snprintf(), to prevent - overflows. - -2006-07-27 Sandro Santilli - - * macros/gstreamer.m4: fixed handling of --with-gst-lib, - big cleanups - * utilities/Makefile.am: added GSTREAMER_LIBS - * doc/C/gnash.xml: updated doc for -r switch - * gui/gnash.cpp: changed semantic of -r switch: - 0: disable both rendering and sound - 1: enable rendering only (changed!) - 2: enable sound only (as before) - 3: enable both (new, previously done by 2) - -2006-07-27 Bastiaan Jacques - - * all over the place: Facilitate the use of -pedantic in combination - with -ansi by avoiding non-ISO C++. Avoid extra semicolons. Use the - `l' instead of the `z' length modifier in printf-style sequences. - -2006-07-27 Ivor Blockley - - * gui/{gtk.cpp, gui.cpp, gui.h, sdl.cpp}, server/{movie.h, - movie_interface.h, movie_root.cpp, movie_root.h}: Make sure that no - mouse events are ignored by handling them outside of the advance_movie - loop. - -2006-07-27 Sebastià Annonygmouse - - * plugin/plugin.cpp: Don't assume anything about the value of - string::npos. - -2006-07-26 Tomas Groth Christensen - - * gnash.vcproj: Added backend/sound_handler_gst.cpp. - * backend/sound_handler_gst.cpp: Use of more gstreamer plugins. - * backend/gnash.cpp, backend/sound_handler_sdl.cpp, - plugin/player.cpp, plugin/klash/klash.cpp, server/gnash.h, - server/sound.cpp: Use SOUND_GST and SOUND_SDL to select which - soundbackend to use. - * server/swf/ASHandlers.cpp: Stop soundplayback when gotoframe - and stop is called. - -2006-07-26 Sandro Santilli - - * gui/gnash.cpp: use SOUND_GST and SOUND_SDL to switch - between sound handlers. - * utilities/Makefile.am: add CAIRO_LIBS. - * macros/gtk2.m4: fixed typo - * libbase/Makefile.am: don't build ogl.cpp when not using OPENGL - rendered. Don't build tu_file_SDL.cpp if HAS_SDL is not set. - * configure.ac: don't complain about missing SDL_Mixer - if Gstreamer sound is requested - -2006-07-26 Vitaly Alexeev - - * server/movie_def_impl.cpp: fixing bug #17110 - * server/sprite_instance.cpp: xscale & yscale may be > 100 - -2006-07-26 Vitaly Alexeev - - * server/AutoExec.cpp: small optimization is done - -2006-07-26 Sandro Santilli - - * configure.ac: print GSTREAMER flags if gst sound is enabled - (also abort if the lib is not found) - * macros/glib.m4: fixed to allow for custom glib installations - * configure.ac, backend/Makefile.am: add --enable-sound option - to select between SDL or GSTREAMER - * backend/sound_handler_gst.cpp: don't use broken HAVE_GST_GST_H - macro, rather trust builder and use what's specified in - --enable-sound - -2006-07-26 Bastiaan Jacques - - * backend/sound_handler_gst.cpp: When reallocating, don't forget to - copy the old buffer contents. - -2006-07-25 Sandro Santilli - - * configure.ac: move XML2 and GLIB macro calls before gstreamer - one, so we can use LIBXML_CFLAGS and GLIB_CFLAGS when checking - for gstreamer headers. - * macros/gstreamer.m4: always run AC_CHECK_HEADERS for gstreamer - so to get HAVE_GST_GST_H defined; fixed AC_CHECK_LIB call to - use an actually available function in libgstreamer-0.10.so - * macros/gstreamer.m4: --with-gstreamer => --with-gst, - look for libgstreamer-0.10.so rather then for libgstplaybin.so, - fixed handling of --with-gst-libs (was using value given to - --with-gst-incl instead) - * libbase/log.cpp: another small optimization. - * server/ActionExec.cpp: don't call stack dumper - unless -va is given (another optimization) - -2006-07-25 Bastiaan Jacques - - * configure.ac: The correct option is --enable-plugin, not - --disable-plugin. - * backend/sound_handler_gst.cpp: Don't use realloc() on operator - new-allocated pointers. Do some trivial cleanup. - * backend/sound_handler_sdl.cpp: Trivially fix warnings. - * server/edit_text_character.cpp: Likewise. - * server/sound.cpp: Ensure that the sample rate is in the acceptable - range, to avoid invalid memory accesses. - -2006-07-25 Vitaly Alexeev - - * libbase/log.cpp: small optimization is done - -2006-07-25 Rob Savoye - - * macros/gstreamer.m4: Fix the --with options. Change to - --with--gst, instead of --with-gstreamer. Look for the correct - header file and library. - -2006-07-25 Lukasz Stelmach - - * macros/sdl.m4: fix --with-sdl-mixer-lib handling. - -2006-07-25 Vitaly Alexeev - - * server/edit_text_character.h, edit_text_character.cpp: - fixed input_edit_text cursor bug (center, right alignment) - -2006-07-25 Sandro Santilli - - * plugin/klash/Makefile.am: fixed libgnashasobj.la path. - * backend/Makefile.am: gtk stuff is source for - the deprecated backend/gnash.cpp, not libbackend - (which should rely on RENDERER_SORCES instead) - -2006-07-25 Rob Savoye - - * Makefile.am: Print the Gstreamer paths for dumpconfig. - * macros/pkg.m4: Add macros to find pkg-config. - * macros/gstreamer.m4: If pkg-config exists, use it, otherwise - look for the correct header file and libraries. - * configure.ac: Look for pkg-config. - -2006-07-24 Sandro Santilli - - * macros/gstreamer.m4: report result of headers checking - (note: doesn't work with required gstreamer version) - * plugin/Makefile.am: fixed reference to libgnashasobjs.la - -2006-07-24 Tomas Groth Christensen - - * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, - server/button.cpp, server/gnash.h, server/movie_def_impl.h, - server/movie_definition.h, server/sound.cpp, - server/sprite_definition.h, server/asobj/ASSound.cpp: - Restructured the way sound streams are treated. Not much different - in playing yet, but it will help later. - -2006-07-24 Vitaly Alexeev - * gnash.vcproj: added /server/asobj files - * server/swf/ASHandlers.h: small optimization is done - * server/swf/ASHandlers.cpp: small optimization is done - -2006-07-24 Tomas Groth Christensen - - * Makefile.am, backend/Makefile.am, backend/gnash.cpp, - backend/sound_handler_gst.cpp gui/gnash.cpp, plugin/player.cpp, - server/gnash.h: Added the new Gstreamer based soundbackend. It still - needs some work! - -2006-07-23 Sandro Santilli - - * gui/gnash.cpp: fixed delay to respect FPS. - * configure.ac, backend/Makefile.am, gui/Makefile.am, - server/ASSound.cpp, server/ASSound.h, server/Boolean.cpp, - server/Boolean.h, server/Camera.cpp, server/Camera.h, - server/Color.cpp, server/Color.h, server/ContextMenu.cpp, - server/ContextMenu.h, server/CustomActions.cpp, - server/CustomActions.h, server/Date.cpp, server/Date.h, - server/Error.cpp, server/Error.h, server/Global.cpp, server/Key.cpp, - server/Key.h, server/LoadVars.cpp, server/LoadVars.h, - server/LocalConnection.cpp, server/LocalConnection.h, - server/Makefile.am, server/Math.cpp, server/Math.h, - server/Microphone.cpp, server/Microphone.h, server/Mouse.cpp, - server/Mouse.h, server/MovieClipLoader.cpp, server/MovieClipLoader.h, - server/NetConnection.cpp, server/NetConnection.h, server/NetStream.cpp, - server/NetStream.h, server/Selection.cpp, server/Selection.h, - server/SharedObject.cpp, server/SharedObject.h, server/Stage.cpp, - server/Stage.h, server/System.cpp, server/System.h, - server/TextSnapshot.cpp, server/TextSnapshot.h, server/Video.cpp, - server/Video.h, server/asobj/ASSound.cpp, server/asobj/ASSound.h, - server/asobj/Boolean.cpp, server/asobj/Boolean.h, - server/asobj/Camera.cpp, server/asobj/Camera.h, - server/asobj/Color.cpp, server/asobj/Color.h, server/asobj/.cvsignore, - server/asobj/ContextMenu.cpp, server/asobj/ContextMenu.h, - server/asobj/CustomActions.cpp, server/asobj/CustomActions.h, - server/asobj/Date.cpp, server/asobj/Date.h, server/asobj/Error.cpp, - server/asobj/Error.h, server/asobj/Global.cpp, server/asobj/Key.cpp, - server/asobj/Key.h, server/asobj/LoadVars.cpp, server/asobj/LoadVars.h, - server/asobj/LocalConnection.cpp, server/asobj/LocalConnection.h, - server/asobj/Makefile.am, server/asobj/Math.cpp, server/asobj/Math.h, - server/asobj/Microphone.cpp, server/asobj/Microphone.h, - server/asobj/Mouse.cpp, server/asobj/Mouse.h, - server/asobj/MovieClipLoader.cpp, server/asobj/MovieClipLoader.h, - server/asobj/NetConnection.cpp, server/asobj/NetConnection.h, - server/asobj/NetStream.cpp, server/asobj/NetStream.h, - server/asobj/Selection.cpp, server/asobj/Selection.h, - server/asobj/SharedObject.cpp, server/asobj/SharedObject.h, - server/asobj/Stage.cpp, server/asobj/Stage.h, - server/asobj/System.cpp, server/asobj/System.h, - server/asobj/TextSnapshot.cpp, server/asobj/TextSnapshot.h, - server/asobj/Video.cpp, server/asobj/Video.h, utilities/Makefile.am: - Moved ActionScript built-in objects (client api) under own directory - (asobj). - * configure.ac: fixed tip (suggest --enable-gui, not --with-gui) - -2006-07-17 Bastiaan Jacques - - * libbase/curl_adapter.cpp, server/{ActionExec.cpp, action_buffer.cpp, - array.cpp, swf/ASHandlers.cpp, swf/tag_loaders.cpp}: Trivially fix - compiler warnings. - -2006-07-16 Bastiaan Jacques - - * gui/kde.cpp: Update setCallback() to match the arguments in the - parent class. - * plugin/plugin.{h,cpp}: Remove more unused OpenGL and GTK code. - -2006-07-15 Bastiaan Jacques - - * gui/gnash.cpp: Make sure the argument count is greater than two - before treating an argument as a variable. - * gui/gui.{cpp,h}: Remove unused member _xembed. - * gui/{gnash.cpp,kdesup.h,sdl.cpp,sdlsup.h,gtk.cpp,gtksup.h}: Remove - the unused first argument to setCallback(). - * plugin/plugin.cpp: Don't do any OpenGL initialization in the plugin, - because the forked gnash does this on its own. - -2006-07-14 Bastiaan Jacques - - * gui/gui.cpp: Don't ignore the arguments passed to the Gui class - constructor. - -2006-07-14 Bastiaan Jacques - - * Makefile.am: revert latest change to fix the build. - -2006-07-11 Sandro Santilli - - * Makefile.am: don't make in backend/ (but distribute it) - * configure.ac: fixed plugin config message to avoid confusion - (default is disabled, not enabled). - -2006-07-11 Bastiaan Jacques - - * gui/{gtk.cpp, gtk_glue.h, gtk_glue_cairo.cpp, gtk_glue_cairo.h, - gtk_glue_gtkglext.cpp, gtk_glue_gtkglext.h, gtksup.h}: To facilitate - moving some GtkGlExt code into the appropriate glue, add a Gtk - configure event handler to the GtkGlue class and derivatives. Disable - some unused Gtk event handlers. - -2006-07-10 Sandro Santilli - - * gui/gtk.cpp: added missing gtkgl.h include - * backend/render_handler_cairo.cpp: removed comma at end of - enumeration list (pedantic error). - * backend/Makefile.am: commented out 'gnash' build - (there will be a 'gnash' program built under gui/) - * Makefile.am: added gui/ subdir - * server/edit_text_character.cpp: fixed tu_string => std::string - attempt bug. - * testsuite/actionscript.all/swf_exists.exp: - use gprocessor -v rather then backend/gnash (we/re moving to gui). - clean up also .swf.frame0.pp (new preprocessor output name - from upcoming Ming 0.4) - -2006-07-10 Vitaly Alexeev - - * server\action.h, action.cpp: added SETFOCUS & KILLFOCUS events codes - * server\edit_text_character_def.h: added get_readonly() for - edit_text_character entity - * server\edit_text_character.h, edit_text_character.cpp: - added SETFOCUS & KILLFOCUS event handler and input edit text stuff - * server\Key.h, Key.cpp: keypress event handler moved to movie_root, - because every root must have own event handler - * server\movie_root.h, movie_root.cpp: added m_active_input_text which - points to current entity having focus and related get_active_entity, - set_active_entity - * server\button.cpp: added SETFOCUS & KILLFOCUS events initiator - * server\array.h, as_function.h, as_object.cpp: ported to WIN32 - * backend\gnash.cpp: fixed bug that led to processing of not arisen - events. - * server\button.cpp, sprite_instance.cpp: - add_keypress_listener --> m_root.add_keypress_listener - * gnash.vcproj: added new files - -2006-07-10 Sandro Santilli - - * gui/.cvsignore: new file - -2006-07-08 Sandro Santilli - - * server/Function.cpp, server/Function.h: removed obsoleted files. - * TODO: removed ActionNewMethod from missing opcodes - * server/swf/ASHandlers.cpp: implemented ActionNewMethod, - added static construct_object() utility function. - * server/System.cpp: handled 'new System' attempts. - * testsuite/actionscript.all/System.as: don't try - to instantiate the non-instantiatable 'System' class. - * server/action.cpp, server/action.h: cleaned up and documented - call_method function. - * server/as_object.h, server/as_object.cpp: - added public dump_members() and private set_prototype() - methods. - -2006-07-07 Stefan Schweizer - - * libamf/Makefile.am, libgeometry/Makefile.am, plugin/Makefile.am, - plugin/mozilla-sdk/Makefile.am: - Use CXXFLAGS where appropriate; install plugin using libtool. - -2006-07-07 Sandro Santilli - - * TODO: updated - * server/swf/ASHandlers.cpp: implemented ActionEnum2 - (enumerate object), fixed ActionEnumerate to always set - enumeration end. - * server/ActionExec.cpp, server/Function.cpp, server/Function.h, - server/Global.cpp, server/Makefile.am, server/MovieClipLoader.cpp, - server/System.cpp, server/System.h, server/action.cpp, - server/action_buffer.cpp, server/array.cpp, server/as_function.cpp, - server/as_function.h, server/as_object.cpp, server/as_value.cpp, - server/builtin_function.h, server/impl.cpp, server/impl.h, - server/sprite_instance.cpp, server/string.cpp, server/swf_function.cpp, - server/swf_function.h, server/timers.cpp, server/xml.cpp, - server/xmlattrs.cpp, server/xmlnode.cpp, server/xmlsocket.cpp, - server/swf/ASHandlers.cpp, server/swf/tag_loaders.cpp: - Split Function.{h,cpp} into as_function.{h,cpp}, swf_function.{h,cpp} - and builtin_function.{h,cpp}. - -2006-07-07 Sandro Santilli - - * server/action_buffer.cpp: don't log action at parse time - (is redundant, as they are logged at execution time). - * server/Function.cpp: fixed local registers handling in operator() - for function2 (see the 1-based register WARNING below). - * server/as_environment.cpp, server/as_environment.h: - outlined local register functions, adding assertion checking. - * server/ActionExec.cpp, server/MovieClipLoader.cpp, - server/as_environment.cpp, server/as_environment.h, - server/character.cpp, server/character.h, server/sprite_instance.cpp, - server/sprite_instance.h, server/swf/ASHandlers.cpp: - Changed as_environment's target to be a character rather - then a sprite_instance (it seems buttons are valid targets); - Handled invalid values for sprite_instance members - _xscale and _yscale. - * server/action_buffer.cpp, server/swf/ASHandlers.cpp: - removed -pedantic compiler warnings, fixed a bug in - fix_stack_underrun pushing more undefined values then - required. - -2006-07-06 Sandro Santilli - - * server/array.cpp, server/array.h: implemented - Array.sort(flags=0) method. - * server/Global.cpp, server/array.cpp, server/array.h: - had Array unimplemented methods print an ERROR with -v, - renamed array_init to array_class_init and change signature - to take by-ref. - * server/array.cpp: most functions made module-statics, indentation - * testsuite/actionscript.all/array.as: "tostring" => "toString" - (SWF 7 and up are case-sensitive in this); added tests for - Array constants and instanceOf. - * server/ActionExec.cpp, server/Function.cpp, server/Global.cpp - server/as_environment.cpp, server/as_environment.h, - server/swf/ASHandlers.cpp: environment's global and local registers - made private; provided accessor methods checking for out of bound - conditions; added dumpers for them. Updated all users. - WARNING: 1-based register must be checked, but ming is unable - to output Function2 code... - - -2006-07-05 Sandro Santilli - - * testsuite/actionscript.all/Function.as: - handled differences between player versions. - * server/gstring.cpp: - Provide all of "String" class interface as static methods - (actionscript.all/String.swf testcases passes all now). - * server/ActionExec.cpp, server/Function.cpp, server/Function.h, - server/Global.cpp, server/MovieClip.cpp, server/MovieClipLoader.cpp, - server/System.cpp, server/action.cpp, server/action.h, - server/action_buffer.cpp, server/array.cpp, server/as_object.cpp, - server/as_object.h, server/as_value.cpp, server/as_value.h, - server/gstring.h, server/resource.h, server/sprite_instance.cpp, - server/string.cpp, server/timers.cpp, server/xml.cpp, - server/xmlsocket.cpp, server/swf/ASHandlers.cpp, - server/swf/tag_loaders.cpp: - Refactored ActionScript functions model. - We now have a base as_function class and builting_function and - swf_function being for builtin and user-defined functions/classes. - (actionscript.all/Function.swf testcases passes all now). - -2006-07-05 Vitaly Alexeev - - * backend\gnash.cpp: mouse_scaling.patch from Samuel Liden Borell - * backend\gtksup.cpp: mouse_scaling.patch from Samuel Liden Borell - * server\button.cpp: added button keypress event handler - * server\Key.cpp: added button keypress event handler - - -2006-07-04 Sandro Santilli - - * server/Function.h, server/swf/ASHandlers.cpp: - most function_as_object members made private. - -2006-07-03 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am, - testsuite/actionscript.all/inheritance.as: - New ActionScript inheritance test. - -2006-07-02 Sandro Santilli - - * server/ActionExecp.cpp: dump stack after each action execution - when -va is provided (can switch off undefining DEBUG_STACK). - * server/as_object.cpp: reduced noise on -va. - * gui/gui.cpp: fixed Gui constructors to correctly set scale. - Mouse events now work as expected. - * server/MovieClipLoader.cpp, server/action.cpp, - server/as_environment.cpp, server/as_environment.h, - server/button.cpp, server/button.h, server/character.h, - server/character_def.cpp, server/character_def.h, - server/edit_text_character.cpp, server/edit_text_character.h, - server/edit_text_character_def.cpp, server/edit_text_character_def.h, - server/generic_character.h, server/sprite_definition.cpp, - server/sprite_definition.h, server/sprite_instance.cpp, - server/sprite_instance.h: - Characters's parents are now characters (not sprite_instances). - This is required to have child characters for buttons and - edit_text and other characters (see Vitaly's patch for bug #16969 - for reference). - -2006-07-01 Vitaly Alexeev - - * server\button.cpp: fixed bug #16969 - -2006-07-01 Sandro Santilli - - * server/as_environment.cpp, server/as_environment.h: - changed register-related functions to use unsigned - ints rather the ints for offsets. - * server/as_environment.cpp, server/as_environment.h: - added a get_version() method to hide implementation. - * server/ActionExec.cpp, server/sprite_instance.cpp, - server/swf/ASHandlers.cpp: use env.get_version() - rather then own-rolled version extracter. - * server/Global.cpp: tolerate (don't abort) unimplemented - ASSetPropFlags with non-object 'props' argument. - -2006-06-30 Sandro Santilli - - * server/swf/ASHandlers.cpp (ActionGetUrl): fixed read - of 'target' parameter (action still not fully implemented, - see bug #16435). - * server/dlist.cpp: (advance): keep characters alive - during advancement of them, in case they get removed - from the DisplayList (see bug #16815). - * server/swf/ASHandlers.cpp: fixed bugus stack drop - in ActionWaitForFrame, added pseudo-code implementation of - it and ActionWaitForFrameExpresion. - * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: - added ensure_stack() function to use by action handlers - to check stack size before attempting to fetch from it. - This cleanly handles malformed SWF and prints an error about - it. - -2006-06-30 Vitaly Alexeev - - * server\sprite_instance.cpp: fixed elvis.swf bug - -2006-06-30 Sandro Santilli - - * server/swf/ASHandlers.cpp (SWFHandlers::ActionLogicalOr): - "or" values, don't "and" them. - -2006-06-30 Vitaly Alexeev - - * server\character.h: fixed small bug - * server\swf\ASHandlers.cpp: fixed small bug - - -2006-06-30 Sandro Santilli - - * server/Global.cpp: removed useless C-style casts. - * server/ActionExec.cpp: print stack debugging - informations during actions execution if DEBUG_STACK - is defined (undef by default) and -v is given on command line. - * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: - static action handlers made private in SWFHandlers class; - added an SWFHandlers::action_name(action_type) utility method. - * server/as_environment.h (dump_stack): display stack contents - on a single line, to enhance readibility of stack changes. - * server/action.cpp: removed useless ASHandlers.h include. - * gui/gui.cpp: added missing sprite_instance.h - include after refactoring commit. - -2006-06-29 Vitaly Alexeev - - * server\actionexec.h: ported to win32 - * server\ActionExec.cpp: commented unnecessary log_msg - * server\character_def.h: ported to win32 - * server\as_environment.h: ported to win32 - * server\action_buffer.cpp: ported to win32 - * server\dlist.cpp: added "onClipEvent(construct, unload)" handlers - * server\Function.cpp: fixed tiny bug - * server\Global.cpp: removed unnecessary assert - * server\sprite_instance.cpp: added lost m_display_list.reset() - * server\swf\tag_loaders.cpp: added "onClipEvent(construct) handler - * server\swf\ASHandlers.cpp: ported to win32 - * gnash.vcproj: added new files - - -2006-06-29 Sandro Santilli - - * server/ASHandlers.cpp (ActionWaitForFrame): added stack size check. - * server/ASSound.cpp, server/ActionExec.cpp, server/Function.cpp, - server/Global.cpp, server/MovieClipLoader.cpp, server/action.cpp, - server/as_environment.cpp, server/as_environment.h, - server/as_value.cpp, server/as_value.h, server/button.cpp, - server/button.h, server/character.cpp, server/character.h, - server/character_def.cpp, server/character_def.h, - server/edit_text_character.cpp, server/edit_text_character.h, - server/edit_text_character_def.cpp, server/edit_text_character_def.h, - server/generic_character.h, server/impl.cpp, server/morph2.cpp, - server/movie.h, server/movie_def_impl.cpp, server/movie_interface.h, - server/movie_root.cpp, server/movie_root.h, - server/shape_character_def.cpp, server/sprite_definition.cpp, - server/sprite_definition.h, server/sprite_instance.cpp, - server/sprite_instance.h, server/timers.cpp, server/xmlsocket.cpp, - server/swf/ASHandlers.cpp: - Big cleanup aimed at reducing model complexity. - Use of the 'movie' has been drastically reduced, the aim - is completely drop it. - Every sprite is a sprite_instance, including the - _root movie. We still have a movie_root class - (with a sprite_instance pointer being the _root movie) - representing the actual movie being played. - -2006-06-28 Sandro Santilli - - * server/swf/ASHandlers.cpp, server/Function.cpp: updated to work - with the private as_environment::m_target. - * server/as_environment.h: m_target made private. - * server/as_environment.cpp (find_target): assert that - an as_value of type OBJECT can be cast to an object. - * server/Makefile.am, server/character_def.cpp, server/impl.cpp: - Put character_def implementation in its own file. - * server/character_def.h: Added missing forward declarations. - -2006-06-27 Sandro Santilli - - * server/swf/ASHandlers.cpp, server/ActionExec.cpp: moved - all known action handlers implementations from ActionExec - to ASHandlers, general cleanups. - * server/swf/ASHandlers.cpp: fixed bug in ActionDefineFunction2. - -2006-06-26 Sandro Santilli - - * server/Function.h, server/Function.cpp: added assertion checking - in set_length() and constructor by action_buffer. - * server/swf/ASHandlers.cpp: fixed ActionDefineFunction impl. - * server/ActionExec.cpp: fixed handling of ACTION_RETURN. - -2006-06-25 Sandro Santilli - - * server/ActionExec.cpp, server/ActionExec.h, - server/Makefile.am: new class for action_buffer - execution context. - * server/Function.cpp, server/Function.h: - use action_buffer by const pointers . - * server/action_buffer.cpp, server/action_buffer.h: - added utility functions to read data from the buffer - to eventually use a stream instead. - * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: - SWFHandlers made a singleton (hopefully fixes the static - initialization problem), used a fixed-size vector - for SWFHandlers::_handlers (faster). Ported some - ActionHandlers from ActionExec (work unfinished). - -2006-06-24 Sandro Santilli - - * server/movie_def_impl.h, server/movie_definition.h, - server/sprite_definition.h: changed add_init_action() - signature to drop unused sprite_id parameter. - * server/Boolean.cpp, server/Camera.cpp, server/Color.cpp, - server/ContextMenu.cpp, server/CustomActions.cpp - server/Date.cpp, server/Error.cpp, server/ASSound.cpp, - server/Key.cpp, server/LoadVars.cpp, server/LocalConnection.cpp, - server/Microphone.cpp, server/Mouse.cpp, server/NetStream.cpp, - server/Selection.cpp, server/SharedObject.cpp, server/Stage.cpp, - server/System.cpp, server/TextSnapshot.cpp, server/Video.cpp, - server/action.cpp, server/button.cpp, server/character.h, - server/character_def.h, server/execute_tag.h, server/movie.h, - server/movie_root.h, server/swf/tag_loaders.cpp: - removed unused parameter warnings. - -2006-06-22 Sandro Santilli - - * server/Function.cpp, server/MovieClipLoader.cpp, server/action.cpp, - server/as_environment.cpp, server/as_environment.h, - server/sprite_instance.cpp, server/sprite_instance.h, - server/textformat.cpp, server/timers.cpp, server/xml.cpp, - server/xmlsocket.cpp, server/swf/ASHandlers.cpp: - Added as_environment::{get,set}_variable{,_raw} versions - w/out with_stack argument, those with "with_stack" arg moved - to private space. All files updated to avoid use of dummy - (empty) with_stack objects. - * server/Function.cpp, server/Function.h: - updated doxygen comments, used size_t for action_buffer - offsets and length. - -2006-06-21 Vitaly Alexeev - - * server/action_buffer.h: removed unnecessary operator= - * server/action.cpp: fixed "static SWFHandlers ash;" problem - * server/swf/ASHandler.cpp: fixed "static SWFHandlers ash;" problem - * server/action_buffer.cpp: fixed "static SWFHandlers ash;" problem - * server/action_buffer.h: added operator= - * server/gnash.h: ported to win32 - * server/impl.h: removed read() from swf_event - * server/swf/tag_loader.cpp: added multi-event handler - * gnash.vcproj: added new files - -2006-06-21 Sandro Santilli - - * doc/C/internals.xml: more info about writing ActionScript tests - and layout under testsuite/ - * testsuite/actionscript.all/xtrace.as: commented out xtrace - engagement message (not more needed since check.as prints testfile - info) - * testsuite/actionscript.all/String.as: added inheritance checks. - * testsuite/actionscript.all/Makefile.am: fixed duplicated - defines when building online tests. - * testsuite/actionscript.all/: added rcsid variable - to all testfiles, had check.as print testfile info at - the beginning rather then at each check. - * testsuite/actionscript.all/Makefile.am: made online-test rule - work with external build dir. - -2006-06-20 Sandro Santilli - - * server/Makefile.am, server/action.cpp, server/action.h, - server/action_buffer.cpp, server/action_buffer.h, - server/as_environment.cpp, server/impl.h, server/textformat.cpp, - server/with_stack_entry.h, server/swf/ASHandlers.cpp: - moved action_buffer and with_stack_entry classes in their own - files. - -2006-06-19 Michael Carlson - - * server/string.cpp: Eliminate wasteful if/else and - string_method function, implement several string functions - * testsuite/actionscript.all/string.as: Initial String tests - * testsuite/actionscript.all/Makefile.am: Build string.swf - -2006-06-19 Vitaly Alexeev - - * server/movie_def_impl.h: fixed bug #16882 - -2006-06-19 Vitaly Alexeev - - * server/character.h: added has_keypress_event() method - * server/action.h: updated event name - * server/action.cpp: updated event name - * server/Key.h: added keypress event handler - * server/Key.cpp: added keypress event handler - * server/sprite_instance.h: added m_has_keypress_event - * server/sprite_instance.cpp: added call to keypress listeners - * server/swf/tag_loaders.cpp: updated s_code_bits - -2006-06-19 Sandro Santilli - - * server/sound_handler_mp3.cpp: fix build bug #16836. - * server/swf.h: added symbolic names for fill_style types. - * server/styles.h: some indentation and doxygen comments. - * server/styles.cpp: use symbolic names for fill_style types, - stricter checks on them, accept hard-edges versions of - CLIPPED and TILED bitmap fills. - -2006-06-15 Sandro Santilli - - * server/action.cpp (call_method): include method name in - not-a-function error message. - * server/as_environment.h: changed drop(), top() and bottom() - methods to take size_t rather then int and to check stack - size; added (public) stack_size() method. - * server/swf/ASHandlers.cpp (SWFHandlers::ActionPop): - handle empty stack condition. - * server/edit_text_character.cpp: don't abort when text doesn't - fit into the defined boundaries (fixes bug #16637). - * server/edit_text_character.h: more stuff made private. - * server/edit_text_character_def.h: added do_word_wrap() method. - -2006-06-15 Vitaly Alexeev - - * server/action.h: add clip_event_keypress & clip_event_construct hack - * server/action.cpp: add clip_event_keypress & clip_event_construct hack - * backend/gnash.cpp: add SDLK_0 -- SDLK_9 - * server/swf/tag_loaders.cpp: add clip_event_keypress & clip_event_construct hack - * server/movie_root.cpp: small optimization - * server/sprite_instance.cpp: small optimization - -2006-06-14 Vitaly Alexeev - - * server/movie.h: comment on_event_load() - * server/movie_root.h: comment m_on_event_load_called - * server/sprite_instance.h: add advance_root(), advance_sprite() - * server/dlist.cpp: replace on_event_load -->execute_frame_tags(0) - * server/movie_def_impl.cpp: add execute_frame_tags(0) - * server/movie_root.cpp: replace advance() --> advance_root() - * server/sprite_instance.cpp: add advance_root(), advance_sprite(), update advance() - - -2006-06-13 Sandro Santilli - - * server/movie.h: removed most warnings about unused - parameters, indentation. - * testsuite/media/Bitstream Vera Sans.COPYRIGHT, - testsuite/media/Bitstream Vera Sans.fdb: added - fdb font from Ming project, for embedding in test - units. - * testsuite/media/README: info about media files - (incomplete). - * testsuite/misc-ming.all/Makefile.am, - testsuite/misc-ming.all/DefineEditTextTest.c: - updated DefineEditTextTest file to use embedded - fonts, we can now reproduce bug #16637. - -2006-06-12 Sandro Santilli - - * testsuite/misc-ming.all/DefineEditTextTest.c, - testsuite/misc-ming.all/Makefile.am, - testsuite/misc-ming.all/defineedittext.c: - defineedittext.c renamed to DefineEditTextTest.c, - added some more code to get closer to what's in the - testfile from bug #16637 (missing embedded fonts) - * server/swf/ASHandler.cpp: (ActionDeleteVar): fixed - call to as_object::set_member (as_value passed by - const ref, not pointer). - -2006-06-11 Vitaly Alexeev - - * libbase/log.cpp: fix trace("") bug - * libbase/rc.cpp: porting to WIN32 - * libbase/URL.cpp: porting to WIN32 - * backend/gnash.cpp: add mysql_db call - * server/gnash.h: add register_component(...) - * server/action.cpp: add register_component(...) - * server/movie_root.cpp: add next_random() call to advance() - * server/System.cpp: porting to WIN32 - * server/swf/ASHandler.cpp: add ActionDeleteVar - * extensions/mysql/mysql_db.cpp: new file - * extensions/mysql/mysql_db.h: new file - * extensions/mysql/mysql_table.cpp: new file - * extensions/mysql/mysql_table.h: new file - * extensions/mysql/README: new file - gnash.vcproj: new file - - -2006-06-10 Sandro Santilli - - * libbase/log.cpp: avoid buffer overflows. - -2006-06-08 Sandro Santilli - - * server/impl.cpp: save URL::str() return into a local variable. - * gui/gnash.cpp: updated to use new dbgfile facilities. - * backend/gtksup.cpp: fixed compiler warnings. - * utilities/parser.cpp, utilities/processor.cpp: - use extern rcfile. - -2006-06-08 Rob Savoye - - * plugin/plugin.cpp: Adjust the size of the URL buffer based on - size. Gracefully handle an error when we get "&&" in a URL so - Firefox doesn't crash. - * plugin/klash/klash.cpp: Use new logging functions for actions - and parsing. - - - * libbase/URL.cpp: Add support for using the config file for - security settings. Add host_check() to compare a hostname against - security settings before accessing remote Flash movies. Look for - _WIN32 as well as just WIN32. - * libbase/URL.h: Add host_check(). - * libbase/rc.cpp: Default all security settings to false. - * server/Date.cpp: Look for _WIN32 as well as just WIN32. - * server/action.cpp: Look for _WIN32 as well as just WIN32. - -2006-06-07 Rob Savoye - - * configure.ac: Add config dir for compat files like - getopt.c. Look for getopt, and replace it if it doesn't exist. - * backend/gnash.cpp: Remove getopt code for win32, it's in it's - own file now. - * libbase/container.h: Look for _WIN32 as well as just WIN32. - * libbase/curl_adapter.cpp: Look for _WIN32 as well as just WIN32. - * libbase/log.cpp: Look for _WIN32 as well as just WIN32. - * libbase/log.h: Look for _WIN32 as well as just WIN32. - * libbase/tu_types.h: Look for _WIN32 as well as just WIN32. - * libbase/utility.h: Look for _WIN32 as well as just WIN32. - * libbase/tu_timer.h: Look for _WIN32 as well as just WIN32. - * libbase/tu_opengl_includes.h: Look for _WIN32 as well as just - WIN32. - * libbase/getopt.c: Replacement function for win32. - - * backend/gnash.cpp: Load config file, and use those values if - they exist. Command line options override config file settings. - * backend/gtksup.cpp: Trap the shift and control modifier keys - too. - * backend/gtksup.h: Don't initialize externs. - * backend/sound_handler_sdl.cpp: Use new logging macros. - * libbase/Makefile.am: Add SDL libs. - * libbase/log.cpp: Add log_action() and log_parse() to replace the - old macros. - * libbase/log.h: Add support for optionally logging actions and - parsing. - * libbase/rc.cpp: Add support for optionally logging actions and - parsing. Add extractNumber() for numeric config file values. Add - dump() method. - * libbase/rc.h: Add new config file options for optionally logging - actions and parsing. - * server/ASSound.cpp: Use new logging functions for actions and - parsing. - * server/Function.cpp: Use new logging functions for actions and - parsing. - * server/Global.cpp: Use new logging functions for actions and - parsing. Put in gnash namespace. - * server/Key.cpp, Key.h: Add copyright notice. - * server/action.cpp: Use new logging functions for actions and - parsing. - * server/array.cpp: Use new logging functions for actions and - parsing. - * server/as_environment.cpp: Use new logging functions for actions - and parsing. - * server/as_object.cpp: Use new logging functions for actions and - parsing. - * server/button.cpp: Use new logging functions for actions and - parsing. - * server/dlist.cpp: Use new logging functions for actions and - parsing. - * server/edit_text_character_def.cpp: Use new logging functions - for actions and parsing. - * server/font.cpp: Use new logging functions for actions and - parsing. - * server/fontlib.cpp: Use new logging functions for actions and - parsing. - * server/impl.cpp: Use new logging functions for actions and - parsing. - * server/morph.cpp: Use new logging functions for actions and - parsing. - * server/morph2.cpp: Use new logging functions for actions and - parsing. - * server/movie_def_impl.cpp: Use new logging functions for actions - and parsing. - * server/movie_root.cpp: Use new logging functions for actions and - parsing. - * server/shape_character_def.cpp: Use new logging functions for - actions and parsing. - * server/sound.cpp: Use new logging functions for actions and - parsing. - * server/sound_handler_mp3.cpp: Use new logging functions for - actions and parsing. - * server/sprite_definition.cpp: Use new logging functions for - actions and parsing. - * server/sprite_instance.cpp:Use new logging functions for actions - and parsing. - * server/stream.cpp:Use new logging functions for actions and - parsing. - * server/styles.cpp:Use new logging functions for actions and - parsing. - * server/text.cpp: Use new logging functions for actions and - parsing. - * server/types.cpp:Use new logging functions for actions and - parsing. - * server/types.h:Use new logging functions for actions and - parsing. - * server/swf/ASHandlers.cpp: Use new logging functions for actions - and parsing. - * server/swf/tag_loaders.cpp: Use new logging functions for actions - and parsing. - * testsuite/libbase/Makefile.am: Comment out Log test case for - now. - * testsuite/libbase/gnashrc.in: Add items for all config values. - * utilities/parser.cpp: Use new logging functions for actions - and parsing. - * utilities/processor.cpp: Use new logging functions for actions - and parsing. - -2006-06-01 Vitaly Alexeev - * server/Math.h: porting to WIN32 - * server/network.h: porting to WIN32 - * server/network.cpp: porting to WIN32 - * server/Global.cpp: LocalConnection & NetConnection in WIN32 now - * server/impl.cpp: commented printf - * libbase/curl_adapter.h: porting to WIN32 - -2006-05-30 Rob Savoye - - * plugin/plugin.h: Comment out debug print statements. - * plugin/plugin.cpp: General code cleanup, comment out debug print - statements. - * plugin/Makefile.am: Copy, don't use libtool to install the - plugin. - -2006-05-29 Rob Savoye - - * plugin/plugin.cpp: Change the description strings so the flash - version is detected correctly. - * macros/opengl.m4: Look in 64 bit directories after the 32 bit - ones. - * macros/zlib.m4: Look in 64 bit directories after the 32 bit - ones. - * libbase/rc.h: Add extractSetting() for support function to get - values from the config file. - * libbase/rc.cpp: Use extractSetting(), rather than duplicating - all the code. - * libbase/tu_types.h: Check for more variations of the ENDIAN - constants. Bug #16682. - -2006-05-30 Rob Savoye - - * configure.ac: Link to the test config file in - testuites/libbase. - * libbase/Makefile.am: Add rc.{h,cpp}. - * libbase/rc.h, rc.cpp: Config file support. - * testsuite/libbase/Makefile.am: Add Rc file test case. - -2006-05-29 Stefan Schweizer - - * macros/gtkglext.m4: Fix gnash building with confcache. - -2006-05-29 Sandro Santilli - - * server/dlist.h, server/dlist.cpp: renamed display_list - to DisplayList and made a real class, many functions moved - to private space, abstracted underlying container to allow - for future modifications aimed at performance improvements; - current implementation done with std::list. - * server/sprite_instance.h, server/sprite_instance.cpp: - updated to use the new DisplayList class interface. - -2006-05-27 Vitaly Alexeev - - * server/action.h: updated forward declaration. - * server/resource.h: updated forward declaration. - * server/fn_call.h: updated forward declaration. - * server/gnash.h: added some sound_handler methods. - * server/ASHandler.cpp: added stopAllSounds; - * server/ASSound.cpp: added some sound methods. - * server/button.cpp: added 3-rd parameter in play_sound. - * server/sound.cpp: added 3-rd parameter in play_sound. - * libbase/log.cpp: fixed va_start bug. - * backend/sound_handler_sdl.cpp: added some sound methods. - -2006-05-26 Sandro Santilli - - * testsuite/misc-ming.all/PlaceObject2Test.c, - testsuite/misc-ming.all/RemoveObject2Test.c, - testsuite/misc-ming.all/Makefile.am: added - tests for PlaceObject2 and RemoveObject2 tags. - -2006-05-26 Patrice Dumas - - * doc/C/.cvsignore: add more doc files. - -2006-05-25 Vitaly Alexeev - - * Forward declarations should correspond to definition in Visual - C. Updated all headers where it not so. - * container.h: added hash from gameSWF. There are problems with - stdext:hash in WIN32. - * backend/gnash.cpp: fixing upside-down (flipped horizontally). - -2006-05-25 Vitaly Alexeev - - * Forward declarations should correspond to definition in Visual C. - Updated all headers where it not so. - * container.h: added hash from gameSWF. There are problems with - stdext:hash in WIN32. - * tu_types.h: added types from inttypes.h for WIN32 - * action.cpp: ported to WIN32 - * global.cpp: The network for WIN32 is commented. It does not work. - * log.cpp: ported to WIN32 - -2006-05-24 Patrice Dumas - - * server/Makefile.am: swap order of lib_LTLIBRARIES. - * plugin/Makefile.am: remove redundant lib flags for plugin. - * configure.ac, plugin/Makefile.am: removed references to - the unused Xmu library. - * macros/atk.m4, macros/glib.m4, macros/gstreamer.m4, - macros/gtk2.m4, macros/gtkglext.m4, macros/pango.m4, - macros/sdl.m4: added namespace-like prefixes to commonly - used ${version} and ${topdir} variables. - -2006-05-24 Bernhard Rosenkraenzer - - * plugin/klash/klash.cpp: made URL aware. - -2006-05-24 Sandro Santilli - - * plugin/klash/klash.cpp: removed obsoleted - file_opener callback use. - -2006-05-23 Sandro Santilli - - * macros/gtkglext.m4: check for gtkglext no matter - wheter plugin has been requested or not, fixed - messages during autodetection attempts, cleanly - handled --with-glext-incl switch (make sure to - set the $version variable). - -2006-05-23 Patrice Dumas - - * Makefile.am: gui and plugin unconditionnaly in DIST_SUBDIRS. - * server/Makefile.am: distribute fn_call.h. - * doc/omf.make: don't use -p $(scrollkeeper_localstate_dir) such - that nothing is installed in the staged install directory. - -2006-05-22 Sandro Santilli - - * gui/sdl.cpp: fixed bug in SDL gui preventing movie advances. - * configure.ac: abort with an error at configure time if gui==gtk - and libgtkgl is not found. - -2006-05-21 Sandro Santilli - - * server: action.h, fn_call.h, *: moved - fn_call struct definition in its own file - * server/gen-files.sh: added fn_call.h include - in implementation file and as_object.h include - in header file. Updated all files for new header. - -2006-05-20 Vitaly Alexeev - - * server/gnash.h: struct font; --> class font; - * server/impl.h: struct font; --> class font; - * server/resource.h: struct font; --> class font; - * server/swf/tag_loaders.h: class movie_definition; --> struct - movie_definition; - * server/swf/TagLoaderTable.h: class movie_definition; --> struct - movie_definition; - * server/edit_text_character_def.cpp: class movie_definition; --> - struct movie_definition; - * server/as_value.cpp: porting to WIN32 - * server/backend/gnash.cpp: getopt for WIN32 - * server/SreamProvider.cpp: porting to WIN32 - * server/System.cpp: porting to WIN32 - * server/swf/tag_loaders.cpp: pow(2,... --> pow(2.0,... - * libbase/URL.cpp: porting to WIN32 - - -2006-05-19 Sandro Santilli - - * server/Makefile.am, server/action.cpp, server/action.h, - server/as_environment.cpp, server/as_environment.h, - server/movie.h: put as_environment class in it's own - files. - * testsuite/libbase/.cvsignore: new file - * testsuite/misc-ming.all/.cvsignore: new file - * server/swf/tag_loaders.{cpp,h}: doxygen comments for - define_font_info_loader(). - * server/font.{cpp,h}: doxygen comments. - * testsuite/misc-ming.all/Makefile.am, - testsuite/misc-ming.all/defineedittext.c: - added test for DefineEditText tag (gnash crashes) - -2006-05-18 Sandro Santilli - - * testsuite/misc-ming.all/definebitsjpeg2.c: added copyright - header - * testsuite/misc-ming.all/moviecliploader_test.c: added - copyright header - * Makefile.am, configure.ac, macros/firefox.m4: - moved handling of --enable-plugin from firefox macro - to top-level configure so you can disable build in - the plugin/ dir (--disable-plugin didn't work). - * server/edit_text_character_def.h, server/edit_text_character.cpp - edit_text_character_def made a real class, ensuring data - members are never changed. Type of variables holding twips - values changed from float to uint16_t (a definition is immutable - anyway, and we read uint16_t from the stream) - * server/edit_text_character.h, server/edit_text_character_def.cpp: - updated to use edit_text_character_def interface (no more - direct members access). Added a private 'font' member to allow - for replacement of it from ActionScript code (not sure this - is required). - * server/text.cpp, server/text.h: changed text_style::m_font - member to be a const pointer. - * server/StreamProvider.cpp: fixed compiler warning - in absence of libcurl. - * server/Makefile.am, server/edit_text_character.cpp - server/edit_text_character.h, server/edit_text_character_def.cpp, - server/edit_text_character_def.h, server/text.h, - server/swf/tag_loaders.cpp: extracted edit_text_character - class from text.h. - * server/generic_character.h: struct => class, headers - inclusion streamlined. - * server/Makefile.am, server/edit_text_character_def.cpp, - server/edit_text_character_def.h, server/text.cpp, - server/text.h: moved edit_text_character_def class and - implementation in its own file. - * server/textformat.cpp: fixed compiler warnings - -2006-05-18 Patrice Dumas - - * doc/omf.make: don't use DESTDIR for scrollkeeper-update cache - directory, such that scrollkeeper-update fails if not run at - root, instead of creating directories that are left over when - doing staged install. - * doc/C/Makefile.am: add - in front of the install-info version - test to ignore errors. - -2006-05-17 Bastiaan Jacques - - * backend/gnash.cpp: Create the OpenGL render handler only after - OpenGL has been initialised. - -2006-05-17 Sandro Santilli - - * server/StreamProvider.cpp: added temporary support for - prompting user about Grant/Bock of URL accesses. If input - is not a terminal default to allow from all. - * backend/gtksup.h: fixed preprocessor instructions comments - * gui/gnash.cpp: fixed handling of -h flag (force exit - after printing usage string); added comments to - removal of file_opener stuff. - * gui/Makefile.am: use new USE_GUI_* conditionals - to avoid references to unrequested dependencies. - Move KDE deps to klash_LDFLAGS (from AM_LDFLAGS) - * configure.ac: fixed handling of --enable-gui switch, - added AM_CONDITIONALs USE_GUI_ - * server/xml.cpp: fixed compiler warnings. - -2006-05-16 Bastiaan Jacques - - * gui/gnash.cpp: Update to recent API changes. - -2006-05-16 Bastiaan Jacques - - * macros/gtkglext.m4: Prepend only one -I per added include dir. - -2006-05-16 Bastiaan Jacques - - * backend/gnash.cpp, gui/{gtk_glue_gtkglext,kde_glue_opengl}.cpp: - Remove OpenGL initialisation code. - * backend/render_handler_opengl.cpp: Add OpenGL initialisation code - into create_render_handler_ogl(). - * server/gnash.h, backend/render_handler_cairo.cpp: Modify - create_render_handler_cairo() to accept an argument which is the Cairo - handle to which the renderer will draw. - * backend/gnash.cpp: Remove the hacky cairo binding. If you - want to try the Cairo backend, use the GUI library in gui/. - -2006-05-16 Sandro Santilli - - * server/action.cpp: use GUI_GTK rather then HAVE_GTK2 - * macros/gtk2.m4: fixed ac_cv_path_gtk2_incl setting to - always include -I, compute ${version} even when - --with-gtk2-incl is used (needed to find gdkconfig.h). - -2006-05-16 Rob Savoye - - * macros/glib.m4: Look for the config file the brute force - way. - * macros/gtk2.m4: Look for the config file the brute force - way. - * macros/gtkglext.m4: Look for the config file the brute force - way. - * macros/opengl.m4: Look in /usr/lib*/opengl/xorg-x11/lib for - libGL. - -2006-05-16 Sandro Santilli - - * backend/gnash.cpp, server/gnash.h, - server/Makefile.am, server/StreamProvider.cpp, - server/StreamProvider.h, server/impl.cpp, - utilities/processor.cpp: removed register_file_opener_callback() - global call, added gnash::globals namespace with streamProvider - default instance for the new StreamProvider class. - * gui/sdlsup.h: don't attempt at including cairo.h - if not using cairo rendered. - * server/swf/ASHandlers.cpp: fixed compiler - warnings, print value of failed target for - callMethod tags. - * server/MovieClipLoader.cpp, server/gnash.h, - server/impl.cpp: create_movie() split to - create_swf_movie() and create_jpeg_movie(). - The former will call one of the latters based - on input stream magic number. - * server/MovieClipLoader.cpp: fixed relative url resolution - to use target's parent url, not target url. - * server/gnash.h, server/impl.cpp: changed definition - of file_opener_callback, create_movie and - create_library_movie to take an URL parameter. - * server/swf/tag_loaders.cpp, server/MovieClipLoader.cpp, - server/action.cpp: updated to use new signatures of - movie loaders. - * backend/gnash.cpp, utilities/processor.cpp: - updated file_opener signature, use curl_adapter - when available. - * server/movie_def_impl.{h,cpp}: changed - read() method to return bool (false on error) - -2006-05-15 Sandro Santilli - - * server/as_object.cpp: fixed compiler warnings. - * libbase/: GnashException.h, Error.h, curl_adapter.cpp, - URL.cpp: renamed gnash::Error to gnash::GnashException - ( we already had an Error class, modeling an ActionScript - object ) - * libbase/URL.cpp: throw gnash::Error on error. - * libbase/: Makefile.am, Error.h, curl_adapter.cpp: - moved Error class to own file, and in gnash namespace. - * server/: Makefile.am, as_value.cpp, action.cpp: - moved as_value class implementation from action.cpp - to as_value.cpp. - * libbase/URL.{cpp,h}: refactored path normalization procedure - to split path in components, remove unneeded ones and - resolve back-references, removed all uses of - * testsuite/libbase/URLTest.cpp: added check.as-like macros, - new tests for path normalization, changed expected paths - for 'file' urls to always start with three slashes (file:///) - -2006-05-14 Rob Savoye - - * libbase/Makefile.am: Remove OPENGL_LIBS from _LIBADD, it causes - OpenGL to hang on my Ubuntu system. - * libbase/log.cpp: Add hexify() for printing numbers. Trap '\n' - when coming in from log_msg() and convert to std::endl. - * libbase/log.h: Add hexify(). - * server/Makefile.am: Add swf/ASHandlers to libgnashserver. - * server/action.cpp: Remove old switch table for processing - opcodes and use ASHandlers instead. - * server/swf/tag_loaders.cpp: Add dbglogfile instead of - log_msg(). - * server/swf/ASHandlers.cpp, ASHandlers.cpp: New file for SWF - opcode handlers. These used to be part of action.cpp. - -2006-05-14 Sandro Santilli - - * libbase/URL.{cpp,h}: handling of relative paths containing - "../" components, handling of CWD-relative paths. - * testsuite/libbase/URLTest.cpp: tests for "../" - components in relative paths. - -2006-05-13 Stefan Schweizer - - * libbase/Makefile.am: add CURL_LIBS and OPENGL_LIBS - to libbase/Makefile.am, where it belongs. - -2006-05-13 Sandro Santilli - - * configure.ac, testsuite/Makefile.am, - testsuite/libbase/Makefile.am, - testsuite/libbase/URLTest.cpp, - testsuite/libbase/CurlStreamTest.cpp: unit - testing for curl_adapter and URL class. - * libbase/Makefile.am: add URL.{cpp,h} files - * libbase/URL.{cpp,h}: initial implementation of - an URL class. - -2006-05-12 Sandro Santilli - - * utililites/Makefile.am, backend/Makefile.am: add CURL_LIBS. - * libbase/Makefile.am: curl_adapter build. - * Makefile.am: CURL config dump. - * macros/curl.m4: libcurl detection macro. - * libbase/curl_adapter.cpp, libbase/curl_adapter.h: initial - implementation of a libcurl adapter for tu_file. - -2006-05-12 Rob Savoye - - * configure.ac: Enable conditional for KDE. - * gui/gnash.cpp: Reduce delay to 300 ms. - * gui/gtk.cpp: Add support for configure event, so we can resize - the viewport. - * gui/gtk_glue_gtkglext.cpp: Unreference _glconfig and glcontext - so Firefox doesn't crash. - * gui/gtksup.h: Add unrealize event, remove resizeWindow. - * gui/gui.cpp, gui/gui.h: Add method to resize the viewport. - * gui/kde.cpp: Use setGeometry() instead of resize(). Handle the - resize event, and mouse events. - * gui/kde_glue_opengl.cpp: Set the view so it's oriented - correctly. - * gui/kdesup.h: Add mouse event handlers. - * gui/sdl.cpp, gui/sdlsup.h: Remove resizeWindow(). - * server/impl.cpp: Don't assert, return NULL if not initilized so - we can use this to check the state. - - * gui/kde.cpp: New file for KDE support. - * gui/kde_glue.h: New file for KDE support. - * gui/kde_glue_opengl.cpp: New file for KDE support. - * gui/kde_glue_opengl.h: New file for KDE support. - * gui/kdesup.h: New file for KDE support. - * gui/Makefile.am: Add support for Klash and KDE. - * gui/gnash.cpp: Add support for building with KDE support. - * gui/gtk.cpp: Use Gui class methods for movie control instead of - having the code here. - * gui/gtksup.h: run() now takes an argument. - * gui/gui.cpp: Include movie_definition. Add methods for movie - control. Move advance_movie() from gnash.cpp to here. - * gui/gui.h: Add non virtual init() and createWindow(). Add static - methods for movie control. - * gui/sdl.cpp: run() now takes an argument. - * gui/sdlsup.h: run() now takes an argument. - - * macros/glib.m4: Look for the internal config file in the lib dir - in addition to the regular headers. - * macros/gtk2.m4: Look for the internal config file in the lib dir - in addition to the regular headers. - * macros/gtkglext.m4: Look for the internal config file in the lib - dir in addition to the regular headers. - - * configure.ac: Print a warning, not an error if Cairo or - SDL_Mixer aren't installed. For bug #16560. - * gui/*: Update to latest version of the Mozilla exemption. - - * configure.ac: Use AC_CONFIG_SRCDIR, and add the version number - to AC_INIT. Define conditional for KDE. Add partial support to use - kde and fltk as configure options to --enable-gui. Comment out - visibility-inlines-hidden as it's unstable on some platforms. - * macros/kde.m4: Define variables for conditional if KDE is - installed. - * plugin/klash/klash.cpp: Add code to replace SDL_GetTicks() so we - don't have an SDL dependancy still. - * server/Makefile.am: Don't have $OPENGL_LIBS in - libgnashserver_la_LIBADD for now, for some reason it makes the - executable not ever render an image if installed. - -2006-05-12 Bastiaan Jacques - - * configure.ac: Use GTK as the default GUI. - * gui/gtk_glue.h, gui/gtk_glue_cairo.{cpp,h}, - gui/gtk_glue_gtkglext.{cpp,h}: Introduce an abstraction class - for Gtkglext and "GtkCairo" which connect (glue) GTK to the OpenGL - and Cairo renderers, respectively. - * gui/Makefile.am: Build the appropriate glue. - * gui/README: Deprecate the SDL-based Firefox plugin. - * gui/{gnash.cpp,gui.h,sdl.cpp}: No longer handle the OpenGL LOD bias - parameter. It is now handled in the glue class. - * gui/{gtk.cpp,gtksup.h}: Migrate to the new glue. - * gui/gui.h: No longer handle the OpenGL LOD bias parameter. - * gui/sdl.cpp: Scale mouse event coordinates according to the movie - scale. - -2006-05-11 Stefan Schweizer - - * libbase/Makefile.am, server/Makefile.am, plugin/klash/Makefile.am: - Link needed libraries which are needed to link with --as-needed. - -2006-05-11 Sandro Santilli - - * server/sprite_instance.cpp: removed compiler warnings. - * server/movie_def_impl.h: improved doc of - the read() method. - * configure.ac: added --enable-gui switch, - defined GUI_SDL or GUI_GTK - * backend/gnash.cpp: make ue of GUI_* defines rather - then HAVE_GTK2 ones (you can have GTK2 and still want - SDL gui). - * gui/gnash.cpp: don't realy on HAVE_* defines to - set GUI_* ones, but use GUI_* defines from config.h - -2006-05-10 Bastiaan Jacques - - * gui/gtk_cairo_create.h: Introduce an implementation for - gdk_cairo_create() when it's not available. - * gui/gtk.cpp: Include gtk_cairo_create.h for GTK < 2.8. - -2006-05-10 Sandro Santilli - - * gui/DESIGN: a few design notes about the new gui efforts - * macros/gtkglext.m4: fix AC_DEFINE macros to include a value - * configure.ac: don't complain about missing CAIRO when not required - * gui/gtk.cpp: include cairo.h if RENDERER_CAIRO is defined - * gui/gtksup.h: include cairo.h if RENDERER_CAIRO is defined - * macros/cairo.m4: search cairo dev files even if plugin is disabled - * macros/gtk2.m4: fixed handling of --with-gtk2-lib, fixed AC_DEFINE - call to actually give a value to HAVE_GTK2 define (some code in - backend/gnash.cpp would fail otherwise - #ifndef HAVE_GTK2 namely) - -2006-05-10 Bastiaan Jacques - - * gui/gnash.cpp: Remove unused includes and do small cleanups. - * gui/{gtk.cpp,gtksup.h}: Only compile OpenGL code if we have OpenGL. - * gui/gui.cpp: Remove unused includes. - -2006-05-10 Bastiaan Jacques - - * configure.ac: SDL is not a backend, so don't pretend it is one. - * configure.ac, macros/{atk,glib.gtk2,pango}.m4: We still want to know - if these packages are available if gtkglext isn't, so remove the - gtkglext checks, and fix the indentation to match. - -2006-05-10 Bastiaan Jacques - - * server/swf/tag_loaders.cpp: Struct swf_event is declared in namespace - gnash, not gnash::SWF::tag_loaders; move the implementation into - namespace gnash. - -2006-05-09 Sandro Santilli - - * testsuite/misc-ming.all/moviecliploader_test.c, - testsuite/misc-ming.all/Makefile.am: - moviecliploader_test fixed to build using the new media dir - and to test both relative and absolute url, both jpeg - and swf medias. - * testsuite/media/green.swf, testsuite/media/lynch.swf, - testsuite/media/offspring.swf: added definejpeg2 swf - versions of the corresponding jpeg files. - * testsuite/misc-ming.all/definebits_jpeg2.c, - testsuite/misc-ming.all/Makefile.am: - use argument to definebits_jpeg2 to find jpeg. - * testsuite/media: new dir for storing media files, moved - jpegs from actionscript.all to this new dir - * server/movie_definition.h: added get_url() virtual method - * server/movie_def_impl.cpp, server/movie_def_impl.h: - implemented get_url() method, added url argument to the - read() method. - * server/sprite_definition.h, server/sprite_instance.cpp: - implemented get_url() method. - * server/impl.cpp: updated movie_def_impl constructions to - pass the url method. - * server/xmlattrs.h: fixed compiler warning about %p format used - for non-void pointer. - * libbase/zlib_adapter.h: doxygen comments - * server/stream.h, server/stream.cpp: doxygen comments - * server/sprite_definition.h, server/sprite_definition.cpp, - server/impl.cpp: modified sprite_definition constructor to - automatically read the SWF stream. - * server/swf: new swf directory for SWF parsing related classes. - * server/swf/TagLoadersTable.{h,cpp}: new class modeling a - table of tag loaders. - * server/swf/tag_loaders.{h,cpp}: tag loaders extracted - from impl.cpp file and grouped into the swf namespace. - * server/impl.cpp: (define_shape_loader) symbolic names for - tag types - * server/movie_def_impl.cpp, server/movie_def_impl.h: - new CharacterDictionary class. - * server/movie_definition.h: updated doxygen comments. - * server/sprite_definition.h: update doxygen comments. - * configure.ac: added misc-ming.all directory's Makefile; - fixed name of debian package for gtk2 (libgtk2-dev => libgtk2.0-dev) - * testsuite/Makefile.am: added misc-ming.all subdir, - * testsuite/actionscript.all/Makefile.am: Removed ming-generated - binaries rules (moved to misc-ming.all) - * testsuite/misc-ming.all: new test directory for ming-generated - test files. - -2006-05-09 Bastiaan Jacques - - * configure.ac: Compile with -fvisibility-inlines-hidden, if we're - using gcc-4 or newer. - -2006-05-09 Bastiaan Jacques - - * gui/gnash.cpp: Use the GTK backend by default; if GTK isn't - available, fall back to SDL. - * gui/{gtk.cpp,sdl.cpp}: Fix includes to match recent filename - changes. - -2006-05-08 Bastiaan Jacques - - * configure.ac: Build with -ansi by default. - * libbase/tu_types.h: No longer depend on SDL for the endianness - macros. - * all over the place: Switch to the int types from inttypes.h rather - than SDL.h. This will allow us to remove the dependency on SDL when - sound is disabled and a frontend for Gnash other than SDL is used. - -2006-05-08 Sandro Santilli - - * server/as_value.h, server/button.h, server/impl.cpp, - backend/render_handler_ogl.cpp: - removed commas at end of enums (for -ansi) - -2006-05-08 Bastiaan Jacques - - * libbase/tu_types.h: Use [u]int64_t rather than SDL 64-bit types. - * all over the place: Use s[u]int64 (typedef'ed to [u]int64_t) - rather than SDL 64-bit types. We can now compile with -ansi. - -2006-05-08 Sandro Santilli - - * server/ASSound.h, server/Global.cpp, server/Global.h, - server/Key.h, server/Makefile.am, server/Object.cpp, - server/Object.h, server/action.cpp, server/action.h, - server/as_member.h, server/as_object.cpp, server/as_object.h, - server/as_prop_flags.h, server/as_value.h, server/gnash.h, - server/movie_interface.h, server/ref_counted.h, - server/textformat.cpp, server/textformat.h, server/types.cpp: - - * server/bitmap_character_def.h, server/character.cpp, - server/character_def.h, server/character.h, - server/generic_character.h, server/movie.h, server/ref_counted.h, - server/resource.h, server/shape_character_def.cpp, - server/shape_character_def.h, server/as_object.h, server/button.h, - server/character_def.h, server/font.cpp, server/fontlib.cpp, - server/gnash.h, server/impl.cpp, server/impl.h, - server/Makefile.am, server/morph2.cpp, server/morph2.h, - server/movie_def_impl.cpp, server/movie_def_impl.h, - server/Object.h, server/shape.cpp, server/shape.h, - server/styles.h, server/tesselate.h, server/text.cpp: - new class files for as_member, as_object, as_prop_flags, - as_value, character, shape_character_def, movie. - -2006-05-07 Bernhard Rosenkraenzer - - * plugin/klash/klash.cpp: include movie_definition.h - instead of Movie.h - -2006-05-07 Bastiaan Jacques - - * gui/sdl.cpp, gui/sdlsup.h: implement an SDL frontend. Implemented - backends are Cairo and OpenGL. - * gui/gtk.cpp, gui/gtksup.h: shuffle some code around, integrate - better with Gui class. Make event handlers work. - * gui/Makefile.am: Enable the SDL frontend. - * gui/gnash.cpp: Implement the remaining features from the old - gnash.cpp; make the commandline options work. - * gui/gui.cpp, gui/gui.h: Add some needed variables and methods. Do - some cleanup. - -2006-05-07 Sandro Santilli - - * server/Makefile.am, server/Object.h, - server/bitmap_character_def.h, server/button.h, - server/character_def.h, server/generic_character.h, - server/gnash.h, server/impl.cpp, server/impl.h, server/morph2.cpp, - server/movie_def_impl.cpp, server/movie_def_impl.h, - server/ref_counted.h, server/resource.h, server/shape.cpp, - server/shape.h, server/styles.h: new class files for - bitmap_character_def, character_def, generic_character, - ref_counted and resource - * renamed Movie.{h,cpp} to MovieClip.{h,cpp} - * server/Makefile.am, server/Movie.cpp, server/Movie.h, - server/Sprite.cpp, server/Sprite.h, - server/impl.cpp, server/impl.h, - server/sprite_definition.cpp, server/sprite_definition.h, - server/sprite_instance.cpp, server/sprite_instance.h, - backend/gnash.cpp, server/ASSound.cpp, server/Global.cpp, - server/MovieClipLoader.cpp, server/action.cpp, server/button.cpp, - server/font.cpp, server/fontlib.cpp, server/gnash.h, - server/morph2.cpp, server/movie_def_impl.cpp, - server/movie_def_impl.h, server/movie_definition.h, - server/movie_interface.h, server/movie_root.cpp, - server/movie_root.h, server/sound.cpp, server/styles.cpp, - server/text.cpp, utilities/processor.cpp: - sprite_instance and sprite_definition are now real classes - and are defined in their own files, named after the class - themselves, same split for Movie.h file. - -2006-05-05 Rob Savoye - - * plugin/plugin.cpp: Don't compare supportsXEmbed to PR_TRUE. - * packaging/redhat/gnash.spec: Make a gnash-klash package instead - of just klash. - * README: Update version number and date. - -2006-05-04 Sandro Santilli - - * server/MovieClipLoader.cpp: cleanly handle - attempts to load an external jpeg (complain - rather then crash - see bug #15762 - -2006-05-03 Sandro Santilli - - * configure.in: accept OpenGL and Cairo args to - --enable-renderer, as advertised in the help string. - Print selected renderer in summary. Fixed a couple - of typos. - -2006-05-04 Bastiaan Jacques - - * gui: Add a very initial implementation of the frontend (gui) - library, which has a replacement for backend/gnash.cpp. The gui - subdirectory has not yet been enabled. - -2006-05-03 Tomas Groth Christensen - - * server/Makefile.am: Compile ASSound.{cpp,h} instead of Sound.{cpp,h} - -2006-05-03 Patrice Dumas - - * doc/C/Makefile.am: use $< instead of gnash.info for for - install such that gnash.info from srcdir may be used; replace - /sbin/install-info by install-info everywhere - * plugin/player.h: distribute player.h - -2006-05-03 Sandro Santilli - - * server/array.cpp: removed compiler warnings - * server/: Sound.cpp => ASSound.cpp, Sound.h => ASSound.h - -2006-05-02 Bastiaan Jacques - - * configure.ac: Add --enable-renderer={opengl,cairo}. - * backend/Makefile.am, backend/gnash.cpp, server/gnash.h: - Compile and use Cairo if requested. - -2006-05-02 Timothy Lee - - * render_handler_cairo.cpp: Initial Cairo renderer backend - implementation. - -2006-04-30 Bastiaan Jacques - - * backend/gnash.cpp: Use the right signal name. - -2006-04-29 Bastiaan Jacques - - * backend/{gnash.cpp,gtksup.cpp,gtksup.h}: Add a gtkgl - unrealize_event handler which facilitates destruction of - some gdkgl objects. This fixes shutdown leaks. - -2006-04-28 Sandro Santilli - - * server/array.cpp: fixed bug in copy constructor. - * server/Function.cpp, server/Function.h: added - isBuiltin() public method and new constructor as - a better support for built-in classes (I think we - really need an abstract class and two derivates for - user defined functions and built-in classes). - * server/action.cpp: changed doActionNew to handle - construction of built-in classes. - * server/System.cpp, server/System.h, server/array.cpp, - server/array.h: ported to new built-in class construction - mechanism. Optimized and embellished as_array_object::join() - method, inspired by Bastiaan :) - -2006-04-28 Rob Savoye - - * README: Add comments about runing autogen.sh and configure for - bug #16451. - * doc/C/sources.xml: Add comments about runing autogen.sh and - configure for bug #16451. - -2006-04-27 Rob Savoye - - * configure.ac: Comment out warnings about FLTK and Xft, these are - only used by code under development for now. - * macros/jpeg.m4: Make sure the head exists, not the lib before - runing lib tests. - * utilities/Makefile.am: Add PTHREAD_LIBS. - - -2006-04-27 Bastiaan Jacques - - * server/Key.cpp: Stop using cleanup_listeners(). Use - iterators instead of array indexing for listeners. Use - C++-style rather than C-style casts. - * server/Key.h: Remove cleanup_listeners(). - -2006-04-27 Stefan Schweizer - - * plugin/klash/Makefile.am: added KDE_LDFLAGS to AM_LDFLAGS. - -2006-04-27 Sandro Santilli - - * testsuite/actionscript.all/array.as: turned length() - method calls to length data member accesses, completed - switch to check_equals() macro usage, removed .pop() calls - in macro args (would have unexpected results when macro fails). - * server/: (Function.h, Function.cpp): added new constructor - taking exported interface as argument. - * server/: (System.cpp, System.h, Global.cpp): added System - AS class registration, System.capabilities.version - implementation and scheleton for AS instanciation of it - (the latter being untested). - * doc/C/internals.xml: added note about check_equals() macro - under testing section. - * server/: (Sound.cpp, Sound.h): added missing files - * server/: (array.cpp, array.h): big cleanup, provided - overrides for get_member() and set_member() to add support - for the special 'length' element, turned array_as_object into - a real class, enabled support for class-statics. - * server/: (Object.cpp, Object.h): moved get_member - and set_member to get_member_default and set_member_default - with protected access level, provided public virtuals - invoking the protected non-virtuals. This is to allow cleaner - hooking for ActionScript classes. - -2006-04-26 Timo Lindfors - - * testsuite/actionscript.all/Boolean.as: added some - simple checks for toString() and valueOf() methods. - -2006-04-26 John Radio Gilmore - - * doc/C/sources.xml: Fix typos, update misc build info. - -2006-04-26 Sandro Santilli - - * testsuite/actionscript.all/check.as: added check_equals() - macro. - * testsuite/actionscript.all/Global.as: example usage of - the check_equals() macro. - * server/gen-files.sh: fixed escaping in sed code - * testsuite/actionscript.all/array.as: more use - of the check_equals() macro - * testsuite/actionscript.all/Makefile.am: fixed a bug - in the v8-online-tests rule - * server: Global.cpp, Global.h, Key.cpp, Key.h, - Makefile.am, Math.cpp, Math.h, action.cpp, action.h, - array.cpp, array.h: more code splitting. - -2006-04-25 Rob Savoye - - * packaging/debian/changelog: Reverse the order of entries so it - it uses the right GPG key for packages. - * packaging/debian/control: Fix cut & paste error in Depends - list. - * packaging/debian/gnash-klash.install: Add klash executable. - * server/shape.cpp: Support alternate tag value - - * plugin/klash/klash.cpp: Add player control menu for the right - mouse button. - * plugin/klash/Makefile.am: Build a MOC file for klash.cpp. - - * packaging/debian/gnash-klash.install: Add the klash executable. - * packaging/redhat/gnash.spec: Add the klash executable. - - * libbase/jpeg.cpp: Add support for grayscale jpegs. - * plugin/klash/Makefile.am: Add klash executable. - * plugin/klash/klash.cpp: Build a KDE version of the standalone - player for Konqueror. - -2006-04-25 Bastiaan Jacques - - * libbase/smart_ptr.h: Introduce noref_ptr, a smart pointer without - reference counting. - -2006-04-24 Rob Savoye - - * All GPL'd files: Update Mozilla copyright exemption to the - latest version. - -2006-04-24 Timothy Lee - - * libbase/image.cpp: Remove read_swf_jpeg2(), it's unnecessary now - that read_jpeg() reads multiple headers. - * libbase/jpeg.cpp: Read a jpeg with with multiple headers - correctly. - * server/impl.cpp: Call read_jpeg() instead of read_swf_jpeg2(). - -2006-04-23 Bastiaan Jacques - - * server/Movie.cpp, server/Movie.h, server/Object.h, - server/font.h, server/morph2.h, server/shape.h, - server/stream.h, server/styles.h: Switch structs to classes. - -2006-04-23 Bastiaan Jacques - - * server/Movie.h: make movie_def_impl a friend of import_info. - * server/Movie.cpp: adjust the users of import_info to match - changes to Movie.h. - -2006-04-22 Rob Savoye - - * doc/omf.make: Rename omf-hook to be more consistant. - * doc/xmldocs.make: Set enable-ghelp and enable-docbook together. - * doc/C/Makefile.am: Use /sbin/install-info. Don't try to run - install-info if it doesn't exist. - * packaging/redhat/gnash.spec: Remove the info/dir file. - - * macros/atk.m4: Look for libraries in /usr/X11R6/lib, and headers - in /usr/X11R6/include. - * macros/gtk2.m4: Look for libraries in /usr/X11R6/lib, and - headers in /usr/X11R6/include. - * macros/gtkglext.m4: Look for libraries in /usr/X11R6/lib. - * macros/pango.m4: Look for libraries in /usr/X11R6/lib. - - * macros/fltk.m4: Look in X11R6 for headers. - * macros/gtkglext.m4: Look in X11R6 for headers. - * macros/pango.m4: Look in X11R6 for headers. - * macros/sdl.m4: Find SDL on FreeBSD where vesion SDL11 is used - instead of SDL-1.1. - -2006-04-22 Bastiaan Jacques - - * server/Movie.h: Make the import_info struct a proper class. - * server/Movie.cpp: Adjust the users of import_info to match - changes to Movie.h. - -2006-04-21 Rob Savoye - - * packaging/redhat/gnash.spec: Install the dir file so the rpm - builds. - - * doc/C/Makefile.am: Handle the different options the different - versions of install-info support. - - * doc/C/Makefile.am: Create the info dir if it doesn't exist. - * packaging/debian/changelog: Add new entry and up the version. - * packaging/redhat/gnash.spec: Up the minor version. Install the - info file. - - * packaging/debian/rules: Don't attempt to apply a patch that - doesn't exist. Install the info file. - * packaging/redhat/gnash.spec: Install the info file too. - * plugin/Makefile.am: Add npplat.h to the dist target. - * plugin/plugin.cpp: Don't include player.h, it's unused these - days. - - * doc/xmldocs.make: Add the hook for installing and uninstalling - the info file. - * doc/C/Makefile.am: Install the info file. - -2006-04-20 Rob Savoye - - * server/font.cpp: Delete the pointer the proper way. - * doc/C/gnash-man.xml: Add the -j and -k options to the man page. - - * README: Clarify that no event handling means mouse clicks don't - work with the SDL version of the plugin. - * doc/C/internals.xml: Clarify that no event handling means mouse - clicks don't work with the SDL version of the plugin. - * doc/C/plugin.xml: Clarify that no event handling means mouse - clicks don't work with the SDL version of the plugin. - - * libbase/triangulate_impl.h: Use the z modifier when printing a - size_t. - * plugin/plugin.cpp: Define start and end as a size_t, not an - unsigned int. - - * configure.ac: Add FLTK. Don't create mozilla-sdk/Makefile. - * Makefile.am: Add a dumpconfig target to see what configure - found. - * macros/fltk.m4: New configure tests for FLTK toolkit. - * packaging/redhat/gnash.spec: Don't build libmozsdk, it's now - part of the plguin. - * plugin/Makefile.am: Build the sources in mozilla-sdk as part of - the plugin, rather than as an additional shared library. - * server/array.cpp: Use the z modifier when printing a size_t. - * server/button.cpp: Use the z modifier when printing a size_t. - * server/fontlib.cpp: Use the z modifier when printing a size_t. - * server/shm.cpp: Use the z modifier when printing a size_t. - * server/xmlnode.cpp: Use the z modifier when printing a size_t. - * server/sound_handler_mp3.cpp: Remove unused variable. - -2006-04-19 Bastiaan Jacques - - * server/action.cpp: fixed compiler warnings. - -2006-04-18 Rob Savoye - - * backend/gnash.cpp: Turn off sound by default, since it doesn't - work yet, and it grabs the sound device preventing other programs - from working. Delete the gnash-dbg.log file if we don't want it - writing to disk. Add -u option to set the root URL when navigating - web pages with frames. - -2006-04-15 Sandro Santilli - - * backend/gnash.cpp: verbose SDL_SetVideoMode() failure message. - -2006-04-11 Rob Savoye - - * configure.ac: Check for a SDL, SDL_Mixer, and Gstreamer based on - whether the library exists, not the headers. Comment out Gstreamer - warning for now, it's not used anyway. - * macros/gstreamer.m4: Remove extraneous setting of - ac_cv_path_gstreamer_incl. Remove extraneous MSG_RESULT. - * macros/gtk2.m4: Remove extraneous setting of - ac_cv_path_gtk2_incl. Check for the versioned directory before the - unversioned directory. - * macros/gtkglext.m4: Remove extraneous setting of - ac_cv_path_glext_incl. Remove extraneous MSG_RESULT. - * macros/pango.m4: Always add the library name if we have a legit - path. - * macros/sdl.m4: Remove extraneous MSG_RESULTs. - * server/action.cpp: Tweak the test for getURL() to include https - as well as http. - -2006-04-10 Sandro Santilli - - * server/action.cpp: fix compiler error in as_global_parseint() - -2006-04-10 Rob Savoye - - * server/action.cpp: It the url for getUrl() starts with a - "http:", then remotely tell firefox to load the page. - -2006-04-09 Rob Savoye - - * plugin/klash/klash_part.cpp: Use the new options to set the - window size of the browser window correctly. - * server/NetConnection.cpp: Catch trying to access a URL that is - set to "null", instead of zero. - * packaging/debian/gnash-klash.install: Add klash_part.desktop to - the package. - * packaging/debian/control: Add more dependancies. - * doc/C/gnash-C.omf: Install in "Sound and Video" instead of - Multimedia. - -2006-04-07 Rob Savoye - - * packaging/debian/: Add packaging files. - - * macros/kde.m4: Also look for QT with qt-3.3 as well as qt3. - * README: minor typo corrections. - * packaging/redhat/gnash.spec: Build klash, add additional - dependancies, and tweak till it works. - -2006-04-07 Patrice Dumas - - * macros/ghelp.m4: Don't warn if the user doing ./configure - isn't root. - * doc/omf.make, doc/xmldocs.make, doc/C/Makefile.am: use '-hook' - targets for omf files installation, and '-local' targets for xml - files installation. Remove intermediate useless targets. If ghelp - isn't enabled, disable only the omf files installation. Remove - the @ in front of make rules. - -2006-04-06 Rob Savoye - - * backend/gnash.cpp: Make width and height global variables. - * backend/gtksup.cpp: Reset the width and height global variables - when we get a configure event, as the window has been resized. - -2006-04-05 Rob Savoye - - * configure.ac: Fix --disable-xml option. - * macros/firefox.m4: Don't use the mozilla or firefox config - script to get the path to install the plugin. Check the users - home directory and install there in the plugins directory. - * macros/libXML.m4: Don't do anything if XML support is disabled. - * macros/opengl.m4: Adjust how the libray path gets set so we - don't wind up with a path with no -L option. - -2006-04-04 Rob Savoye - - * backend/Makefile.am: Don't use ../backend in the path to - libgnashbackend.la, as it causes problems with parallel - builds using -j. - - * macros/libXML.m4: Don't configure XML if it's disabled. - -2006-04-04 John Gilmore - - * README: Add more basic information. Thank contributors. - * server/{xmlsocket.cpp, MovieClipLoader.cpp, Sprite.cpp, - network.cpp, shape.cpp}: Lint. - * backend/gnash.cpp: Revise --version and --help for GNU Coding - Standards. - * plugin/player.cpp: Lint. - * plugin/plugin.cpp: Describe the plugin more fully. It's the - GNU Flash Player. Add copyright notice, version number, more - links. - -2006-04-04 Rob Savoye - - * backend/gnash.cpp: Add -j and -k options to set the width and - height of the window. This is used only by the plugin. Uncomment - gtk_plug() code, it works now! If the window ID is set, don't set - the window size again. - * plugin/plugin.cpp: Always return the value when Mozilla - asks. Add -j and -k options to set the window size for the player - instead of letting it default to the movie size. - * libbase/image_filters.cpp: Add struct name to eliminate - warning. - * macros/gstreamer.m4: Change where the -I and -L gets added. - * macros/opengl.m4: Change where the -I and -L gets added. - * plugin/mozilla-sdk/pluginbase.h: Add a destructor to eliminate - warnings. - * testsuite/actionscript.all/Makefile.am: Add the test case source - files to the distribution tarball. Include the generated swf - movies so people don't need Ming installed to have "make check" - work. - -2006-04-02 Rob Savoye - - * gnash/Makefile.am: Move libamf to DIST_SUBDIRS, since it's not - really used yet anyway. Tweak the path for building deb and rpm - files. - * doc/C/Makefile.am: Don't error out if Makeinfo has problems. - -2006-04-02 Rob Savoye - - * doc/C/gnash-man.xml: Add the -x and -w options. - * doc/C/gnash.xml: Rewrite overview and intro chapter. - - * doc/C/gnash.xml: Add a constant for the opcodes chapter. Add -w - option to list of command line options. - * doc/C/sources.xml: Add new dependancies, gtkglext, atk, pango, - cairo, glib, gtk2, gstreamer 0.10, and kde. Update plugin - section. Add all the new configure options of the last few - months. - * doc/C/internals.xml: Change the names of the libraries to match - current versions. Add asobjs, plugin, and klash libraries. Update - plugin section. Add info about GUI toolkit usage. Add section on - Klash. - * doc/C/opcodes.xml: New chapter on opcodes that lists what's - still unimplemented. - * doc/C/localconnection.xml: Update text. Add section about AMF. - * doc/C/plugin.xml: Add section on plugin event handling. - * libbase/Makefile.am: Optionally compile the demo. - * libbase/demo.cpp: Add the demo namespace and open ogl. - -2006-03-31 Rob Savoye - - * macros/atk.m4: Fix finding the proper path with the version - number. - * macros/glib.m4: Fix finding the proper path with the version - number. - * macros/pango.m4: Fix finding the proper path with the version - number. - - * Makefile.am: Add libamf and plugin to STD_DIRS. - * configure.ac: Call KDE_SET_PREFIX to set KDECONFIG. - * doc/C/Makefile.am: Change the invocation of db2_teximl for - version 0.8.5. Also change the file name the gets renmoved, so - make it part of the conditional test. - * macros/kde.m4: Fix KDE_SET_PREFIX to not trash the value of - $prefix. - * plugin/klash/Makefile.am: Fix how the moc file gets built and as - a dependancy. - * plugin/mozilla-sdk/Makefile.am: Add all the headers to - noinst_HEADERS so makedistcheck works. - -2006-03-30 Rob Savoye - - * plugin/Makefile.am: Pass in the prefix as a constant so we can - use it to find the Gnash executable from within the plugin. - * gnash.cpp: For now, ignore command line arguments with a equal - sign in them. - * plugin/plugin.cpp: Build the argv array correctly so we don't - core dump Firefox. Use a GNASH_PLAYER environment variable, or the - configured exec_prefix to find the gnash executable to fork. - * plugin/plugin.h: Also store the childpid and the process name. - * configure.ac: Add options to toggle between forking the - standalone player and using a thread. - -2006-03-30 Petter Reinholdtsen - - * libamf/Makefile.am: Remove -Wall, it's set in configure.ac now. - * libbase/triangulate_impl.h: Add const to some type casting. - * libbase/tu_file.cpp: Remove const from *_tell_func API. - * libbase/tu_file.h: Remove const from *_tell_func API. - * libbase/tu_file_SDL.cpp: Remove const from *_tell_func API. - * libbase/zlib_adapter.cpp: Remove const from *_tell_func API. - * libgeometry/geometry.h: Swap static and const, they're in the - wrong order. - * libgeometry/kd_tree_packed.cpp: Use unsigned interger to compare - to the result from size() for an STL container. - * server/Makefile.am: Remove -Wall, it's set in configure.ac now. - * server/action.cpp: Add const to definition of character - pointer. - * server/dlist.cpp: Add const when casting display_object_info. - * server/network.cpp: Return false for now if - Network::createClient is called with only the port number. - * server/shape.cpp: Use const when casting nmesh)_set. - * server/sound_handler_mp3.cpp: Use unsigned interger to compare - to the result from size() for an STL container. - * server/xml.cpp: Define the niodename before using it. - * server/xmlnode.cpp: Return NULL if we can't return an object - pointer. - * utilities/Makefile.am: Add MP3_LIB to the linker list. - -2006-03-29 Rob Savoye - - * plugin/Makefile.am: Include the backend directory in the include - paths. - * plugin/player.cpp: Nuke the SDL support and start replacing it - with GTK2. This file is currently unused as the standalone player - is used instead. - * plugin/plugin.cpp: Support GTK2 and GTKGLExt if they exist for - the plugin. Fork the plugin instead of using a thread. Enable - XEmbed. - * plugin/plugin.h: XSync after setting the context. - * plugin/klash/Makefile.am: Move klash_part.moc to _SOURCES. - * plugin/mozilla-sdk/Makefile.am: We don't need the FIREFOX_DEFS - now. - -2006-03-29 Rob Savoye - - * configure.ac: Add --enable-lotsa-warnings, to turn on many more - warning messages. By default only -Wall is used when using - GCC. Based on a patch by Petter Reinholdtsen - -2006-03-28 Rob Savoye - - * README: Add text from web site about the mailing lists, and - where to submit bug reports and patches. - * configure.ac: Use $glext instead of $plugin for GTK. - * backend/Makefile.am: Add new files gtksup.h and gtksup.cpp. - * backend/gtksup.{h,cpp}: New files for GTK menu and event support. - * backend/gnash.cpp: Use GTK2 and GtkGLExt if they exist. Use GTK - event handlers and menus. Default to SDL. - * libbase/Makefile.am: Don't both to build the demo. - * libbase/image_filters.cpp: Add debugging trace messages. - * libbase/log.{h,cpp}: Handle just a single char. - * libgeometry/Makefile.am: Add the library paths. - * macros/atk.m4: Define ac_cv_path_atk_lib correctly for when we - do find it in the list of paths. - * macros/cairo.m4: Don't do anything unless $glext is enabled. - * macros/firefox.m4: Don't do anything unless $plugin is enabled. - * macros/ghelp.m4: Move the conditional. - * macros/glib.m4: Define ac_cv_path_glib_lib correctly for when we - do find it in the list of paths. - * macros/gstreamer.m4: Add error message if only the older - gstreamer version is found. 0.10 is required. - * macros/gtk2.m4: Don't do anything unless $glext and $plugin are - enabled. Define the library names with the version or we get the - wrong one. - * macros/gtkglext.m4: Enable by default, but support --disable. - * macros/opengl.m4: Define ac_cv_path_opengl_lib correctly for when we - do find it in the list of paths. - * macros/pango.m4: Define ac_cv_path_pango_lib correctly for when we - do find it in the list of paths. - * server/shape.cpp: Reformat into GNU style. - * server/styles.cpp: Reformat into GNU style. - * utilities/Makefile.am: Add the graphics libraries. - -2006-03-20 Rob Savoye - - * doc/C/Makefile.am: Optionally use dblatex or pdfxmltex to build - PDFs if FOP doesn't exist. - * macros/docbook.m4: Also look for dblatex and pdfxmltex. - -2006-03-19 Rob Savoye - - * configure.ac, macros/gstreamer.m4: Look for Gstreamer. - -2006-03-18 Rob Savoye - - * server/Movie.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * server/Sprite.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * server/dlist.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * server/impl.h: Add GNASH_REPORT_FUNCTION to some functions. - * server/morph2.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * server/shape.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * server/text.cpp: Add GNASH_REPORT_FUNCTION to some functions. - * plugin/mozilla-sdk/include/{prcvar.h, prerr.h, prerror.h, - prinit.h, prinrval.h, prlock.h, prthread.h, prwin16.h}: New files - copied from Firefox so we can use NSPR without Firefox sources. - * backend/gnash.cpp: Add -w option to enable producing the disk - based log file, instead of enabling it by default as it can get - huge. This log is only useful to developers. This disk log *is* - produced by default when using the plugin. - * libbase/log.h: Add a log_trace() function that works like - GNASH_REPORT_FUNCTION, but also prints the pointer of the current - instance. Useful for debugging multi-threaded programs. Tracing - now always prints to the disk file, and only the terminal display - is controlled by the verbosity level. - * libbase/log.cpp: Add a log_trace() function that works like - GNASH_REPORT_FUNCTION, but also prints the pointer of the current - instance. Useful for debugging multi-threaded programs. Tracing - now always prints to the disk file, and only the terminal display - is controlled by the verbosity level. Strip the CR from messages - passed to the log_* wrapper and replace it with a endl so the - timestamps work for all the old messages too. - * server/types.cpp: Small fix to color matrix loading, /256.0 - instead of /255.0/ - * plugin/player.cpp: Use Mozilla NSPR API for mutexes, threads and - condition variables instead of SDL. For now, only play the movie - once. - * plugin/plugin.cpp: Use Mozilla NSPR API for mutexes, threads, - and condition variables instead of SDL. - * plugin/plugin.h: Use Mozilla NSPR API for mutexes, threads, and - condition variables instead of SDL. - -2006-03-18 Tomas Groth Christensen - - * backend/sound_handler_sdl.cpp: Make mp3-support depend on - HAVE_MAD_H instead of GAMESWF_MP3_SUPPORT. - * macros/docbook.m4: Include the J2REDIR enviroment variable - in the list of where java could be. - -2006-03-17 Rob Savoye - - * server/button.cpp: Clear() m_actions after resizing when - destructing a button. Bug #16105 - -2006-03-11 Rob Savoye - - * doc/C/Makefile.am: Add logging.xml. - * libbase/log.h: Only print TRACE messages at verbose level 2. Add - getVerbosity() accessor. - * server/impl.cpp: Add fixme_loader(), and set the unimplemented - tags to that so we know when we hit one. - * server/impl.h: Add prototype for fixme_loader(). - * server/text.cpp: Clean up warning message. - - * doc/C/internals.xml: Add section on the new debug logging - system. - * doc/C/logging.xml: New section on the new debug logging - system. - - * utilities/Makefile.am: Add libxml flags and libs. - * utilities/parser.cpp: Use getopt for processing command line - arguments. Reindent to project coding standards. Add GNU standard - options. Use new logging system, delete the old one. - * utilities/processor.cpp: Use getopt for processing command line - arguments. Reindent to project coding standards. Add GNU standard - options. Use new logging system, delete the old one. - * backend/gnash.cpp: Use getopt for processing command line - arguments. Add GNU standard options. Use new logging system, - delete the old one. - * libbase/tu_file.h: Reformat to be more readable. - * libbase/tu_file.cpp: Reformat to be more readable. - -2006-03-10 Rob Savoye - - * server/log.h: Moved to libbase. - * server/log.cpp: Moved to libbase. - * libbase/log.h: Add support for an STL streams based interface to - the C based API for debugging messsages. - * libbase/log.cpp: Add support for an STL streams based interface to - the C based API for debugging messsages. - * backend/gnash.cpp: Add support for new logging system, delete - old callback system. - * backend/render_handler_ogl.cpp: Cleanup some formating. - * libbase/Makefile.am: Add log.h and log.cpp. - * server/Makefile.am: Remove log.cpp and log.h. - * server/xml.cpp: Use the new debugging macros. - * utilities/Makefile.am: Add XML flags and libs. - * utilities/parser.cpp: Add support for new logging system, delete - old callback system. - * utilities/processor.cpp: Add support for new logging system, - delete old callback system. - -2006-03-08 Rob Savoye - - * configure.ac: Make using XML the default. - -2006-03-10 Rob Savoye - - * plugin/Makefile.am: Use DESTDIR when making directory. - * mkinstalldirs: Add so we have it when not using the install - utility (using libtool) to make directories. - * utilities/Makefile.am: Add ZLIB_LIBS to ldflags. - -2006-03-09 Michael Carlson - - * server/array.cpp: Add TODO to make sort constants static - * server/Date.h: Add functions convertTM, setFromTM, Normalize - (for internal use), improve comments on utility functions - * server/Date.cpp: Implement getTime, setUTC functions, fix - problem with regular Set functions, fix return values on - several functions, add comments, TODOs, asserts, and fix a typo - -2006-03-09 Rob Savoye - - * backend/Makefile.am: Add ZLIB_LIBS to LDFLAGS. - - * All GPL'd files: Updated the copyright message in all GPL'd - files with the new Mozilla exemption as crafted by the FSF. This - enables Gnash to be used in Mozilla without requiring all the - other plugins to be GPL'd. - -2006-03-09 Michael Carlson - - * server/Date.cpp: Implement all Date::getUTC functions, convert - to tab indenting, create convertUTC() for internal use, - implement a sane (but probably non-standard) Date::toString - * server/Date.h: Add Date::convertUTC function for internal use, - convert to tab indenting - -2006-03-08 Rob Savoye - - * configure.ac: Make using XML the default. - -2006-03-08 Michael Carlson - - * backend/gnash.cpp: Fix typo in and add newline to error message - Avoid infinite loop and make gnash still poll for SDL events when - libxml is not present - * server/Date.cpp: Implement Date::gettimezoneoffset, all the - basic "set" functions, cleanup messages to user a bit, rename - set() to setDate(), in accordance with two unofficial references - * server/Date.h: Add minutesEast variable to store timezone, - rename set() to setDate() - * server/array.cpp: Add some constants related to sorting - -2006-03-07 Rob Savoye - - * doc/C/plugin.xml: New file for internals on writing Mozilla - plugins. - * doc/C/internals.xml: Include new plugin section. - * doc/C/Makefile.in: Add plugin.xml to the list of doc chapters. - -2006-03-07 Rob Savoye - - * doc/C/plugin.xml: New file for internals on writing Mozilla - plugins. - * doc/C/internals.xml: Include new plugin section. - * doc/C/Makefile.in: Add plugin.xml to the list of doc chapters. - -2006-03-06 Rob Savoye - - * server/shm.cpp: Clear up ifdef mess... Both shm_open() and - shmget() use file descriptors. - -2006-03-05 Rob Savoye - - * server/Date.cpp: If we don't have gettimeofday, use - ftime instead. - * server/shm.h: Add support for win32 shared memory. - * server/shm.cpp: Add support for win32 shared memory. - * server/network.h: Add support to use winsock. - * server/network.cpp: Add support to use winsock. - * configure.ac: Add tests for sysconf(), shmget(), shmat(), - mmap(), gettimeofday(), socket(), CreateFileMapping(), and - winsock.h. This covers all the differences between mingw builds - and native unix builds. - * libbase/container.h: Don't use pthread hack for BSD whcn cross - compiling with mingw. - * libbase/utility.h: Don't define windows specific assert() - replacement when using mingw. - * libgeometry/kd_tree_dynamic.cp: Include wctype.h and wchar.h to - shut up mingw. - - * server/action.cpp (gnash): Replace isblank() with testing for - space and tab so it compiles with mingw32. - - * macros/kde.m4: Use our zlib tests, not the KDE one because the - Gnash test works when cross compiling. - -2006-03-04 Rob Savoye - - * Makefile.am: Always build the plugin now. - * configure.ac: Look for stdint, which is used by some old BSDs - that for the Mozilla header files. Arg. Don't use AC_CHECK_FUNCS - for finite and isfinite, try to compile code. On some systems - these are functions, and on some they're constants, so this covers - both cases to return a meaningful result. We always build the - plugin now, so having firefox-config isn't a failure anymore. - * libbase/dlmalloc.h: Move USE_DL_MALLOC ifdef up a few lines. - * macros/firefox.m4: Add new macro to replace the old one, which - is renamed. Turns out none of the flags from mozill-config are - needed, so only find the path to install the plugin. - * macros/kde.m4: Turn more errors into notices so the build - doesn't stop if KDE parts aren't installed. We only want to use - them if building klash. Optionally skip some tests if klash isn';t - installed. Otherwise they get set if they're installed even if - you aren't building klash. - * plugin/Makefile.am: Don't use the DEFS from firefox-config, - only MOZ_X11 is needed by the SDK. Add include path to our own - Mozilla headers. - * plugin/mozilla-sdk/Makefile.am: Add include path to our own - Mozilla headers. - * servers/Object.h: Reverse ifdef test for HAVE_FINITE so it works - even with configure errors. - * plugin/mozilla-sdk/include: Copy critical header files from - Firefox sources so you don't need the development packages - installed, nor do you need fierfox-config, which isn't included at - all in some distributions. - - * macros/docbook.m4: Patch from Pavekl Roskin , to - fix configure test error. - * macros/libXML.m4: Patch from Pavekl Roskin , to - correctly use xml2-config, instead of pkg-config. - - * plugin/player.cpp: Define NO_NSPR_10_SUPPORT so we don't have - header file typedef conflicts. We don't care about the older NSPR - 10 anyway... - -2006-03-03 Rob Savoye - - * plugin/klash: Build klash, a Gnash customized Konquerer plugin - that works similar to MozPlugger. Contributed by Koos Vriezen - . - * configure.ac: Add Klash support, which optionally invokes a - bunch of KDE tests. Add --enable-klash to build Konquerer plugin. - * macros/kde.m4: KDE config macros that seem to be a default - collection. These have been tweaked so the errors if QT or KDE - isn't found are removed. This is done later in configure.in, and - we want to build all the other code on systems without KDE. - * plugin/mozplugger: Add patch to add Gnash support to - MozPlugger. - * plugin/klash/README, klash.desktop, klash_part.cpp, - klash_part.desktop, klash_part.h, klashpartui.rc, - klashplayer.lsm, klashrc, pluginsinfo: New files from contributed - Konquer plugin (works similar to MozPlugger) - -2006-03-02 Rob Savoye - - * plugin/plugin.cpp: Always lock the display before locking X. Add - the locking to the function calls themselves, rather than wrapping - all the function calls. Add debug background thread for now. We - don't need SDL in the plugin now at all. Changes what gets setup - and when. Use a POSIX condition to signal the threads when they - have a movie to play. - * plugin.h: Add unsetGL() to unset the context. important for - threads. Add tons of silly debug messages. - * player.cpp: Extern the mutexes, and condition variables. Always - lock the display before locking X. - * macros/hashmap.m4: New configure test for hash_map extension. - * configure.as: Look for hash_map extension. Check for vsnprintf, - strcasecmp, and stricmp. - * libbase/container.h: Include config.h. Use configure support to - define template. - * libbase/container.cpp: Include config.h. Use ifdefs based on - configure tests for vsnprintf, strcasecmp, and stricmp. - * libbase/utility.cpp: Don't build anything if dmalloc isn't - enabled. - * libbase/config.h: Remove as it doesn't appear to be used, and - conflicts with the autoconf generated one. - * libbase/Makefile.am: Include files from the src server directory - too, and the top level where config.h is. Don't include the - removed config.h in the header list. - -2006-02-28 Jim Garrison - - * server/MovieClipLoader.cpp, server/Sprite.cpp, - server/action.cpp, server/array.cpp, server/text.cpp, - server/xml.cpp, server/xmlsocket.cpp: first step in migration to - std::string - -2006-02-28 Tomas Groth Christensen - - * testsuite/actionscript.all/gen-test.sh: made the test-generator - use case-sensitivity, since MM flashplayer is case sensitive. - -2006-02-28 Rob Savoye - - * configure.ac: Look for finite and isfinite. - * server/Object.h: Define finite to be isfinite if isfinite - doesn't exist. - * macros/docbook.m4: Make not needing the docbook2X tools the - default. - -2006-02-27 Jim Garrison - - * libbase/Makefile.am: removed unused files - * libbase/cschema.h: moved to Attic - * libbase/file_util.cpp: moved to Attic - * libbase/file_util.h: moved to Attic - * libbase/png_helper.cpp: moved to Attic - * libbase/png_helper.h: moved to Attic - -2006-02-27 Rob Savoye - - * plugin/player.cpp: Include Movie.h, which is where movie - definitions get defined now. Include gnash.h before other local - headers. - -2006-02-26 Jim Garrison - - * libbase/container.h: hash class is now implemented using - hash_map - * server/Movie.cpp: partial migration to hash_map API - * server/Movie.h: partial migration to hash_map API - * server/Object.cpp: partial migration to hash_map API - * server/Sprite.h: partial migration to hash_map API - * server/action.cpp: partial migration to hash_map API - * server/impl.h: partial migration to hash_map API - -2006-02-26 Sandro Santilli - - * server/action.cpp: fixed bug in doActionCallFunction making - samples/slider.swf play fine. - * server/: merged movie_definition_sub into - movie_definition. - * testsuite/actionscript.all/Makefile.am: provided - OUTPUT_VERSION define for *.swf and *.vswf rules - -2006-02-26 Rob Savoye - - * libbase/dlmalloc.h: Include stdlib.h instead of the depreciated - malloc.h. - * libbase/tu_swap.h: OpenBSD defines swap macros with the same - name as these functions, so use our implementation intead. - * macros/pthread.h: Reqwrite to handle weird NetBSD Pth versus - Pthread problem. - * macros/sdl.m4: Throw out compile test for something simpler and - more portable. - * utilities/Makefile.am: Add pthread header and library. - * server/Makefile.am: Add pthread header and library. - * backend/Makefile.am: Add pthread header and library. - * libbase/container.h: Add ugly NetBSD specific hack so it'll use - pthread, not Pth if both are installed. - * libgeometry/kd_tree_dynamic.cp: Include stdio so __sputc() is - defined on NetBSD. - -2006-02-25 Jim Garrison - - * backend/render_handler_d3d.cpp: substituted array<> with - std::vector<>. - * backend/render_handler_xbox.cpp: substituted array<> with - std::vector<>. - * libbase/container.cpp: substituted array<> with std::vector<> - * server/morph.cpp: substituted array<> with std::vector<> - * server/morph.h: substituted array<> with std::vector<> - -2006-02-25 Michael Carlson - - * server/sound_handler_mp3.cpp: Use std::vector<> instead of - array<> - -2006-02-24 Jim Garrison - - * backend/sound_handler_sdl.cpp: substituted array<> with - std::vector<> - * libbase/container.h: removed array<> definition - * libbase/grid_index.h: substituted array<> with std::vector<> - * libbase/image_filters.cpp: substituted array<> with std::vector<> - * libbase/triangulate.h: substituted array<> with std::vector<> - * libbase/triangulate_float.cpp: substituted array<> with - std::vector<> - * libbase/triangulate_impl.h: substituted array<> with - std::vector<> - * libbase/triangulate_sint32.cpp: substituted array<> with - std::vector<> - * libgeometry/kd_tree_dynamic.cpp: substituted array<> with - std::vector<> - * libgeometry/kd_tree_dynamic.h: substituted array<> with - std::vector<> - * libgeometry/tqt.h: substituted array<> with std::vector<> - * server/Function.cpp: substituted array<> with std::vector<> - * server/Function.h: substituted array<> with std::vector<> - * server/Movie.cpp: substituted array<> with std::vector<> - * server/Movie.h: substituted array<> with std::vector<> - * server/MovieClipLoader.cpp: substituted array<> with std::vector<> - * server/Sprite.cpp: substituted array<> with std::vector<> - * server/Sprite.h: substituted array<> with std::vector<> - * server/action.cpp: substituted array<> with std::vector<> - * server/action.h: substituted array<> with std::vector<> - * server/button.cpp: substituted array<> with std::vector<> - * server/button.h: substituted array<> with std::vector<> - * server/dlist.h: substituted array<> with std::vector<> - * server/font.cpp: substituted array<> with std::vector<> - * server/font.h: substituted array<> with std::vector<> - * server/fontlib.cpp: substituted array<> with std::vector<> - * server/fontlib.h: substituted array<> with std::vector<> - * server/impl.cpp: substituted array<> with std::vector<> - * server/impl.h: substituted array<> with std::vector<> - * server/shape.cpp: substituted array<> with std::vector<> - * server/shape.h: substituted array<> with std::vector<> - * server/stream.cpp: substituted array<> with std::vector<> - * server/stream.h: substituted array<> with std::vector<> - * server/styles.h: substituted array<> with std::vector<> - * server/tesselate.cpp: substituted array<> with std::vector<> - * server/text.cpp: substituted array<> with std::vector<> - * server/text.h: substituted array<> with std::vector<> - * server/textformat.cpp: substituted array<> with std::vector<> - * server/timers.cpp: substituted array<> with std::vector<> - * server/timers.h: substituted array<> with std::vector<> - * server/xml.cpp: substituted array<> with std::vector<> - * server/xmlsocket.cpp: substituted array<> with std::vector<> - * server/xmlsocket.h: substituted array<> with std::vector<> - * utilities/processor.cpp: substituted array<> with std::vector<> - -2006-02-24 Jim Garrison - - * backend/sound_handler_sdl.cpp: fixed int, unsigned int comparisions - * libbase/grid_index.h: fixed int, unsigned int comparisions - * libbase/image_filters.cpp: fixed int, unsigned int comparisions - * libbase/triangulate_impl.h: fixed int, unsigned int comparisions - * libgeometry/kd_tree_dynamic.cpp: fixed int, unsigned int comparisions - * libgeometry/tqt.cpp: fixed int, unsigned int comparisions - * plugin/plugin.cpp: fixed int, unsigned int comparisions - * server/Movie.cpp: fixed int, unsigned int comparisions - * server/Sprite.cpp: fixed int, unsigned int comparisions - * server/action.cpp: fixed int, unsigned int comparisions - * server/button.cpp: fixed int, unsigned int comparisions - * server/dlist.cpp: fixed int, unsigned int comparisions - * server/font.cpp: fixed int, unsigned int comparisions - * server/fontlib.cpp: fixed int, unsigned int comparisions - * server/impl.cpp: fixed int, unsigned int comparisions - * server/morph2.cpp: fixed int, unsigned int comparisions - * server/shape.cpp: fixed int, unsigned int comparisions - * server/styles.cpp: fixed int, unsigned int comparisions - * server/tesselate.cpp: fixed int, unsigned int comparisions - * server/text.cpp: fixed int, unsigned int comparisions - * server/xmlnode.cpp: fixed int, unsigned int comparisions - * server/xmlsocket.cpp: fixed int, unsigned int comparisions - -2006-02-23 Rob Savoye - - * plugin/Makefile.am: Add flags for GTKGLExt - dependancies. Remove ogl_sdl.cpp and ogl_sdl.h. Use -d instead of - -z to see if the directory exists. - * plugin/plugin.cpp: Don't use ogl_sdl, move the functionality - into the nsPluginInstance class. Add locking around all GL and X11 - calls. Add Doxygen style comments blocks. - * plugin/plugin.h: Don't use ogl_sdl, move the definitions - into the nsPluginInstance class. - * plugin/ogl_sdl.{h,cpp}: Move functionality into nsPluginInstance - class. Remove files. - - * doc/C/sources.html: Add section on cross compiling Gnash. - * libgeometry/kd_tree_packed.cpp: Comment out the two somewhat - bogus assertions so this file can be cross compiled. - * configure.ac: If the plugin is disabled, or glext is disabled, - don't spew errors messages, since we didn't bother to look for - those components anyway. Rename the macros where the prefix - changed. - * macros/firefox.m4: Don't try to configure if the plugin is - disabled. - * macros/jpeg.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/libXML.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. - * macros/mad.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/ming.m4: Rename to use GNASH_ instead of AM_ for the - prefix. - * macros/ogg.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/opengl.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/png.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/sdl.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/zlib.m4: Look in $prefix for headers and libraries, - useful for cross-compiling. Rename to use GNASH_ instead of AM_ - for the prefix. - * macros/gtkglext.m4: If --enable-glext is passed to configure, - enable configuring pango, cairo, atk, glib, and gtk2 macros. - * macros/atk.m4: New file to look for Gnome ATK, which is - unfortunately a dependancy of GtkGlext. - * macros/cairo.m4: New file to look for Cairo, which we wanted to - do eventually anyway, by GtkGlext needs it too. - * macros/glib.m4: New file to look for Glib, which is - unfortunately a dependancy of GtkGlext. - * macros/gtk2.m4: New file to look for GTK+ version 2.x, which is - a dependancy of GtkGlext, but Firefox uses it too. - * macros/pango.m4: New file to look for Gnome ATK, which is - unfortunately a dependancy of GtkGlext. - - * doc/C/gnash.xml: Add the -x command line option. - * doc/C/internals.xml: Add section under Plugin about using - Mozplugger to use the standalone player. - -2006-02-22 Rob Savoye - - * backend/gnash.cpp: Add -x option to pass in the X window ID from - mozplugger. If a window ID is passed in, use that to display - in. This lets the standalone player be embedded in the browser - window. - -2006-02-20 Rob Savoye - - * configure.ac: Add GNASH_PATH_GLEXT. - * macros/gtkglext.m4: New config file to find GtkGLext package. - - * packaging: New directory to hold config files to build packages - for distributions. - * packaging/debian: New directory for DEB building config files. - * packaging/redhat: New directory for RPM building config files. - * packaging/redhat/gnash.spec: Contributed spec file for building - RPMs. - - * macros/zlib.m4,sdl.m4,pthreads.m4,png.m4,opengl.m4, - ogg.m4,mad.m4,libtool.m4,libXML.m4,jpeg.m4,dmalloc.m4: - Look for /lib64 and /usr/lib64, and use those for search paths if - they exist. - * configure.ac: Blindly add -L/usr/lib64, so the autoconf library - checking functions get the right path. - -2006-02-17 Rob Savoye - - * server/shm.cpp (closeMem): Use shmctl(), not shm_unlink to - remove a shared memory segment on BSD machines. - -2006-02-15 Rob Savoye - - * config.guess: Updated to latest autoconf release. - * config.sub: Updated to latest autoconf release. - * ltmain.sh: Updated to latest libtool release. - * backend/render_handler_ogl.cpp: Migrate patch from GameSWF. - * server/action.h: Make set_local_frame_top multiline so it's - easier to read. - * server/gnash.h: Add prototype for cxform::clamp(). - * server/types.cpp: Add cxform::clamp(). - * server/shape.cpp: Fix a few warnings about comparison and sign. - * server/shm.cpp (attach): Use SVR4 styles shared memory segments - if there is no POSIX shared memory support, like NetBSD or - OpenBSD. - * server/shm.h: Add private data to store the SV4 shared memory - key, and the SVR4 shared memory ID. - * server/xml.cpp: Move a few methods outside - ENABLE_TESTING. Return NULL from a few unimplemented methods. - * server/xml.h: Move a few methods outside ENABLE_TESTING. - * server/xmlnode.h: Move a few methods outside ENABLE_TESTING. - * server/xmlnode.cpp: Move a few methods outside ENABLE_TESTING. - * testsuite/actionscript.all/XML.as: Make some tests unresolved - because I'm not clear what the proper behaviour is. - -2006-02-15 Sandro Santilli - - * testsuite/actionscript.all/Makefile.am: added online-tests rule. - * testsuite/actionscript.all/Function.as: avoided === test, not - available in versions < 6. - * testsuite/actionscript.all/gen-index.sh: utility script for - the online-tests rule: generates index.html and index.wiki. - * testsuite/actionscript.all/check.as: support for ONLINE define, - using XTRACE and only printing failures when that's defined. - * testsuite/actionscript.all/gen-test.as: changed to use the check - macro. - * testsuite/actionscript.all: Boolean.as, Camera.as, Color.as, - ContextMenu.as, CustomActions.as, Error.as, LoadVars.as, - Microphone.as, Mouse.as, NetStream.as, Selection.as, - SharedObject.as, Stage.as, System.as, TextSnapshot.as, Video.as: - regenerated. - * server/swf.h: added note about which action_buffer private - method implmements which ACTION_DELETE* block. - * testsuite/actionscript.all/Global.as: added test for - _global.escape. - -2006-02-14 Rob Savoye - - * configure.ac: Look for shm_open(). - * server/shm.cpp: If we don't have POSIX shared memory (like *BSD - systems), don't try to compile anything for now. - * server/shm.h: If we don't have POSIX shared memory (like *BSD - systems), don't try to compile anything for now. - -2006-02-14 Sandro Santilli - - * server/Object.{h,cpp}: new instanceOf(function_as_object*) method. - * server/action.{h,cpp}: ACTION_INSTANCEOF and ACTION_CASTOP - implemented. Fixed ACTION_DELETE. - * testsuite/actionscript.all/Inheritance.as: instanceOf tests. - * testsuite/actionscript.all/delete.as: delete tests. - * testsuite/actionscript.all/Date.as: changed to use the check() macro. - -2006-02-14 Michael Carlson - - * server/array.cpp: Make tostring() and join() not output any - enclosing parentheses, and handle empty array case better - * testsuite/actionscript.all/array.as: Change all tests to use - new check macro. Add tests for all implemented array functions, - as well as several tests for the unimplemented sort function. - * libbase/jpeg.cpp: don't ever crash by trying to read - headers of the same jpeg twice - -2006-02-13 Rob Savoye - - * macros/firefox.m4: Set FIREFOX_PLUGINS correctly at the proper - time. Add another pattern to the sed rule to munge the path. - * configure.ac: Print out where the plugin will get installed. - - * libamf/Makefile.am: DOn't link in the other libraries so libamf - can be standalone. - * libamf/amf.cpp: Default to not using log_msg(). - * libamf/amftest.cpp: Don't build unless you have dejagnu.h. - * configure.ac: Check for the dejagnu.h header for unit testing. - -2006-02-13 Sandro Santilli - - * testsuite/actionscript.all/xtrace.as: trace window enlarged. - * testsuite/actionscript.all/Inheritance.as: inheritance test - * server/Object.h: new header file for definitions from as_object - up to as_value (will split again at sometime). - gnash::as_object_interface class definition merged with - gnash::as_object, now directly derived from gnash::resource. - * server/action.cpp: doActionEquals and doActionStrictEquals private - action_buffer methods. Made as_value::to_object valid for AS_FUNCTION - value types - * server/Function.{cpp,h}: Made 'Function' an AS_FUNCTION to allow for - 'prototype' based inheritance. Implemented Function.call - - -2006-02-12 Michael Carlson - - * server/action.cpp: Fix silly '!' that breaks _global.isfinite - -2006-02-12 Rob Savoye - - * libamf/amf.h: New file for AMF encoder/decoder library. - * libamf/amfutf8.h: New file for AMF encoder/decoder library to - handle UTF8 strings. - * libamf/amf.cpp: New file for AMF encoder/decoder library. - * libamf/Makefile.am: New makefile for amf library. - * libamf/amftest.cpp: New test case for AMF library. - * Makefile.am: Add libamf directory. - * configure.ac: Add libamf directory. - -2006-02-11 Jim Garrison - - * libbase/container.h: changed array to derive from std::vector - instead of being custom implemented, renamed hash::is_empty() - to hash::empty() - * libbase/grid_index.h: changed to std::vector API - * libbase/triangulate_impl.h: changed to std::vector API - * server/Movie.cpp: changed to std::vector API - * server/MovieClipLoader.cpp: create explicit empty array instead - of passing the value 0 - * server/Sprite.h: set each element of std::vector to - false instead of using memset - * server/action.cpp: changed to std::vector API - * server/dlist.cpp: changed to std::vector API - * server/font.cpp: changed hash::is_empty() to hash::empty() - * server/fontlib.cpp: changed to std::vector API - * server/impl.cpp: changed to std::vector API - * server/shape.cpp: changed to std::vector API, typecast - std:vector::size() to an integer to fix an assertion - * server/tesselate.cpp: changed to std::vector API - * server/textformat.cpp: create explicit empty array instead - of passing the value 0 - * server/timers.cpp: create explicit empty array instead - of passing the value 0 - * server/xml.cpp: create explicit empty array instead - of passing the value 0 - * server/xmlsocket.h: changed to std::vector API - -2006-02-11 Rob Savoye - - * server/xmlnode.{h,cpp): Implement nodeType property. - * testsuite/actionscript.all/XMLNode.as: Add test for - XMLNode::nodeType property. - * doc/C/xmlnode.xml: New file for accidentally skipped class. - * doc/C/internals.xml: Update section on using as_value - objects. Include XMLNode section. - * macros/docbook.m4: Extract and save the version of the Docbook2X - tools, because there are two big differences in command line - options depending which version you have. - * configure.ac: Print the version of the Docbook2X tools, if - --enable-docbook is specified. - * doc/C/Makefile.am: Check the version of the Docbook2X tools when - running db2x_texixml. - * macros/sdl.m4: Define HAVE_SDL_MIXER_H if we have SDL Mixer - installed. - -2006-02-10 Rob Savoye - - * backend/render_handler_ogl.cpp (render_handler): Migrated patch - from GameSWF that fixed a problem that meant that bitmap fill - styles would not respect colour modulation (e.g. the use of Tint - in Flash). - * server/types.h: Define cxform::clamp. - * server/types.cpp: Implementation of cxform::clamp. - - * doc/C/internals.xml: Add section on adding properties to an - ActionScript class. Add section on using as_value objects. - - * testsuite/actionscript.all/dejagnu.as: Implement the DejaGnu - unit testing API for ActionScript. - * testsuite/actionscript.all/XML.as: Use new DejaGnu API for test - output. - * testsuite/actionscript.all/XMLNode.as: New test case for - XMLNode to test the methods and properties. - * server/xmlnode.h: Add prototypes for new methods. - * server/xmlnode.cpp: Implement appendChild() cloneNode() - methods, and nodeName, nodeValue, firstChild, lastChild, - previousSibling, nextSibling, parentNode properties. - * server/xml.h: Define properties correctly. - * server/xml.cpp: Add properties to a node as other operations - on the node are done. - * configure.ac: Disable the XMLReader by default. - * libbase/membuf.cpp: Free, don't delete the pointer in the - destructor. - * server/action.cpp: Define virtual destructor for - as_property_interface. - * server/gnash.h: Define virtual destructor for import_visitor. - * server/shape.{h,cpp}: Define destructor for tesselating_shape. - * server/styles.h: Define destructors for base_fill_style and - base_line_style. - * server/tesselate.{h,cpp}: Define destructor for - trapezoid_accepter. - -2006-02-10 Sandro Santilli - - * server/action.{cpp,h}: added doActionCallMethod, - doActionCallFunction, doActionDefineFunction, - doActionGetMember and doActionDefineFunction2 private - methods to action_buffer. Changed text representation - of generic objects from [object Object] to a more - interesing value, fixed - * testsuite/actionscript.all/Function.as: more tests. - * server/Object.cpp: reworked get_member/set_member to map - "__proto__" to m_prototype. - * server/Function.{h,cpp}: mapped m_properties to - "prototype". Set prototype.constructor at properties - initialization time. - -2006-02-09 Rob Savoye - - * macros/ghelp.m4: Disable ghelp support by default. Use - --enable-ghelp to turn it back on. - * doc/omf.make: Don't try to install anything if GHELP isn't - defined. - -2006-02-09 Sandro Santilli - - * doc/C/Makefile.am: spaces => tab - * doc/C/internals.xml: about writing tests - * testsuite/actionscript.all/Global.as: added two more tests, - fixed existing test to bypass preprocessor mangling. - * testsuite/actionscript.all/Function.as: added some tests - for prototype, prototype.constructor and __proto__ (inheritance) - * server/action.{cpp,h}: moved ACTION_NEW and ACTION_INSTANCEOF - handling code in action_buffer private doActionNew and - doActionInstanceOf (the latter being under development). - -2006-02-09 Michael Carlson - - * server/action.cpp: Implement _global.parseInt for all cases. - Also implement _global.parseFloat, and _global.isNan, - _global.isFinite, _global.unescape - * server/action.h: add as_value::is_finite(), set_nan for - ease of use - * testsuite/actionscript.all: add and fix up parseInt test cases - also add some parseFloat test cases - -2006-02-08 Rob Savoye - - * server/shm.cpp (exists): Move to be within the ENABLE_TESTING - block. - -2006-02-08 Rob Savoye - - * Makefile.am: Rearrange directories for SUBDIRS and - DIST_SUBDIRS. - * autogen.sh: Remove hardcoded path to /usr/bin. - * doc/C/appendix.xml: Add section to "Coding Style" about Doxygen - style somments. - * doc/C/internals.xml: Metion code generation scripts in - CVS. Expand "Adding ActionScript" section Add sectioj on - parameter passing for callbacks. Add section on testing Gnash. - * server/Makefile.am: Add xmlattrs and xmlnodes to the list of - headers and source files. - * server/xml.h: Move XMLAttrs and XMLNode to their own source - files to reduce clutter. Use std::vector instead of "tu - array". Add new accessors to use for testing. Move a few method - definitions to the source file. - * server/xml.cpp: Move XMLAttrs and XMLNode to their own source - files to reduce clutter. Use std::vector instead of "tu array". - Add new accessors to use for testing. Move a few method - definitions from the header file. Implement XML::appendChild(), - XMLNode::appendChild(), XML::createElement(), XML::cloneNode(), - and XML::createTextNode(). - * testsuite/actionscript/XML.as: Add tests for the new methods. - - * server/xmlattrs.{h,cpp}: New file for XMLAttr class moved out of - xml.h. - * server/xmlnode.{h,cpp}: New file for XMLAttr class moved out of - xml.h. - -2006-02-06 Patrice Dumas - - * macros/docbook.m4: enable by default. Add an AM_CONDITIONNAL for - each of the formats. - * macros/ghelp.m4: enable by default. Correct AC_PATH_PROG 3rd arg. - Don't check for the user is root (the user needs to be root only - for make install, in case he wants to run scrollkeeper-update). - * doc/omf.make: don't use $(GHELP) it is never set. Test for the - user being root only when running scrollkeeper-update, any user - may install the files. Use $(omffile) instead of $(srcdir)/*.omf. - Add $(DESTDIR). - * doc/xmldocs.make: move general stuff to doc/C/Makefile.am - (EXTRA_DIST, CLEANFILES, xml_files). Similarly, define all-local - and not all. Add amissing $(DESTDIR). Take dist-hook and - install-data-hook from doc/C/Makefile.am. - * doc/C/Makefile.am: use the GHELP automake conditionnal to - conditionnally include scrollkeeper stuff. Remove XML_FILES, as - xml_files from the scrollkeeper code is the same. Distribute - info and texi files. Simplify rules to build docs and - conditionnalize on automake conditionnals. If the tools aren't - there, touch the files. As the doc files requires specific - tools to build, flag them as MAINTAINERCLEANFILES. - * doc/C/gnash.omf: rename to gnash-C.omf and minor changes. - -2006-02-08 Sandro Santilli - - * testsuite/actionscript.all/Global.as: _global functions tests - * testsuite/actionscript.all/Function.as: modified to use check.as - * testsuite/actionscript.all/Object.as: modified to use check.as - * testsuite/actionscript.all/check.as: framework for dejagnu testing - -2006-02-08 Michael Carlson - - * server/action.cpp: implement _global.parseInt's simplest case - -2006-02-06 Sandro Santilli - - * server/action.h: Added as_environment::dump_stack(), more dox - * server/action.cpp: Fixed , cleanups - * server/swf.h: Added dox for ACTION_CALLMETHOD - * libbase/container.h: Doxygen comments for smart_ptr class - * testsuite/actionscript.all/Function.as: more tests for - Function.apply() - * testsuite/actionscript.all/Makefile.am: rule to build - 'visual tracing' version of tests (.vswf) - * server/Function.cpp: implemented Function.apply() - -2006-02-05 Sandro Santilli - - * server/action.cpp used symbolic names in s_instruction_table. - -2006-02-05 Rob Savoye - - * testsuite/actionscript.all/testin.xml: XML test file to test the - parser. - - * plugin/plugin.cpp (NewStream): Add support to parse the options - passed in when the plugin is invoked to play a stream. Add special - debug flags so we can attach GDB at leisure and not have to screw - with loading shared libraries. - * server/xml.{h,cpp}: Fix capitalization errors in - names. Implement getBytesTotal(), getBytesLoaded(), - and hasChildNodes(). - * testsuite/actionscript.all/XML.as: Add tests for - getBytesTotal(), getBytesLoaded(), and hasChildNodes(). - - * server/xml.h: Add stubs for the missing methods and - properties. Fix bit rot with get_member() so it actually works - again. - * server/xml.cpp: Add stubs for the missing methods and - propeties. - * testsuite/actionscript.all/XML.as: New file to test XML class. - -2006-02-05 Sandro Santilli - - * server/swf.h: added SWF::ACTION_DEFINEFUNCTION2 (0x8e) - * server/action.cpp: added support for Object copy construction - obj = new Object(otherobj). - * server/: renamed as_as_function to as_function_object, moved - it's definition in Function.{h,cpp}. Moved as_object methods - from action.cpp to Object.cpp (new file). Fixed definition - of prototipal ::apply and ::call members for Function object. - -2006-02-05 Michael Carlson - - * server/Sprite.cpp: goto_frame now uses mutator to stop instead - of directly changing state (so now it resets dt counter too) - -2006-02-04 Rob Savoye - - * server/shm.{h,cpp}: New support code for using POSIX named - shared memory segments. - * server/LocalConnection.h: Alternatively use shared memory - instead of a socket connection. - * server/LocalConnection.cpp: Alternatively use shared memory - instead of a socket connection. - * testsuite/actionscript.all/LocalConnection.as: Add addiotnal - tests for when using a shared memory subsystem. - * server/Makefile.am: Add shm.h, shm.cpp, network.cpp, network.h. - * configure.ac: Add --enable flag to switch using shared memory to - networking for local connections. - - * server/LocalConnection.h: Change API for connect(), and - domain(). - * server/LocalConnection.cpp: Change API for connect(), and - domain(). Initial implementations of domain(), connect(), and - close(). - - * server/network.cpp: Replace code with networking code from one - of my other GPL'd projects, PowerGuru. That code is much more - fully functional in a generic sense, and pretty solid too. Add - more accessors to use for testing LocalConnection. - * server/network.h: Add more accessors to use for testing - LocalConnection. - * testsuite/actionscript.all/LocalConnection.as: Test the newly - implemented methods. - - * server/network.{h,cpp}: New files to hold base networking class - for use by other ActionScript objects. This base class contains - the code for custom methods that implement accessors to the data - to enable unit testing derived classes like NetConnection and - LocalConnection. - * server/NetConnection.h: Move all testing code to network.h. - * server/NetConnection.cpp: Move all testing code to - network.cpp. Setup callbacks for our custom methods using the - Network, instead of NetConnection class. - - * Makefile.am: Rearrange variable definitions so the dist and - distcheck Makefile targets actually work. Add DIST directories so - everything makes it into the tarball. - * doc/C/Makefile.am: Define XML_FILES for all the other xml doc - files. Add DESTDIR to the install path. Rearrange variable - definitions so the distcheck Makefile target actually works. - -2006-02-04 John Gilmore - - * backend/gnash.cpp: Set window title to "gnash: " and movie name. - Correct help/usage string. - -2006-02-04 Sandro Santilli - - * libbase/container.h: Doxygen-compatible comments for hash - struct. Const-correct size() method. - * server/action.cpp: opcode 0x43 (Declare Object / INITOBJECT) - implemented. - -2006-02-04 Rob Savoye - - * doc/C/netconnection.xml: Update with more detailed data on this - class. - - * server/NetConnection.cpp: Implement part of the connect() - method. Add C++ accessor methods as AS methods, and we can call - our custom methods from testing code to examine the internal state - of a class. - * server/NetConnection.h: Add C++ accessor methods as AS methods, - * testsuite/actionscript.all/NetConnection.as: Test the connect() - method to make sure the URL gets parsed correctly, if specified. - * configure.ac: Add --disble-testing option to not build - additional code used for testing. - -2006-02-04 Michael Carlson - - * server/Date.cpp: Clean up Date, and implement getDate() - * server/action.cpp: Fix SetTargetDynamic opcode and further fix - SetTarget opcode - -2006-02-03 Rob Savoye - - * macros/docbook.m4: Fix improper use of 3rd parameter to - AC_PATH_PROG. - - * configure.ac: Add --enable-sdk-install to install headers for - those who want to use Gnash as a development library. - * plugin/ogl_sdl.cpp: Drop old demo code. - * libbase/Makefile.am: Rename libbase to libgnashbase to - reduce the chance of name collision. - * libgeometry/Makefile.am: Rename libgeometry to libgnashgeo to - reduce the chance of name collision. - * server/Makefile.am: Rename libserver to libgnashserver, and - libasobjs to libgnashasobjs to reduce the chance of name - collision. - * backend/Makefile.am: Rename libgbackend to libgnashbackend to - reduce the chance of name collision. Use the new library names to - link. - * utilities/Makefile.am: Use the new library names to link. - * plugin/Makefile.am: Rename libgnash to be libgnashplugin to - reduce the chance of name collision. Use the new library names to - link. - - * server/action.cpp: Add missing opcodes to disassembler table,a - and rename the unsupported ones to have a "_fixme" attached when - printing debug information. - * backend/Makefile.am (AM_LDFLAGS): Add $(X_LIBS) so we can link - with libraries in /usr/X11R6/lib. - - * Makefile.am (ACLOCAL_AMFLAGS): Add so autoreconf works. - -2006-02-03 Michael Carlson - - * server/action.cpp: SetTarget is now implemented for targets - other than "" - * backend/render_handler_ogl.cpp: use TWIPS_TO_PIXELS macro - instead of hardcoded 20 value - -2006-02-03 Sandro Santilli - - * testsuite/actionscript.all/Function.as: tests for user-defined - class definition - * server/swf.h: moved SWF namespace definition in it's own header, - added action_type enum, added ACTION_EXTENDS, ACTION_CASTOBJECT, - ACTION_IMPLEMENTS tag_types, added dox on some action_types. - * server/action.cpp: used symbolic names for SWF action tag ids - * testsuite/actionscript.all/Object.as: test for Object class - * testsuite/actionscript.all/Makefile.am: added support for - user-defined flags to ``makeswf'' invocation - (for -DUSE_XTRACE, mainly) - * libbase/: image.h, jpeg.h: Doxygen-compatible comments - -2006-02-03 Michael Carlson - - * server/textformat.cpp: fix typo in textformat_new log message - * server/action.cpp: modulus operand in actionscript now returns - NaN on division by zero - * server/Date.h: Setup basic time storage variables - * server/Date.cpp: Implement default constructor, basic time - reading operations - -2006-02-02 Rob Savoye - - * testsuite/actionscript.all/Makefile.am: Use the standard - automake way to build the test cases. - - * Makefile.am (STD_DIRS): Remove testsuite. Nothing actually needs - to be done at "make all" time anyway. So now the testuites can - only be run from the testsuite subdirctory. - * macros/png.m4: Fix various typos and other stupid errors that - kept the --with-png-incl and --with-png-lib options from working - correctly. - * configure.ac: Tweak test for PNG support. - -2006-02-01 Rob Savoye - - * testsuite/actionscript.all/gen-test.sh: Developer utility script - that uses the NOTES file to generate a Ming style "as" source file, - which can be used to test an ActionScript class. - * server/gen-files.sh: Developer utility script that uses the - NOTES file to generate header and source file templates for an - ActionScript class. - * doc/C/gen-doc.sh: Developer utility script that uses the NOTES - file to generate a documentation template for an ActionScript - class. - * doc/C/NOTES: Data file for file generation scripts. This is only - of interest to other developers. If you change this file, you may - break the other developer gen-* scripts. - * testsuite/Makefile.am: Add dejagnu to AUTOMAKE_OPTIONS. Reset - RUNTESTDEFAULTFLAGS to not use the --tool option. - * testsuite/actionscript.all/Makefile.am: Add dejagnu to - AUTOMAKE_OPTIONS. Reset RUNTESTDEFAULTFLAGS to not use the --tool - option. - * testsuite/actionscript.all/swf_exists.exp: Test driver for - DejaGnu to run the new test cases. - * testsuite/actionscript.all/Boolean.as, Date.as, Microphone.as, - SharedObject.as, Camera.as, Error.as, Mouse.as, Stage.as, - Color.as, server/Makefile.am, backend/Makefile.am, - Function.as, NetConnection.as, System.as, ContextMenu.as, - LoadVars.as, NetStream.as, TextSnapshot.as, CustomActions.as, - LocalConnection.as, Selection.as, Video.as: New Ming based test - cases for ActionScript classes. Currently all these do is test for - the existance of a class, and all of it's methods. - * server/Boolean.cpp, Date.cpp, Microphone.cpp, SharedObject.cpp, - Camera.cpp, Error.cpp, Mouse.cpp, Stage.cpp, Color.cpp, - Function.cpp, NetConnection.cpp, System.cpp, ContextMenu.cpp, - LoadVars.cpp, NetStream.cpp, TextSnapshot.cpp, CustomActions.cpp, - LocalConnection.cpp, Selection.cpp, Video.cpp: New stubs for - missing ActionScript classes. All they do for now is print - "unimplemented", but as all the hard code to tie a class and it's - methods into Gnash is done, it'll be much easier to fill in - functionality. - -2006-01-30 Michael Carlson - - * backend/render_handler_ogl.cpp: tentative implementation - of line_style_width with appropriate TODO message - -2006-01-30 Rob Savoye - - * doc/C/accessibility.xml, button.xml, camera.xml, - contextmenu.xml, customactions.xml, date.xml, - error.xml, internals.xml, key.xml, - loadvars.xml, localconnection.xml, - microphone.xml, mouse.xml, netstream.xml, - selection.xml, sharedobject.xml, sound.xml, - stage.xml, textsnapshot.xml, video.xml, - xml.xml, xmlsocket.xml: Add content. - * doc/C/accessibility.xml camera.xml, color.xml, contextmenu.xml, - customactions.xml, date.xml, error.xml, function.xml, key.xml, - loadvars.xml, localconnection.xml, microphone.xml, mouse.xml, - movieclip.xml, moviecliploader.xml, netstream.xml, object.xml, - selection.xml, sharedobject.xml, sound.xml, stage.xml, system.xml, - textfield.xml, textformat.xml,textsnapshot.xml. video.xml, - xml.xml, xmlsocket.xml: New machine generated templates for - ActionScript class documentaion. - - * doc/C/array.xml, boolean.xml, button.xml, math.xml, - netconnection.xml, number.xml, string.xml: New docs, one for each - ActionScript class. - -2006-01-29 Rob Savoye - - * doc/C/internals.xml: Add a table of what ActionScript classes - are implemented, and to what degree. - * doc/C/sources.xml: Add section on PNG and JPEG dependancies. Add - section on using Doxygen. - - * doc/Doxyfile.in (INPUT): Change to using @top_srcdir@, so the - doxygen usage supports building the docs when configuring with a - separate build tree from the sources. - -2006-01-28 Rob Savoye - - * doc/C/internals.xml: Add section on adding new ActionScript - classes with reasonable detail. - - * doc/C/sources.xml: New file extracted from gnash.xml, and made a - standalone file since it's grown in size. - * doc/C/appendix.xml: New file for Appendix content. - * doc/C/gnash.xml: Move some sections to separete files. Include - the new files. - - * doc/C/Makefile.am: Add pdf and info to SUFFIXES so the rules - actually work. - - * doc/omf.make (install-data-hook-omf): Only install if you are - root, as this requires writing to system directories. - * configure.ac: Link the doc/C/images directory to the build - directory so we can find images when producing output files. Check - state of DocBook when it's enabled. - * macros/docbook.m4: Add path to stylesheets for Ubuntu. Look for - fop.sh, and the DocBook2X conversion tools. Make DocBook optional, - use --enable-docbook to enable. When disableed, you can't build - any of the docs. - * macros/ghelp.m4: Check for Scrollkeeper tools. Using GNOME Help - is disabled by default. Use --enable-ghelp to enable. - * doc/C/Makefile.am: Use variables defined by configure for all - the conversion tools. - -2006-01-27 Rob Savoye - - * plugin/player.cpp: Use GLinitialized instead of - surface_activated, which turns out to be a system definition on - some Unixes. Make main_loop take a nsPluginInstance as an argument - so we have all the data we need. Setup a thread to run the - player. - * server/Makefile.am, backend/Makefile.am, - plugin/Makefile.am, utility/Makefile.am, - plugin/mozilla-sdk/Makefile.am: Don't use VORBIS variables - anymore. - * macros/libXML.m4: Use xml2-config instead of pkg-config. - * maxros/mad.m4: Add BSD path prefix, /usr/pkg. - * libbase/triangulate_impl.h: Drop the long modifier when printing - a size. - * libbase/Makefile.am: Make dmalloc build conditionally when - --enable-dmalloc is passed to configure. - * backend/sound_handler_sdl.cpp: Only compile if SDL_Mixer is - installed. - * backend/gnash.cpp: xml_fd should always be defined. Make using - SDL_Mixer for sound be conditional, since a machine may have SDL - installed, but not SDL_Mixer, but we still want the player to - build. - * server/xmlsocket.h, xmlsocket.cpp: Include config.h as generated - by configue if it exists. - * server/xml.h, xml.cpp: Include config.h as generated - by configue if it exists. - * configure.ac: Enable test for pthread.h and libpthread. Don't - look for Vorbis, the Ogg tests are enough. - * server/Movie.cpp, Sprite.cpp, impl.cpp, array.cpp: Include - pthread.h to get around a data type definition problem on - NetBSD. This seems to be required when using STL containers on - NetBSD. - * macros/opengl.m4: Use mad.m4 as a template and rewrite to be - more portable. - * macros/png.m4: Use mad.m4 as a template and rewrite to be - more portable. - * macros/jpeg.m4: Use mad.m4 as a template and rewrite to be - more portable. - * macros/sdl.m4: Look for SDL specific directory before and after - the include or lib since some platforms install these differently. - * macros/pthreads.m4: Look for POSIX Thread support. This turns - out to be very messy with NetBSD, as the old version is also - installed, and we have to link with the right one for any - executable to work. - -2006-01-26 Rob Savoye - - * plugin/Makefile.am: Link in shared libraries. Install the plugin - in the users home directory for mozilla or firefox plugins. - * server/Makefile.am, backend/Makefile.am, - plugin/Makefile.am, plugin/mozilla-sdk/Makefile.am: Sigh, back to - building and installing shared libraries because AMD64-linux - doesn't support linking the plugin with static libraries. - - * configure.ac: Don't complain about missing libxml2 libraries if - --disable-xml was specified. - * backend/gnash.cpp: Always define gofast and goslow, even if XML - support is disabled. - * libbase/tu_types.h: If the Mozilla obsolete Prototypes file has - been included, don't redefine the 64 bit data types. - - * testsuite/movies.all/elvis.swf: Remove URL ping to spyware - server. - - * libbase/triangulate_impl.h: Change %ld to %d in print statement. - * libbase/tu_types.h: Use SDL typedefs always. - -2006-01-24 Rob Savoye - - * macros/opengl.m4: Update based on mad.m4 template. - * macros/mad.m4: Fix typo, -I should be a -L. - -2006-01-24 Michael Carlson - - * server/array.h: as_array_object now uses deque instead of vector - * server/array.cpp: Implement array::unshift, shift, reverse, - concat, slice, toString, join - also make push return the new - length as it should have done before - -2006-01-23 Rob Savoye - - * plugin/player.cpp, player.h: Neew file for Flash player within - plugin code. - * plugin/ogl_sdl.cpp, ogl_sdl.h: New files for OpenGL and SDL - specific code. - * plugin/Makefile.am: Build a static archive library instead of a - shared one. Link to the static libraries. - * server/Makefile.am: Build a static archive library instead of a - shared one. Link to the static libraries. - * backend/Makefile.am: Build a static archive library instead of a - shared one. Link to the static libraries. - * plugin/Makefile.am: Build a static archive library instead of a - shared one. - * plugin/mozilla-sdk/Makefile.am: Build a static archive library - instead of a shared one. - - * server/Makefile.am: Don't install the libraries. - * backend/Makefile.am: Don't install the libraries. - * plugin/Makefile.am: Don't install the - libraries. Pass-no-undefined to libtool so all symbols are - resolved in the final shared library. - * plugin/mozilla-sdk/Makefile.am: Don't install the libraries. - - * configure.ac: Use new DMALLOC test. - * macros/dmalloc.m4: New macro for dmalloc support. - * utilities/Makefile.am: Add support for dmalloc. - * server/Makefile.am: Add support for dmalloc. - * backend/Makefile.am: Add support for dmalloc. - * plugin/Makefile.am: Add support for dmalloc. - * libbase/utility.cpp: Only build if we have mallinfo. - -2006-01-23 Michael Carlson - - * server/action.h: Create utility funcs as_value::is_inf, is_nan - * server/action.cpp: Let as_value String<->Number conversions - use NaN, +Infinity, -Infinity where appropriate - * server/string.cpp: Make charCodeAt() return a NaN value when - appropriate - * server/array.cpp: Array now checks for NaN after converting - index string to_number(), instead of the old hacked-up way - -2006-01-23 Rob Savoye - - * server/styles.cpp: Fix condition for gradient test. - - * configure.ac: Remove AM_MKINSTALLDIRS macro, it's now unneeded. - -2006-01-23 Michael Carlson - - * server/array.h: Move new array code into array.cpp, array.h - * server/array.cpp: Move new array code into array.cpp, array.h - * server/action.cpp: Move new array code into array.cpp, array.h - * server/Makefile.am: Move new array code into array.cpp, array.h - * server/font.cpp: Report an error and continue when we get two - of the same kerning pairs for a font, instead of crashing - -2006-01-22 Rob Savoye - - * configure.ac: Make text at end of configure more detailed about - dependency errors. - * macros/mad.m4: New macro to find libmad for mp3 support. - * utilities/Makefile.am: Make MP3 support truly optional. - * server/Makefile.am: Make MP3 support truly optional. - * backend/Makefile.am: Make MP3 support truly optional. - * plugin/Makefile.am: Make MP3 support truly optional. - -2006-01-21 Rob Savoye - - * configure.ac: Add tests for Ogg and Vorbis. - * backend/Makefile.am: Add flags and libs for Ogg and Vorbis as - separete flags. - * utilities/Makefile.am: Add flags and libs for Ogg and Vorbis as - separete flags. - * plugin/Makefile.am: Add flags and libs for Ogg and Vorbis as - separete flags. - - * server/styles.cpp: Don't abort if we read a bad gradient. - - * macros/sdl.m4: Store the compilation flags so the compilation - tests works on ppc-linux. - -2006-01-21 Michael Carlson - - * server/action.cpp: Initial implementation of as_array_object - ( get_member, set_member, push, pop, and length ) - -2006-01-20 Rob Savoye - - * backend/Makefile.am: Make the OGL and SDL support a library so - it can also be used by the plugin. - * libbase/Makefile.am: Add SDL_MIXER_CFLAGS to the include paths. - * macros/sdl.m4: Correct typo so --with-sdl_mixer-lib actually - works. Add /usr/bin/X11 to the default search path for - sdl-config. - * server/styles.cpp: Print a better error message wh.en a bad - gradient value is read before aborting. - -2006-01-19 Rob Savoye - - * utilities/Makefile.am: Link with AM_LDFLAGS. - * utilities/parser.cpp: Include config.h. Define gofast, goslow, - and nodelay. - * utilities/processor.cpp: Include config.h. Define gofast, - goslow, and nodelay. - * configure.ac: Look for mkinstalldirs. Remove test for GLUT, it's - not used anymore. - * doc/C/gnash.xml: Update copyright year. - * backend/gnash.cpp: Include config.h. Give default values to - gofast and goslow. - * backend/Makefile.am: Don't install compatibility_include.h. - * libbase/Makefile.am: Remove unused install hook. - * libgeometry/Makefile.am: Remove unused install hook. - * server/Makefile.am: Remove unused install hook. - * config.mk.in: Remove GLUT variable. - * All GPL'd Files: Update copyright year. - * macros/firefox.m4: Get the java and plugin flags from - $mconfig. Don't look for GLUT, it'sm not needed. - * plugin/Makefile.am: Add include paths for all the Gnash - directories and libxml2. - -2006-01-08 Rob Savoye - - * configure.ac: Print out an error message if any of the critical - development packages aren't installed. - - * testsuite/movies.all: New sub directory for whole movies used - for demos and testing. - * testsuite/movies.all/ORIGIN: List where all these movies came - from originally. - * testsuite/movies.all/elvis.swf: Dancing figures movie. Makes a - decent performance test. - - * testsuite/actionscript.all/movieclip_test.swf, - moviecliploader_test.swf, text_formatting.swf, text_sizes.swf, - visible_and_transparency.swf: New test cases. - * testsuite/actionscript.all/green.jpg,lynch.jpg,offspring.jpg: - New image files for the MovieClip and MovieClipLoader test cases. - - * testsuite: New directory for DejaGnu test suite. - * testsuite/config: New directory for DejaGnu config files. - * testsuite/lib: New directory for DejaGnu library files. - * testsuite/actionscript.all: New directory for ActionScript test - cases. - -2006-01-07 Rob Savoye - - * server/impl.cpp (gnash): Use unsigned int for for loops so we - don't have problems with comparing integers. - -2006-01-07 Rob Savoye - - * plugin/plugin.cpp (eventThread): Add background thread for - processing flash movies. Merge in OpenGL/SDL support from the - standalone player. Start a thread for each new stream. - -2006-01-06 Rob Savoye - - * server/sound_handler_mp3.cpp: Build if libmad exists. - * configure.ac: Rearrange the final display lines, and the order - some of the tests are done in. Look for libmad. - * backend/Makefile.am: Add OpenGL flags so Darwin is happy. - * libgeometry/Makefile.am: Add OpenGL flags so Darwin is happy. - * server/Makefile.am: Add sound_handler_mp3.cpp. - - * macros/opengl.m4: Rewrite completely. Add --with-opengl optins - for the paths, and also make --disable-opengl work correctly. - - * libgeometry/geometry.h(math): Rename _X, _Y, or _Z because on - Darwin they conflict with system header definitions. - - * configure.in, config.h.in, all Makefiles.in: Remove generated - files from CVS. Running autogen.sh will regenerate them. - -2006-01-05 Rob Savoye - - * server/action.cpp: Cast to void * to print the pointer address. - - * libbase/triangulate.h: Migrate patch from GameSWF. - * libbase/triangulate_impl.h: Migrate patch from GameSWF. - * libbase/triangulate_float.cpp: Migrate patch from GameSWF. - * libbase/triangulate_sint32.cpp: Migrate patch from GameSWF. - -2005-12-27 Rob Savoye - - * doc/C/gnash.xml: Add sections on software dependancies, - configuring, installing, and running Gnash. - - * server/Makefile.am: Don't install the libraries in a package - subdirectory of $libdir. - * libbase/Makefile.am: Don't install the libraries in a package - subdirectory of $libdir. - * libgeometry/Makefile.am: Don't install the libraries in a - package subdirectory of $libdir. - - * autogen.sh: If any command arguments are supplied, don't run - automake, as nothing has changed but the configure script. This is - to reduce clutter in the checkin messages when only a configure - change has been made. - - * macros/libXML.m4: Don't look for XML libraries in the prefix - directory. - * macros/firefox.m4: Don't look for Firefox libraries in the - prefix directory. - -2005-12-26 Rob Savoye - - * Makefile.am: Add doc subdirectory to DIST_SUBDIRS so it gets - included in the tarball, but isn't part of the SUBDIRS, since we - don't always want to build the docs. - - * macros/libXML.m4: Make the --with-libxml-include and - --with-libxml-libraries add the library to the path. Test if - pk-config exists. Use it if it does, but if it doesn't, do a brute - force check of standard install locations for the XML2 headers and - library. - - * backend/gnash.cpp: Define gofast and goslow here instead of - xmlsocket.cpp. - * server/xmlsocket.cpp: Reference gofast and goslow as externs so - gnash actually builds with --disable-xml. - -2005-12-25 Rob Savoye - - * plugin/plugin.cpp: Fix plugin name so it's recognized correctly - to play flash movies looking for the proprietary Flash - player. Instead of rendering the flash movie, copy the byte stream - to /tmp instead so we can collect more test cases. - - * configure.ac: Fix the --disable-xml option so it actually - works. - -2005-12-21 Rob Savoye - - * macros/firefox.m4: Move enable test to here. If firefox-config - doesn't exist, look for mozilla-config. If neither exists, the - plugin won't be built as the mozilla development headers and - libraries aren't installed. - * Makefile.am: Don't try to build the plugin if the mozilla - development SDK isn't installed. - - * config.h.in: Checkin header file produced by autoheader so Gnash - builds on machines without the Autotools installed. - * doc/C/images/car_crash.txt: Add file for alt text so conversion - to info works correctly. - - * doc/C/gnash.xml: Update legal notices. - * doc/C/fdl-appendix.xml: Add FDL in DocBook format. - -2005-12-20 Rob Savoye - - * libbase/Makefile.am, libgeometry/Makefile.am, - server/Makefile.am: Don't install the headers. - * plugin/mozilla-sdk/Makefile.am: Install the SDK library. - - * doc/C/gnash.xml: Add more content beyond just the command line - arguments. Add a screenshot of the car crash test case. - * configure.ac: Drop the plugin/test directory, it's unused for - now. - -2005-12-11 Rob Savoye - - * server/xml.cpp, xml.h: Update copyright notice. - * server/xmlsocket.cpp, xmlsocket.h: Update copyright notice. - -2005-12-10 Rob Savoye - - * AUTHORS, README, NEWS: Add content. - Index: ChangeLog-0.8.0 =================================================================== RCS file: ChangeLog-0.8.0 diff -N ChangeLog-0.8.0 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ChangeLog-0.8.0 13 Jun 2007 16:40:43 -0000 1.1 @@ -0,0 +1,18542 @@ +2007-06-04 Rob Savoye + + * NEWS, README: Update for upcoming release. + * macros/kde.m4: Use newlist so we don't stomp on libslist. + * server/asobj/Makefile.am: Don't link ffmpeg to convienince lib. + * server/parser/Makefile.am: We don't need ffmpeg or gstreamer + headers for this directory. + +2007-06-04 Sandro Santilli + + * backend/render_handler.h: expose a new getBitsPerPixel interface. + * backend/render_handler_agg.{cpp,h}: implement getBitsPerPixel, + const-correct the existing getBytesPerPixel. + * testsuite/MovieTester.cpp (checkPixel): never use a tolerance + inferior to the minimum tolerance for a renderer, with min tolerance + being a function of BPP (formula suggested by UdoG). + Fixes bug #20035. + +2007-06-04 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.cpp (av_streamer): sleep for 1 + microsecond between iterations, to allow other threads to run. + Fixes the 100% CPU problem (thanks to UdoG for support). + +2007-06-04 Sandro Santilli + + * libbase/FLVParser.h: updated dox for nextAudioFrame() and + nextVideoFrame() noting the non-blocking nature of the calls; + add a parsingCompleted() method. + * server/asobj/NetStreamFfmpeg.h: update documentation of + decodeFLVFrame() + +2007-06-04 Sandro Santilli + + * libbase/FLVParser.{cpp,h}: put FLVParser in the gnash namespace. + +2007-06-04 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.{cpp,h}: Drop the decoder mutex and + conditional variable. Decoder should never stop till the end of + the stream is fully decoder. Rename {pause,unpause}Decoding to + {pause,unpause}Playback, which is matches reality more, and is + also more correct. + +2007-06-04 Sandro Santilli + + * server/timers.cpp (expired): allow now == _start. + Hopefully fixes bug #20047. + +2007-06-02 Sandro Santilli + + * server/asobj/NetStream.cpp (::bufferLength): return milliseconds, + as (correctly) documented. + +2007-06-02 Tomas Groth Christensen + + * backend/render_handler_ogl.cpp,libbase/log.cpp, macros/opengl.m4, + server/asobj/Date.cpp: Fixes for builing on win32/MSYS/mingw. + Linking is still broken. + +2007-06-02 Sandro Santilli + + * server/vm/ASHandlers.cpp (CommonGetUrl): log about _level# + target for GetUrl being unsupported. + +2007-06-02 Bastiaan Jacques + + * server/asobj/NetConnection.{cpp,h}: Permit openConnection + to be called more than once with the same URL. + * server/asobj/NetStreamFfmpeg.cpp: Call detach_aux_streamer + with a valid owner argument, so something will actually + happen. Make sure that the NetConnection position is 0 + just in case openConnection was called before. Fix a deadlock + by avoiding calls to the sound handler in startPlayback(). + This is cheating, but fixes bug #20036. + +2007-06-01 Bastiaan Jacques + + * macros/ffmpeg.m4: Avoid using libswscale with broken ffmpeg + versions. + * configure.ac: Revert unintentional change. + +2007-06-01 Sandro Santilli + + * server/asobj/NetStreamGst.cpp: protect all log_debug calls + with a GNASH_DEBUG macro. + +2007-06-01 Sandro Santilli + + * libbase/rc.{cpp,h}: Add a "StartStopped" variable, to + have the gui start in "stop" mode. + * doc/C/gnashrc.xml: document the new "StartStopped" variable. + * gui/Player.cpp (init_gui): set the Gui to "stop" if requested + by the user (trough gnashrc) + * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test "StartStopped" + variable. + +2007-06-01 Sandro Santilli + + * server/asobj/NetStream.{cpp,h}: split processStatusNotifications + so that onStatus handler call is performed while the statusMutex + is NOT locked, to prevent attempts to lock the mutex again while + reacting to status handlers. statusQueue type changed from vector + to deque, for faster pop_front. + +2007-06-01 Sandro Santilli + + * gui/Player.cpp (run): remove sound_handler cleanup, will + be done by gnash::clear(). + * gui/: gtk.cpp, gtksup.h: implement gui::quit() + * server/impl.cpp (clear): report the problem with cleaning + up resources before all threads are completed, exit() rather + then cleanup and document the reason for doing so. + * utilities/processor.cpp (main): call gnash::clear() again, that's + where proper threads cleanup is supposed to be implemented. + +2007-06-01 Sandro Santilli + + * server/vm/ActionExec.cpp (call operator): if pc == oldPc that's + still to be considered a branch-back, so count it; Increment + branch-back limit to 2^16 (65535). + * gui/Player.cpp: print a debugging message when the main gui loop + returns so we know if we exited cleanly or due to a call to exit(). + * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning + from the main rendering loop. This is aimed at removing the exit() + call, altought currently we'll still call it as the default + implementation. + +2007-05-31 Bastiaan Jacques + + * macros/ffmpeg.m4: Define HAVE_SWSCALE_H if swscale.h is present. + * libbase/embedVideoDecoderFfmpeg.cpp: If swscale.h is available, + use swscale and friends. Otherwise, default to img_convert. Also, + conditionally include swscale.h itself. + * server/asobj/NetStreamFfmpeg.cpp: Remove unused include. + +2007-05-31 Sandro Santilli + + * backend/sound_handler.h: document attach_aux_streamer and + detach_aux_streamer; add TODO items. + * backend/sound_handler_sdl.cpp (sdl_audio_callback): documentation, + TODO items, early return if buffer len passed by SDL == 0. + +2007-05-31 Tomas Groth Christensen + + * server/asobj/NetStream*.{h,cpp}: Always use milliseconds internally. + +2007-05-31 Rob Savoye + + * configure.ac: Change renderer default to opengl. + +2007-05-31 Sandro Santilli + + * server/asobj/: NetStream.cpp, NetStreamFfmpeg.cpp: + More debugging lines protection. + +2007-05-31 Sandro Santilli + + * libbase/FLVParser.cpp: protect seek debugging by + a GNASH_DEBUG_SEEK macro + * server/asobj/NetStreamFfmpeg.cpp: dont debug condition + variable signaling if GNASH_DEBUG_THREADS is undefined. + +2007-05-31 Sandro Santilli + + * libbase/log.{cpp,h}: lock the io Mutex on closeLog, to + prevent race conditions between a thread using log() + and one using closeLog(). + +2007-05-31 Tomas Groth Christensen + + * libbase/FLVParser.cpp: (FLVFrame* FLVParser::nextMediaFrame) + Fixed a bug causing nextMediaFrame to return NULL. + +2007-05-31 Martin Guy + + * libbase/embedVideoDecoderFfmpeg.cpp, + server/asobj/NetStreamFfmpeg.cpp: + Add comments by commented img_convert()s to use sws_scale() when + implementing. + * Change default renderer to agg for 0.8.0 release + * Revert default renderer back to OpenGL. + +2007-05-31 Sandro Santilli + + * libbase/embedVideoDecoderFfmpeg.{cpp,h}: + Make convertRGB24 a public static function. + * server/asobj/NetStreamFfmpeg.cpp: use + embedVideoDecoderFfmpeg::convertRGB24, dropping the + duplicated implementation. + +2007-05-31 Bastiaan Jacques + + * server/asobj/NetStreamFfmpeg.cpp, + libbase/embedVideoDecoderFfmpeg.cpp: Use libswscale instead of + img_convert for YUV->RGB conversion, because it is deprecated and + has been removed from recent ffmpeg. + +2007-05-30 Sandro Santilli + + * configure.ac: add missing quote in martin's commit (no ChangeLog + entry for it, btw) + * server/asobj/README.NetStream: add design notes for NetStream. + +2007-05-30 Sandro Santilli + + * server/video_stream_instance.cpp (display): update call to + get_video. + * server/asobj/NetStream.{cpp,h}: change get_video to return by + auto_ptr to encode ownership transfer. + * server/asobj/NetStreamFfmpeg.h: update refreshVieoFrame() dox. + +2007-05-30 Sandro Santilli + + * server/asobj/NetStream.cpp: fix NetStream.bufferTime getter to + return value in seconds, not milliseconds. + +2007-05-30 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.cpp: Fixed seeking to work when not + seeking to 0. + * server/asobj/SoundFfmpeg.cpp: Silence a compiler warning. + +2007-05-30 Sandro Santilli + + * libbase/FLVParser.h: document timestamp units for media frames + and isTimeLoaded(). + * server/asobj/NetStreamFfmpeg.{cpp,h}: document units for time + members; (advance): fix isTimeLoaded() call, thanks Martin Guy + for noticing. + +2007-05-30 Sandro Santilli + + * libbase/FLVParser.{cpp,h}: drop setLoadThread method, require + a LoadThread to be passed on construction. + * server/asobj/NetConnection.{cpp,h}: drop connectParser, substitute + with getConnectedParser(). + * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp: use + NetConnection::getConnectedParser() for initializing an FLV parser. + +2007-05-30 Sandro Santilli + + * server/asobj/NetConnection.h: add documentation about which calls + are blocking and which not. + * server/asobj/NetConnection.cpp (openConnection): return false if + already connected + +2007-05-29 Martin Guy + + * server/asobj/NetStreamFfmpeg.cpp: Two casts to quiet compiler warnings + * configure.ac: Add rpm/deb help for AGG + * configure.ac: Warn if libcurl is missing + +2007-05-30 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.cpp (decodeFLVFrame): Don't modify m_bufferTime + internally: should only be done on user request. (advance): + bufferFull condition is when parser loaded current+buffer time. + (av_streamer): add bufferTime/Length info in Decoding iteration + message - this shows that the playback is NOT waiting for bufferTime + to be reached before starting again (bug). + +2007-05-30 Sandro Santilli + + * libbase/FLVParser.{h,cpp}: document which methods lock and which + not, add locking in getBufferLength(). + * server/asobj/NetStream.{h,cpp}: fix documentation for bufferLength + method (return milliseconds, not seconds); have + NetStream.bufferLength return in fractional seconds, as expected; + Change bufferTime to take milliseconds, convert from seconds + in the AS method (so we can accept fractional seconds..); + make locking debugging messages a compile-time option. + +2007-05-30 Tomas Groth Christensen + + * libbase/LoadThread.cpp: Close the download thread even if + download wasen't completed. + +2007-05-29 Tomas Groth Christensen + + * libbase/LoadThread.cpp: Don't lock the mutex and try to join the + download thread when calling complete(), instead do that in the + destrutor. Fixes some blocking (with the no-decode-thread-patch + for NetStreamFfmpeg). + +2007-05-29 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.{cpp,h}: don't lock + the mutex in seek() even, also intended to be called by + the VM.. + +2007-05-29 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.{cpp,h}: Don't lock the mutex + in pause(), play() and close(), all intended to be called + by the locking advance(). More dox about locking in the header. + * testsuite/actionscript.all/rtmp.as: remove any + trace of "rtmp" from the code to show that bug #19886 + is unrelated to RTMP. + +2007-05-29 Sandro Santilli + + * backend/sound_handler.h: add numSoundsStarted() and + numSoundsStopped() methods to be used in testing, and + associated protected counts. + * backend/: sound_handler_gst.cpp, sound_handler_sdl.cpp: + Increment started/stopped sound counters. + * testsuite/FuzzyPixel.h: remove unused header. + * testsuite/: Makefile.am, sound_handler_test.{cpp,h}: + drop sound_handler_test, testing will now be done against + the built sound_handler. + * testsuite/MovieTester.{cpp,h}: initialize the currently + configured sound handler and use that for testing. + +2007-05-29 Sandro Santilli + + * server/asobj/NetStreamFfmpeg.{cpp,h}: drop + the decode_wait_mutex, use decoding_mutex instead. + Document which function lock it and which not, adding + more locking. Seems to fix bug #19978, but exposes + a deadlock playing youtube with a full-offline setup + with reduced bandwidth. + +2007-05-29 Udo Giacomozzi + + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: testing for gray + is funny, but better let's be accurate ;) + +2007-05-29 Sandro Santilli + + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: reintruduce + the pixel-accurate test after Udo fix for #19828. + +2007-05-29 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Fix coordinate translation and + pixel hinting. Fixes bug #19828. + +2007-05-29 Zou Lunkai + + * testsuite/misc-ming.all: Makefile.am, key_event_test3.c, + key_event_test3runner.cpp: new testcase for key listeners. + + +2007-05-29 Zou Lunkai + + * testsuite/misc-ming.all/key_event_test2runner.cpp: remove obsolete comments + +2007-05-29 Zou Lunkai + + * testsuite/misc-ming.all/key_event_test2.c, + key_event_test2runner.cpp: add more tests. + * server/movie_root.cpp: add comments for ::cleanup_key_listeners(). + +2007-05-29 Martin Guy + + * server/asobj/NetStreamFfmpeg.cpp: Fix sign/unsign compiler warning + * packaging/debian/control: Add missing build dependency for opengl-gtk + +2007-05-28 Tomas Groth Christensen + + * server/asobj/NetStream*.{cpp,h}: Updated a comment and made play() + return void to be closer to defined behavoir. + +2007-05-28 Sandro Santilli + + * server/asobj/: NetStream.{cpp,h}, + NetStreamFfmpeg.cpp, NetStreamGst.cpp: + Encode FLVParser ownership by using an auto_ptr; + cleanup startPlayback method in FFMPEG implementation + removing the "this" alias. + +2007-05-28 Sandro Santilli + + * server/asobj/NetStream.h: drop playing() method (unclear + and unnecessary). + * server/video_stream_instance.cpp (display): stop + calling NetStream::playing(). + +2007-05-28 Ann Barcomb + + * many files: Add a paragraph break before the line 'You should + have received...' in the copyright notice. + * devtools/testsuite/copyright_notices.t: Minor code improvement + * many files: Add current year to all copyright notices which were + lacking it. + +2007-05-28 Sandro Santilli + + * server/video_stream_instance.{cpp,h}: add brief class description, + drop unused member. + * testsuite/misc-ming.all/matrix_test.c: Really round numbers, don't + just truncate them up to 2nd decimal position. + +2007-05-28 Zou Lunkai + + * testsuite/misc-ming.all: Makefile.am, key_event_test2.c, + key_event_test2runner.cpp: add tests for key listeners. + * server/sprite_instance.cpp: call "unload" for characters removed + in ::resetDisplayList, partly fix the increasing key listeners + problem when loop back. + +2007-05-28 Sandro Santilli + + * testsuite/misc-ming.all/matrix_test.c: round numbers + to 1/100 to reduce floating number based errors. + +2007-05-27 Ann Barcomb + + * devtools/testsuite/copyright_notices.t: Added a script to look + for incorrect copyright notices. + +2007-05-27 Rob Savoye + + * macros/archflag.m4: Drop --with-gcc-arch, and use --with-cpu, + which is more standard. + * configure.ac: Add a --with-top-level option to specify where + development packages are when cross configuring. Add --with-cpu to + set the compiler flags correctly when cross compiling for similar + architectures, like pentium->geode, which are supported by the + same compiler. + +2007-05-27 Bastiaan Jacques + + * libbase/{FLVParser.h, LoadThread.h, embedVideoDecoderFfmpeg.h, + extension.h, tu_timer.h} server/{debugger.h, movie_root.h}, + server/sprite_instance.h, server/vm/VM.h: Mark symbols which are + used across DSOs as DSOEXPORT. This allows compilation with + -fvisibility=hidden. + * macros/kde.m4: When detecting QT, also allow for the check for + the possibility that the QTDIR environment variable points to + the base QT directory, no strings attached (and no version + numbers required). + +2007-05-27 Ann Barcomb + + * doc/C/usermanual/installation/documentation_dependencies.xml: + Corrected information about FOP requirement. + * doc/C/usermanual/installation/install.xml: Placeholder file. + * doc/C/usermanual/installation.xml, + doc/C/usermanual/installation/building.xml: Started a section on + building Gnash. + +2007-05-26 Tomas Groth Christensen + + * server/asobj/NetStreamGst.cpp: Don't allow play url to be changed, + might not be correct behavoir... Fix some issues when closing + NetStream before playback has been set up. + +2007-05-26 Ann Barcomb + + * doc/C/gnashrc.xml: Corrected spelling + * doc/C/usermanual/usage/gnashrc.xml: Propogated changes from + ../../gnashrc.xml r1.3357 to the new gnashrc file. + * doc/C/usermanual/installation/cross_compiling.xml: Made the + cross compilation information more generic. + +2007-05-26 Jurka + + * gui/gnash.cpp, libbase/FLVParser.cpp: Clear up printf-related + warnings. + +2007-05-26 Tomas Groth Christensen + + * libbase/FLVParser.cpp: When seeking the frame after the correct + one was returned. + * server/asobj/NetConnection.cpp: Don't allow url prefix to be changed, + might not be correct behavoir... + * server/asobj/NetStreamFfmpeg.cpp: Don't allow play url to be changed, + might not be correct behavoir... Fix some issues when closing + NetStream before playback has been set up. + +2007-05-26 Bastiaan Jacques + + * plugin/plugin.cpp: Initialise _width and _height to safe defaults, + in case SetWindow is never called (for "hidden" flash movies). + * gui/gnash.cpp: If the plugin attempts to create a 0x0 pixels window + don't try to create a rendering GUI. + * macros/kde.m4: Check if we actually need the kde subdirectory of the + KDE prefix we got from kde-config. + +2007-05-26 Ann Barcomb + + * doc/C/usermanual/installation/cross_compiling.xml, + doc/C/usermanual/installation.xml: Added section on cross compiling + * doc/C/usermanual/installation/configuration.xml: Resolved a TODO + * doc/C/usermanual/installation/code_dependencies.xml: Marked a TODO + * doc/C/usermanual/installation/sources.xml: RAM requirements + * doc/C/usermanual/installation/sources.xml: Disk space requirements + * doc/C/usermanual/installation/configuration/feature_configuration.xml, + custompath_configuration.xml: Formatting + * doc/C/usermanual/installation/configuration/sources.xml: + Include development snapshots as a download option + +2007-05-25 Sandro Santilli + + * extensions/gnashrc: new file, with required variables + for running extensions tests. + * extensions/fileio/Makefile.am: Provide a GNASHRC variable + to the generic-testrunner.sh + * libbase/rc.cpp (loadFiles): load a GNASHRC if specified, after + all precedent files are loaded. See task #6937. + +2007-05-25 Sandro Santilli + + * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: test EnableExtensions. + * doc/C/gnashrc.xml: document new EnableExtensions gnashrc + variable + * libbase/rc.{cpp,h}: add support for EnableExtensions variable, + defaults to OFF. Cleanup const-correctness and static methods. + * server/asobj/Global.cpp: Don't load extensions if disabled + by gnashrc. + +2007-05-25 Sandro Santilli + + * libgeometry/snappingrange.h: add intersects(Range2d) + * testsuite/misc-ming.all/: Makefile.am, + loop_test2.c, loop_test2runner.cpp: Add a visual test + runner, showing that 2nd redesign attempt is really + bogus. + +2007-05-25 Sandro Santilli + + * server/as_environment.cpp: don't print a separate error + when call stack limit is exceeded, leave that to the + exception handler. + * server/vm/ActionExec.cpp: implement number of iterations + limit (should be a timeout in second actually, but better + this then hanging forever). Fixes bug #19961. + +2007-05-25 Bastiaan Jacques + + * server/swf/tag_loaders.cpp: Move the assignment into the data + pointer up to right after the corresponding memory is allocated, + because the DO_{MONO,STEREO}_BLOCK macros use the temporary + pointer to iterate the buffer. This was causing delete[] to be + called on the pointer which had walked to the end of the buffer + and, thus, crashing. + +2007-05-25 Sandro Santilli + + * server/sprite_instance.{cpp,h}: drop unused remove_display_item + taking a std::string as argument.. + +2007-05-25 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.h: Fix resampling for some FLVs, + fixes bug #19959. + +2007-05-25 Sandro Santilli + + * libbase/log.cpp (timestamp): include PID in timestamp, + so its easier to read the gnash-dbg.log file after browsing + the web... + +2007-05-24 Sandro Santilli + + * libbase/zlib_adapter.cpp: fix seek function to respect + tu_file interface. Fix inflater to no set an error condition + when inflate() just needs more calls to complete the request. + Fixes bug #19931. + +2007-05-24 Tomas Groth Christensen + + * libbase/LoadThread.{cpp,h}: Made the download loop sleep when + read() wants to get a lock on the mutex. + * libbase/curl_adapter.cpp: Decreased the sleeping time in fill_cache. + * backend/{sound_handler.h,sound_handler_gst.h,sound_handler_sdl.h}: + Moved sound_data class to the base header. + +2007-05-24 Sandro Santilli + + * server/stream.cpp (open_tag): print end tag position in verbose + parse mode; (close_tag): assertion checking (shows a bug in + zlib_adapter, see bug #19931). + * libbase/tu_file.cpp (std_seek_func): assertion checking and minor + cleanups. + * libbase/curl_adapter.cpp (CurlStreamFile::seek): use the _cached + member for checking wheter a seek will succeed or not (fseek + allows you to seek past the end of the file otherwise). + +2007-05-24 Bastiaan Jacques + + * gui/Makefile.am: When building FLTK GUI, also include + the X11 CFLAGS (when available). + * gui/fltk.cpp: Only try to do X11 things with FLTK if + X11 is actually available. Should fix compilation on + OS X (bug #19618). + * macros/x11.m4: Don't forget to set the x11 flag + variable which is used to check if X11 was found. + +2007-05-24 Sandro Santilli + + * server/: Makefile.am, impl.cpp, swf/DoActionTag.h, + swf/tag_loaders.cpp: + Move DoAction and DoInitAction tag stuff to its + own file (both loader and parser). + +2007-05-24 Sandro Santilli + + * server/sprite_instance.cpp (replace_display_object): + When the object being replaced is NOT a scriptable object, + move instead of replacing. + * testsuite/misc-ming.all/: replace_buttons1test.c, + replace_buttons1test_runner.cpp, replace_sprites1test.c, + replace_sprites1test_runner.cpp: Expect less failures. + +2007-05-24 Sandro Santilli + + * server/: dlist.{cpp,h}, sprite_instance.{cpp,h}, + server/swf/PlaceObject2Tag.cpp, server/vm/action.cpp: + Drop the use_matrix/use_color_xform parameters, use + pointers for the actual matrix/color_xform so that NULL + signifies "don't use". + +2007-05-24 Sandro Santilli + + * testsuite/misc-ming.all/replace_sprites1test.c: + Add onClipEvent(unload) to both PLACE and REPLACE tag. + +2007-05-24 Sandro Santilli + + * backend/sound_handler_gst.cpp: warn only once about fluendo plugin + being too old. + * server/parser/shape_character_def.cpp (read): + Fix typo reporting false malformations in the SWF. + +2007-05-24 Sandro Santilli + + * server/character.h: add isActionScriptReferenciable() + method to find "scriptable objects". See: + http://www.gnashdev.org/wiki/index.php/ScriptableCharacters + * server/sprite_instance.cpp (get_member, get_relative_target): + When requested name matches a NON scriptable instance, return + self. + * server/video_stream_instance.h: implement wantsInstanceName() + [ used by isActionScriptReferenciable ] + * testsuite/misc-ming.all/replace_shapes1test.c: expect less failures. + * testsuite/misc-ming.all/shape_test.c: don't expect any more failure + +2007-05-24 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + replace_buttons1test.c, replace_buttons1test_runner.cpp: + New test for buttons replacement. + * testsuite/misc-ming.all/replace_sprites1test.c: + Add new test checking for _x. + +2007-05-24 Sandro Santilli + + * server/dlist.cpp (replace_character): always call ::construct + on the new character. + * backend/sound_handler_sdl.h: fix const-correctness + of active_sound (btw, do we really need two different + definitions of that class for SDL and GST ?). + +2007-05-24 Sandro Santilli + + * server/button_character_instance.cpp: protect vector + elements dereferencing by assertions. I have a segfault + triggered by a new uncommitted testcase replacing buttons... + +2007-05-24 Sandro Santilli + + * server/sprite_instance.{cpp,h}: remove unused + sprite_instance::mouse_state typedef and member. + * server/parser/BitmapMovieDefinition.h, + server/parser/movie_def_impl.h, + server/parser/movie_definition.h, + server/parser/sprite_definition.h, + testsuite/DummyMovieDefinition.h: + Const-corrected get_playlist. + +2007-05-24 Sandro Santilli + + * testsuite/misc-ming.all/replace_shapes1test.c: + Add more tests, updated comments. + * testsuite/actionscript.all/MovieClip.as: + Add test for _root.getDepth() being static-0. + +2007-05-24 Sandro Santilli + + * backend/sound_handler.h, backend/sound_handler_gst.cpp, + backend/sound_handler_gst.h, backend/sound_handler_sdl.cpp, + backend/sound_handler_sdl.h, server/execute_tag.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/parser/sound_definition.cpp, + server/parser/sound_definition.h, + server/swf/DisplayListTag.h, server/swf/PlaceObject2Tag.cpp, + server/swf/PlaceObject2Tag.h, server/swf/RemoveObjectTag.cpp, + server/swf/RemoveObjectTag.h, server/swf/tag_loaders.cpp, + testsuite/sound_handler_test.cpp, testsuite/sound_handler_test.h: + Const-corrected execute_tag::execute and execute_state, and + cascading changes + * testsuite/misc-ming.all/loop_test7.c: fix wrong expected failures. + +2007-05-24 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + loop_test6.c, loop_test7.c: + Add a clone of "Jumping backward to the end of a character's + lifetime" test this time with onUnload defined. + +2007-05-24 Sandro Santilli + + * testsuite/misc-ming.all/: replace_shapes1test.c, + replace_sprites1test.c: SWFMovie_replace returns 0 on success + and non-0 on failure. Fixed code to reflect that (I'm not sure + I like this interface, anyway this is what we have in current + Ming head). + +2007-05-23 Sandro Santilli + + * server/swf/: tag_loaders.cpp, DefineFontAlignZonesTag.{cpp,h}, + DisplayListTag.h, PlaceObject2Tag.{cpp,h}, + RemoveObjectTag.{cpp,h}: + Move one namespace up (gnash::SWF - strip tag_loaders); + Provide a static public loader() function for use by + register_tag_loader (moved implementation from tag_loaders.cpp + to the classes themselves). + * server/impl.cpp: update loaders registration to call the new + public static methods of ReplaceObjectTag and PlaceObject2Tag. + +2007-05-23 Sandro Santilli + + * server/execute_tag.h: drop is_remove_tag() method. + * server/sprite_instance.{cpp,h}: drop unused + execute_remove_tags() method. + * server/Makefile.am, server/swf/: DisplayListTag.h, + PlaceObject2Tag.h, RemoveObjectTag.{cpp,h} + tag_loaders.cpp: Add a DisplayListTag subclass of + execute_tag, and make RemoveObject and PlaceObject subclasses + of it. + +2007-05-23 Ann Barcomb + + * doc/C/usermanual/installation/feature_configuration.xml, + doc/C/usermanual/installation/configuration.xml: Incorporated + some changes from r1.38 of doc/C/sources.xml. + +2007-05-23 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, loop_test6.c: + New test for "Jumping backward after a character's lifetime". + Reveals a conceptual bug in last step of all redesign attempts + for displaylist reconstruction (execute *all* frame tags + from start to target frame). + +2007-05-23 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, replace_shapes1test.c, + replace_sprites1test.c, replace_shapes1test_runner.cpp, + replace_sprites1test_runner.cpp: Modified coordinates and size + of shapes to help writing test runners. Wrote real test + runners checking for rendering and bounds invalidation. + * testsuite/MovieTester.cpp (render): don't force redraw + always (don't cheat) - do only when asked to do so.. + +2007-05-23 Sandro Santilli + + * server/character.h: Extended TimelineInfo to store information + about wheter a character was placed by a REPLACE tag. + * server/sprite_instance.cpp: implemented 3rd redesign attempt + for DisplayList reconstruction compile-time enableable by + setting NEW_TIMELINE_DESIGN to 3. Defined to 2 by defualt + which gives us 2nd redesign attempt. See wiki. + 3rd redesign is promising and give us lots of unexpected + successes, but also some unexpected failures for the new + testcases for REPLACE tag. + +2007-05-23 Sandro Santilli + + * server/dlist.{cpp,h}: Add new reset() method taking + enough parameters (I hope) to remove what needs to + on jump-back; drop obsoleted clear_unaffected function. + * testsuite/misc-ming.all/: replace_shapes1test.c, + replace_sprites1test.c: Fix implementation (don't + use Ming internal methods); add new tests and comments + about why Gnash fails. + +2007-05-23 Bastiaan Jacques + + * cygnal/cygnal.cpp: Don't include directly; instead, + rely on our own gettext.h to do the right thing. + * gui/fltk.cpp: Update the FLTK GUI to the new Gnash key handling + API. Make sure the window is listening for key events even if it + is not the first window to receive key notifications. + * macros/gnashpkgtool.m4: Don't forget to set the "found" flag + for CFLAGS when --with-pkg-incl is used to find the include path. + * libbase/FLVParser.cpp: Fix more memory bugs by adding padding + zero bytes. Should fix bug #19898. + +2007-05-23 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Made it a bit more thread-safe by + locking when attaching/detaching a aux_streamer. + Fixed a crash when removing attached sounds from the aux_streamer list. + * libbase/FLVParser.{h,cpp}: Added audioFrameDelay(), and a fixes. + * libbase/curl_adapter.cpp: Changed min and max sleep. + * server/asobj/NetStreamFfmpeg.{h,cpp}: Cleanup! Splitted the big + decode function (read_frame) into 3 functions. Changed a few names + to make more sence. Improved syncing, and made it depend on audio + if available, not video. Plus some overall improvements. + +2007-05-23 Zou Lunkai + + * testsuite/misc-ming.all/shape_test.c: add tests for shapes. + * testsuite/misc-ming.all/Makefile.am: activate some testcases. + +2007-05-22 Martin Guy + + * configure.ac: add help text for ffmpeg-devel RPM package + * server/swf/tag_loaders.cpp: Fix NELLYMOSER bombing out + +2007-05-22 Sandro Santilli + + * server/swf/tag_loaders.cpp (place_object_2_loader): don't + add a TimelineDepth if read depth is out of static depth zone + boundaries (warn user about it too...). + * gui/Player.cpp (run): use movie url for window title (-u). + Useful when reading stdin... + * server/parser/shape_character_def.cpp (read): don't force + fill and line style of glyphs to have a corresponding style + definition, just warn if the value in a styleChangeRecord is + neither 0 or 1. Set style to 0 when invalid. + +2007-05-22 Sandro Santilli + + * testsuite/misc-ming.all/loop_test-Runner.cpp: don't expect + failure in invalidated bounds after Udo commits. + * testsuite/misc-ming.all/replace_sprites1test.c: Change expected + Gnash behaviour (previous one was based on 3rd displaylist reset + design implementation). + +2007-05-22 Sandro Santilli + + * configure.ac: add MING_SUPPORTS_REPLACE_TAG conditinal variable, + based on version (0.4.0.beta5). + * testsuite/misc-ming.all/: Makefile.am, replace_shapes1test.c, + replace_sprites1test.c: Add a couple of test for REPLACE tags. + Needs a Ming version that supports it, checked by + MING_SUPPORTS_REPLACE as set by ./configure. + +2007-05-22 Ann Barcomb + + * doc/C/usermanual/installation/configuration.xml: List interesting + options before custom path options + * doc/C/usermanual/installation/feature_configuration.xml: Added + missing title (it had been left in configuration.xml). + +2007-05-22 Udo Giacomozzi + + * server/character.{h,cpp}: Added preprocessor code to analyze + calls to set_invalidated() more easily. + * server/cxform.h: Implemented == operator + * server/dlist.cpp: inherit invalidated bounds when replacing a + character + * server/sprite_instance.cpp: avoid call to set_invalidated() + (of parent) when replacing a char + +2007-05-22 Ann Barcomb + + * doc/C/usermanual/*: Added files for the new user manual. + * doc/C/app_authors.xml: Added a file which is used in the user manual + but might be cross-referenced by other documents. + +2007-05-22 Udo Giacomozzi + + * testsuite/misc-ming.all/NetStream-SquareTest.c: add missing end quote + * testsuite/actionscript.all/XML.as: fix broken string + +2007-05-21 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test11.c: + New timeline control test. + * server/parser/Timeline.h: fix getFrameDepths to really return + depths. Add output operator. + +2007-05-21 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Only try to detach video-sound + input, if it exists. + * server/asobj/NetStreamFfmpeg.cpp: Shutdown the decoding thread + proberbly. + +2007-05-21 Rob Savoye + + * libbase/Makefile.am: Build the installable libltdl before + libgnashbase. + +2007-05-21 Sandro Santilli + + * testsuite/misc-ming.all/displaylist_depths_test9.c: add + a construct event handler for the static character placed + and replaced (duplicated), and tests for its run. + +2007-05-21 Rob Savoye + + * libbase/Makefile.am: Don't include LIBLTDL in libgnashbase.la. + +2007-05-21 Sandro Santilli + + * server/parser/: movie_definition.h, movie_def_impl.h, + sprite_definition.h: add getTimelineDepths() methods + and implementations. + +2007-05-21 Sandro Santilli + + * server/parser/: Makefile.am, Timeline.h: new class for + timeline control. + * server/parser/: movie_definition.h, movie_def_impl.{cpp,h}, + sprite_definition.{cpp,h}: new addTimelineDepth() and + removeTimelineDepth() interfaces in base class, implementation + in subclasses. + * server/swf/tag_loaders.cpp (remove_object2_tag): add getDepth() + method; call movie_definition::addTimelineDepth when a PlaceObject + tag is parsed and movie_definition::removeTimelineDepth when + a RemoveObject is parsed. + * server/swf/PlaceObject2Tag.h: add getDepth() method, more dox + and 3 new inspectors to know wheter it's a place, replace or move + tag. + +2007-05-21 Sandro Santilli + + * libbase/log.h: removed useless 'while (0) {};' snippet from + IF_VERBOSE_ASCODING_ERRORS and IF_VERBOSE_MALFORMED_SWF + +2007-05-21 Zou Lunkai + + * testsuite/misc-ming.all/loop_test5.c: + more for "Timeline control". + +2007-05-21 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: build libgnashmingutils + as a convenience library; have Dejagnu.swf users depend on + the local copy, not the one moved one dir up. + * libbase/log.{cpp,h}: make LogFile output operators + private, provide a sipler thread-safe log() method. + Have all printf-like log_*() method use this new method. + Fixes bug bug #19906. + * cygnal/stream.cpp, server/parser/action_buffer.cpp, + server/parser/action_buffer.h, server/vm/ActionExec.cpp, + testsuite/server/PropertyListTest.cpp: remove any + use of LogFile::operator<<, substitute with log_*() calls. + +2007-05-21 Zou Lunkai + + * testsuite/misc-ming.all/loop_test4.c: + add a another check, comments + +2007-05-21 Zou Lunkai + + * testsuite/misc-ming.all/loop_test4.c: + new testcase for timeline control. + +2007-05-21 Zou Lunkai + + * testsuite/misc-ming.all/place_object_test2.c: + testcase for placeObject2. + +2007-05-20 Rob Savoye + + * libbase/log.h: Add empty braces around a while(0) to shut up GCC + 4.3. + +2007-05-20 Zou Lunkai + + * testsuite/misc-ming.all/displaylist_depths_test9.c: + more tests, all passed. + +2007-05-19 Markus Gothe + + * server/asobj/NetStream.cpp: Got rid of make_pair in favor of + std::pair<>(); + * server/cxform.h: include + +2007-05-19 Tomas Groth Christensen + + * libbase/tu_timer.cpp: Fixed a compiler warning. + * server/asobj/NetStreamFfmpeg.{h,cpp}: Changed the way the decoding + loops works. We now use condition variables to pause the decoding + loop. We now disconnect from the soundhandler when pausing. + +2007-05-18 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, loop_test2.c, loop_test3.c: + New Timeline control test. GNASH FAILS THESE ONES !! + +2007-05-18 Sandro Santilli + + * server/dlist.h: document the addAll() and add() methods. + * server/asobj/NetStreamGst.cpp: provide a buildFLVPipeline() calling + the video/audio versions internally and locking the pipelineMutex. + Lock the pipelineMutex from buildPipeline() too. Document locking + in header. + * testsuite/misc-ming.all/: loop_test-Runner.cpp, loop_test.c: + Make loop_test.swf self-contained. Use the runner for checking + invalidated bounds and rendering. + +2007-05-18 Rob Savoye + + * backend/sound_handler.cpp: Include cstring so memcpy is + defined. + * libbase/Makefile.am: Add makefile rules from libltd. + +2007-05-18 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test10.c: + Add test for "Skipping frames backward". + * Makefile.am, configure.ac: detect 'swfmill' + * testsuite/misc-swfmill.all/: .cvsignore, Makefile.am: + new testsuite dir for swfmill + * testsuite/misc-swfmill.all/hello.xml: small example on + how to produce an swf. Build with 'make hello.swf'. + +2007-05-18 Zou Lunkai + + * testsuite/misc-ming.all/getTimer_test.c, + server/vm/VM.{h,cpp}, server/vm/ASHandlers.cpp, + gui/fb.cpp: cleanup "ActionGetTimer" related stuff. + * server/movie_root.h + remove unused get_timer, set_timer. + +2007-05-17 Martin Guy + + * configure.ac: Change package help message format + and fix typo MYSQC_CFLAGS + * backend/sound_handler.h: Remove old adpcm_expand() decl + * macros/x11.m4: Two typoes "if x${a} != xfoo" + * utilities/parser.cpp: Shut compiler up + * backend/sound_handler_gst.cpp, testsuite/sound_handler_test.cpp: + Remove never-implemented stub declaration. + * server/swf/tag_loaders.cpp: Rewrite of sample-reading code to decode + all linear formats in one place. + * backend/sound_handler_{sdl,gst}.cpp: Remove now unnecessary attempts + at decoding other linear audio formats. + * backend/sound_handler_gst.cpp, testsuite/sound_handler_test.cpp: + Replace never-implemented stub declarations, symptom of a deeper ill. + * backend/sound_handler.h, + backend/sound_handler_gst.cpp, + backend/sound_handler_gst.h, + backend/sound_handler_sdl.cpp, + backend/sound_handler_sdl.h, + testsuite/sound_handler_test.cpp, + testsuite/sound_handler_test.h, + server/asobj/SoundMad.cpp: + Add two params to convert_raw_data so that it is SDL-independent + * backend/sound_handler.h, + backend/sound_handler.cpp, + backend/sound_handler_gst.cpp, + backend/sound_handler_gst.h, + backend/sound_handler_sdl.cpp, + backend/sound_handler_sdl.h, + testsuite/sound_handler_test.cpp, + testsuite/sound_handler_test.h: + convert_raw_samples is now just a static fn of sound_handler:: + * backend/sound_handler.cpp: Speed convert_raw_data and handle stereo + upsampling correctly + * backend/sound_handler_sdl.cpp: Remove bug 19750 that garbled + SOUNDSTREAM audio. + * server/swf/tag_loaders.cpp: Bug fix: calculate # samples correctly. + * macros/ffmpeg.m4,configure.ac: Workaround /usr/include/ffmpeg reported + by pkg-config; move libavformat absence test to final report. + +2007-05-17 Rob Savoye + + * libbase/Makefile.am: Build libltdl optionally by duplicating the + way libltdl/Makefile used to buuld this library. + +2007-05-17 Sandro Santilli + + * macros/: boost.m4, x11.m4: avoid explicit -L/usr/lib. + +2007-05-17 Rob Savoye + + * libbase/Makefile.am: Add ltdl.h to noinst_HEADERS. + * po/Makefile.am: Use DESTDIR when installing. + * testsuite/server/Makefile.am: Link in FFMPEG is configured to do so. + * libbase/Makefile.am: Add path for ltdl.h. + +2007-05-17 Markus Gothe + + * configure.ac: Check if LD supports --as-needed. + * server/asobj/Date.cpp: Clean up and fixed uneeded ftime() use. + +2007-05-17 Sandro Santilli + + * server/asobj/NetStreamGst.cpp (unrefElements): don't attempt + to unref NULL objects, set objects to NULL after unreffing. Add + TODO item. + * testsuite/misc-ming.all/NetStream-SquareTest.c: + Add self-contained tests. + * testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp: + Adjust to simply run the self-contained tests. + +2007-05-17 Zou Lunkai + + * testsuite/misc-ming.all/getTimer_test.c: + make the time dependent tests be more tolerant + +2007-05-17 Zou Lunkai + + * testsuite/misc-ming.all: getTimer_test.c, Makefile.am + add a new testcase; activate action_execution_order_test9.c + * server/vm/VM.{h,cpp}: add a getStartTime() for VM. + * server/vm/ASHandlers.cpp: use new "getStartTime()" interface, + fix ActionGetTimer; + * libbase/tu_timer.{h,cpp}: change time unit for non-win32 version + "get_ticks()"; + +2007-05-16 Rob Savoye + + * macros/boost.m4: Look for shared libs with version numbers after + the suffix, for OpenBSD. + +2007-05-16 Tomas Groth Christensen + + * server/asobj/NetStream.{h,cpp}, + server/asobj/NetStream{Gst,Ffmpeg}.{h,cpp}: Updated documentation. + * libbase/FLVParser.{h,cpp}, server/asobj/NetStream.{h,cpp}: + Implemented bufferLength. + +2007-05-16 Sandro Santilli + + * libbase/FLVParser.h: class documentation. + +2007-05-16 Tomas Groth Christensen + + * server/asobj/NetStreamGst.{h,cpp}: Splitted buildFLVPipeline + into buildFLVVideoPipeline and buildFLVSoundPipeline. + +2007-05-16 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + NetStream-SquareTestRunner.cpp, Video-EmbedSquareTestRunner.cpp: + Stub video test runners. + +2007-05-16 Tomas Groth Christensen + + * server/asobj/NetStreamGst.{cpp,h}: Split startPlayback() into + smaller function (buildFLVPipeline and buildPipeline). Made sure + gstreamer elements are cleaned up if setup fails. + +2007-05-16 Rob Savoye + + * configure.ac: Eval lists so the embedded variables get + expanded on all systems. Turn on --as-needed for all + builds. Define LIBLTDL variables and DLOPEN again. + * backend/Makefile.am: Don't use no-undefined -export-dynamic for + a library. + * libbase/Makefile.am: Build standalone libltdl now so we can work + with an installed one too, which appears to be necessary on 64 bit + systems. + * macros/boost.m4: Rewrite to support Boost 3.4, which of course + changed the library names. Get all libraries with of the right + type, and sort through the variants to choose the correct one, + preferably ending in *-mt.so. + * macros/kde.m4: Define newlist, so we don't stomp the value of + libslist, which produces bizarre side effects when cross + compiling. + * macros/libltdl.m4: Our build of libltdl.la lives in libbase + instead of libltdl. NOTE: This will unfortunately have to be done + again if this file is updated in the future from the version + included on libtool. + * gui/Makefile.am: -framework Carbon should be defined in + $OPENGL_LIBS. + +2007-05-16 Sandro Santilli + + * server/asobj/NetStreamGst.{cpp,h}: define and use + mutex-protected pipeline control methods. + +2007-05-16 Sandro Santilli + + * server/asobj/NetStreamGst.cpp: always check return code + from gst_element_factory_make. Handling in case of failure + is not verified to be correct. Tgc, could you check it out ? + * gui/Makefile.am: don't put LDFLAGS in LIBADD, remove + spurious character likely slipped in due to Markus + fighting with his new keyboard ;) + +2007-05-15 Markus Gothe + + * po/se.po: Initial start of Swedish translation. + * gui/aqua*: Stubs for getting a native OS X UI. + +2007-05-15 Sandro Santilli + + * server/asobj/NetStreamGst.{h,cpp}: add a resetPipeline() private + method doing some checks on the return code (some situations are + still unhandled); use resetPipeline() when needed. + * server/asobj/NetStream.cpp: warn once about unimplemented stuff. + +2007-05-15 Rob Savoye + + * configure.ac: Use C++ compiler instead of C compiler so the + SIZET_FMT test works correctly with GCC 4.3.x. Move libltdl tests + to top level. Don't configure in the libltdl directory. + * gnash/Makefile.am: Don't list libltdl as a SUBDIR. + * gnash/autogen.sh: Only run libtoolize once. + * backend/sound_handler_sdl.cpp: Rearranage header order for + braindead platforms. + * libbase/Makefile.am: Built ltdl into libbase. Drop linking with + --no-undefined --export-dynamic. + * libgeometry/Makefile.am: Built ltdl into libbase. Drop linking + with --no-undefined --export-dynamic. + * macros/ffmpeg.m4: Don't add ffmpeg to include path. Fix test for + avformat.h to be more portable. + * po/Makefile.am: Install all the translations in a loop. + * server/URLAccessManager.cpp: Include iconv.h. Use lower case for + winsock2.h. + * server/asobj/NetStreamFfmpeg.cpp: Use lower case for winsock2.h. + * server/asobj/xmlsocket.cpp: Use lower case for winsock2.h. + * utilities/parser.cpp, processor.cpp: Include libintl.h and + locale.h for braindead platforms. + * macros/libltdl.m4: Add autoconf support from libltdl. + + +2007-05-15 Sandro Santilli + + * server/swf/tag_loaders.cpp (inflate_wrapper): fix infinite loop + on inflate errors. + * server/parser/morph2_character_def.cpp (read): don't abort + if number of edges in start and end shapes are not equal. + Just raise an SWF error. + * server/stream.{cpp,h} (skip_bytes): return a boolean value + for success/failure. + * server/swf/PlaceObject2Tag.cpp (readPlaceAction): check + return from stream::skip_bytes. + * libbase/jpeg.cpp: fix typo introduced in last commit. + * server/swf/PlaceObject2Tag.cpp (readPlaceActions): don't abort when + reserved flag != 0. + +2007-05-15 Tomas Groth Christensen + + * server/asobj/NetStream.{cpp.h}, server/asobj/NetStreamFfmpeg.{cpp,h}, + server/asobj/NetStreamGst.{cpp,h}: Moved shared code from + NetStreamFfmpeg and NetStreamGst to the NetStream base class. + +2007-05-15 Sandro Santilli + + * libbase/jpeg.{cpp,h}: cleanups and robustness (first pass). + +2007-05-15 Tomas Groth Christensen + + * backend/sound_handler_{sdl,gst}.cpp: Use the + IF_VERBOSE_MALFORMED_SWF macro. + * libbase/log.h: Added gnash:: to RcInitFile calls. + * server/swf/tag_loaders.cpp: Use stream::read() instead of loops. + +2007-05-15 Sandro Santilli + + * libbase/GnashException.h: add missing include. + +2007-05-15 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_test9.c: + improved comments. + +2007-05-15 Sandro Santilli + + * server/stream.{cpp,h} (set_position): document and change return + type to signal failures. + * server/font.cpp (readDefineFont, readDefineFont2_or_3): use + stream::set_position return code to detect SWF malformations. + +2007-05-15 Tomas Groth Christensen + + * backend/sound_handler_{gst,sdl}.cpp: Make soundhandlers more robust. + * server/swf/tag_loaders.cpp: Remember to pass the mp3 data and size. + +2007-05-15 Sandro Santilli + + * server/movie_instance.cpp (advance): safely handle movies + with 0 total frames (malformed SWF). + * gui/gui.cpp (advance_movie): handle no looping when the + total frame count is 0 (malformed SWF). + * server/dlist.cpp (swapDepth): fix an out-of-bound access. + +2007-05-15 Zou Lunkai + + * testsuite/misc-ming.all/duplicate_movie_clip_test2.c: + more tests. + * testsuite/misc-ming.all/action_execution_order_test9.c: + new testcase. + +2007-05-14 Sandro Santilli + + * server/parser/movie_def_impl.cpp (read_all_swf): handle premature + SWF::END tag. + * libbase/tu_file.{cpp,h}: changed set_position signature to return + an int (0 for success TU_FILE_SEEK_ERROR on error). + * server/stream.cpp (end_tag): check return from + tu_file::set_position(). + +2007-05-14 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, NetStream-Square.c, + NetStream-SquareTest.c, Video-EmbedSquare.c, + Video-EmbedSquareTest.c: Renamed video tests to conform + to the tests naming convention (end with "test"). Enabled + build of the SWF. Test runners still missing. + Get FLV path on command line. + +2007-05-14 Sandro Santilli + + * server/font.cpp: more robustness improvements. + * server/font.cpp (readDefineFont, readDefineFont2_or_3): pass + shape_character_def the real tag we're parsing. + * server/parser/shape_character_def.cpp (read): when parsing + DEFINEFONT tags provide a dummy solid white fill style to + act as a placeholder for consistency checking. + +2007-05-14 Sandro Santilli + + * server/fill_style.{cpp,h}: document default constructor and type. + * server/vm/ASHandlers.cpp (CommonGetUrl): check url security also + when invoking firefox. + * server/font.cpp (readDefineFont, readDefineFont2_or_3): use + symbolic names for tag type. + * server/parser/shape_character_def.cpp (read): temporarely + disabled the "don't set line and fill styles if not defined yet". + It seems to break a lot of movies. We should find out why though, + as I'd think styles must *first* be defined, and *after* referred. + +2007-05-14 Sandro Santilli + + * backend/render_handler_agg_style.h (is_solid): check argument + with an assertion before accessing the m_styles vector. + * server/parser/shape_character_def.cpp (read): don't set line and + fill styles to unavailable values. Drop a weird an likely bogus + modification of tag_type when a flagHasNewStyle is set and the + tag is DEFINESHAPE. + +2007-05-14 Sandro Santilli + + * utilities/Makefile.am: don't set LDFLAGS twice. + * server/parser/shape_character_def.{cpp,h}: add ShapeRecordFlags + enum to use symbolic names while parsing. Don't change tag type + when encountering the flagHasNewStyles set and the tag type + is DEFINESHAPE (for which supposedly that flag is reserved); + keep parsing instead and print a message about SWF malformacy. + * gui/Player.cpp (run): exit with a failure if input movie has + collapsed dimensions (malformed SWF most likely). + * server/asobj/xml.{cpp,h}: change extractNode interface to return a + bool, so it can implement a custom ignoreWhite thing (the libxml2 + XML_PARSE_NOBLANKS seems to be not working. Add getXMLOptions() + and getIgnoreWhite() utility methods (privates). Fixes bug #19865. + * testsuite/actionscript.all/XML.as: more tests for ignoreWhite. + +2007-05-14 Sandro Santilli + + * server/asobj/xmlnode.cpp (stringify): represent empty nodes with the + "" format. + * server/asobj/xml.{cpp,h}: parseDoc made private; add clear() + method for dropping childs and attibutes; clear() on parseXML() or + load() calls. + * testsuite/actionscript.all/XML.as: add a cleaner test for parseXML + not appending new definitions. Misses the same for load() + +2007-05-14 Sandro Santilli + + * utilities/Makefile.am: put GNASH_LIBS in LDADD and external + libs in LDFLAGS. Drop '-dlopen self'. Please review. + +2007-05-14 Rob Savoye + + * macros/mtasc.m4: Patch #9531, fix variable name for MTASC. + * libbase/noseek_fd_adapter.cpp: Include cstring to get C string + functions used for char * manipulation. + * libbase/URL.cpp: Include cstring to get C string functions used + for char * manipulation. + * libbase/embedVideoDecoderFfmpeg.cpp: Include cstring to get C + string functions used for char * manipulation. + * libbase/curl_adapter.cpp: Include cstring to get C string + functions used for char * manipulation. + + * server/gnash.h: Include memory for auto_ptr. + * libamf/amf.h: Include cstring for C string functions. + * libamf/amf.cpp: Use lower case for win32 headers, as that's what + Mingw32 uses. + +2007-05-14 Sandro Santilli + + * testsuite/misc-ming.all/displaylist_depths_test7.c: fix description + to match actual implementation. Don't expect a wrong behaviour. + +2007-05-14 Sandro Santilli + + * testsuite/misc-ming.all/: duplicate_movie_clip_test2.c, + displaylist_depths_test9.c: don't expect any failure. + * server/as_environment.cpp (find_target): strip leading colon chars + in path components (fixes ActionDuplicateClip bug). + * testsuite/misc-ming.all/Makefile.am: fixed bad typo (missing + backslash) which triggered NO warning from ./autogen.sh + but still resulted in bogus Makefile.in produced (sic!). + +2007-05-14 Tomas Groth Christensen + + * libbase/FLVParser.cpp: Fixed a out-of-bound error (bug #19866). + * testsuite/media/square.flv: Added. Used for testing. + * testsuite/misc-ming.all/NetStream-Square.c: Added. Created simple + SWF which plays square.flv using NetStream. + * testsuite/misc-ming.all/Video-EmbedSquare.c: Added. Created simple + SWF which plays an embedded video (ripped from square.flv). + +2007-05-14 Sandro Santilli + + * po/Makefile.am: create destination directories before trying to + install things there. + +2007-05-14 John Gilmore + + Internationalization, further cleanup: + + * po/Makefile.am: Pass proper flags to xgettext to handle _(...). + * po/LINGUAS: Remove, superseded by Makefile.am's "translations". + * backend/sound_handler_gst.cpp, cygnal/cygnal.cpp, cygnal/http.cpp, + cygnal/statistics.cpp, cygnal/stream.cpp, gui/gtk.cpp, + gui/gtk_glue_gtkglext.cpp, gui/kde.cpp, gui/stl_agg_glue.cpp, + libamf/amf.cpp, libamf/rtmp.cpp, libbase/rc.cpp, + libbase/sharedlib.cpp, server/movie_root.cpp, utilities/parser.cpp, + utilities/processor.cpp: Insert header + comment and fix up copyright spacing. + * backend/sound_handler_gst.cpp, cygnal/cygnal.cpp, cygnal/http.cpp, + cygnal/statistics.cpp, cygnal/stream.cpp, gui/Player.cpp, + gui/gtk.cpp, gui/gtk_glue_gtkglext.cpp, gui/stl_agg_glue.cpp, + libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, libbase/rc.cpp, + libbase/sharedlib.cpp, server/as_function.cpp, server/debugger.cpp, + server/movie_root.cpp, utilities/parser.cpp, utilities/processor.cpp: + Pass messages through _(...). + * backend/sound_handler_gst.cpp, backend/sound_handler_mp3.cpp, + cygnal/README, cygnal/cygnal.cpp, cygnal/http.cpp, + cygnal/statistics.cpp, cygnal/stream.cpp, gui/Player.cpp, + gui/gtk.cpp, gui/gtk_glue_gtkglext.cpp, gui/stl_agg_glue.cpp, + libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, + libbase/rc.cpp, libbase/sharedlib.cpp, server/as_function.cpp, + server/debugger.cpp, server/dlist.cpp, server/movie_root.cpp, + utilities/parser.cpp, utilities/processor.cpp: + Clean up messages (remove \n's and !s, change wording, use + log_XXX functions rather than dbglogfile <<, use proper log_XXX + function, fix typos, etc). + * backend/sound_handler_mp3.cpp: New 2007 Free Software Foundation + copyrights applied (to formerly public domain code) + * cygnal/cygnal.cpp, cygnal/http.cpp, cygnal/statistics.cpp, + cygnal/stream.cpp, gui/gtk_glue_gtkglext.cpp, gui/kde.cpp, + gui/stl_agg_glue.cpp, libbase/sharedlib.cpp: Update copyright + to 2007. + * cygnal/http.cpp (HTTP::sendGetReply), + cygnal/stream.cpp (sendfile_thread), + libamf/amf.cpp (AMF::encodeElement, AMF::extractElementLength, + AMF::parseBody, AMF::extractVariable), + server/debugger.cpp (Debugger::dumpStackFrame): Insert FIXME + about likely bug. + * gui/kde.cpp (qwidget::qwidget): Translate strings for the + pop-up menu items. + * libbase/network.cpp (Network::writeNet): Remove dead code. + * AUTHORS, gui/gtk.cpp (authors): Add myself to authors list. + +2007-05-14 Sandro Santilli + + * server/rect.{cpp,h} (read): check for min/max values swapped + reporting SWF malformation and setting the rect to NULL if + that happens. + * server/parser/movie_def_impl.cpp (readHeader): report SWF + malformation if movie bounds were malformed. + +2007-05-14 Zou Lunkai + + * testsuite/misc-ming.all/: displaylist_depths_test9.c, Makefile.am: + new scenario for Timeline Control, gnash passes. + But luckly, caught a bug in ActionDuplicateClip :) + * testsuite/misc-ming.all/action_execution_order_test8.c: indent + * testsuite/misc-ming.all/: duplicate_movie_clip_test2.c, Makefile.am: + new testcase for duplicateMovieClip. + +2007-05-13 Rob Savoye + + * po/Makefile.am: Add install-data-hook target so the .gmo files + get installed. Build and install German translation. + * po/de.po: German translation by benjamin.goose@lrz.uni-muenchen.de. + * doc/C/sources.xml: Fix unclosed tags. + * macros/ffmpeg.m4: Only print warning and reset + ac_cv_path_ffmpeg_incl if avformat.h doesn't exist. + +2007-05-13 Sandro Santilli + + * macros/boost.m4: typo fix (might need another go at testing) + * testsuite/actionscript.all/Number.as: skip conversion-to-number + tests if Ming doesnt' support ASM. + * testsuite/actionscript.all/XML.as: add tests exposing two bugs + with XML (parseXML appending newly parsed stuff and ignoreWhite + being unsupported). + +2007-05-12 Martin Guy + + * server/stream.{h.cpp}: Punch a block-read primitive through the + stream layer. + * server/parser/sound_definition.cpp: Move ADPCM code elsewhere + * server/swf/tag_loaders.cpp: Decode all linear formats into native 16, + move ADPCM code here where it's used. + +2007-05-12 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp: Make sure sounds are stopped + when done being played. Should fix bug #19628. + * libbase/FLVParser.{h,cpp}: Switched from referring to the last + frame we used, to the next frame we're going to use. + * libbase/curl_adapter.cpp: Fix use of usleep() on windows. + * macros/opengl.m4: Fixed detection on windows. + * macros/boost.m4: Re-commited Deannas boost patch with a small fix. + +2007-05-12 Sandro Santilli + + * server/character.h (isDynamic): the root movie, not having + been placed in a parent displaylist, has NO TimelineInfo + associated. Consider this in the assertion aimed at dropping + the _dynamicallyCreated flag. + * libbase/tu_file.cpp (std_tell_func): don't require not to + be at EOF on tell() call. See bug #19861. + +2007-05-12 Sandro Santilli + + * server/execute_tag.h, server/swf/PlaceObject2Tag.{cpp,h}, + server/swf/tag_loaders.cpp: Drop execute_tag::execute_state_reverse() + and execute_tag::get_depth_id_of_replace_or_add_tag) methods. + * server/sprite_instance.{cpp,h}: (advance_sprite, execute_frame_tags): + call resetDisplayList in advance_sprite rather then delegate to + execute_frame_tags, to avoid an invocation during + restoreDisplayList(). (restoreDisplayList): fix comment for + step1, remove commented out code. Drop the m_is_reverse_execution + flag and associated getter. Drop execute_frame_tags_reverse() method. + Drop find_previous_replace_or_add_tag method. (goto_frame) Move + UdoG comment where it belonge [old design block], add comment about + possible problem with clearing the action queue after displaylist + restoration. + * testsuite/misc-ming.all/loop_test-Runner.cpp: Don't set action + verbosity. + +2007-05-11 Sandro Santilli + + * server/dlist.{cpp,h}: Add another DisplayList mass-removal + function taking a vector of gnash::characters to remove. + * server/character.h: Add support for attaching TimelineInfo + records to (timeline) instances. + * server/sprite_instance.cpp: + (add_display_object, replace_display_object): + add TimelineInfo record to placed timeline instance. + (restoreDisplayList): implemented DisplayList reconstruction + algorithm as defined on the "Timeline control" wiki page. + (goto_frame): use restoreDisplayList when jumping-back, properly + set m_current_frame when jumping-forward, for proper TimelineInfo + construction. + * testsuite/misc-ming.all/: displaylist_depths_test4.c, + displaylist_depths_test5.c, displaylist_depths_test6.c, + displaylist_depths_test7.c, displaylist_depths_test8.c: + Most new Timeline-focused testcases pass now. + PLEASE HELP MAKING MORE !! + +2007-05-11 Rob Savoye + + * macros/curl.m4, sdl.m4: Drop extraneous results. + * macros/x11.m4: Remove --enable test, remove extraneous results. + +2007-05-11 Sandro Santilli + + * server/dlist.h (move_display_object): document the call to + accept_anim_move(). + * testsuite/misc-ming.all/displaylist_depths_test7.c: fix missing + failure "expectance" and associated comment. + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test8.c: + New case: "Jumping backward to the start of a character's lifetime + after dynamic transformation" + +2007-05-11 Sandro Santilli + + * server/dlist.{cpp,h} (swapDepths): abort if target depth + equals depth of source character. + * server/sprite_instance.cpp (sprite_swap_depths): raise + a debugging message and skip any depths swap if target depth + equals depth of source character. + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test7.c: + New scenario testing that swapDepth(currentdepth) has no effect. + +2007-05-11 Sandro Santilli + + * testsuite/misc-ming.all/displaylist_depths_test6.c: + Jump to frame 5, to avoid a failure and success of + the same test in two different points in time, and *stop* there + (wiki updated). + * server/dlist.{cpp,h}: drop dangerous swap_characters, add safe, + documented and correct swapDepths. (fixes displaylist_depths_test6). + * server/sprite_instance.{cpp,h}: drop dangerous swap_characters, + add safe and swapDepths proxy to DisplayList's. + +2007-05-11 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: enabled + displaylist_depths_test6.swf runner + * testsuite/misc-ming.all/displaylist_depths_test6.c: + Some comments cleanup, and an additional expected failure + (slightly unrelated to test focus, I'd say). + +2007-05-11 Sandro Santilli + + * server/sprite_instance.h: improved documentation for the + add_display_object() method. I think this is where we're going + to add a TimelineInfo record (see Timeline Control page on the + wiki). + +2007-05-11 Zou Lunkai + + * testsuite/misc-ming.all/: displaylist_depths_test6.c: + new scenario for Timeline Control + NOTE: Gnash fails this one !! + +2007-05-11 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test5.c: + new scenario for Timeline Control (see wiki for more details). + NOTE: Gnash fails this one !! + +2007-05-10 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test4.c: + new scenario for Timeline Control (see wiki for more details). + NOTE: Gnash fails this one !! + +2007-05-10 Sandro Santilli + + * testsuite/anaylse-results.sh: print an header before the actual + results; don't limit depth of search for summary files. + * Makefile.am, add an anal rule to run the test results analyzer. + Run the analyzer at end of 'make check', so the report doesn't + scroll-up. + * testsuite/Makefile.am: don't run the analyzer from testsuite/ dir + as it would miss some tests in upper directories. + +2007-05-10 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test2.c, + displaylist_depths_test3.c: Cleanup comments for test2 and add + new scenario for Timeline Control (see wiki for more details). + +2007-05-10 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + SpriteButtonEventsTest-Runner.cpp, SpriteButtonEventsTest.c: + Produced a MovieClip versio of the ButtonEventTest.swf movie. + Seems to work fine, test automated. + +2007-05-10 Sandro Santilli + + * server/event_id.h, server/vm/action.cpp: add + event_id::is_button_event() method + * server/sprite_instance.{cpp,h}: add isEnabled() method, + (on_event): don't react to button events if not enabled. + * testsuite/misc-ming.all: ButtonEventsTest-Runner.cpp, + ButtonEventsTest.c: add test for Button.enable flag. + +2007-05-10 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: more and better tests for + MovieClip.enabled. + * server/sprite_instance.cpp (attachMovieClipInterface): initialize + an 'enabled' property in MovieClip.prototype (fixes old and new + tests for it in MovieClip.as); + +2007-05-10 Sandro Santilli + + * testsuite/misc-ming.all/displaylist_depths_test2.c: target + SWF7, use getInstanceAtDepth() to verify Gnash succeeds the + test, despite the fact it's "soft references" implementation + is bogus (thanks to zou for the tip!). We might still want a + MovieTester based runner to check for rendering in any case, + but less urgent... + * server/sprite_instance.{cpp,h}: Implemented + MovieClip.getInstanceAtDepth() and MovieClip.getSWFVersion(); + stubbed MovieClip.getTextSnapshot(). + * testsuite/actionscript.all/MovieClip.as: tested + MovieClip.getSWFVersion() and MovieClip.getInstanceAtDepth(). + +2007-05-10 Sandro Santilli + + * server/as_value.{cpp,h}: encoding of movieclip values + by target path made optional, to help future attempts + at changing it, due to conceptual bug found in it running + the displaylist_depths_test2.swf testcase. The default is + no change. Undefine MOVIECLIP_AS_SOFTREF to keep them by + pointer (still fails some testcases so not enabled). + +2007-05-10 Martin Guy + + * configure.ac: Don't warn about ffmpeg/mad absence during tests; + they are checked and nogoed at the end. + * configure.ac: Don't report SDL FLAGS and help message twice. + * macros/ffmpeg.m4: Avoid spurious syntax errors when avcodec not found + +2007-05-09 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test2.c: + New test showing the effects of a swapDepth moving a static + instance to the dynamic zone when jumping back to a frame in which + the char is supposed to be at it's original depth. + Incredibly, Gnash passes all tests, except a couple which are due + to the way we implemented "soft references" and that makes it + hard to test for actual existance of the old instance. + +2007-05-09 Udo Giacomozzi + + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: fix ambiguous + strk() call + +2007-05-09 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: don't build the + alltests-v#-Runners on make check. We dont' use them currently. + * testsuite/misc-ming.all/: Makefile.am, .cvsignore: + Enabled static_vs_dynamic testcases. + * testsuite/misc-ming.all/static_vs_dynamic1.c: Don't expect a failure + as we're not failing :) + +2007-05-09 Sandro Santilli + + * extensions/fileio/fileio.{cpp,h}: don't forget to setup + the FileIO exported interface; Fix some const-correctness + for the class methods; have seek() return the correct value; + cast arguments to the expected type. Needs more love, but + I won't give it *now* :) + * configure.ac: drop unneeded LTVERSION_VERSION macro call. + * gui/: fltk.cpp, gtk.cpp, sdl.cpp: + Check if createRenderHandler of the glue returns + NULL, and return false in that case. + +2007-05-09 Sandro Santilli + + * testsuite/MovieTester.cpp (initTestingRenderers): try initializing + an AGG renderer for *each* known pixel format. + * backend/render_handler_agg.{cpp,h} (create_render_handler_agg): + Take pixelformat by *const* pointer, do NOT abort when the given + pixelformat is unsupported, just return NULL. + * testsuite/misc-ming.all/action_execution_order_test8.c: + Added description as reported on bug #19727. + * testsuite/misc-ming.all/static_vs_dynamic2.c: + Moved description of the test on top. + * gui/Makefile.am: fixed typo preventing 'dist' to work. + * testsuite/misc-ming.all/action_execution_order_test8.c: + Fixed access to uninitialized memory (segfault). + +2007-05-09 Andrew Guertin + + * macros/ming.m4: cleaner fix for #19826 (don't redirect + stderr...) + +2007-05-09 Sandro Santilli + + * macros/ming.m4: redirect stderr to /dev/null when using + passing the beta version to printf (would complain if + the version has no beta component). Closes bug #19826. + +2007-05-09 Zou Lunkai + + * testsuite/misc-ming.all/static_vs_dynamic1.c, static_vs_dynamic2.c: + test what we discussed yestoday. + +2007-05-08 Sandro Santilli + + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: tolerate + a 1-pixel Y drift for the harilined black line, as introduced + by latest "pixel hinting" "fix" in AGG (see bug #19775); + Also, changed checked point for the diagonal violet line for + the same reason. See bug #19828 for more info. + * extensions/dejagnu/Makefile.am, extensions/gtk2/Makefile.am, + extensions/mysql/Makefile.am: remove other direct references + to convenience libraries. + * testsuite/Makefile.am, testsuite/server/Makefile.am: + Do not explicitly link convenience libraries under the server/ + dir. Fixes bug #19821. + * libbase/extension.cpp: print plugins path. + * extensions/fileio/Makefile.am: export GNASH_PLUGINS to the buil tree + when running the test program. + * testsuite/generic-testrunner.sh: export any GNASH variable in the + environment, so to allow generic test runners to specify a plugin + dir, and eventually a GNASHRC file (when we add support for it). + * Makefile.am (dumpconfig): add info about which extensions are being + built (if not null extensions are scanned, would be better to + just report wheter extensions are buil or not instead..) + * configure.ac: define USE_EXTENSIONS if build of any extension is + enabled. + +2007-05-08 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Fix vector alignment ("pixel + hinting"). Fixes bug #19775. + +2007-05-08 Sandro Santilli + + * libbase/LoadThread.h: threading enabled by default. + * macros/ffmpeg.m4: set LIBS and CFLAGS to the detected or provided + values for the macro lifetime, so to more easily find any dependent + lib in custom dirs; do not discard user-provided libdir; be more + verbose about version checking. + * server/asobj/NetStream.cpp (fix members initialization order). + * server/asobj/NetStreamGst.{cpp,h}: Make start thread + use a compile-time option. Defaults to true for now, + but worth disabling for better testing (btw: why do + we need a "start" thread and a "continue" thread?) + +2007-05-07 Tomas Groth Christensen + + * libbase/FLVParser.cpp: When seeking to 0 just go to + the first frames. + * server/asobj/NetStream.{h,cpp}: Moved setBufferTime() to + the base class, implemented bufferTime(). + * server/asobj/NetStreamFfmpeg.{cpp,h}: Moved setBufferTime() + to the base class. + * server/asobj/NetStreamGst.{cpp,h}: Moved setBufferTime() to + the base class. tried to improve seeking by using an offset + to avoid telling gstreamer about the seek. + +2007-05-07 Tomas Groth Christensen + + * server/asobj/NetStream{Ffmpeg,Gst}.cpp: After playback stops, + make it possible to restart video by seeking to 0 and setting + pause to false. + +2007-05-07 Martin Guy + + * backend/sound_handler.h: Fix commentary about RAW and UNCOMPRESSED + formats. + * configure.ac: Make absence of ffmpeg or libmad libraries a fatal error + when they are selected, instead of quietly turning media handling off. + * configure.ac: Fix names of Debian packages required for ffmpeg. + * configure.ac: Fix logic of missing ffmpeg library reporting code. + +2007-05-07 Sandro Santilli + + * server/asobj/NetConnection.cpp (openConnect): print FLV url before + setting loader stream so that it's visible before full download in + case threading is disabled. + * libbase/log.h: fully qualify __Host_Function_Report__ so + GNASH_REPORT_FUNCTION can be used by classes outside of 'gnash' + namespace. + * libbase/curl_adapter.cpp (fill_cache): avoid aggressive polling by + taking naps between iterations. "Smart" sleep times are taken + in consideration so we can tweak them. + +2007-05-07 Sandro Santilli + + * libbase/LoadThread.{cpp,h}: Make thread usage a compile-time + configuration. Temporarely defaults to NOT using thread till + we fix bug #19811 and general CPU hogs during loading. + +2007-05-07 Markus Gothe + + * configure.ac, gui/aqua*: Added aqua/carbon-stubs. + +2007-05-06 Tomas Groth Christensen + + * libbase/LoadThread.cpp: Delete the thread after use so we don't + try to join it again. Fixes bug #19811. + * server/asobj/NetStreamGst.cpp: Fixed pausing and play, bug #19797. + +2007-05-06 Tomas Groth Christensen + + * server/sprite_instance.cpp: Stop all sounds when restarting + a movie, fixes bug #19568. + * server/asobj/NetStreamFfmpeg.cpp: Fixed return time. + * server/asobj/NetStreamFfmpeg.h: Added a comment. + * server/asobj/NetStreamGst.cpp: Moved gst-init to the + contructor, fixes bug #19795. Only create audio/video elements + if needed. + +2007-05-04 Sandro Santilli + + * testsuite/samples/clip_as_button2-TestRunner.cpp: add pixel + color checking. + * testsuite/actionscript.all/NetConnection.as: unexpected success.. + +2007-05-04 Sandro Santilli + + * libbase/FLVParser.h (FLVVideoFrame): add isKeyFrame() method; + use typedefs for video and audio frame containers. + * libbase/FLVParser.cpp: use isKeyFrame(), easier to read. + +2007-05-04 Sandro Santilli + + * libbase/FLVParser.cpp (seekAudio, seekVideo): fixed seeking and + hopefully made a bit more readable. The computed values are + now printed for further debugging. They seem correct to me, but + it seems they are not correctly used. + * server/asobj/: NetStream.{cpp,h}, NetStreamFfmpeg.{cpp,h}, + NetStreamGst.{cpp,h}: change play() method to take a std::string + ref instead of a char*; always pass environment when casting args + to numbers or strings. + +2007-05-04 Sandro Santilli + + * server/asobj/NetStream.cpp: stubbed missing methods and + properties. + * libbase/tu_file.cpp (std_get_stream_size_func): use fstat to + get stream size. (other funx for filesystem access): add some assertions + to prevent seeking past the end of the stream. + * libbase/LoadThread.cpp (read): don't seek past the end of the + stream. Add a few assertions checking that _loadPosition is + never > then _streamSize. + +2007-05-04 Markus Gothe + + * gui/aqua.cpp: Initial creation. + +2007-05-04 Markus Gothe + + * macros/boost.m4: Fixed a bug in GNASH_BOOST_PATH. + * server/asobj/SoundFfmpeg.h: Build on OS X. + * backend/sound_handler_sdl.h: Build on OS X. + +2007-05-03 Sandro Santilli + + * server/asobj/NetConnection.{cpp,h}: change openConnection interface + to take url by ref (not by pointer) and nothing else (drop owner + arg). Stubbed documentation of the method (needs more info). + * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp, Sound.cpp, + SoundFfmpeg.cpp, SoundGst.cpp, SoundMad.cpp: + Updated calls to openConnection. + +2007-05-03 Sandro Santilli + + * server/asobj/NetConnection.{cpp,h}: keep _loader by auto_ptr, some + comments and interfaces cleanup. + * server/asobj/: NetStreamFfmpeg.cpp, NetStreamGst.cpp: update calls + to connectParser(), now taking by ref. + +2007-05-03 Sandro Santilli + + * server/asobj/NetConnection.{cpp,h}: Yay, another ActionScript class + layout version. As a side effect stubbed missing properties and + methods of the class + cleanups in the connect() method. + +2007-05-03 Sandro Santilli + + * configure.ac: rewording of ffmpeg warnings. Shows a bug in ffmpeg.m4 + failing to detect version and thus failing to accept it when + passed explicit --with-ffmpeg-incl and --with-ffmpeg-lib. + * server/asobj/: NetStream.{cpp,h}, + NetStreamFfmpeg.cpp, NetStreamGst.cpp: + Use an enum for status codes, avoid notifying multiple + times the same status. + +2007-05-03 Sandro Santilli + + * gui/gui.cpp: Add RENDER_ONE_FRAME_EVERY macro to skip + rendering of a given fraction of movie frames (for debugging). + * server/video_stream_instance.cpp (display): call + clear_invalidated(). + +2007-05-03 Udo Giacomozzi + + * server/video_stream_instance.cpp: implemented proper + add_invalidated_bounds() + +2007-05-03 Sandro Santilli + + * server/asobj/Makefile.am, server/parser/Makefile.am, + server/vm/Makefile.am: -release makes no sense for + convenience libraries. + * testsuite/misc-ming.all/DrawingApiTest.as: reintroduced + visual hitTest checks (not automated yet). This time + they don't break the exising test. + * testsuite/MovieTester.{cpp,h}: add redraw() method, + by default only force a redraw on *first* advance. + +2007-05-03 Markus Gothe + + * backend/render_handler_ogl.cpp: Make it work with __APPLE_CC__. + +2007-05-03 Sandro Santilli + + * server/sprite_instance.cpp (add_empty_movieclip): + call set_invalidated as the newly added character might + replace a previously existing one. See bug #19683. + * server/video_stream_instance.{cpp,h}, + server/parser/video_stream_def.{cpp,h}: + Encode ownership of embedded videodecoder by using std::auto_ptr, + and document it. + * server/asobj/NetConnection.cpp (getBytesTotal): return total bytes, + not "loaded" bytes... - fixes YouTube buffering bar. + +2007-05-03 Udo Giacomozzi + + * backend/render_handler_agg.cpp: by default use world invalidated + bounds (not Null) + * server/character.cpp: negative scaling values are legal (related to + bug #18874, but not fixing it) + * backend/render_handler_agg.cpp: use absolute scaling values when + calculating stroke width, fixes 18874 + +2007-05-03 Andrew Guertin + + * backend/: sound_handler.h, sound_handler_gst.cpp, + sound_handler_sdl.cpp: Makes Nellymoser not an "unknown" format in + the error message, just unsupported, Makes GST's unknown format + error message better (copied SDL's), Adds an assertion that + ADPCM and UNCOMPRESSED should never be passed to the sound + handler, Adds a comment to sound_handler.h + +2007-05-02 Sandro Santilli + + * testsuite/Makefile.am: explicitly list other gnash libs. + * testsuite/libgeometry/Range2dTest.cpp: tolerate some floating + point drift. + +2007-05-02 Markus Gothe + + * libbase/Makefile.am: Get sure we link against gettext if found. + +2007-05-02 Rob Savoye + + * po/Makefile.am: We don't need $(srcdir) since we're specifing + the directory. + * server/asobj/Makefile.am: Make libgnashasobjs a a convienience + library. + * server/parser/Makefile.am: Make libgnashparser a a convienience + library. + * server/vm/Makefile.am: Make libgnashvm a a convienience + library. + * utilities/Makefile.am: Don't link in all the other libraries. + * gui/Makefile.am: Don't link in all the other libraries. + + * libbase/curl_adapter.cpp: Don't redefine snprintf() for win32. + * libbase/noseek_fd_adapter.cpp: Don't redefine snprintf() for + win32. + * libbase/log.h: Include io.h for win32. + * libbase/network.cpp: Use inet_ntoa() instead of the newer + inet_ntop(). Include ws2tcpip.h for win32. + * libbase/tu_timer.cpp: Use lowercase mmsystem.h. + * libbase/tu_types.h: Don't use __FUNCDNAME__ to redefine + __PRETTY_FUNCTION__for all win32 builds. + * macros/boost.m4: Remove extraneous boost directory when + searching for header files. + +2007-05-02 Sandro Santilli + + * libbase/curl_adapter.cpp (fill_cache): stop uselessly calling + fstat(); don't call curl_multi_perform if not needed. + * libbase/log.cpp: call the logfile singletone getter only once. + * libbase/image.{cpp,h}: move documentation of the update() method + from cpp to h file. This is the most time-expensive routine in + libgnashbase when playing youtube. + * libbase/LoadThread.{cpp,h}: isPositionConfirmed inlined and + const-corrected. + +2007-05-02 Martin Guy + + * libbase/tu_config.h,libbase/jpeg.cpp,server/swf/tag_loaders.cpp, + compatibility_include.h: Having jpeglib is compulsory, so + remove TU_CONFIG_LINK_TO_JPEGLIB + * Revert attempt to use endian.hpp. It broke someone's build. QED. + * gui/fb.cpp: Fix compiler warnings + * libbase/tu_config.h,server/swf/tag_loaders.cpp: Allow compilation + without zlib, auto-switching TU_CONFIG_LINK_TO_ZLIB on HAVE_ZLIB_H + (works with renderer=agg/opengl, gui=fb/sdl, media=gst/mad/none; + gtk/kde, cairo, ffmpeg require zlib in their own right) + * configure.ac: Reformat messages + * libbase/tu_config.h,libbase/zlib_adapter.{cpp,h},server/tools.cpp, + server/{impl.cpp,parser/movie_def_impl.cpp,swf/tag_loaders.cpp}, + compatibility_include.h: eliminate TU_CONFIG_LINK_TO_ZLIB; + use HAVE_ZLIB_H directly. + * configure.ac: Suggest packages to install when zlib-dev is missing + * configure.ac,macros/ffmpeg.m4: Fix quotation in ffmpeg detection and + skip version checking to avoid syntax errors during "configure" + if the library is not found. + * server/asobj/SoundMad.cpp: Fix compiler warnings. + * gui/sdl.cpp: Regularize bizarre indentation + * gui/sdl.cpp: A closer hack at making movies run at correct speed. + Before: always at 100 frames per second + cpu time. + After: Still not perfect: in non-interactive movie, visuals are a + fraction of a second ahead of MP3 soundtrack. + +2007-05-02 Sandro Santilli + + * backend/sound_handler_gst.cpp, gui/Player.cpp, libamf/amf.cpp, + libbase/log.h, server/as_function.cpp, server/swf/tag_loaders.cpp, + server/button_character_instance.cpp, server/character.cpp, + server/sprite_instance.cpp, server/asobj/NetStreamGst.cpp: + Drop log_warning, till we find a semantic for it. + +2007-05-02 Sandro Santilli + + * server/sprite_instance.cpp (sprite_getBounds): remove TESTING + warning, I'm pretty confident about this function now. + +2007-05-01 Rob Savoye + + * libamf/Makefile.am: Add BOOST_CFLAGS so we can find endian.hpp. + +2007-05-01 Sandro Santilli + + * server/asobj/: NetStream.{cpp,h}, NetStreamFfmpeg.{cpp,h}, + NetStreamGst.{cpp,h}: move all onStatus handling to base class + and made thread safe. + +2007-05-01 Sandro Santilli + + * server/movie_root.h: add getWidth() and getHeight() + * server/asobj/Stage.{cpp,h}: implement Stage.width and + Stage.height. + * testsuite/actionscript.all/Stage.as: small test for + Stage.width and Stage.height (not automated) + +2007-04-30 Sandro Santilli + + * testsuite/swfdec/swfdec_gnash_tester: allow 11 loop-backs. + * testsuite/swfdec/PASSING: function1.swf now succeeds. + +2007-04-30 Sandro Santilli + + * testsuite/libamf.all/Makefile.am: proper clean rule. + * testsuite/misc-ming.all/Makefile.am: proper clean rule. + * doc/C/Makefile.am: distribute actionscript.xml and related + files. + +2007-04-30 Martin Guy + + * backend/sound_handler_sdl.cpp: Fix volume scaling in 8->16 bit + raw data conversion (closes bug #19747) + and convert cascaded ifs to a case. + +2007-04-30 Sandro Santilli + + * Makefile.am: don't put 'po' in EXTRA_DIST, as it's already + in SUBDIRS. + * server/StringPredicates.h: include cctype. + See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417210. + * po/Makefile.am: don't update the .po files on every .gmo + production. Produce the .gmo in the build tree, not in the + source tree. + +2007-04-30 Martin Guy + + * libbase/tu_types.{h,cpp}, server/swf/tag_loaders.cpp: + Eliminate remnants of _TU_LITTLE_ENDIAN_ + * configure.ac: Drop now-redundant endian header detection + * libamf/amf.{h,cpp}: swapBytes is now file-local and uses libboost + +2007-04-30 Sandro Santilli + + * autogen.sh: only process configure.ac in root dir and under libltdl, + running a find annoingly descends in just generated dist dirs. + * testsuite/samples/Makefile.am: distribute gotoFrameOnKeyEvent.swf. + * testsuite/actionscript.all/array.as: add test for deleting an + array element, and for array indexes being proper properties + (fails in gnash). + * configure.ac: if ffmpeg version doesn't match the required one + set media handling to none. + * testsuite/misc-ming.all/action_execution_order_test8.c: add + more output trying to understand the problem better. + * server/parser/shape_character_def.cpp (compute_bounds): harline + strokes don't add anything to the bounds (no need to expand to + circle, same as for hidden strokes). + * testsuite/misc-ming.all/Makefile.am: + Activated action_execution_order_test{7,8}. + +2007-04-30 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_test7.c: + a simple and normal one that we should pass. + * testsuite/misc-ming.all/action_execution_order_test8.c: + another one for execution order. + +2007-04-29 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as: add + tests for hitTest (not automatically run, but works fine so far). + * server/button_character_instance.{cpp,h}: implement pointInShape(). + +2007-04-28 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionWith): skip with() blocks + given a parameter not casting to an object. + * testsuite/actionscript.all/with.as: + Add tests explaining why the tests in previous + commit are failing in SWF5 version. + +2007-04-28 Zou Lunkai + + * testsuite/actionscript.all/with.as: + add more tests + +2007-04-28 Sandro Santilli + + * server/as_environment.{cpp,h}: stop descending + the CallStack looking into the callers locals! + * testsuite/actionscript.all/Function.as: success + with SWF5 and (missing) scope chain. + +2007-04-27 Rob Savoye + + * gui/fltk.cpp: Cast the key::code so it compiles on Darwin. + * macros/agg.m4: Don't inherit the -rpath setting fropm + pkg-config, it screws up the linux on Darwin. + * macros/incllist, libslist: Look in $with_top_level for support + packages no in the $prefix path. + * macros/pthreads.m4: Add -mthreads for mingw32. + * macros/x11.m4: If X11 is found, also add libSM and libICE if + they are found to resolve dependencies on Darwin. + * server/Makefile.am: Remove -no-undefined as it cause dependency + problems on Darwin. + * server/vm/Makefile.am: Remove -no-undefined as it causes + inter-library dependency problems on Darwin. + * server/parser/Makefile.am: Remove -no-undefined as it causes + inter-library dependency problems on Darwin. + * server/asobjsMakefile.am: Remove -no-undefined as it causes + inter-library dependency problems on Darwin. Add libgeo to the + link line. + * server/vm/VM.cpp: Don't use the gnash:: namespace with setting + the global singleton, it won't compile on Darwin. + +2007-04-27 Sandro Santilli + + * server/swf/PlaceObject2Tag.cpp (readPlaceActions): fix check for + all reserved bits being zero (removed an annoying false malformed + swf error). + * gui/gtk.cpp: comment out function tracing for key and mouse events. + +2007-04-27 Martin Guy + + * configure.ac: Add verbose text for missing gstreamer-dev help + +2007-04-27 Sandro Santilli + + * testsuite/misc-mtasc.all/README: some info about the MTASC + testing framework. + * testsuite/actionscript.all/Global.as: check that _global._global + is undefined. + * testsuite/actionscript.all/Function.as: add another test for + nested functions and scope chain. + +2007-04-27 Sandro Santilli + + * server/as_environment.{cpp,h}: changed the ScopeChain + typedef to be just a vector of as_objects. + * server/swf_function.{cpp,h}: take a vector of as_objects + as ScopeChain, rather then with_entry vector... + * server/vm/ActionExec.{cpp,h}: only expose the ScopeChain, + not the 'with' stack. When constructed for a function, push + the function's activation object to the ScopeChain. + * server/vm/ASHandlers.cpp: update calls to ActionExec and + swf_function when it comes to setting the ScopeChain. + * testsuite/actionscript.all/Function.as: the scope chain test kai + added now succeeds. + * testsuite/swfdec/PASSING: function-scope-6.swf and function-scope-7.swf + now succeed. + +2007-04-27 Sandro Santilli + + * libgeometry/snappingrange.h: add contains(SnappingRange2d) method; + fixed contains(Range2d) to take a const ref rather then a value. + * testsuite/libgeometry/snappingrangetest.cpp: add tests for + contains(SnappingRange2d). + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: add test for + renderer and invalidated bounds. + +2007-04-27 Sandro Santilli + + * gui/gui.cpp: add a DEBUG_MOUSE_COORDINATES define, for making + writing test runners easier. + * testsuite/swfdec/swfdec_gnash_tester: use the .trace.org files when + avaiable, as in that case it means that the .trace are just swfdec + results (Ben is cheating !) + * testsuite/swfdec/PASSING: double.swf fails again. + +2007-04-27 Sandro Santilli + + * server/as_value.{cpp,h}: add a static doubleToString(double) function + moved here from a static in Number.cpp, given its good quality. + * server/asobj/Number.cpp: use as_value::doubleToString() for + returning text value. Drop the string representation cache, no + more needed. + * testsuite/swfdec/PASSING: double.swf now succeeds + +2007-04-27 Sandro Santilli + + * libbase/triangulate_impl.h: include config.h. + * libbase/network.{cpp,h}: (writeNet): take a const string ref, not a + copy. + * cygnal/: http.cpp, netstats.cpp, statistics.cpp, stream.cpp: + Hush compiler. + +2007-04-27 Zou Lunkai + + * server/asobj/Key.{cpp,h}: + cleanups; don't invoke user defined onKeyPress(), it's just a + normal function. + * server/movie_root.cpp.h, server/sprite_instance.cpp: + cleanups and add some comments. don't set m_has_key_event when there + is a user defined onKeyPress() function. + * testsuite/misc-ming.all/key_event_testrunner.cpp: + more tests. + +2007-04-26 Rob Savoye + + * Makefile.am: Add po to EXTRA_DIST. + * configure.ac: Set a conditional for gettext. Build po/Makefile + now. + * libbase/Makefile.am: Build all libraries with a release number, + and add --export-dynamic and -no-undefined. Add gettext.h. + * backend/Makefile.am: Build all libraries with a release number, + and add --export-dynamic and -no-undefined. + * server/Makefile.am: Build all libraries with a release number, + and add --export-dynamic and -no-undefined. + * libgeometry/Makefile.am: Build all libraries with a release + number, and add --export-dynamic and -no-undefined. + * server/vm/Makefile.am: Build all libraries with a release + number, and add --export-dynamic and -no-undefined. + * server/parser/Makefile.am: Build all libraries with a release + number, and add --export-dynamic and -no-undefined. + * server/asobjs/Makefile.am: Build all libraries with a release + number, and add --export-dynamic and -no-undefined. + * extensions/dejagnu/dejagnu.cpp: Use instrusive pointers instead + of hard pointers for handlers. + * extensions/fileio/fileio.cpp: Use instrusive pointers instead + of hard pointers for handlers. + * extensions/mysql/mysql_db.cpp: Use instrusive pointers instead + of hard pointers for handlers. + * extensions/gtk2/gtkext.cpp: Use instrusive pointers instead + of hard pointers for handlers. + +2007-04-26 Sandro Santilli + + * testsuite/actionscript.all/Function.as: add a test + showing an incompatibility of flash with ECMA262 when + it comes to the 'arguments' object in functions activation + object. + +2007-04-26 Sandro Santilli + + * server/as_value.cpp (equals): compare m_object_value when both + operatns are either functions or objects. + * server/as_environment.{cpp,h} (get_variable, get_variable_raw, + findLocal): accept an additional argument to return the target + object the variable was found in. + * server/vm/ActionExec.{cpp,h}: provide an additional getVariable + method accepting an as_object pointer to return the target object + a variable was found in. + * server/vm/ASHandlers.cpp (ActionCallFunction): set the 'this' + pointer to the object found to contain the function. + * testsuite/actionscript.all/Function.as: more successes. + +2007-04-26 Sandro Santilli + + * server/as_environment.cpp (get_variable_raw): elements of + the 'with' stack take precedence over locals. + See test in Function.as. + * testsuite/actionscript.all/Function.as: add test for 'with' + stack taking precedence over locals when getting variables. + +2007-04-26 Sandro Santilli + + * testsuite/actionscript.all/Function.as: test for 'this' in + local function. + * server/as_environment.{cpp,h}: refactor local variables + so they are stored into a proper object. Will help introducing + a VariableRef class that associates a Property to an as_object. + +2007-04-26 Sandro Santilli + + * server/as_environment.h, server/movie_root.h, + server/sprite_instance.h, server/vm/action.cpp: + Remove some unused code, remove Id tags from headers. + +2007-04-26 Sandro Santilli + + * testsuite/misc-ming.all/key_event_testrunner.cpp: no more + failures expected (thanks kai). + * server/as_value.cpp (to_primitive): fix missing return + from non-void function. + +2007-04-26 Zou Lunkai + + * server/asobj/Key.h + change "Event_id.h" to "event_id.h" + * server/event_id.h + forgot to commit it in last commit + +2007-04-26 Zou Lunkai + + * server/vm/action.cpp: + add is_key_event() method + * server/asobj/Key.{h, cpp}: + change notify_listeners() to public; set_key_down() and set_key_up() + don't trigger event handler now. + * server/button_character_instance.cpp: + * server/edit_text_character.cpp: + replace *_keypress_listener() to *_key_listener() + * server/character.{h, cpp},server/movie_root.{h, cpp} + trigger onClipKeyUp and onClipKeyDown event handlers + * server/sprite_instance.{h, cpp} + bypass user defined key events in on_event(), let the global key object + take over user defined key events. + * testsuite/misc-ming.all/key_event_testrunner.cpp + enable all checks + +2007-04-26 Sandro Santilli + + * server/as_value.{cpp,h}: to_primitive() made private, and had + calling any user-defined valueOf for objects; (equals): only + return false when to_primitive() returns the same type we were + already. + * testsuite/actionscript.all/Function.as: two more successes. + +2007-04-26 Sandro Santilli + + * server/as_value.cpp (equals): don't abort on object==movieclip ! + * testsuite/actionscript.all/Function.as: add more tests 'this' + reference in 'with' and 'function' scope (see bug #19704). + +2007-04-26 Sandro Santilli + + * server/array.h, server/as_environment.cpp, server/as_function.h, + server/as_object.cpp, server/as_object.h, server/character.cpp, + server/character.h, server/edit_text_character.cpp, + server/edit_text_character.h, server/asobj/Boolean.cpp, + server/asobj/Color.cpp, server/asobj/ContextMenu.cpp, + server/asobj/CustomActions.cpp, server/asobj/Error.cpp, + server/asobj/LoadVars.cpp, server/asobj/Microphone.cpp, + server/asobj/Mouse.cpp, server/asobj/Number.cpp, + server/asobj/Selection.cpp, server/asobj/SharedObject.cpp, + server/asobj/Stage.h, server/asobj/TextSnapshot.cpp, + server/asobj/Video.cpp, server/asobj/gen-asclass.pl, + server/asobj/gen-asclass.sh, server/asobj/string.cpp, + testsuite/server/GetterSetterTest.cpp: + Changed get_text_value interface to return by std::string + value. Closes bug #19695. + +2007-04-25 John Gilmore + + * README, README_CVS: Improve configuration instructions. + More work is needed to make it match the code. + * po/.cvsignore: Ignore all generated .gmo files. + +2007-04-25 Sandro Santilli + + * README_CVS: some info for CVS users. + * doc/C/asspec/date.xml: fixed typos preventing the asspec + from building. + * doc/C/asspec/movieclip.xml: add docs and conformancy for + a few methods. + +2007-04-25 Martin Guy + + * ChangeLog,server/debugger.{cpp,h},server/vm/ActionExec.cpp: + spello dissasemble -> disassemble + * macros/lib-ld.m4(removed),macros/lib-link.m4: + remove repeated test for GNU ld (libtool does this). + Closes bug #19623 + * libamf/amf.cpp,libbase/tu_swap.h,server/parser/action_buffer.cpp, + server/swf/tag_loaders.cpp: + Replace compile-time endianness checking with runtime because + it costs almost nothing and reduces maintenance forever. + As a side-effect, also now handles architectures with + middle-endian IEEE754 doubles and detects non-IEEE arches. + Only the Mozilla devkit stuff now detects endianness + using its own set of built-in rules. + +2007-04-24 Sandro Santilli + + * server/sprite_instance.cpp (sprite_hit_test): implement + hitTest() - not all call types tested. + +2007-04-24 Sandro Santilli + + * server/sprite_instance.cpp: globalToLocal and localToGlobal + implemented. + * testsuite/actionscript.all/MovieClip.as: test localToGlobal + and globalToLocal. + +2007-04-24 Sandro Santilli + + * server/sprite_instance.cpp: stubbed localToGlobal and setMask + * testsuite/actionscript.all/MovieClip.as: test availability of + localToGlobal and setMask. + * testsuite/misc-ming.all/: Makefile.am, DrawingApiTest.as, + DrawingApiTestRunner.cpp: Prepared a test for invalidated + bounds checking. Gnash clearly fails, but no actual automated + tests added to the test runner yet. + +2007-04-24 Sandro Santilli + + * server/vm/ActionExec.{cpp,h}: add delObjectMember() method. + * server/vm/ASHandlers.cpp (ActionDelete): hopefully fixed - + at least as far as we can tell... + * testsuite/actionscript.all/delete.as: more tests for ActionDelete. + +2007-04-24 Rob Savoye + + * configure.ac: Remove --enable-extension. Add --with-extensions= + that takes a comma delimited list of extension so you can seclect + with ones you want to build. + * Makefile.am: Always add the extensions directory. + * extensions/Makefile.am: Use new conditionals to select builds + directories. + * cygnal/cygnal.cpp: Include posix_time.hpp. + * extensions/fileio/fileio.cpp: Use intrusive pointers instead of + explicit pointers. + +2007-04-24 Udo Giacomozzi + + * libgeometry/Range2d.h: added expandToCircle() + * server/rect.h: added expand_to_circle() + * server/parser/shape_character_def.cpp: corrected compute_bound() + to respect outline widths + * testsuite/libgeometry/Range2dTest.cpp: added test for + expandToCircle() + +2007-04-24 Sandro Santilli + + * testsuite/misc-ming.all/: DrawingApiTest.as, + DrawingApiTestRunner.cpp: Add a circle drawing and + test for collision detection of curved fills. + +2007-04-24 Sandro Santilli + + * server/shape.{cpp,h} (point_test): only check for the + "interior" of the shape, forget its boundaries. + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: one + more success. + +2007-04-24 Sandro Santilli + + * server/shape.{cpp,h}: const-corrected point_test and + wihinSquareDistance(); + * server/sprite_instance.cpp (sprite_lineStyle): alpha value is given + in percent, always pass the env to number converters. + * testsuite/misc-ming.all/DrawingApiTest.as: add test checking that + valueOf is invoked on arguments. + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more successes. + +2007-04-24 Sandro Santilli + + * server/sprite_instance.cpp (on_event): call user-defined function + even if clip-events have been found. + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + one more success. + * testsuite/swfdec/PASSING: event-order.swf now succeeds. + * testsuite/swfdec/gen_run_swfdec_testsuite.sh: match full lines + in the PASSING file, to avoid partial mathes. + * server/shape.cpp: substitute hash_wrapper with std::map, + cleanups. + +2007-04-24 Zou Lunkai + + * testsuite/misc-ming.all/Makefile.am + activate testcases committed yestoday + * testsuite/misc-ming.all/key_event_test.c + fix a typo + * server/swf/PlaceObject2Tag.{h,cpp} + minor clean up, keep the "all_event_flags" for future use. + +2007-04-23 Sandro Santilli + + * server/DynamicShape.{h,cpp} (lineStyle): add a line style even + if it is for specifying a thickness of 0 (hairline); + add a resetLineStyle() function for dropping any style. + * server/sprite_instance.{cpp,h}: add resetLineStyle() for + drawing api. + * server/parser/shape_character_def.cpp (point_test_local): + Use a tolerance of a single twip distance when detecting + collision of hairlined strokes. + * testsuite/misc-ming.all/DrawingApiTest.as: add more comments, and + an hairlined line. + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more tests. + +2007-04-23 Sandro Santilli + + * server/shape.{cpp,h}: add path::withinSquareDistance. + * server/types.cpp (point::distance): return 0 for 0 squaredDistance + (not 1). + * server/parser/shape_character_def.cpp (point_test_local): + test for point falling in the shape stroke, taking thickness + in consideration. + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: more + tests. + +2007-04-23 Sandro Santilli + + * server/shape.{cpp,h}: add primitive distance functions + for point-segment + * testsuite/server/: Makefile.am, EdgeTest.cpp: add tests + for point-segment distance. + +2007-04-23 Sandro Santilli + + * server/: gnash.h, types.cpp: add point::distance() and + squaredDistance() + * testsuite/server/: Makefile.am, PointTest.cpp: point tests. + +2007-04-23 Sandro Santilli + + * server/cxform.{cpp,h}: add output operator and toString method. + * server/DynamicShape.cpp (moveTo): do not reset current + fill style on move. Fixes some of the tests in DrawingApiTest.swf + and masks_test.swf. + * testsuite/misc-ming.all/: DrawingApiTestRunner.cpp, + masks_testrunner.cpp: some more successes. + +2007-04-23 Sandro Santilli + + * testsuite/misc-ming.all/: DrawingApiTest.as, + DrawingApiTestRunner.cpp: add rendering tests. + Add a drawing in which move() is called after beginFill() + to confirm the fill is not reset after move(). + +2007-04-23 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, masks_test.c, + masks_testrunner.cpp: Add a MovieTester based test runner + for the masks_test movie. Shows a bug in either the renderer + or in the core preventing rendering of dynamic clips. + * libgeometry/snappingrange.h: add unconditional visitor; add + cast operator; add contains(Range2d); add scale(factor). + * testsuite/MovieTester.{cpp,h}: add a getInvalidatedRanges function; + drop getInvalidatedBounds one. + * testsuite/libgeometry/snappingrangetest.cpp: test contains(Range) + and cast to int. + * testsuite/misc-ming.all/simple_loop_testrunner.cpp: update + to use the new getInvalidatedRanges. + +2007-04-23 Sandro Santilli + + * libgeometry/snappingrange.h: define the SnappingRanges2d<> in + the gnash::geometry namespace. Keep InvalidatedBounds in the + gnash namespace, for simplicity. + * testsuite/misc-ming.all/simple_loop_testrunner.cpp: + Use contains, not intersects, when testing invalidated bounds. + +2007-04-23 Zou Lunkai + + * testsuite/misc-ming.all/event_handler_scope_test.c + testcase for scope in event handlers + * testsuite/misc-ming.all/key_event_test.c, key_event_testrunner.cpp + testcase for key events + +2007-04-21 Sandro Santilli + + * server/: movie_root.{cpp,h}, sprite_instance.{cpp,h}, + asobj/LoadVars.cpp: nuke ptr_list use so that boost 1.32 + (version in Debian stable) is still usable. + +2007-04-21 John Gilmore + + * plugin/plugin.cpp: In the child process, before executing + gnash, close all the file descriptors we inherited from the + browser (except stdout and stderr). + +2007-04-20 Sandro Santilli + + * testsuite/MovieTester.{cpp,h}: reworked the + pixel checking interface to not force moving + the pointer (as moving the pointer might trigger + movie events, as was happening with the ButtonEvent + test). + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: + All tests pass now. + * testsuite/misc-ming.all/attachMovieTestRunner.cpp: + Updated to work with the correct interface. + +2007-04-20 Sandro Santilli + + * testsuite/MovieTester.{cpp,h} (advance): advance + first, *then* render. Cache invalidated bound to + avoid loosing them. + * testsuite/misc-ming.all/attachMovieTestRunner.cpp: + Add renderer tests. + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: + Take the covering clip in consideration while testing + the renderer - there are a few xfailed that I'd like + to fix. + +2007-04-20 Udo Giacomozzi + + * backend/render_handler.h (getAveragePixel): + fix computation of max x/y values. + * server/character.h: character are not masks by default + * server/character.h, server/sprite_instance.cpp: when placing + new characters, disable clip_depth (zero is a valid depth) + +2007-04-20 Sandro Santilli + + * testsuite/FuzzyPixel.h: const-correctness + * testsuite/MovieTester.{cpp,h}: prepared for working + with all render handlers, implemented support for + a single one (AGG only for now); provided + check_pixel and xcheck_pixel macros. + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: + Test pixel checker (doesn't work). + +2007-04-20 Sandro Santilli + + * server/types.{cpp,h}: add toShortString, for neater output. + * libgeometry/snappingrange.h: add output operator. + * server/debugger.cpp, server/parser/action_buffer.cpp, + server/vm/ActionExec.cpp: don't force creation of the + SWFHandlers singleton too early, this hopefully means + at time of initialization the VM version will be known. + * backend/render_handler.h: remove unused parameter warnings. + [ I'm afraid this will confuse doxygen :( ] + +2007-04-20 John Gilmore + + More internationalization. + * po/POTFILES.in: Add all files with gettext-able messages. + * po/gnash.pot: Update to include current gettext-able messages. + * po/{es,fr}.po: First few languages that have a few translations. + * po/LINGUAS: Add es and fr (with only a few translations in each). + * README: Gettext program is now a required prerequisite for clean + builds of gnash. (We use the msgfmt program for compiling + translations.) + +2007-04-20 Udo Giacomozzi + + * backend/render_handler.h: Prototype for initTestBuffer() + * backend/render_handler_agg.{cpp,h}: implement initTestBuffer() + +2007-04-20 Sandro Santilli + + * testsuite/: Makefile.am, FuzzyPixel.{cpp,h}, + MovieTester.{cpp,h}: framework for renderers + testing, needs changes in render_handler to complete. + See task #6785. + +2007-04-20 Sandro Santilli + + * testsuite/misc-ming.all/masks_test.c: draft masks test. + * doc/C/asspec/movieclip.xml: + Dumped a bit of info about _name. Hopefully Ann will give it some + formatting. + * testsuite/misc-ming.all/: Makefile.am, ButtonEventsTest-Runner.cpp: + Allow execution of the test runner from a foreign dir. + +2007-04-20 Zou Lunkai + + * testsuite/actionscript.all/MovieClip.as + change undefined to a null string. + change check to xcheck, add warnings + +2007-04-19 Sandro Santilli + + * server/as_value.cpp (equals): comment out debugging line. + * testsuite/actionscript.all/MovieClip.as: check that + changing a _parent._name changes own _target. + WARNING: our soft references are bogus !! + +2007-04-19 Udo Giacomozzi + + * server/character.{h,cpp}, server/sprite_instance.{h,cpp}: + moved getTarget(), getTargetPath(), + get_text_value() to character class so that button instances + can deal with "targets" too. + * server/character.{h,cpp}: implemented "_target" getter-setter + * server/button_character_instance.cpp: added _target getter-setter + +2007-04-19 Sandro Santilli + + * testsuite/actionscript.all/Number.as: + Re-enabled a big block of tests accidentally left + cut out. Expect less failures also ! :) + +2007-04-19 Udo Giacomozzi + + * testsuite/misc-ming.all/matrix_test.c: use Math.round() to + really be tolerant + +2007-04-19 Sandro Santilli + + * testsuite/misc-ming.all/matrix_test.c: tolerate an + error of 1/100 when testing _rotation. + +2007-04-19 Udo Giacomozzi + + * testsuite/libamf.all/test_*.cpp: added dummy main() function + for the case when HAVE_DEJAGNU_H is not set + +2007-04-19 Bastiaan Jacques + + * configure.ac: Some platforms apparently define SIZET_FMT as + signed long; add a test for it. Also, use gnashpkgtool.m4 to + look for dejagnu.h as it is not guaranteed to be in the default + compiler search path, especially on non-GNU platforms. + +2007-04-19 Martin Guy + + * testsuite/actionscript.all/Date.as: Change case-[in]dependent + method existence detection strategy to see if it fixes v5 testrun. + * testsuite/libamf.all/test_{object,string,variable}.cpp, + testsuite/server/DisplayListTest.cpp, + testsuite/misc-ming.all/{PlaceObject2Test,root_stop_test}.c, + testsuite/misc-ming.all/action_execution_order_test6.c: + Drop/comment unused variables. + * server/as_value.cpp: Remove vestiges of rejected fix to + Number() (reported as a bug instead) + * testsuite/actionscript.all/Date.as: Remove tests that fail, including + those due the above bug. + +2007-04-19 Sandro Santilli + + * server/asobj/string.cpp: add valueOf own property to String + prototype. + * server/as_value.{h,cpp}: add equalsSameType() function; + fix bugs in to_number for function values (version-sensitive it + seems); modify equality and inequality operators to follow + strict equality semantic. + * testsuite/movies.all/gravity_embed-TestRunner.cpp: be aware when + comparing as_value types, comparisons are strict now! + * testsuite/swfdec/PASSING: divide-7.swf and object-math-7.swf now + succeed. + * testsuite/actionscript.all/Global.as: small test for isNaN + availability + * testsuite/actionscript.all/Number.as: tests for + convertion-to-number. + * testsuite/actionscript.all/String.as: test valueOf being a property + of String.prototype. + +2007-04-19 Zou Lunkai + + * testsuite/misc-ming.all/duplicate_movie_clip_test.c + more tests. + * libbase/tu_types.h + drop SDL integer types + * server/cxform.h + replace inttypes.h with tu_types.h, hopefully more portable + * server/vm/action.cpp + type definition, get rid of compiler warning + +2007-04-18 Sandro Santilli + + * server/BitmapMovieInstance.cpp: make sure + the bitmap character is not considered a mask (sic). + * testsuite/MovieTester.{cpp,h}: + Added interfaces for testing pixel values. + Next step would be actually initializing + a renderer during testing (if requested, maybe?) + +2007-04-18 Udo Giacomozzi + + * backend/render_handler.h: renamed get_pixel() to getPixel() and + changed from void to bool return value + * backend/render_handler.h, backend/render_handler_agg.cpp: + implemented getAveragePixel() + +2007-04-18 Sandro Santilli + + * testsuite/MovieTester.h: add click() method. + * server/BitmapMovieInstance.cpp: place the + bitmap character in the "static depth" zone + to forbid removal (might still be not enough). + * testsuite/misc-ming.all/loadMovieTest.c: have + the clear button remove the clips, not just clear them + * testsuite/misc-ming.all/loadMovieTestRunner.cpp: + check use of the 'scribble' and 'clear' buttons. + +2007-04-18 Martin Guy + + * server/asobj/NetStreamFfmpeg.cpp: Fix compile-breaking typo. + * server/swf/tag_loaders.cpp: Reformat bizarre indentation caused + by someone editing with hard tabs set to 4. + * server/asobj/Date.cpp: Fix signed/unsigned compiler warning. + * libbase/container.h, doc/C/actionscript/as_value.xml: + Expunge the last references to tu_string. + * libbase/tu_file.h: Purge endian dependence, add \brief to methods. + * backend/sound_handler_sdl.cpp: Remove commented-out stuff + * server/swf/tag_loaders.cpp: Remove commented-out stuff + +2007-04-18 Udo Giacomozzi + + * server/character.h, server/dlist.cpp, server/swf/PlaceObject2Tag.cpp: + make masks work again, introduce isMask() + +2007-04-18 Martin Guy + + * configure.ac: Introduce HAVE_LONG_TIMEZONE if extern long timezone + exists, and HAVE_TM_GMTOFF if struct tm has member tm_gmtoff. + * doc/C/asspec/date.xml: first draft + * server/asobj/Date.cpp: Complete its implementation + * server/asobj/Global.cpp: Use definitions of NAN and INFINITY from + as_value.h + * server/as_value.h: add definition for INFINITY, as for NAN + * server/as_value.cpp: Reject accidental "Infinity" and "-Infinity" + string-to-number conversions (should give NaN); + Use NAN from as_value.h; + Conversion of an AS function to a number gives NaN, not 0. + * testsuite/actionscript.all/Date.as: Add extensive constructor tests + +2007-04-18 Sandro Santilli + + * server/matrix.{cpp,h}: add transform_by_inverse(point&). + * server/character.h: add pointInBounds, pointInShape() and + pointInVisibleShape() new methods; document + get_topmost_mouse_entity. + * server/edit_text_character.{h,cpp}: implement pointInShape. + * server/generic_character.{h,cpp}: implement pointInShape. + * server/sprite_instance.{h,cpp}: implement pointInShape + and pointInVisibleShape; fix get_topmost_mouse_entity + implementation. + * server/parser/character_def.h: document point_test_local. + * testsuite/misc-ming.all/duplicate_movie_clip_test.c: don't + expect a failure. + * testsuite/misc-ming.all/loadMovieTestRunner.cpp: add two + small tests checking that the new two small buttons + are clickable. Needs more tests actually clicking those + buttons. + +2007-04-18 John Gilmore + + * Internationalization, phase 2. + + * These modules have had their printed messages passed through + _(...). Those messages have also been cleaned up, thusly: + * Stray \n's removed + * Exclamation points and periods removed at ends of messages + * Typos corrected, and English language wording adjusted. + * Misplaced UPPER CASE shouting removed. + * Many complaints about unknown types, values, etc, now include + the offending value, for ease of remote diagnosis. + * C++-style << printouts converted to log_xxx calls. + * Direct accesses to dbglogfile converted to log_xxx calls. + * printf converted to log_xxx calls. + * Function name debug prints converted to GNASH_REPORT_FUNCTION. + These changes should also make the messages easier to translate. + * Commented-out messages were also cleaned up as above. + * Many modules have also had log_warning calls changed to log_msg, + log_error, log_aserror, log_swferror, or log_unimp, according to + the documentation checked in earlier by strk and gnu. + IF_VERBOSE_xxx macros were inserted around some calls that + lacked them. + * Header comments (at the top of the file) added or adjusted, to + describe each file in its initial line, and to correct whitespace + in the copyright notices. Eliminate trailing spaces and tabs. + + * The list of files affected by the above changes: + backend/sound_handler_sdl.cpp + extensions/mysql/mysql_db.cpp + gui/Player.cpp + gui/gnash.cpp + gui/gui.cpp + plugin/klash/klash.cpp + plugin/win32/plugin.cpp + server/PropertyList.cpp + server/StreamProvider.cpp + server/array.cpp + server/as_environment.cpp + server/as_function.cpp + server/as_object.cpp + server/as_value.cpp + server/button_character_instance.cpp + server/character.cpp + server/dlist.cpp + server/dlist.h + server/edit_text_character.cpp + server/fill_style.cpp + server/font.cpp + server/generic_character.cpp + server/impl.cpp + server/sprite_instance.cpp + server/text.cpp + server/textformat.cpp + server/video_stream_instance.cpp + server/asobj/Camera.cpp + server/asobj/Color.cpp + server/asobj/ContextMenu.cpp + server/asobj/CustomActions.cpp + server/asobj/Date.cpp + server/asobj/Error.cpp + server/asobj/Global.cpp + server/asobj/Key.cpp + server/asobj/LoadVars.cpp + server/asobj/LocalConnection.cpp + server/asobj/Microphone.cpp + server/asobj/Mouse.cpp + server/asobj/MovieClipLoader.cpp + server/asobj/NetConnection.cpp + server/asobj/NetStream.cpp + server/asobj/NetStreamFfmpeg.cpp + server/asobj/NetStreamGst.cpp + server/asobj/Number.cpp + server/asobj/Object.cpp + server/asobj/Selection.cpp + server/asobj/SharedObject.cpp + server/asobj/Sound.cpp + server/asobj/SoundFfmpeg.cpp + server/asobj/SoundGst.cpp + server/asobj/SoundMad.cpp + server/asobj/Stage.cpp + server/asobj/System.cpp + server/asobj/TextSnapshot.cpp + server/asobj/Video.cpp + server/asobj/gen-asclass.pl + server/asobj/gen-asclass.sh + server/asobj/string.cpp + server/asobj/xml.cpp + server/asobj/xmlnode.cpp + server/asobj/xmlsocket.cpp + server/parser/BitmapMovieDefinition.cpp + server/parser/action_buffer.cpp + server/parser/button_character_def.cpp + server/parser/edit_text_character_def.cpp + server/parser/morph2_character_def.cpp + server/parser/movie_def_impl.cpp + server/parser/shape_character_def.cpp + server/parser/sprite_definition.cpp + server/parser/sprite_definition.h + server/parser/text_character_def.cpp + server/swf/DefineFontAlignZonesTag.cpp + server/swf/PlaceObject2Tag.cpp + server/swf/tag_loaders.cpp + server/vm/ASHandlers.cpp + server/vm/ActionExec.cpp + server/vm/action.cpp + libbase/curl_adapter.cpp + libbase/extension.cpp + libbase/log.cpp + libbase/network.cpp + + * 2007 copyright notices were inserted in: + backend/sound_handler_sdl.cpp + extensions/mysql/mysql_db.cpp + gui/gnash.cpp + plugin/klash/klash.cpp + plugin/win32/plugin.cpp + server/generic_character.cpp + libbase/curl_adapter.cpp + + * New 2006, 2007 Free Software Foundation copyrights applied (to + formerly public domain code): + server/font.cpp + server/text.cpp + server/parser/button_character_def.cpp + server/parser/edit_text_character_def.cpp + server/parser/morph2_character_def.cpp + server/parser/movie_def_impl.cpp + server/parser/shape_character_def.cpp + + * backend/sound_handler_sdl.cpp: Move stray FORMAT_VORBIS comment. + * gui/gui.cpp: Commented out "Resize request when no movie" error + that appears every time gnash is run. + * plugins/klash/klash.cpp: Translated pop-up menu items, about-box, + and updated copyright notice printed by --version and --help. + * server/array.cpp (as_array_object::index_requested): Avoid + c_str accessor when converting string to number. + * server/dlist.{h,cpp}: Change API of DisplayList::dump debug + function, so it can use log_xxx functions. + * server/sprite_instance.cpp (sprite_attach_movie): Comment out + log_msg about initializing properties. + * server/asobj/gen-asclass.{pl,sh}: Use log_unimpl in generated code. + Improve whitespace, and generate header line describing the file. + * server/asobj/TextSnapshot.cpp: Fix whitespace to test gen-asclass. + * text_character_def.cpp: Remove commented-out includes. + * FLVParser.{cpp,h}: Fix compiler warning (signed/unsigned). + + I'm sure that I've missed some messages that ought to get + translated (with _(...)). Those will be fixed over time. + All new messages should be created with _(...) so they can + be translated. + +2007-04-18 Sandro Santilli + + * testsuite/misc-ming.all/loadMovieTest.c: add + a couple of "buttons" to scribble on and clear + the loaded movies. Checks for this in the + test runner should follow. + * server/BitmapMovieInstance.h: + Override restart() to avoid cleaning up + the displaylist (since no frame tags will + recreate it). + +2007-04-18 Zou Lunkai + + * testsuite/misc-ming.all/Makefile.am: + activate testcast path_format_test.c + * testsuite/misc-ming.all/duplicate_movie_clip_test.c + new testcase for duplicateMovieClip(). + +2007-04-17 Sandro Santilli + + * testsuite/misc-ming.all/loadMovieTest.c: stop prepending + 'file://' to srcdir as it might be relative and file:// + should not be used with relative uris. + * testsuite/misc-ming.all/loadMovieTestRunner.cpp: + Don't cheat, run the test ! + +2004-04-17 Bastiaan Jacques + + * libbase/URL.cpp: Don't attempt to remove an item from the vector + of strings if the vector is empty. + * testsuite/libbase/URLTest.cpp: Add a test which shouldn't crash + anymore. + +2007-04-17 Udo Giacomozzi + + * backend/render_handler_agg_style.h: Added DEBUG_LIMIT_COLOR_ALPHA + +2007-04-17 Sandro Santilli + + * gui/sdl.cpp (key_event): update call to notify_key_event + to provide no modifiers always (bogus, but at least compiles). + * testsuite/actionscript.all/XML.as: add test + showing that removeNode doesn't recurse to + childrens. + * server/asobj/xmlnode.{cpp,h}: fix removeNode + to not delete all childrens. + +2007-04-17 Sandro Santilli + + * libbase/: tu_file.{cpp,h}, curl_adapter.cpp, zlib_adapter.cpp, + noseek_fd_adapter.cpp: + Add another callback for getting stream error. First pass at + documenting the tu_file interfaces (needs more work). + Updated implementations to provide the new error getter. + * server/asobj/xml.cpp (XML::load): check stream status after + call to xmlReadIO. The libxml2 function seems immune to + stream errors, but we can handle them and avoid parsing + anything if a stream error occurs (404 will be a stream error). + +2007-04-17 Udo Giacomozzi + + * backend/render_handler_agg: Replaced drawVideoFrame() to use AGG + functions, implemented nearest neighbor transformations, + implemented masked video playback + +2007-04-17 Zou Lunkai + + * testsuite/misc-ming.all/get_frame_number_test.c: + more tests. + * testsuite/misc-ming.all/path_format_test.c: + testcase to verify valid path format + +2007-04-16 Sandro Santilli + + * server/as_environment.cpp, server/as_value.cpp, + server/as_value.h, server/debugger.cpp, server/debugger.h, + server/edit_text_character.cpp, server/movie_root.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/timers.cpp, server/asobj/LoadVars.cpp, + server/asobj/Object.cpp, server/asobj/Sound.cpp, + server/asobj/Sound.h, server/asobj/Stage.cpp, + server/asobj/string.cpp, server/asobj/xml.cpp, + server/asobj/xmlnode.cpp, server/asobj/xmlsocket.cpp, + server/vm/ASHandlers.cpp, testsuite/server/GetterSetterTest.cpp: + Drop as_value::to_std_string() - update all callers. + Deprecated sprite_instance::get_variable. + Cost-corrected debugger interfaces. + +2007-04-16 Sandro Santilli + + * server/as_environment.{cpp,h}: add a parse_path method to + return an actual object when the given parameter is actually + a path. + * server/vm/ASHandlers.cpp (ActionCallFunction): set 'this' + pointer to the object containing the function if the function + name is a path. Fixes bug #18698. + * testsuite/actionscript.all/getvariable.as: success in + callFunction(path.to_function), a few more tests of that kind. + +2007-04-16 Sandro Santilli + + * testsuite/actionscript.all/getvariable.as: check 'this' pointer when + calling a function trough a path. + * testsuite/server/Makefile.am: add libgnashamf.la to GNASH libs. + * testsuite/generic-testrunner.sh, doc/C/internals.xml: + Add -f switch to specify the maximum number of frame advancements. + * testsuite/misc-ming.all/Makefile.am: update + get_frame_number_testrunner to advance at most 20 times. + * testsuite/misc-ming.all/get_frame_number_test.c: no more failures + expected. + * server/sprite_instance.cpp (get_frame_number): check frame labels + also when convertion to number gives a non-integer value. + * server/vm/ASHandlers.cpp (ActionGotoExpression): don't pretend + any path-looking string is necessarely a path, it can still be + a floating number or a frame label. + +2007-04-16 John Gilmore + + * libbase/log.h: Update documentation for log_* functions; rename + log_warning to log_unimpl (with temporary #define for a few days); + move gettext and _ definitions from gnash.h to log.h. + * libbase/log.cpp: Update log_* functions as above. + * server/gnash.h: Move gettext and _ to log.h. + +2007-04-16 Sandro Santilli + + * libbase/log.h: draft documentation for the log_* functions. + * testsuite/misc-ming.all/matrix_test.c: add test for skewX() matrix + (failures are just precision-related). + * server/debugger.{cpp,h}: (matchWatchPoint) const-corrected + * server/vm/ASHandlers.cpp: always pass an as_environment pointer + when converting as_value to a string, use to_string rather + then to_std_string() when a reference is enough; (ActionDuplicateClip): + properly cleanup the stack on error; (ActionGotoFrameExpression, + ActionCallFrame): properly handle unknown target. + * testsuite/misc-ming.all/Makefile.am: + Activated get_frame_number and frame_label_test. + +2007-04-16 Zou Lunkai + + * testsuite/misc-ming.all/frame_label_test.c: + a new testcase. + * testsuite/misc-ming.all/get_frame_number_test.c: + more tests. + * server/sprite_instance.cpp: + update call_frame_actions(); + * server/vm/ASHandlers.cpp: + properly process frame label in ActionCallFrame() and ActionGotoExpression(). + +2007-04-15 Sandro Santilli + + * server/edit_text_character.cpp (display): move text glyphs + so to be inside bounds defined for the textfield character. + Fixes bug #17954. This is likely not the cleanest way to + do this, see comments. + * server/matrix.{cpp,h}: provided setters for canonical + parameters. + * server/character.cpp: avoid direct access to matrix members. + * server/sprite_instance.cpp: avoid direct acces to matrix members. + * server/vm/ASHandlers.cpp: fix signedness compiler warnings. + * testsuite/server/MatrixTest.cpp: add tests for scale concatenation. + +2007-04-15 Bastiaan Jacques + + * libbase/container.{cpp,h}: Remove tu_string{,i}. + * server/as_value.{cpp,h}: Replace tu_string with std::string. + Remove wide string code that was both unused and inherently + broken. + * all over the place: Update to match changes in as_value.h. + Also, eliminate tu_string usage entirely. + +2007-04-15 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as, + testsuite/misc-ming.all/matrix_test.c, + testsuite/server/MatrixTest.cpp: more successes + after Eric patch ! A few more tests added in + matrix_test.c too, and more will be needed. + +2007-04-15 Eric Hughes + + * server/matrix.cpp (get_x_scale, get_y_scale): fixed implementations + to match the interpretation of matrix used in set_scale_rotation. + +2007-04-14 Sandro Santilli + + * server/character.cpp (height_getset, width_getset): round + width and heights to nearest integer twip. + * testsuite/swfdec/PASSING: height4.swf succeeds. + * testsuite/misc-ming.all: Makefile.am, matrix_test.c: new test + for statically-defined matrix interpretation (just started, needs + many more tests). + +2007-04-14 Sandro Santilli + + * server/sprite_instance.cpp (sprite_getBounds): round bounds + to twips. + * testsuite/actionscript.all/MovieClip.as: more successes. + * testsuite/actionscript.all/check.as: Revert bastiaan patch, + changing semantic of most tests. + +2007-04-14 Bastiaan Jacques + + * server/asobj/{Loadvars,NetStream,Sound,xmlnode}.cpp: Use + init_readonly_property for read-only properties. + * server/parser/movie_def_impl.{cpp,h}: Since we're not using + pthreads, there is no need to have our thread function + match a specfic pattern; use one that fits our design. + * testsuite/actionscript.all/check.as: Don't prepend # where + it is not needed to avoid choking gcc3's C preprocessor. + * testsuite/libamf.all/{test_number,test_string}.cpp, + testsuite/misc.ming.all/{intervalTestRunner, + loadMovieTestRunner}: Add needed includes for OpenBSD. + +2007-04-14 Sandro Santilli + + * server/sprite_instance.cpp (sprite_getBounds): round bounds + to twips. + * server/matrix.{h,cpp}: fix conceptual bug in Range2d transform + function. + * testsuite/misc-ming.all/displaylist_depths_test.c, + testsuite/actionscript.all/MovieClip.as: more successes. + +2007-04-12 Bastiaan Jacques + + * server/parser/movie_def_impl.{cpp,h}: Replace pthread usage + by boost threads. + * libbase/Makefile.am: No longer include Thread.{h,cpp} in the + build, because this pthread based class is unused and + deprecated. + * server/URLAccessManager.cpp: Comment out unused parameter. + * server/shape.cpp: Comment out dead code. + * server/textformat.cpp: make text_format DSOEXPORT, because + it is used in another DSO. + * all over the place: Remove all inclusions of pthread.h, + because we're no longer directly using pthreads. + * server/gnash.h, gui: version two of Antti Ajanki's GUI + patches, this time the whole thing. + * libbase/container.h: Remove the last pthread.h include. + +2007-04-12 Sandro Santilli + + * server/asobj/string.cpp (fromCharCode): revert bastiaan change + breaking existing tests. + * server/character.{cpp,h}: add set_x_scale and set_y_scale + methods to reduce code messing with matrices. Changed + {x,y}scale_getset and {width,height}_getset to use + these two new functions. + * testsuite/server/MatrixTest.cpp: add a few tests for + set_scale_rotation. I'm not sure the tests are correct + thought, I'd like to hear from Martin about that. + +2007-04-12 Sandro Santilli + + * server/: button_character_instance.{cpp,h}, + character.{cpp,h}, edit_text_character.{cpp,h}, + generic_character.h, sprite_instance.{cpp,h}: + get_width() and get_height() made non-virtual + methods using getBounds() internally. + Fixed _width, _height, _xscale, _yscale and _rotation + getter/setter to call valueOf when available. + +2007-04-12 Sandro Santilli + + * server/sprite_instance.cpp (duplicateMovieClip): + Duplicate also the drawable. + * testsuite/misc-ming.all/displaylist_depths_test.c: + More successes. + +2007-04-12 Sandro Santilli + + * server/matrix.{cpp,h}: add transform and transform_by_inverse + for Range2d type. + * server/character.h: add a getBounds() virutual method. + * server/: generic_character.h, button_character_instance.{cpp,h}, + edit_text_character.h, video_stream_instance.h: + Implement getBounds. + * server/character.cpp: fix width_getset and height_getset + to use the new getBounds interface. + * server/sprite_instance.{cpp,h}: implement getBounds; + implement MovieClip.getBounds. + * testsuite/actionscript.all/MovieClip.as: more tests for + getBounds, more successes. + * testsuite/swfdec/PASSING: height2.swf and height3.swf tests + now succeed. + +2007-04-12 Mathew Cucuzella + + * doc/C/internals.xml plugin.xml: Fix typos in documentation + (patch #5820). + +2007-04-11 Bastiaan Jacques + + * server/asobj/string.cpp: from_char_code: create a wide string + in case the user tries to create one. + * gui: Reverted Antti's patches, because they appear to be + lacking some changes in the gnash::key namespace. Fixes build. + +2007-04-11 Markus Gothe + + * server/sprite_instance.cpp: uint32 -> uint32_t. + +2007-04-11 Stephan Peijnik + + * gui/gtk.cpp: Changed Copyright years from 2005-2007 -> 2005, 2006, + 2007. Fixed 'acces'-typo -> 'access'. + +2007-04-11 Antti Ajanki + + * gui/gtk.cpp gui/gtksup.h gui/gui.cpp gui/gui.h + * gui/kde.cpp gui/kde_glue.h gui/kdesup.h: + moves the handling of GUI shortcuts (Crtl+R for restarting the + movie, Ctrl+Q for quiting, etc.) form GtkGui to base class Gui. + This way all GUIs can inherit the same code instead of having + to duplicate it. + adds keyboard handling for the KdeGui using this new interface. + Currently KdeGui has no support for keyboard input. + + The destructor of KdeGlue deletes _drawing_area object even though + it is not owned by KdeGlue. The _drawing_area is actually the + _qwidget object from KdeGui and is (correctly) deleted at the + destructor of + KdeGui. This double-free error causes a segfault when closing + Gnash. + +2007-04-11 Sandro Santilli + + * server/parser/shape_character_def.cpp (compute_bound): + skip anchor point of empty paths; include both control + and anchor point of any edge. + * server/dlist.h: add a visitAll() method for unconditional + full scan. + * server/sprite_instance.cpp: optimize WidthFinder, HeightFinder, + ScriptObjectFinder and CharacterExtractor to return void + (can be used by visitAll); (get_width, get_height): include + scan of DrawingAPI canvas. + * testsuite/actionscript.all/MovieClip.as, + testsuite/misc-ming.all/displaylist_depths_test.c: + few more successes. + +2007-04-11 Ann Barcomb + + * devtools/lib/Gnash/Distribution.pm: made it more + difficult to mistakenly use the wrong root distribution + directory. + +2007-04-11 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: add some tests + for _width,_height and getBounds (all failing!). + +2007-04-11 Udo Giacomozzi + + * server/cxform.h: include required inttypes.h + +2007-04-11 Sandro Santilli + + * server/: Makefile.am, gnash.h, types.cpp, cxform.{cpp,h}, + swf/PlaceObject2Tag.{cpp,h}, swf/tag_loaders.cpp: + Extract PlaceObject2Tag from tag_loaders + and cxform from gnash.h and types.cpp. + * server/character.{cpp,h}: add getUserDefinedEventHandler + function, change static event handlers function to allow + for multiple handlers for the same event. + * server/vm/ExecutableCode.h: add EventCode class. + * server/swf_event.h: drop the 'function' member, provide better + members protection. + * testsuite/actionscript.all/MovieClip.as: add tests for + user defined events not being proper properties. + * testsuite/actionscript.all/dejagnu_so_init.as: delete the + user-defined onEnterFrame when finished with it. + * server/execute_tag.h: add missing include. + * server/event_id.h: add setKeyCode method, for better protection. + * server/button_character_instance.cpp (on_button_event): look for + user-defined event handlers. + * server/dlist.{cpp,h}, server/impl.h, + server/parser/shape_character_def.h, + server/parser/button_character_def.h: + Update after addition of new files + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + Two unexpected successes, one unexpected failures (due to scrabling + of event handling). + * server/movie_root.{cpp,h}: add pushAction(ExecutableCode). + * server/sprite_instance.{cpp,h}: stop using gettersetter for event + handlers + * testsuite/misc-ming.all/displaylist_depths_test.c: test that + event handlers need to be duplicated too. + +2007-04-11 Ann Barcomb + + * testsuite/actionscript.all/gen-index-wiki.sh doc/C/sources.xml: + Changed all references of 'gnash.lulu.com' to 'www.gnashdev.org'. + +2007-04-11 Bastiaan Jacques + + * libbase/FLVParser.cpp: Append 8 "zero" bytes to the end of the frame + buffer to prevent decoders from going past the end of our frame buffer. + This adds NULL-termination, which is also expected by FFMPEG. + * server/asobj/NetStreamFfmpeg.cpp: Initialize certain members to safe + defaults so they will not be read in their uninitialised states. + * backend/render_handler_agg.cpp: Stop relying on bounds passed from + video definition for image buffer size (since we don't yet do proper + scaling, that is a bad idea); fixes bug #19511. Also, cut off the + video image if it extends beyond the width of our buffer. + * gui/fltk.cpp: Fix compilation by adding statics for GUI methods + that became nonstatic. Also fix some warnings. + * all over the place: Replace SDL integer type names by standard ones. + Thanks to Ann for writing a Perl script to do search-and-replace. + +2007-04-11 Sandro Santilli + + * server/character.h: add protected set_event_handlers(), turn + get_event_handelrs into a protected member. + * server/sprite_instance.cpp (duplicateMovieClip): simplified copying + of event handlers. + +2007-04-11 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.h: define newSWFAction + to compileSWFActionCode when using older Ming versions. + Now we can use them interxchangeably (the newer newSWFAction + has to be preferred though). + * testsuite/actionscript.all/MovieClip.as: add tests + showing that user-defined event handlers must be handled + differently then placeobject-defined ones. At least + for the sake of duplicating movieclips; add + MovieClip.duplicateMovieClip test. + * testsuite/misc-ming.all/displaylist_depths_test.c: + Add tests for duplicateMovieClip, _width and cloning + static event handlers. + +2007-04-11 Zou Lunkai + + * server/as_environment.cpp: + don't trim of the last "/" in parse_path(), fix parsing path in format "/:x". + * testsuite/actionscript.all/getvariable.as: + add tests + +2007-04-10 Sandro Santilli + + * server/sprite_instance.{cpp,h}: add duplicateMovieClip method + for use by MovieClip.duplicateMovieClip and ActionDuplicateClip. + * server/vm/ASHandlers.cpp (ActionDuplicateClip): use the new + sprite_instance::duplicateMovieClip method fixing a bogus assumption + about the parent to duplicate into. + * testsuite/actionscript.all/MovieClip.as: add small test for + ActionDuplicateClip. + +2007-04-10 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.h: Fixed a bug in the + AudioResampler, which made it only resample the first time. + * libbase/LoadThread.cpp: Handle the case where the cache is + filled and we have yet more data to load. + +2007-04-10 Markus Gothe + + * cygnal/http.cpp cygnal/stream.cpp: Added 'return true'-stubs, closes + bug #19561. + +2007-04-10 Sandro Santilli + + * server/swf/tag_loaders.cpp (readPlaceObject2): reduce + calls to IF_VERBOSE_PARSE. + +2007-04-10 Bastiaan Jacques + + * server/asobj/NetStreamFfmpeg.{cpp,h}: Don't call delete on a + new[]-allocated pointer. Don't try to copy a byte-aligned + data buffer into a "flat" one, and vice versa. Add a helper + class called AudioResampler, which will do audio resampling + if necessary. + * server/xmlsocket.cpp: Use SIZET_FMT. + * libbase/image.cpp: Document update(). + * libbase/image.h: Define a virtual destructor for the image_base + class so deriving classes will have their destructors called + when we decide to delete them. Fixes a _big_ memory leak. + +2007-04-10 Rob Savoye + + * configure.ac: Test the host to see if we're on a Darwin machine. + * backend/render_handler_ogl.cpp: Build with the native Darwin + port of OpenGL. + * cygnal/netstats.cpp: Include date.hpp. + * gui/Makefile.am: Add FFMPEG_LIBS for cross compiling. + * macros/incllist, incllist: Don't search for Darwin specific + paths, we're correctly using the -framework flag to GCC now. + * macros/opengl.m4: For Darwin, use the OpenGL and AGL frameworks + instead of include or linker paths. + * macros/x11.m4: Find all the right include paths. Look for + libXplugin too, which is Darwin specific, and in a weird place. + * server/StreamProvider.cpp: Remove bogus USE_CURL setting. + * server/StreamProvider.h: Include config.h. + * server/asobj/Makefile.am: Use FFMPEG_CFLAGS too. + * server/parser/Makefile.am: Use FFMPEG_CFLAGS too. + * server/vm/Makefile.am: Use FFMPEG_CFLAGS too. + * utilities/Makefile.am: Add FFMPEG_LIBS. + +2007-04-10 Sandro Santilli + + * libbase/log.h: allow switching off any VERBOSITY overhead + by using -DVERBOSE_WHAT=0. + * server/as_environment.{cpp,h}: add the concept + of a default target to support setTarget() calls + (null target spec meaning will to reset the target + to its original value). + * server/vm/ASHandlers.cpp (CommonSetTarget): + When target specification is an empty string + reset the target to its original value. + Use find_target rather then find_object to avoid + variables and character names clashes. + +2007-04-10 Sandro Santilli + + * server/parser/movie_def_impl.cpp (read_all_swf): at + end of parsing, check consistency of number of frames + advertised in header and number of frames read from the + stream. Update total frame count if needed and properly + wake up any frame reached condition waiters. + * server/movie_instance.cpp (advance) check return from + ensure_frame_loaded. + +2007-04-10 Sandro Santilli + + * server/parser/: movie_definition.h, movie_def_impl.{cpp,h}, + sprite_definition.{cpp,h}: stop using TU legacy hashes + and strings: use std::string instead of C strings, use + references instead of pointers in a few places. + * server/sprite_instance.{cpp,h}: use std::string instead + of C strings for frame labels, update other uses of changed + interfaces of parser. + * server/swf/tag_loaders.cpp: update uses of changed interfaces + of parser. + +2007-04-10 Sandro Santilli + + * server/parser/Makefile.am: add FFMPEG_CFLAGS to AM_CPPFLAGS + if using FFMPEG sound. + * testsuite/actionscript.all/getvariable.as: add test for + literal 'invalid:Number' variable name. + * libbase/log.cpp: stop adding CR to debugging output !! + * server/stream.cpp (open_tag): print tag offsets as start + of the tag (including header). This is to match offsets + as printed by Ming's listswf for comparision purposes. + * server/asobj/xmlnode.{h,cpp}: fix appendChild to properly + move the node; implement insertBefore and removeNode; fix + cloneNode to respect not copy childs if not deep; implement + parentNode gettersetter. + * testsuite/actionscript.all/XML.as: add tests for insertBefore, + appendNode, cloneNode, removeNode and parentNode. + * macros/ffmpeg.m4: fix --with-ffmpeg-incl to look for + avcodec.h under the 'ffmpeg' subdir (this is assumed + to exist in Gnash source code). + +2007-04-10 Zou Lunkai + + * server/parser/shape_character_def.cpp: + fix reading fill_styles, actually it was a regression. + +2007-04-09 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: activated + get_frame_number test. + +2007-04-08 Rob Savoye + + * macros/agg.m4, boost.m4, curl.m4, ffmpeg.m4, firefox.m4, + glib.m4, gnashpkgtool.m4, gtk2.m4, gtkglext.m4, jpeg.m4, kde.m4, + libXML.m4, ming.m4, mysql.m4, opengl.m4, pango.m4, pthreads.m4, + sdl.m4, x11.m4: Use ${shlibext} instead of .so to be more + portable. + * macros/ffmpeg.m4: Look for avutil after avformat, as there is a + dependancy on the order on some systems. + * macros/x11.m4: Reverse the logic, we *do* want to look for the X11 + librsaries if the X11 headers are found earlier. + * testsuite/samples/Makefile.am: Add GotoAndPlayTestRunner to CLEANFILES. + * configure.ac: Improve openbsd host test. Test for Darwin libtool + vs ar. Reset AR if it's the Darwin libtool. Set FL_MUTEX to 0 if + lf_flmutext_register isn't found. + * cygnal/cygnal.cpp: Include libintl.h. + * libbase/curl_adapter.cpp: Use USE_CURL consistantly instead of + HAVE_CURL and HAVE_CURL_CURL. + * libbase/noseek_fd_adapter.cpp: Remove HAVE_STDIN_CURL_H test. + * libbase/rc.cpp: Include cctype. + * macros/incllist, libslist: Add Darwin Developer SDK directories. + +2007-04-08 Bastiaan Jacques + + * server/asobj/NetStreamFfmpeg{.cpp, .h}: Only use a single + thread (rather than two extra threads) for decoding. Plug a + memory leak (ByteIOCxt.buffer). Modularise some more code. + +2007-04-08 Ann Barcomb + + * devtools/testsuite/c_casts.t: added this test at Bastiaan's + request. + * devtools/lib/Gnash/Utils.pm: fix bug which caused wrong line + numbers to be reported. + +2007-04-08 Zou Lunkai + + * testsuite/misc-ming.all/get_frame_number_test.c: + new testcase for get_frame_number() and goto_frame(). + * server/sprite_instance.{cpp,h} + update implementation of get_frame_number() and goto_frame(), + fix the above the testcase. + +2007-04-08 Sandro Santilli + + * testsuite/actionscript.all/XML.as: add tests for XML.attributes + +2007-04-07 Sandro Santilli + + * server/asobj/xml.cpp (extractNode, parseDoc): properly setup + the node parent. + * server/asobj/xmlnode.{cpp,h}: keep parent by intrusive_ptr. + * testsuite/actionscript.all/XML.as: add tests for + nextSibling and previousSibling + +2007-04-07 Tomas Groth Christensen + + * server/asobj/NetStream{Ffmpeg,Gst}.cpp: Use the m_imageframe's + size to determine the size of the returned frame. + +2007-04-07 Tomas Groth Christensen + + * packaging/redhat/gnash.spec: Use --enable-media instead of + --enable-sound. + * server/video_stream_instance.cpp: Delete the image once displayed. + * server/asobj/NetStream.h: Removed the obsolete getter/setters + for onStatus. + * server/asobj/NetStreamFfmpeg.{h,cpp}: Removed the obsolete + getter/setters for onStatus. Made get_video() threadsafe. + Removed \n from log/error messages. + * server/asobj/NetStreamGst.{cpp,h}: Removed the obsolete + getter/setters for onStatus. Made get_video() threadsafe. + Removed \n from log/error messages. + * server/asobj/NetConnection.cpp: Removed \n from log/error messages. + +2007-04-07 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionCallMethod): stop warning + about ActionCallMethod arg being not a function (seems + to be common behaviour for invoking constructors). + +2007-04-07 Markus Gothe + + * backend/render_handler_ogl.cpp: Removed mipsmaps code, due to + major clean up and rewrite (since it's not used). + +2007-04-07 Bastiaan Jacques + + * server/NetStreamFfmpeg{.cpp, .h}: Fix a deadlock on non-glibc + platforms by waiting for a thread rather than hoping for a + certain execution order (which is fundamentally incompatible with + threads). Cleanup: modularise some code and use string comparison + rather than char-by-char comparison. + +2007-04-06 Sandro Santilli + + * server/character.cpp: stop notifying unload event queuing + * server/asobj/NetStreamGst.cpp: warn only once about fluendos + plugin being too old. + +2007-04-06 Sandro Santilli + + * server/sprite_instance.cpp (ScriptObjectFinder): + use character depth to tell wheter objects have to + be considered "script" objects or not. Fixes the + all.swf regression and doesn't change our testsuite + results. + * testsuite/actionscript.all/MovieClip.as: test both + ActionRemoveClip and MovieClip.removeMovieClip; also + tests that there's no such think as a _global.removeMovieClip. + * testsuite/misc-ming.all/displaylist_depths_test.c: + Add a bunch of new tests about removing from protected + depth ranges and using swapDepth to move between ranges. + * server/sprite_instance.{h,cpp}: Add a removeMovieClip + public method for common use by ActionRemoveClip tag, + global removeMovieClip function and MovieClip.removeMovieClip + method; fix swapDepths to accept a depth as argument; + fix removeMovieClip to check for allowed depth bounds. + * server/vm/ASHandlers.cpp (ActionRemoveClip): use the new + sprite_instance::removeMovieClip method. + +2007-04-06 Sandro Santilli + + * server/: character.h, dlist.{cpp,h}, sprite_instance.{cpp,h}: + Character instance depth is a _signed_ value ! + Add a character::staticDepthOffset constant to use for converting + displaylist tag defined depths to negative values. + * server/swf/tag_loaders.cpp: convert displaylist tag defined depths + to negative values by adding character::staticDepthOffset + * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, + testsuite/samples/clip_as_button2-TestRunner.cpp, + testsuite/movies.all/gravity_embedded-TestRunner.cpp: + loop_test-Runner.cpp, simple_loop_testrunner.cpp: fix the + test runners to take staticDepthOffset into account. + * testsuite/actionscript.all/MovieClip.as: getNextHighestDepth() + test now succeeds. + + +2007-04-06 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, displaylist_depths_test.c: + Add a new interesting (failing) test showing that static characters + and dynamic characters use a completely different range + of depths !! + * server/sprite_instance.cpp (sprite_get_depth): only convert + depths to negative values for static clips. + * testsuite/actionscript.all/MovieClip.as: add a couple of + tests for getDepth() invoked against dynamic and static + clips. + +2007-04-05 John Gilmore + + Internationalize gnash. Phase 1: use gettextize, update config files. + + * macros/{codeset.m4, gettext.m4, glibc2.m4, glibc21.m4, + iconv.m4, intdiv0.m4, intmax.m4, inttypes.m4, inttypes_h.m4, + inttypes-pri.m4, isc-posix.m4, lcmessage.m4, lib-ld.m4, + lib-link.m4, lib-prefix.m4, longdouble.m4, longlong.m4, nls.m4, + po.m4, printf-posix.m4, progtest.m4, signed.m4, size_max.m4, + stdint_h.m4, uintmax_t.m4, ulonglong.m4, wchar_t.m4, wint_t.m4, + xsize.m4}: New files, from gettext-0.14.6. + * po: New directory for translated messages (Portable Object files) + * po/{Makefile.in.in, boldquot.sed, en@boldquot.header, + en@quot.header, insert-header.sin, quot.sed, + remove-potcdate.sin, Rules-quot}: New files, from gettext-0.14.6. + * ABOUT-NLS, config.rpath: New files, from gettext-0.14.6. + * libbase/gettext.h: New file, from gettext-0.14.6. + * server/gnash.h: Include "gettext.h" for NLS. + * po/Makevars: New file: settings for gnash's message translation. + * po/POTFILES.in: New file: source files with translatable strings. + * po/LINGUAS: New file: languages we have translations for. + * Makefile.am (EXTRA_DIST): Add config.rpath. + (STD_DIRS): Add po. + * configure.ac (AC_OUTPUT): Add po/Makefile.in. + (AM_GNU_GETTEXT): Add, to configure gettext support. + * cygnal/Makefile.am (localedir, INCLUDES), + gui/Makefile.am (localedir, INCLUDES), + utilities/Makefile.am (localedir, INCLUDES): Define LOCALEDIR. + * cygnal/cygnal.cpp (main), gui/gnash.cpp (main), + utilities/{dumpshm,parser,processor}.cpp (main): + Set locale and initialize gettext upon startup. + * utilities/{dumpshm,parser,processor}.cpp: Flag strings with _ + for translation, for testing. + * po/gnash.pot: Message string catalog for testing. + * po/es.po: Spanish-language message string catalog for testing. + +2007-04-05 Zou Lunkai + + * server/asobj/Date.cpp + fix passing parameter to utctime(); + +2007-04-05 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionRemoveClip): properly parse + the given argument rather then assuming that it refers to + a child of the current target movie. (fixes the softreference + tests). + * testsuite/actionscript.all/MovieClip.as: add softreference + test (MovieClip values kept by absolute _target). + * testsuite/actionscript.all/MovieClip.as: fix couple of stack + underruns. + * server/sprite_instance.{cpp,h} (get_frame_number): + Changed signature to report invalid frame specifications; + simplified and clened implementation of Zou Lunkai. + * server/vm/ASHandlers.cpp: updated calls to get_frame_number. + * testsuite/swfdec/PASSING: gotoframe.swf now passes. + +2007-04-05 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: enabled run of + reverse_execute_PlaceObject2_test2runner and + action_execution_order_test6runner. + * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): + property initialize the xpassed and xfailed counters. + +2007-04-05 Zou Lunkai + + * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test2.c + add more tests of MovieClip events + +2007-04-05 Sandro Santilli + + * server/timers.{cpp,h}: drop the as_environment member + for Timers as we can't ensure it will be kept alive. + We'll use a newly created environment for calling + the timer function. + * server/asobj/: LoadVars.cpp, xmlsocket.cpp: update use of + timers. + * server/as_environment.cpp (find_object_dotsyntax): + more verbose debugging for cases in which a dot-syntax + path contains non-object members. + +2007-04-05 Zou Lunkai + + * testsuite/misc-ming.all: reverse_execute_PlaceObject2_test2.c + another testcase for reverse execution of frame tags. + * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test1.c + add notes that reverse execution is likely to be deprecated. + * testsuite/misc-ming.all/action_execution_order_test6.c + do checks and stop movie at the last frame. + +2007-04-04 Markus Gothe + + * server/asobj/TextFormat.{cpp,h} - Added stub for class TextFormat. + +2007-04-04 Bastiaan Jacques + + * gui/gui.cpp, backend/render_handler_agg_style.h, + server/{swf/DefineFontAlignZonesTag.cpp, textformat.cpp}: + Comment out unused variables. + * libamf/amf.cpp: Remove unneeded casts. Replace some + C-style casts by C++-style ones. Don't modify const type; + instead, use a temporary (el->data). + * server/{movie_root.cpp, shm.cpp, sprite_instance.cpp, + vm/ActionExec.cpp, asobj/xmlsocket.cpp}: More + use of SIZET_FMT. + * server/{Boolean.cpp, Date.cpp}: Don't assign string + literals to character pointers, which will soon be + deprecated by GCC. Instead, use array declarations. + * server/asobj/{NetStreamFfmpeg.cpp, SoundFfmpeg.cpp}: + Don't compare unsigned with signed ints. + * server/asobj/xml.cpp: Comment out include that is used + by commented out code. + * server/parser/movie_def_impl.h: Fix typo. + +2007-04-04 Sandro Santilli + + * server/asobj/xml.cpp: fix parsing of text nodes + * server/asobj/xmlnode.{cpp,h}: use std::string, not + C strings for name and value. Add an enum for NodeType. + * testsuite/actionscript.all/XML.as: more tests for + the memory-parsed XML. + +2007-04-04 Sandro Santilli + + * server/asobj/xmlnode.cpp: don't attacy XMLNode interface + to XMLNode instances. + * server/asobj/xml.{h,cpp}: override get_member and set_member + to handled non-proper properties 'loaded' and 'status' + * testsuite/actionscript.all/XMLNode.as: less failures + * testsuite/actionscript.all/XML.as: more tests ! + +2007-04-04 Sandro Santilli + + * server/array.{cpp,h}: const-corrected push and unshift + methods. + * server/asobj/xmlnode.cpp: implement childNodes getter/setter. + * server/asobj/xml.cpp: cleanups. + +2007-04-04 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: enable + reverse_execute_PlaceObject2_test1runner in 'check' rule. + * server/array.cpp: use a getter/setter for the 'length' property. + * testsuite/actionscript.all/array.as: another success. + +2007-04-04 Zou Lunkai + + * testsuite/misc-ming.all/reverse_execute_PlaceObject2_test1.c + ensure that total() is called at the last step. + +2007-04-04 Sandro Santilli + + * testsuite/actionscript.all/array.as: more tests added. + * server/asobj/xml.cpp: remove debugging lines, return undefined + from getBytesLoaded,getBytesTotal if the XML was not loaded. + * server/asobj/xmlnode.cpp: remove debugging lines. + * testsuite/actionscript.all/XML.as: all current tests pass now + (but we need more tests); + +2007-04-04 Sandro Santilli + + * server/asobj/xmlnode.cpp (stringify): stop feeding NULL + pointers to output operators ! + * server/asobj/xml.cpp (xml_new): support a string as first + argument to constructor. + +2007-04-04 Sandro Santilli + + * server/asobj/xml.{cpp,h}: tu_string => std::string + * server/asobj/xmlsocket.cpp: provide a builtin onData + event handler to XMLSocket instances. + * testsuite/actionscript.all/XMLSocket.as: more successes. + * server/URLAccessManager.{cpp,h}: add allowHost interface. + * server/asobj/xmlsocket.cpp (connect): check host security. + +2007-04-04 Zou Lunkai + + * server/sprite_instance.cpp + first attempt to deprecate reverse execution of frame tags + +2007-04-03 Sandro Santilli + + * server/edit_text_character.cpp (format_text): handle + TAB characters. + * testsuite/misc-ming.all/ming_utils.c: embed a glyph for + the TAB character in our font. + * server/vm/ASHandlers.cpp: extend tag is not in testing + stage anymore, be more explicit about targetPath() arg + not casting to an object. + * server/movie_root.{cpp,h}: limit the number of interval + timers to 255. + * server/asobj/xmlsocket.{cpp,h}: more cleanups and fix for + polling from the socket. + * libbase/network.{cpp,h}: do not allow assignment, cleanup + accessor functions to return by const refs. + * server/asobj/xmlsocket.{cpp,h}: do not override inherited + members and methods. Enable some more debugging and added + more assertions. + +2007-04-03 Sandro Santilli + + * testsuite/actionscript.all/XMLSocket.as: some more + testing. + * server/sprite_instance.{cpp,h}: split the + DisplayList reset code from execute_frame_tags() + to a resetDisplayList() method. + +2007-04-03 Sandro Santilli + + * server/asobj/xmlattrs.{cpp,h}: use std::string + for name and value, access trough members, initialize + trought contructor. + * server/asobj/xmlnode.{cpp,h}: keep XMLAttr by value, + not by pointer; implement the 'attributes' getter. + * server/asobj/xml.cpp: update XMLAttr uses. + * testsuite/actionscript.all/XML.as: more tests, less failures. + * testsuite/media/gnash.xml: add a tag attribute. + +2007-04-03 Sandro Santilli + + * server/asobj/xml.{cpp,h}: have XML be a subclass + of XMLNode. Many cleanups. + * server/asobj/xmlnode.{cpp,h}: many cleanups. + * testsuite/actionscript.all/XML.as: add more tests. + * testsuite/actionscript.all/XMLNode.as: fix some bogus + existing tests. + +2007-04-03 Sandro Santilli + + * server/parser/movie_def_impl.h (add_init_action): fix typo. + * testsuite/actionscript.all/XML.as: a few more tests. + * testsuite/media/gnash.xml: new data file for testing. + * server/asobj/xml.{cpp,h}: allow reading XML from + a network stream (untested). + +2007-04-03 Markus Gothe + + * server/as_value.h: Include for NAN. + * backend/render_ogl.cpp: Fixed memory leak. + +2007-04-02 Sandro Santilli + + * configure.ac: fix a couple of typos. + * server/button_character_instance.cpp (on_event): queue + events, don't execute immediately + * server/vm/ExecutableCode.h (GlobalCode): take a character + as target. + * server/movie_root.{cpp,h} (pushAction): take a character + as target. + * testsuite/samples/gotoFrameOnKeyEvent-TestRunner.cpp: + unexpected success. + +2007-04-02 Tomas Groth Christensen + + * Makefile.am, configure.ac, gui/Makefile.am, gui/gnash.cpp, gui/gtk.cpp: + Changed the "--enable-sound" option to "--enable-media", and removed + the "--with-mp3-decoder" option. + * server/asobj/NetStreamFfmpeg.cpp: Replaced a few assert(0) with + warnings. + * server/asobj/NetStreamGst.cpp: Only create sound objects if a + soundhandler is present. + +2007-04-02 Sandro Santilli + + * server/dlist.{cpp,h} (place_character): call unload() + on characters that are replaced. + +2007-04-02 Sandro Santilli + + * gui/sdl.cpp (key_event): update call to notify_key_event. + * server/vm/ExecutableCode.h: change FunctionCode to take + a generic character as target, not necessarely a sprite. + * server/movie_root.{cpp,h}: update pushAction() for events + to take a generic character, add a notify_key_event method + for consistency. + * server/asobj/Key.cpp: notify_key_event moved to movie_root. + * server/gnash.h: remove notify_key_event prototype, it's now + a movie_root method. + * gui/gtk.cpp: use gui::notify_key_event for key events. + * gui/gui.{cpp,h}: add notify_key_event method. + * server/character.{cpp,h}: move queueActionHandler from + sprite_instance here. + * server/sprite_instance.{cpp,h}: cleanups. + * testsuite/MovieTester.cpp: update call to notify_key_event. + +2007-04-02 Sandro Santilli + + * testsuite/samples/: Makefile.am, gotoFrameOnKeyEvent-TestRunner.cpp: + First stub at an automated test runner for gotoFrameOnKeyEvent. + TODO item in comments. + +2007-04-02 Bastiaan Jacques + + * server/as_value{.cpp, .h}: Declare NAN in the header + (and fix a typo in the declaration. Use that definition + instead of by using 0.0 / 0.0 to avoid compiler warnings. + * server/asobj/{Date.cpp, Math.cpp}: Don't redefine NAN. + +2007-04-02 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.{c,h}: fix compiler warnings. + * testsuite/samples/: gotoFrameOnKeyEvent.swf, README: + Add new tests used to debug keypress listeners and + goto_frame. Provided by Dongdong + * server/movie_root.cpp (notify_keypress_listeners): + Skip event execution for unloaded characters + (they will be removed at next ::advance call) + +2007-04-02 Sandro Santilli + + * server/dlist.{cpp,h} (remove_display_object): call + unload on removed character. + * server/: character.h, sprite_instance.{cpp,h}: + Moved the isUnloaded()/_unloaded logic from sprite_instance + up to character. + * server/movie_root.{cpp,h}: remove unloaded characters + from the keypress_listeners set (run at ::advance time). + +2007-04-02 Sandro Santilli + + * server/sprite_instance.cpp (goto_frame): remember to call + set_invalidated() before running display list tags! + (UdoG: is this correct?) + +2007-04-02 Zou Lunkai + + * server/sprite_instance.cpp, sprite_instance.h + add is_reverse_execution() to check if is reverse executing frame tags; + * server/tag_loaders.cpp + set "replace_if_depth_is_occupied" to true when reverse executing PlaceObject2. + fixed error messages with playing bombgame.swf, improved implementation of + reverse execution. + + +2007-04-01 Sandro Santilli + + * server/swf/tag_loaders.cpp (define_bits_jpeg_loader, + define_bits_jpeg2_loader, define_bits_lossless_2_loader): + Handle duplicate character id. "Fixes" bug #19474. + +2007-03-31 Sandro Santilli + + * gui/Makefile.am, testsuite/server/Makefile.am, + utilities/Makefile.am: add libgnashparser dependency. + Fixes bug #19450. + +2007-03-31 Bastiaan Jacques + + * configure.ac, gui/gtk_glue_agg.cpp: Add configurable support + for 16-bit GTK, for use on the OLPC. Simply specifying + --with-pixelformat=rgb565 will activate this code. + +2007-03-30 Tomas Groth Christensen + + * server/asobj/NetStream{Ffmpeg,Gst}.cpp: Fixed the callback + to the onStatus eventhandler. + +2007-03-30 Sandro Santilli + + * server/asobj/Mouse.cpp: cleanups. + * libbase/network.cpp: minor cleanups in debugging lines. + * server/asobj/xmlsocket.{cpp,h}: first pass at cleanup, + fix XMLSocket.connect() to return the correct value. + * server/asobj/Global.cpp: initialize XMLSocket with the + most current interface. + * testsuite/actionscript.all/: Makefile.am, XMLSocket.as: + initial test for XMLSocket (methods availability). + +2007-03-30 Tomas Groth Christensen + + * libbase/FLVParser.cpp: Fixed a few bugs. + * libbase/LoadThread.{h,cpp}: Changed to use a cache so we avoid + blocking to often when reading and loading at the same time. + * server/asobj/NetConnection.{h,cpp}: Added loadCompleted(). + * server/asobj/NetStream.{h,cpp}: Added setEnvironment(), and + removed the getter/setter for onStatus. + * server/asobj/NetStreamFfmpeg.{h,cpp}: Fixed a big mem-leak. Added + setEnvironment(), and added support for status/error messages. + * server/asobj/NetStreamGst.{h,cpp}: Added setEnvironment(), and + added support for status/error messages. + * testsuite/actionscript.all/NetStream.as: Corrected expected + results for onStatus, and added some for onCuePoint and onMetaData. + +2007-03-30 Sandro Santilli + + * server/dlist.cpp (clear_except): don't copy display list (small + typo) + * server/sprite_instance.cpp (ctor): initialize the _unloaded member. + * testsuite/actionscript.all/NetStream.as: check that onStatus and + onSeek are not special builtin-properties. + * server/timers.{cpp,h}: add support for passing arguments to + setInterval() callbacks. + * testsuite/misc-ming.all/: intervalTest.as, intervalTestRunner.cpp: + All tests pass now. + +2007-03-30 Sandro Santilli + + * testsuite/misc-ming.all/: intervalTest.as, intervalTestRunner.cpp: + Add test for setInterval() calls with additinal args (Gnash fails). + * server/asobj/xmlsocket.cpp: don't attempt to send + data when not connected ! + * testsuite/misc-ming.all/Makefile.am: prepared for + activation of reverse_execute_PlaceObject2_test1runner + (not activated as for Zou request). + +2007-03-30 Zou Lunkai + + * testsuite/misc-ming.all: reverse_execute_PlaceObject2_test1.c + add a new testcase for reverse execution of frame tags. The next + step is to improve it or deprecate it. + +2007-03-30 Sandro Santilli + + * testsuite/actionscript.all/: check.as, targetPath.as: + Don't use asm { targetPath } when not supported by + detected Ming. + +2007-03-30 Sandro Santilli + + * server/as_value.cpp (to_sprite): don't attempt to resolve + the path to a sprite if this value is not a MOVIECLIP type. + * server/swf.h: document ACTION_TARGETPATH + * server/sprite_instance.{cpp,h}: implement getTarget(), have + get_text_value() call getTarget() internally. + * server/vm/ASHandlers.cpp: Implement ActionTargetPath. + * testsuite/actionscript.all/: Makefile.am, targetPath.as: + Test ACTION_TARGETPATH (0x45). + +2007-03-29 Rob Savoye + + * configure.ac: Add --disable-menus since an embedded systems + probably won't want them. + * gui/gtk.cpp: Disable most of the menu items if they're + disabled. + * packaging/redhat/gnash.spec: Build with --disable-menus for the + OLPC. + + * doc/C/sources.xml: Fix mismatched sect tags. + * doc/C/asspec: new directory to hold the ActionScript + specification files, so as to not clutter the top level doc + directory. + * doc/C/accessibility.xml, array.xml, boolean.xml, button.xml, + camera.xml, color.xml, contextmenu.xml, customactions.xml, date.xml, + error.xml, function.xml, key.xml, loadvars.xml, localconnection.xml, + math.xml, microphone.xml, mouse.xml, movieclip.xml, + moviecliploader.xml netconnection.xml, netstream.xml, number.xml, + selection.xml, sharedobject.xml, sound.xml, stage.xml, string.xml, + system.xml, textfield.xml, textformat.xml, textsnapshot.xml, video.xml, + xml.xml, xmlnode.xml, xmlsocket.xml: Moved to asspec directory. + * doc/asspec/asspec.xml: New top level document for free + ActionScript specification. + * doc/C/gnash.xml: Remove AS Spec entities, they're now in + asspec.xml. Use gnash-dev instead of gnash for questions. + +2007-03-29 Markus Gothe + + gui/gtk.cpp: Indent the licensing notes. + +2007-03-29 Deanna Phillips + + * server/vm/fn_call.h: include the stuff needed + for proper intrusive_ptr composition. + +2007-03-29 Sandro Santilli + + * server/as_object.{cpp,h} add an optional argument + to init_property and init_readonly_proprety for setting + explicit flags, use same defaults as for init_member. + * server/vm/ASHandlers.cpp (ActionEnum, ActionEnum2): + do not convert values to objects always. + * testsuite/misc-mtasc.all/: Makefile.am, enum.as: + Add test for ActionEnum2. + * testsuite/server/Makefile.am: more linking fixes. + +2007-03-29 Sandro Santilli + + * server/asobj/SharedObject.cpp: better stubs (nothing more). + +2007-03-29 Sandro Santilli + + * server/movie_root.{cpp,h}: support for + setting scaleMode (allow scaling) and + notifying Stage listeners when disabled. + * server/asobj/Stage.{cpp,h}: rework layout, + implement addListener, removeListener and + scaleMode. + * testsuite/actionscript.all/Stage.as: add a few + tests for Stage. The notification-based tests + are not automatically run yet (will need a MovieTester + test runner, with new interfaces to it for resize request) + * utilities/Makefile.am: add libgnashasobjs, now needed. + +2007-03-29 Ann Barcomb + + * devtools/testsuite/tabs.t: added check for hard tabs in + C++ source. + +2007-03-29 Sandro Santilli + + * server/sprite_instance.{h,cpp} (goto_frame): push target + actions to the global list; (unload): set the _unloaded + flag; (m_goto_action_list): deprecated ! + * testsuite/misc-ming.all/consecutive_goto_frame_test.c: + don't expect a failure. + * testsuite/swfdec/PASSING: goto3.swf succeeds. + +2007-03-29 Sandro Santilli + + * server/asobj/string.cpp (string_split): fix compiler wanring + and handle SWF5 case. + * testsuite/actionscript.all/String.as: expect less failures. + * server/sprite_instance.{h,cpp} add queueActions() method. + * server/swf/tag_loaders.cpp: fix compiler warnings. + * testsuite/server/Makefile.am: link in libgnashparser for the + tests that turn out to need it since rob changed it from + noinst_LTLIBRARY to lib_LTLIBRARY. + * configure.ac: provide MING_SUPPORTS_INIT_ACTIONS conditional. + * testsuite/misc-ming.all/ming_utils.{h,c}: provide + MING_SUPPORTS_INIT_ACTIONS macro and use it to conditinally + buil the init acion interface. + * testsuite/misc-ming.all/Makefile.am: provide MING_VERSION_CODE + macro, enable build of init_action_test when + MING_SUPPORTS_INIT_ACTIONS. + +2007-03-28 Zou Lunkai + + * testsuite/misc-ming.all: init_action_test.c + add a new testcase for DoInitAction. + * testsuite/misc-ming.all/ming_utils.c, ming_utils.h + add a interface for adding init actions for sprites. + +2007-03-28 Rob Savoye + + * autogen.sh: Make config-h.in atfer running libtoolize so + Darwin builds stop failing. + * configure.ac: Remove dash after cvs, it confuses rpmbuild. + * backend/Makefile.am: List AGG headers in noinst_HEADERS. + * macros/agg.m4: Set ac_cv_path_agg_incl based on agg_include_dir + to save a few cycles. + * macros/pthreads.m4: Don't set any flags for pthreads on + Darwin. Test for the .dylib suffix too. + * packaging/redhat/gnash.spec: Merge in changes from Redhat. + * server/Makefile.am: Add BOOST and pthreads libs for cross + builds. + * server/asobj/Makefile.am: Make an installable library for + dynamically linking on Darwin. + * server/parser/Makefile.am: Make an installable library for + dynamically linking on Darwin. + * testsuite/misc-ming.all/Makefile.am: Add intervalTest.as to + EXTRA_DIST so distcheck passes. + * testsuite/misc-mtasc.all/Makefile.am: Add all .as files to + EXTRA_DIST so distcheck passes. Add to CLEANFILES so distcheck + passes. + * testsuite/samples/Makefile.am: Add to CLEANFILES so distcheck + passes. + * testsuite/libbase/Makefile.am: Link in libgnashvm too. + * utilities/Makefile.am: Add CURLS_LIBS. Add sufix rule for for + build swf from as files. + +2007-03-28 Tomas Groth Christensen + + * server/asobj/NetStreamGst.cpp: Make sure pipeline exists before + accessing it, and the same goes for the FLV parser. + +2007-03-28 Sandro Santilli + + * server/sprite_instance.cpp (add_textfield): return void. + * testsuite/actionscript.all/MovieClip.as: add tests for + createTextField(). + +2007-03-28 Sandro Santilli + + * server/sprite_instance.cpp (add_textfield): use edit_text_character, + not simple text_character (the latter has all the ActionScript + methods attached to it). + * server/edit_text_character.{cpp,h}: keep definition + by intrusive_ptr. + * server/edit_text_character.{cpp,h}: add stubs + for all known TextField methods. + * server/asobj/Global.cpp: initialize the global + TextField class + * testsuite/actionscript.all/: Makefile.am, TextField.as: + New testcase for TextField class (just checks availability + of stuff). + +2007-03-28 Sandro Santilli + + * libbase/GnashException.h: Add ActionLimitException + * server/as_environment.{cpp,h}: provide callStackDepth() + and cleanCallstack() methods, throw an ActionLimitException + when reaching 255 call stack depth. + * server/vm/ActionExec.{cpp,h}: catch ActionLimitException + by aborting execution of current code. + * server/vm/ASHandlers.cpp (ActionCallFunction): pass the + environment when converting function name to string. + +2007-03-28 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp: Don't calculate the numbers of + buffers to feed to the pipeline, since it makes loaded sound + streams stop to early. + * libbase/FLVParser.{h,cpp}: Made it thread-safe. Fixed a lot of + bugs. Added support for extacting size of h.263 video. + * server/asobj/NetConnection.cpp: Set _loader to NULL after deletion. + * server/asobj/NetStreamFfmpeg.cpp: Corrected some error messages and + error handling. + * server/asobj/NetStreamGst.{h,cpp}: Use our internal FLVParser + when FLV is being played. + +2007-03-28 Sandro Santilli + + * server/array.{cpp,h}: implement Array.splice(), + improve toString to actually call the user-provided + toString on all elements. + * testsuite/actionscript.all/array.as: added testcases + for Array.splice(). + * testsuite/misc-ming.all/Dejagnu.c: use a larger window for traces. + * testsuite/misc-ming.all/: FlashVarsTest.as, FlashVarsTest.html, + Makefile.am: added a test for querystring and flashparams parsing. + * server/sprite_instance.cpp (loadMovie): + Parse the querystring given in the URL. + +2007-03-28 Bastiaan Jacques + + * server/as_value.h: Add as_value::to_number(), which will + cast the result of to_number() to the requested number type. + * server/as_object{.h, .cpp}: Rename init_property(name, getter) + to init_readonly_property(name, getter). + * server/{button_character_instance.cpp, sprite_instance.cpp): + Update callers to use init_readonly_property. + * server/asobj/string.cpp: Reimplement the ActionScript String + class using std::string. Also change the style to Rob's + preffered one. + * testsuite/actionscript.all/String.as: Add a few more + testcases. + +2007-03-28 Sandro Santilli + + * server/sprite_instance.{cpp,h}: add setVariables() + method taking a std::map. + * gui/Player.cpp (run): parse URL query string + after parsing FlashVars, for proper handling precedence. + NOTE that this won't work when load starts from an internal + call (loadMovie, getUrl with target etc.) + +2007-03-27 Markus Gothe + + * backend/render_handler_ogl.cpp: Added anti-aliasing for polygons + (i.e. fonts and such). + +2007-03-27 Sandro Santilli + + * server/sprite_instance.{cpp,h}: add isUnloaded() + method to properly skip execution of queued + actions for unloaded sprites. + * server/vm/: Makefile.am, ExecutableCode.h: + Add definition of a generic Executable Code + for use as element of the global Action Queue. + * server/movie_root.{cpp,h}: add support for + a global Action Queue. + +2007-03-27 Bastiaan Jacques + + * server/as_object.h: Print the passed pointer type + rather than the intrusive_ptr in which it is contained. + +2007-03-27 Sandro Santilli + + * testsuite/actionscript.all/Date.as: + Commented out a test that also fails with + the proprietary player (seems related to + DST, started failing when it entered in effect). + Anyone willing to fix the test is welcome. + * server/sprite_instance.cpp (execute_frame_tags): + Execute init actions immediately. This might change + when we get actions execution order definitively right + but it's useful to commit now has a facility for keep + tracking youtube missing bits. + +2007-03-25 Martin Guy + + * configure.ac: reformat all "package not installed" messages + to the same layout + * configure.ac: Fail during configure if AGG libraries not detected; + AGG is no longer "experimental" + * configure.ac: Regularise layout of AC_ARG_* + +2007-03-25 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: print a warning + about possible confusion created by bugs in the proprietary + players. + * testsuite/actionscript.all/NetConnection.as: + getURL doesn't exist, and connect returns + a boolean value. + +2007-03-24 Tomas Groth Christensen + + * libbase/LoadThread.{cpp,h}: Changed so that it is possible to + check if the stream is valid. + * server/StreamProvider.cpp: Check if local file exists before + creating the tu_file. + * server/asobj/NetConnection.cpp: Changed to work with the + LoadThread changes. Added an assert for a valid URL. + +2007-03-24 Sandro Santilli + + * server/swf/tag_loaders.cpp (readPlaceActions): gracely handle + malformed SWF produced by some old snapshot of Ming CVS. + * testsuite/misc-ming.all/Makefile.am: + Don't try to build tests unsupported by + the installed Ming version. + +2007-03-24 Bastiaan Jacques + + * server/as_function.cpp: Partially revert changes related to fn_call + which mysteriously broke the testsuite. + * server/vm/fn_call.h: Make nargs non-const and add a setter for offset + so as_function can modify them. + +2007-03-23 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.cpp: Fixed getting time when + decoder isn't initialized. + +2007-03-23 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Count videos sounds. + * libbase/FLVParser.{h,cpp}: Added. Our own homegrown FLV parser. + * libbase/LoadThread.{h,cpp}: Use auto_ptr instead of tu_file, + and added the isPositionConfirmed() function. + * libbase/Makefile.am: Added FLVParser.{h,cpp}. + * macros/libXML.m4: A fix for when using --with-libxml-incl + * server/video_stream_instance.cpp: Use Advance to investigate if a new + video frame is ready, and decide if the bouds should be invalidated. + * server/asobj/NetConnection.{h,cpp}: Pass a auto_ptr to + LoadThread. Always check if the loader exists before using it. + Added connectParser to make it possible for the parser to access the file. + * server/asobj/NetStream.{h,cpp}: Implemented setBufferTime and onStatus. + * server/asobj/NetStreamFfmpeg.{h,cpp}: Use the new FLVParser when we + play a FLV. Added more comments. Implemented setBufferTime, and made + things ready for onStatus. + * server/asobj/NetStreamGst.{cpp,h}: Added stubs and small updates to + keep up with NetStreamFfmpeg. Some work on supporting the -r1 switch. + * server/asobj/SoundGst.cpp: Removed a printf. + +2007-03-22 Sandro Santilli + + * testsuite/swfdec/PASSING: two more successes. + * server/stream.{cpp,h} (read_uint): don't force return + to fit in a short. Fixes a regression for 3dtris.swf. + +2007-03-22 Bastiaan Jacques + + * server/as_object.cpp: in set_member_default(), only setValue() + on properties that aren't read-only. Add an init_property() + method specifically for read-only properties which takes only + a setter. Also add a method asPropName() that converts property + names to lowercase, which is a very common pattern in this + class. + * server/button_character_instance.cpp, + server/character{.cpp, .h}, server/character_instance.cpp: + Use the new init_property() for read-only properties. Don't + check if read-only properties are being set in getters. + * server/vm/fn_call.h: Make fn_call more robust: rename + first_arg_bottom_index to _stack_offset, which I think is more + descriptive. Make _stack_offset and _env private properties; add + accessors for them. Make nargs a const property. Add doxygen + comments for all members. + * all over the place: Adjust all users of fn_call members. + Make sure all callers use the new accessors and that no caller + tries to set now-const properties. + +2007-03-22 Sandro Santilli + + * server/asobj/Number.cpp: don't attach Number interface + to the Number class itself. + * testsuite/actionscript.all/Number.as: more tests + for valueOf,toString (many still fail for SWF5). + +2007-03-22 Sandro Santilli + + * server/font.cpp, server/stream.cpp, server/swf/tag_loaders.cpp: + Fixed signedness warnings after stream interface update. + +2007-03-22 Sandro Santilli + + * server/stream.{cpp,h}: fix signedness of integers. + * server/parser/button_character_def.cpp (read): + Survive malformation of button2 events action tags. + +2007-03-22 Sandro Santilli + + * server/as_value.{h,cpp}: drop all methods transparently + calling to_number w/out passing an as_environment. + * server/asobj/Global.cpp, server/asobj/xml.cpp, + server/vm/ASHandlers.cpp: properly update to explicitly + invoke as_value::to_number() when needed. + +2007-03-22 Zou Lunkai + + * testsuite/misc-ming.all: action_execution_order_test6.c, Makefile.am. + add a new testcase for passing-by MovieClip events. + + +2007-03-22 Sandro Santilli + + * testsuite/swfdec/PASSING: comparisons-7.swf now passes. + * testsuite/actionscript.all/Number.as: add tests for + comparison operators (unfortunately Ming never outputs + ActionGreater, but swfdec testsuite contains it). + * server/vm/ASHandlers.cpp (ActionNewLessThen, ActionGreater): + return undefined if numeric conversion returns NaN. + * server/as_value.h: drop 'operator<', is not appropriate as + it insists in returning a bool, while we might eventually + get an undefined value. + +2007-03-21 Sandro Santilli + + * testsuite/actionscript.all/check.as: define + MING_SUPPORTS_ASM_GETPROPERTY. + * testsuite/actionscript.all/MovieClip.as: add test for + getproperty call w/out an explicit target. + * server/impl.cpp (create_library_movie): include SWF version info, + at least it's now shown with a bare -v. + * server/vm/ASHandlers.cpp (ActionGetProperty): + An empty string as target means we pick the current top + of scope stack. (SWFHandlers ctor): add comments for + hard-coded numbers properties should have. + +2007-03-21 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionSubString): when length argument + is negative take it as full string length. + * testsuite/actionscript.all/String.as: add tests for 'substring' + action with negative length parameter. + +2007-03-21 Sandro Santilli + + * server/as_function.cpp (extends): when VM version is > 5 + set 'prototype.__constructor__' in addition to + 'prototype.constructor' + * server/swf_function.cpp (getSuper): user __proto__.__constructor + rather then __proto__.constructor. + * testsuite/actionscript.all/: Function.as, Inheritance: more + successes. + +2007-03-21 Sandro Santilli + + * testsuite/swfdec/PASSING: new successes: onload-childparent.swf, + registerclass-previous.swf. + * server/vm/ASHandlers.cpp (ActionCallFunction): + When function is an object, invoke it's 'constructor'; + Properly set the 'this' pointer. + * testsuite/actionscript.all/Function.as: more successes. + + +2007-03-21 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + fix calling _root.note + +2007-03-20 Martin Guy + + * configure.ac: + Remove duplicate of presence tests for JPEG KDE QT. + Say what to install for KDE QT MYSQL. + * configure.ac macros/kde.m4: + Fix broken QT detection on Debian. + +2007-03-20 Ann Barcomb + + * server/asobj/gen-asclass.pl: Produces exactly the same output + as gen-asclass.sh with some extra features. + +2007-03-20 Sandro Santilli + + * server/builtin_function.h (ctor): add a 'constructor' + property pointing to self. + * testsuite/actionscript.all/LocalConnection.as: add tests + for existance of functions that somehow slipped into Gnash. + * server/as_function.{cpp,h}: add getFunctionConstructor() + public static method. + * server/swf_function.cpp: passing Function as the constructor + property of user-defined functions. + * testsuite/actionscript.all/Function.as: more successes. + * testsuite/actionscript.all/Inheritance.as: more successes. + +2007-03-20 Sandro Santilli + + * server/as_function.{cpp,h}: add a constructInstance() + function taking care of proper ActionScript instances + initialization. + * server/asobj/: Boolean.cpp, Number.cpp, string.cpp + (init_{boolean,number,string}_instance): use + the new as_function::constructInstance() method + to correctly initialize instances. + * server/vm/ASHandlers.cpp (construct_object): simply + forward the call to as_function::constructInstance(). + * testsuite/actionscript.all/Function.as: more successes. + +2007-03-20 Antti Ajanki + + * gui/{kde.cpp, kdesup.h}, plugin/klash/klash_part.cpp: When + embedding a Gnash into Konqueror, skip window creation. This also + fixes a problem with scaling. + +2007-03-20 Ann Barcomb + + * doc/C/actionscript/new_as_class.xml: Change documentation to + intrusive_ptr (see Sandro's previous commits). + +2007-03-20 Sandro Santilli + + * server/as_value.cpp, server/asobj/Boolean.cpp, + server/asobj/Boolean.h, server/asobj/Number.cpp, + server/asobj/Number.h, server/asobj/gstring.h, + server/asobj/string.cpp: Implement init_boolean_instance + and change init_{number,string}_instance to return + by intrusive_ptr (rather then auto_ptr). + Do automatic boolean to Boolean conversion in as_value::to_object. + * testsuite/actionscript.all/Function.as: + Couple of more successes. + +2007-03-20 Sandro Santilli + + * server/array.cpp, server/as_environment.cpp, + server/as_function.cpp, server/as_object.cpp, + server/as_object.h, server/as_value.cpp, server/as_value.h, + server/button_character_instance.cpp, server/character.cpp, + server/debugger.cpp, server/edit_text_character.cpp, + server/shm.cpp, server/sprite_instance.cpp, + server/sprite_instance.h, server/swf_function.cpp, + server/swf_function.h, server/textformat.cpp, server/timers.cpp, + server/timers.h, server/video_stream_instance.cpp, + server/video_stream_instance.h, server/asobj/Boolean.cpp, + server/asobj/ContextMenu.cpp, server/asobj/Date.cpp, + server/asobj/Global.cpp, server/asobj/Key.cpp, server/asobj/Key.h, + server/asobj/LoadVars.cpp, server/asobj/LocalConnection.cpp, + server/asobj/MovieClipLoader.cpp, + server/asobj/NetConnection.cpp, server/asobj/NetConnection.h, + server/asobj/NetStream.cpp, server/asobj/NetStream.h, + server/asobj/NetStreamGst.cpp, server/asobj/Object.cpp, + server/asobj/Sound.cpp, server/asobj/string.cpp, + server/asobj/xml.cpp, server/asobj/xmlnode.cpp, + server/asobj/xmlsocket.cpp, server/vm/ASHandlers.cpp, + server/vm/fn_call.h, server/vm/with_stack_entry.h, + testsuite/server/GetterSetterTest.cpp: + Reduce use of "dumb" pointers, using intrusive_ptr instead. + A side-effect is the player2.swf premature deletion assertion + is not triggered anymore now. + +2007-03-20 Sandro Santilli + + * testsuite/actionscript.all/LocalConnection.as: Fix the test to NOT + rely on Gnash extensions. Actually check that the extensions are + *not* there, as we want to be compatible !! + +2007-03-20 Ann Barcomb + + * server/asobj/Key.cpp, MovieClipLoader.cpp, xml.cpp, xmlnode.cpp, + xmlsocket.cpp: Change casts and asserts to ensureType. + +2007-03-20 Ann Barcomb + + * server/asobj/ContextMenu.cpp, Date.cpp, LoadVars.cpp, string.cpp, + NetConnection.cpp, NetStream.cpp, Sound.cpp, gen-asclass.sh: + Changed instances of ensureClass to use inherited ensureType. + +2007-03-20 Ann Barcomb + + * doc/C/actionscript/new_as_class.xml: syntax of 'ensure' + changed to correspond with Bastiaan's last commit. + +2007-03-20 Bastiaan Jacques + + * server/as_object.h: Add ensureType, which is intended to + replace the class-specific ensureClass functions. Suggested by Ann. + Demangle the object name in the exception message if GCC >= 3 is being + used. + * server/asobj/Boolean.cpp: Switch ensureClass to ensureType. + * server/vm/ASHandlers.cpp: In ActionDelete(), don't pop an object off + the AS stack in the hopes that it magically has a property which might + be the object that is to be deleted. Instead, traverse the stack using + delVariable(). + * server/as_object.h: Remove the ensureType for raw pointers in favour + of the one for intrusive pointers; the former is now unused. + * server/asobj/NetStreamFfmpeg.cpp: Update for changes in ensureType. + * server/asobj/LocalConnection.cpp: Don't initialise Gnash-only methods + that were intended for debugging. + +2007-03-19 Sandro Santilli + + * server/as_value.{cpp,h}: simplify union by using + a single pointer value, toward using a smart pointer + there. + * testsuite/actionscript.all/Function.as: expect a couple + of successes I missed on last commit. + +2007-03-19 Ann Barcomb + + * server/as_object.h: corrected Doxygen comments about + get_member() versus gettersetter methods. + +2007-03-19 Sandro Santilli + + * testsuite/actionscript.all/Function.as: add more tests + for 'constructor', '__constructor__' and super. + A lot of them fail and the test is still not complete. + +2007-03-19 Ann Barcomb + + * doc/C/actionscript/new_as_class.xml: document the changed syntax + for returning a value (see Bastiaan's commit). + +2007-03-19 Bastiaan Jacques + + * server/vm/fn_call.h: Remove fn_call::result. Instead, all methods and + functions called by ActionScript must return as_value. Thanks to Ann + for the suggestion and for help with regular expressions. + * all over the place: Switch all ActionScript-called methods over to + return as_value. Adjust all related methods. Also make fn_call::nargs + unsigned. + * server/as_value.h: Add additional constructors taking longs as + arguments to account for platforms that define size types as longs. + +2007-03-19 Ann Barcomb + + * doc/C/actionscript.xml, doc/C/actionscript/*, doc/C/Makefile.am: + Split main.xml into multiple files. + +2007-03-19 Sandro Santilli + + * server/timers.cpp (timer_setinterval): + Accept call in the form setInterval(obj, methodname, timer); + warn about unsupported args (right-most arguments). + +2007-03-19 Ann Barcomb + + * doc/C/actionscript.xml, doc/C/gnash.xml, doc/C/actionscript/main.xml, + doc/C/Makefile.am: ActionScript has been removed from the Gnash + manual. A new ActionScript manual has been created. Most of + material has been rewritten and incorporates Sandro's + feedback on the previous version. + +2007-03-19 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.h: Add Ming defines available onl + in CVS; some of the new testcases depend on these. Suggested by + Benjamin Otte. + +2007-03-19 Bastiaan Jacques + + * testsuite/actionscript.all/LoadVars.as: Don't assume that the system on + which testcases are run has a HTTP server running on localhost that meets + our specifications. Instead, read object property data from a local file + and update the expected output to match. + +2007-03-19 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_test4.c: + add tests about onClipEvent(onConstruct) and user defined onLoad for _root + +2007-03-18 Bastiaan Jacques + + * testsuite/libamf.all/test_number.cpp: Don't overflow the data buffer. + +2007-03-18 Antti Ajanki + + * gui/kde.cpp: Since the GUI callbacks are no longer statics, adjust + our usage of them to match. + +2007-03-17 Sandro Santilli + + * server/swf_function.cpp (call operator): don't + provide 'super' if SWF version is < 6. + +2007-03-17 Markus Gothe + + * libamf/amf.h: Fixed a naming issue on non-GCC. + * server/asobj/Date.cpp: Fixed namespace-issue for 'trunc' + +2007-03-16 Sandro Santilli + + * server/vm/ASHandlers.cpp: more usage of as_value::to_debug_string(). + * server/as_value.{cpp,h}: add to_debug_string(), have output + operator use it. + * server/as_environment.{cpp,h}: use debugging output for as_values + when dumping stack,registers and locals. + +2007-03-16 Rob Savoye + + * testsuite/libamf.all/string-variable.amf: Binary test case for + string variables. + * testsuite/libamf.all/number-variable.amf: Binary test case for + numeric variables. + * testsuite/libamf.all/test_variable.cpp: Test case for encoding + and decoding variable assignments which as used in AMF objects. + * libamf/amf.cpp, amf.h: Add support for encoding variables. Make + extractVariables actually set the fields of the element so they + have some value when returned. + + * libamf/amf.cpp, amf.h: Use capitols for enum values. Fix + encoding and decoding of numbers, strings, and objects. + * libamf/rtmp.cpp, rtmp.h: Use capitols for enum values. + * libamf/Makefile.am: Remove amftest.cpp, it's now in testsuites + where it belongs. + * testsuite/Makefile.am: Add libamf.all directory. + * testsuite/libamf.all/Makefile.am: Build test cases, do "make + check". + * testsuite/libamf.all/test_number.cpp: Test case for AMF numbers. + * testsuite/libamf.all/test_object.cpp: Test case for AMF objects. + * testsuite/libamf.all/test_string.cpp: Test case for AMF strings. + * testsuite/libamf.all/f03f.amf: Binary test file for number format. + * testsuite/libamf.all/connect-object.amf: Binary test file for + object format. + * testsuite/libamf.all/connect-string.amf: Binary test file for + string format. + +2007-03-16 Sandro Santilli + + * testsuite/actionscript.all/: Function.as, Inheritance.as: + Some more tests for __constructor__. + * server/vm/ASHandlers.cpp (construct_object): set up the + undocumented and non-standard __constructor__ member. + * server/asobj/Object.cpp (object_registerClass): don't forget + to return a boolean value ! + * server/sprite_instance.cpp: allow overriding the _name property. + * testsuite/swfdec/PASSING: more successes. + +2007-03-16 Sandro Santilli + + * server/as_value.{cpp,h}: depreciate operator+=, implement valueOf + calling. + * server/vm/ASHandlers.cpp (ActionNewAdd): pass environment over + calls to as_value::to_number, for properly calling valueOf. + * testsuite/actionscript.all/Number.as: more tests for valueOf + * testsuite/misc-ming.all/: .cvsignore, Makefile.am: + Automate run of the new testcases. + +2007-03-16 Zou Lunkai + + * tesrttsuite/misc-ming.all/action_execution_order_test4.c. + * testsuite/misc-ming.all/action_execution_order_test5.c. + add 2 more testcases to verify actions execution order. + +2007-03-13 Sandro Santilli + + * server/as_value.h (to_number): null and undefined are converted + to NaN for SWF7 up; drop is_inf,is_finite and is_nan methods, + handle in the caller. + * server/asobj/Global.cpp: proved _global.NaN and _global.Infinity + values; fix isFinite() and isNaN(). + * testsuite/actionscript.all/Number.as: more tests for the NaN and + Infinity values. + * server/as_value.cpp (to_tu_string): both -0.0 and 0.0 number values + get converted to the string "0". + * testsuite/actionscript.all/Boolean.as: do not expect failures for + string to boolean conversion for SWF7 up. + * server/as_value.cpp (to_bool): have NaN numbers evaluate to + false; add version-specific versions to_bool_v5(), to_bool_v6() and + to_bool_v7(); add to_std_string_versioned. + * testsuite/server/: DisplayListTest.cpp, GetterSetterTest.cpp, + MatrixTest.cpp, PropertyListTest.cpp, as_prop_flagsTest.cpp: + include check.h last, to avoid 'check' macro to clash with boost + headers (ptr_container stuff). + * server/sprite_instance.cpp: add support for MovieClip.loadVariables. + * server/Makefile.am, server/LoadVariablesThread.{cpp,h}, + server/asobj/LoadVars.cpp: extracted what was previously called LoadRequest + in LoadVars.cpp, for general use, cleanups. + * server/vm/ASHandlers.cpp (CommonGetUrl): add support for the + loadVariables flag. + * testsuite/misc-mtasc.all/function.as: add more test for + the arguments object. + * server/vm/ASHandlers.cpp (ActionNewAdd, ActionTrace): pass an environment when + converting as_value to string, to properly invoke any toString + method. + * server/character.cpp (parent_getset): _parent is undefined (not + null) for _root sprite. + * testsuite/actionscript.all/String.as: add tests for automatic + calling of the toString() method. + * testsuite/actionscript.all/Function.as: add tests for toString + method. + * server/as_function.h: override get_text_value() to properly return + '[type Function]'. + * server/as_value.cpp (convertion to string): Invoke any toString method + associated with objects, if caller properly passes an as_environment + to use in the call. + * testsuite/swfdec/PASSING: many more successes. + * server/as_value.h: add constructor by const std::string ref. + * server/vm/VM.{h,cpp}: add getPlayerVersion() + * server/asobj/System.{h,cpp}: cleanups, use getPlayerVersion() + for System.capabilities.version + * server/sprite_instance.cpp (attachMovieClipProperties): initialize + the $version member. + * testsuite/actionscript.all/MovieClip.as: more tests for the '$version' + built-in variable; new test for _parent of root being undefined (not + null). + * server/as_object.{cpp,h}: add a third argument for init_member to + override protection (can be omitted to use previous default). + +2007-03-13 Sandro Santilli + + * testsuite/actionscript.all/System.as: add checks for $version. + * testsuite/swfdec/PASSING: 3 more tests succeed. + * server/sprite_instance.cpp (get_text_value): remove the trailing + dot from name of top-level movies. + +2007-03-12 John Gilmore + + * configure.ac: Suggest agg-2.5 rather than 2.4 if + agg_gradient_lut.h is missing. + * configure.ac: Sandro's fix to "ming version" test that failed if + ming was not installed. + +2007-03-12 Sandro Santilli + + * server/as_object.cpp (init_member): fix typo setting flags + for buiting methods all wrong. + * testsuite/actionscript.all/delete.as: don't expect the failures + on function prototype deletion anymore. + * server/button_character_instance.{cpp,h}: implement + ::construct() to postpone characters instance name assignmnet + at stage placement time. + +2007-03-12 Udo Giacomozzi + + * server/character.h: introduce wantsInstanceName() to provide + a clean way to tell which objects need an instance name + * server/button_character_instance.{h,cpp}: Give childs a name; + implement get_relative_target() for buttons; define that + buttons should get instance names + * server/edit_text_character.h: text fields need instance names + too + * server/sprite_instance.{h,cpp}: implement and use + wantInstancename() + + +2007-03-12 Sandro Santilli + + * server/as_prop_flags.h: add equality and inequality operators. + * testsuite/actionscript.all/delete.as: add test verifying that + delete on object references won't affect other references + on the same object; add test to check that a user-defined + function's prototype is not deletable (fails in Gnash!). + * server/vm/ASHandlers.cpp (ActionCallFunction, ActionCallMethod, + ActionNewMethod): rather then pushing undefined values for + missing argument values on the stack, warn about the type of + SWF malformation and modify the number of args by using at most + what's on the stack. + * testsuite/swfdec/PASSING: callfunction-stack.swf + now succeeds. + +2007-03-12 Bastiaan Jacques + + * server/asobj/Boolean.cpp: Add ensureBoolean() to guard + casts. + +2007-03-12 Sandro Santilli + + * testsuite/actionscript.all/Global.as: argh, it + seems that _global is a non-Object object :!? + * testsuite/swfdec/PASSING: 3 newly added swfdec tests + succeed in Gnash. + * testsuite/misc-ming.all/Makefile.am: activated the + new action execution order tests. + +2007-03-11 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_test1.c. + * testsuite/misc-ming.all/action_execution_order_test2.c. + * testsuite/misc-ming.all/action_execution_order_test3.c. + 3 new testcases to verify action execution order. + +2007-03-11 Deanna Phillips + + * cygnal/stream.cpp: Added #include + +2007-03-10 Rob Savoye + + * macros/boost.m4: Only select one library! So please leave the + break lines in after the libraries are matched in the file + system. Check for date_time in the same way to handle the weird + naming of boost libraries. + +2007-03-10 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: + Import Dejagnu.swf from the same dir the SWF is in, to work + around player8+ lame security model. + * server/array.{cpp,h}: provide an override for + Object.toString(). + * testsuite/swfdec/PASSING: array.swf now passes. + +2007-03-10 Sandro Santilli + + * testsuite/swfdec/PASSING: expect 5 more successes. + * testsuite/swfdec/swfdec_gnash_tester: allow 11 advances rather + then 10 (this is likely due to Gnash current additional advance + required for proper construction of initial stage). Makes 5 more + tests from the swfdec testsuite pass (including gotoframe!!). + * server/sprite_instance.cpp (add_display_object): + Only syntetize instance names for sprite instances + (fixes swfdec's names.swf testcase). + +2007-03-09 Tomas Groth Christensen + + * libbase/LoadThread.h: Documented the class. + +2007-03-09 Sandro Santilli + + * testsuite/swfdec/swfdec_gnash_tester: + Fixed to allow loopbacks. + +2007-03-09 Stuart Anderson + + * testsuite/misc-ming.all/Makefile.am: fix check rule + when building with Ming < 0.4.0-beta2. + +2007-03-09 Sandro Santilli + + * configure.ad: Add MAKESWF_SUPPORTS_PREBUILT_CLIPS conditional. + * extensions/dejagnu/dejagnu.cpp, extensions/fileio/fileio.cpp: + Use builtin_function and init_member for members initialization. + * server/as_value.{cpp,h}, server/vm/ASHandlers.cpp, + server/vm/action.cpp: Drop C_FUNCTION as_value type. + WARNING: attempts to initialize as_values with + a function pointer will now result in BOOLEAN values !! + The compiler will warn you about this, but make sure + you enable warnings. + * server/: sprite_instance.cpp, textformat.cpp, + video_stream_instance.cpp, edit_text_character.cpp: + Use builtin_function for function as_values. + +2007-03-09 Tomas Groth Christensen + + * libbase/LoadThread.{h,cpp}: Added implementation of a download thread. + * libbase/Makefile.am: Included LoadThread.{h,cpp}. + * libbase/curl_adapter.cpp, libbase/noseek_fd_adapter.cpp, + libbase/tu_file.{h,cpp}, libbase/zlib_adapter.cpp: Removed + get_cur_stream_size(), instead used LoadThread::getBytesLoaded(). + * server/asobj/NetConnection.cpp: Use LoadThread. + * server/asobj/NetStream.{h,cpp}, server/asobj/NetStreamFfmpeg.{h,cpp}, + server/asobj/Sound.{h,cpp}, server/asobj/SoundFfmpeg.{h,cpp}: Fixed + compilation with newer FFMPEG versions. + +2007-03-09 Sandro Santilli + + * server/asobj/xmlsocket.cpp: use call_method() and call_method0() + rather then duplicate its implementation. + * server/asobj/xml.cpp: use call_method() rather then + duplicate its implementation. + * server/as_environment.cpp: include index in registers dump. + * server/vm/ASHandlers.cpp (ActionEnumerate, ActionEnumerate2): + Make 'for (i in )' an ASCODING error. + * server/: sprite_instance.{cpp,h}, character.{cpp,h}: + Moved getNextUnnamedInstanceName() from sprite_instance + to character, for use withing other character types + (like buttons) and use a single counter for the whole + application. + +2007-03-09 Sandro Santilli + + * server/asobj/Object.cpp: remove TESTING + warnings for getOwnProperty, isPrototypeOf and + isPropertyEnumerable. Warn only once about unimplemented + watch and unwatch methods. + * server/vm/ASHandlers.cpp: warn only once about + Enum2 being in TESTING stage. + +2007-03-09 Sandro Santilli + + * server/as_object.{cpp,h}: add getOwnProperty and prototypeOf() + public methods. + * server/asobj/Object.cpp: implement Object.hasOwnProperty(), + Object.isPropertyEnumerable() and isPrototypeOf(); stub + Object.watch() and Object.unwatch(). + * testsuite/actionscript.all/Object.as: add tests for + Object.hasOwnProperty(), Object.isPropertyEnumerable() and + isPrototypeOf(); add TODO note for testing Object.watch() + and Object.unwatch(). + +2007-03-08 Udo Giacomozzi + + * server/character.h: drop m_enabled since nobody uses it + * server/button_character_instance.{h,cpp}: add "enabled" property + and receive mouse events only when enabled + +2007-03-08 Bastiaan Jacques + + * gui/gtk.cpp: Fix GTK/AGG redrawing upon expose events by switching + to the new invalidation interface. In this incarnation, only the area + which is newly exposed is redrawn. + +2007-03-08 Udo Giacomozzi + + * extensions/fileio/fileio.cpp: Fixed fread() + +2007-03-08 Sandro Santilli + + * server/as_object.h: new protected clearProperties() method. + * server/sprite_instance.cpp (restart): clear properties. + +2007-03-08 Sandro Santilli + + * server/sprite_instance.cpp (construct): + Ensure first frame is loaded, to eventually not waiting for + ::advance to call ::construct and finally remove the startup + lateny we're currently experiencing; + (restart): call construct() directly, rather then postponing + the call to ::adnvace and relying on the crappy + m_onload_event_called flag. + +2007-03-08 Sandro Santilli + + * server/character.h: document set_event_hanlder, + get_event_handler (as we're getting it wrong). + * testsuite/actionscript.all/MovieClip.as: + Test that the onLoad member of a MovieClip + can be set to any value. + * server/sprite_instance.{h,cpp}: drop unused + m_update_frame variable. (restart): simplify + and properly reset the displayList backup. + +2007-03-08 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + Add a check, seems PlaceObject2 tag should not define any functions + +2007-03-07 Sandro Santilli + + * gui/gtk.cpp: hook restart menu + * server/sprite_instance.cpp (restart): properly + clear the displaylist. Invalidated bounds could + likely be more fine-tuned. + +2007-03-07 Sandro Santilli + + * gui/gui.{h,cpp}: add play(), pause() and stop() methods, + change implementation to be semantically correct and not + mess with sprites playstate; Changed menu_* to non-statics + to properly acces state. I'm sure this will break fltk but + fixing should be easy with men_fun and bind1st.. + * gui/gtk.cpp: enable stop(), pause() and play() menu items. + * server/asobj/ContextMenu.cpp: Some more stubs. + * testsuite/actionscript.all/ContextMenu.as: Some more tests. + * server/as_value.cpp (to_bool) don't choke + when converting a movieclip value to a boolean. + * testsuite/actionscript.all/Boolean.as: + Add tests for convertion to boolean value. + +2007-03-07 Robert Millan + + * plugin/plugin.cpp: Guard the first argument to kill() for previously + unconsidered values. + +2007-03-07 Udo Giacomozzi + + * backend/render_handler_agg.cpp: fixed segfault #19223; set correct + visiblerect; fixed Range2d.width() usage; fixed getMaxY() usage + * extensions/fileio/fileio.{h,cpp}: implemented an experimental + scandir() function (may move to a separate extension); same story + for unlink() + * server/sprite_instance.cpp: Make sure clear_invalidated() is called + for sprites which currently have an empty DisplayList + * server/button_character_instance.{h,cpp}: Implemented correct behaviour + on button state change (invalidate only when needed, restart only + reappeared characters) + +2007-03-07 Sandro Santilli + + * testsuite/swfdec/: README, swfdec_gnash_tester: + Initial stuff to hook on swfdec testsuite. + +2007-03-06 Rob Savoye + + * missing: Update to newer version. + * mkinstalldirs: Update to newer version. + * Makefile.am: Add new "olpc" target to cross build RPM using a + non standard config triplet to force rpmbuild to work correctly, + since it doesn't support the vendor field. Add macros/incllist + macros/libslist to EXTRA_DIST. + * packaging/redhat/gnash.spec: Add support for cross building + RPMs. + * packaging/redhat/rpmrc: Config file for rpmbuild to convert non + standard config for geode-olpc into a standard i386-olpc-linux + build, but use the correct cross compiler. + * plugin/plugin.cpp: Cast away the const for MIME_TYPES_DESCRIPTION. + * plugin/klash/Makefile.am: Don't build klash.moc, it's built in + gui now. + * configure.ac: Remove --enable-fork option, it's unused. Get the + root directory to look for headers and libraries for a cross build + from GCC, as the path is different when building RPMs. + * cygnal/Makefile.am: Fix spelling of noinst_HEADERS. + * cygnal/README: Fix typo. + * extensions/Makefile.am: Add support for other directories for + building a distribution. + * extensions/gtk2/Makefile.am: Include from gui directory + too. Don't build test program by default for now. + * gui/Makefile.am: Add XML to include paths. + * gui/gnash.cpp: Disable network support for now. + * gui/gtksup.h: Return the GtkWidget handle of a window. + * libbase/Makefile.am: PTHREAD_LIBS should always be after + BOOST_LIBS. + * libbase/network.cpp: Tweak debug messages. Test for priviledged + ports. Add support for a blocking select when waiting for a + connection. + * macros/boost.m4: Break when the right path is found. + * macros/ffmpeg.m4: Handle multiple directories with -I when + setting topdir. Print a warning if avcodec.h is found, but + avformat.h is not. + * macros/gnashpkgtool.m4: Don't create an enable option for + everything, it's confusing. + * macros/kde.m4: Look in incllist as well as libslist for QT + headers. + * testsuite/Makefile.am: Add generic-testrunner.sh to dist_noinst_SCRIPTS. + * testsuite/misc-ming.all/Makefile.am: Add intervalTest.as to + EXTRA_DIST. + +2007-03-06 Bastiaan Jacques + + * backend/render_handler_agg.cpp: Fix an off-by-one error causing + invalid memory accesses. Use rint() instead of the missing round() + on OpenBSD 3.9. + * gui/fltk{.cpp, sup.h, _glue_agg.cpp, _glue_agg.h}: Reimplement AGG + clipping using the new interfaces. + * macros/boost.m4: Fix order of lines so that the value of LIBS is + properly restored. Fixes bug #19211. + * server/asobj/Date.cpp: Add an implementation (written by Sandro) + of trunc for platforms that don't define it, e.g. OpenBSD 3.9. + +2007-03-06 Sandro Santilli + + * server/as_value.cpp (to_to_string): positive Infinity + doesn't have the plus sign prepended (at least for SWF5, didn't + check with other targets). + * server/vm/ASHandlers.cpp (ActionCallMethod): properly + setup the 'this' pointer when not specified in the tag + itself as the object parameter. + * server/vm/ActionExec.{h,cpp}: + Add a _this_ptr member and a getThisPointer() function + for use with function calls. + * server/swf_function.cpp (operator()): setup the this_ptr + in ActionExec instance. + * testsuite/misc-mtasc.all/function.as: unexpect last failure. + Looking for more failures now... + +2007-03-06 Sandro Santilli + + * testsuite/misc-mtasc.all/function.as: + Add a (succeeding) test for 'this' pointer being correctly set + on ActionCallMethod with *defined* name. + +2007-03-06 Udo Giacomozzi + + * libgeometry/snappingrange2d.h: do not call combine_ranges() too + often + +2007-03-06 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionCallMethod): when method name + is undefined, we must use the provided object's constructor. + * testsuite/misc-mtasc.all/function.as: add (failing) test for + 'this' pointer being correctly set on ActionCallMethod. + +2007-03-06 Ann Barcomb + + * server/asobj/xmlsocket.cpp: convert init_member to new + syntax. + +2007-03-06 Sandro Santilli + + * server/as_object.cpp (instanceOf): made circular inheritance an + aserror. + * testsuite/actionscript.all/Inheritance.as: test circular inheritance + detection. + * server/vm/ASHandlers.cpp (ActionWith): survive empty 'with' blocks. + * testsuite/actionscript.all/with.as: test empty 'with' block. + +2007-03-06 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Round outline edge anchor points to + eliminate anti-aliasing blur and to do it the MM way...; draw outlines + always with at least 1.0 pixels width + * libgeometry/snappingrange2d.h: Implement growBy() + * gui/gui.cpp: grow invalidated ranges by 2 pixels to solve anti-aliasing + and outline displacement problems + +2007-03-06 Sandro Santilli + + * testsuite/misc-mtasc.all/: Makefile.am, TestClass.as, function.as: + Testcase for ActionCallMethod showing the 'this' pointer is not + correctly set in Gnash when we lack a method name. + * server/vm/ASHandlers.cpp (ActionCallMethod): use object as a + function when method name is undefined. This makes a step + forward with laszlo, altough I'm not sure about wheter + the 'this' pointer is correctly set to the function itself. + * server/debugger.{h,cpp}: use unsigned types for register indexes; + properly accept *const* string refs. + +2007-03-05 Sandro Santilli + + * utilities/processor.cpp: don't call gnash::clear, I suspect + we're unable to properly cancel loading threads, and this + being the cause for the occasional segfaults raising on + 'make check' (to be confirmed, hopefully). + +2007-03-05 Ann Barcomb + + * server/asobj/xmlnode.cpp: convert init_member to new + interface. + +2007-03-05 Sandro Santilli + + * server/: character.h, sprite_instance.{h,cpp}: + Add character::unload() virtual method to properly unload + child elements. + * server/dlist.cpp: call character::unload() rather then + directly invoking the UNLOAD event. + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + Do not expect failures of unload event execution. + +2007-03-05 Ann Barcomb + + * doc/C/internals.xml: section 'ActionScript Support' was updated + in an attempt to describe the current interface. + +2007-03-05 Sandro Santilli + + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + Add onLoad *clip* event and verify that having the clip event + defined triggers actual execution of the the onLoad event + for it (even the user-defined one!). + * libgeometry/snappingrange.h: add visit() templated function. + * server/parser/movie_def_impl.h, server/parser/movie_definition.h: + Document movie_definition::get_bytes_total(). + * testsuite/misc-ming.all/Makefile.am: enable run + of action_execution_order_extend_test by 'make check'. + +2007-03-05 Zou Lunkai + + * testsuite/misc-ming.all/action_execution_order_test.c: Comments fix. + * testsuite/misc-ming.all/action_execution_order_extend_test.c: + A new testcase for testing action execution order. + +2007-03-04 Tomas Groth Christensen + + * libbase/curl_adapter.cpp: Added support for getting the total size + of file being downloaded (get_stream_size()), and the current cached + size (get_cur_stream_size()). + * libbase/tu_file.{cpp,h}: Added get_size() and get_cur_size() which + uses get_stream_size() and get_cur_stream_size(). + * libbase/noseek_fd_adapter.cpp, libbase/zlib_adapter.cpp: Added dummy + support for get_stream_size() and get_cur_stream_size() + * server/asobj/NetConnection.{cpp,h}: Switched to use StreamProvider + * server/asobj/NetStream.{cpp,h}, server/asobj/NetStreamFfmpeg.{cpp,h}, + server/asobj/NetStreamGst.{cpp,h}: Added support for the bytesLoaded + and bytesTotal property. + +2007-03-03 Sandro Santilli + + * server/as_value.h: add ALLOW_C_FUNCTION_VALUES to prepare + for dropping C_FUNCTION value types as a whole. Undefine + it to make finding bogus uses easier and finish the + work in asobj/. + * server/asobj/: MovieClipLoader.cpp, Number.cpp, Object.cpp, + Selection.cpp, SharedObject.cpp, Sound.cpp, Stage.cpp, + System.cpp, TextSnapshot.cpp, Video.cpp, xml.cpp: + Use builtin_function when initializing methods. + * server/asobj/: Boolean.cpp, Camera.cpp, Color.cpp, + ContextMenu.cpp, CustomActions.cpp, Date.cpp, Error.cpp, + Global.cpp, Key.cpp, gLoadVars.cpp, LocalConnection.cpp, + Math.cpp, Microphone.cpp, Mouse.cpp, NetConnection.cpp, + NetStream.cpp: + Use builtin_function when initializing methods. + +2007-03-03 Sandro Santilli + + * server/as_value.{cpp,h}: always check for real type + of an as_object to properly set type to AS_FUNCTION + for actual as_function instances. always check + for NULL pointers to properly set type to NULLTYPE. + Fixes latest tests in Function.as. + * server/: as_object.h, as_function.h: + Add virtual to_function() method to reduce RTTI use. + * testsuite/actionscript.all/Function.as: + Test using 'this' as a constructor. Doesn't currently + work becase the 'this' as value is initialized to be + of kind OBJECT rather then AS_FUNCTION (as_value constructor + by as_object doesn't check real type). + +2007-03-03 Martin Guy + + * server/as_value.cpp: More conservative version of NAN fixes. + * testsuite/actionscript.all/Date.as: Check for Date.UTC() existing + and working even before a Date object is instantiated. + +2007-03-03 Bastiaan Jacques + + * gui/gtk.cpp: Don't neglect to render the buffer for renderers other + than AGG. + * gui/fltk.cpp: Invalidate the whole drawing area, which now appears + to be a requirement for Agg when we choose not to let the GUI deal with + clipping. + * gui/sdl_agg_glue.cpp: Idem dito. + +2007-03-03 Martin Guy + + * server/as_value.cpp: Revert "NaN" change: it makes all GUI canvasses + 0-sized (!) + * server/asobj/XMLNode.cpp: Fix garbled code in {previous,next}Sibling + +2007-03-03 Martin Guy + + * testsuite/actionscript.all/Number.as: Add test for unary minus + * testsuite/actionscript.all/Date.as: Turn "date" temp var into "d" + * testsuite/actionscript.all/TODO: Check result of call to undefined fn + * server/as_value.cpp: Return NAN for bad arguments + * server/asobj/Date.cpp: Fix compiler warning + * server/asobj/xmlnode.cpp: Remove unused vars, highlight 2 bugs + * server/asobj/xml.cpp: Remove unused vars, reproduce commentary + * server/asobj/shape.cpp: Highlight possible bug + * backend/render_handler_ogl.cpp: Removed unused variables + * gui/gtk.cpp: Fix compiler warning signed/unsigned + +2007-03-02 Sandro Santilli + + * server/as_environment.{cpp,h}, server/swf_function.cpp: + Registers must also be stacked between function calls, + like local vars. + With this commit I put local registers, local variables + and a function pointer into a CallFrame struct + and stack that directly. pushCallFrame() and popCallFrame() + now replace the add_frame_barrier/set_local_frame_top things. + This commit fixes the testcase under misc-mtasc.all ! + * server/vm/ASHandlers.cpp (ActionVar): + Ignore local variable declarations in non-function + context, and make it an aserror. + * server/vm/ASHandlers.cpp (ActionNew): add missing + premature return on malformed SWF. + * server/debugger.{cpp,h}: proxy local variables and + registers dumping to as_environment funx. + +2007-03-02 Udo Giacomozzi + + * testsuite/libgeometry/snappingrangetest.cpp: Testcase for snapping + ranges + * libgeometry/snappingrange.h: drop DSOLOCAL + +2007-03-02 Rob Savoye + + * macros/libslist: Add /usr/X11/lib, without the usual R6. + * macros/incllist: Add /usr/X11/include, without the usual R6. + +2007-03-02 Sandro Santilli + + * testsuite/misc-mtasc.all/inheritance.as: + Add more tests, more failing ! + +2007-03-01 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionNewMethod): + Use object parameter as *the* function if method name is + undefined; check that the constructor is actually a function; + (ActionNew) check that the constructor is actually a function; + (constructor_object) assert that the constructor is a function. + * testsuite/misc-mtasc.all/inheritance.as: + Add test provided by P T Withington for debugging + problems with OpenLaszlo foundation classes. + +2007-03-01 Tomas Groth Christensen + + * server/asobj/NetConnection.cpp: Added support for relative path. + * server/asobj/NetStreamFfmpeg.cpp: include sound_handler.h. + +2007-03-01 Udo Giacomozzi + + * server/video_stream_instance.cpp: simplify add_invalidated_bounds() + * libgeometry/snappingrange.h: Clarify comment; use initialization list + in constructor; some minimal changes + * backend/render_handler.h, libgeometry/snappingrange.h: fixed some compiler + warnings + * server/gnash.h, server/types.cpp: introducing cxform::is_invisible() + * server/sprite_instance.cpp: treat cxform.alpha==0 like !m_visible + +2007-03-01 Zou Lunkai + + * server/dlist.cpp: keep function declaration consistent with the headfile; + libamf/amf.cpp: typos, get rid of warnings for vc8 compiler. + +2007-03-01 Sandro Santilli + + * testsuite/actionscript.all/: array.as, Function.as + Don't expect failures when checking for missing + apply/call in SWF5. + * server/as_function.cpp (getFunctionPrototype): + Don't register 'apply' and 'call' members if + SWF < 6; use builtin_function when registering them. + * testsuite/actionscript.all/String.as: + Add test for 'substring' with base == length; + Fix test for SWF5 (no Function.call or Function.apply + there) + * server/vm/ASHandlers.cpp (ActionGotoExpression): + Simplified function, reduced emitted warnings; + (ActionSubString): fix case in which base is == length. + * server/asobj/Global.cpp: register Stage object always. + * server/asobj/Stage.cpp: don't register addListener + and removeListener if SWF < 6. + * testsuite/actionscript.all/Stage.a: update after fix. + +2007-02-28 Sandro Santilli + + * libgeometry/Range2d.h (scale): allow the scaled range to be + monodimensional in any direction. + * gui/gui.cpp: removed extra tokens at end of #include directive. + * libgeometry/snappingrange.h: strip CRs, fix contains(), copyright + notice and doxygen formatting. + * testsuite/DummyCharacter.h: update to add_invalidated_bounds + (would not need if character provided a default implementation :) + +2007-02-28 Udo Giacomozzi + + * backend/render_handler.h, + gui/fb.cpp, gui/fbsup.h, gui/gtk.cpp, gui/gtksup.h, gui/gui.cpp, + gui/gui.h, + server/button_character_instance.cpp, + server/button_character_instance.h, + server/character.cpp, + server/character.h, + server/dlist.cpp, + server/dlist.h, + server/edit_text_character.cpp, + server/edit_text_character.h, + server/generic_character.cpp, + server/generic_character.h, + server/movie_root.cpp, + server/movie_root.h, + server/render.cpp, + server/render.h, + server/sprite_instance.cpp, + server/sprite_instance.h, + server/video_stream_instance.cpp, + server/video_stream_instance.h: replace single invalidated bounds + with new, abstract InvalidatedRanges class and + add_invalidated_range() function to support multiple ranges. + * gui/gtk_glue_agg.cpp: corrected calculation of width/height + * backend/render_handler_agg.cpp: Redesigned and optimized rendering + engine; avoid re-calculation of edges for sub-shapes; re-use AGG + paths; initialize AGG styles only once + * libgeometry/snappingrange.h, libgeometry/Makefile.am: new class + for 2D range lists + * testsuite/MovieTester.cpp: Adapted to work with multiple ranges + * testsuite/misc-ming.all/loadMovieTestRunner.cpp: add return value + + +2007-02-28 Sandro Santilli + + * testsuite/: Makefile.am, DummyCharacter.h: + Dummy character instance for use in test cases. + * testsuite/server/: Makefile.am, DisplayListTest.cpp: + Initial test for DisplayList (just tests equality + and inequality operators). + * server/dlist.{cpp,h}: Add equality, inequality + and output operators. + +2007-02-28 Sandro Santilli + + * server/array.cpp: use builtin_method for builtin + methods :) ensure the 'this' pointer passed + to builtin methods is valid. + * testsuite/actionscript.all/array.as: + Add test for calling Array builtin functions + using FUnction.call. + +2007-02-28 Sandro Santilli + + * server/asobj/gen-asclass.sh: updated to + use new, more robust and more correct layout. + * server/asobj/string.cpp: robustness and + correctness improvements: use builtin_function, + not c_function for buildin methods; make sure + methods are applied to a String instance. + * testsuite/actionscript.all/String.as: add a + test for builtin methods being allowed to be + called using Function interface + (String.prototype.slice.call: just a small example) + +2007-02-28 Sandro Santilli + + * server/vm/ASHandlers.cpp: use log_aserror for + ActionScript errors; (ActionExtends): check + that the thing being extended is a function !! + +2007-02-28 Sandro Santilli + + * testsuite/actionscript.all/String.as: add + test for read-only nature of 'length' property; + fix test for SWF5 target. + +2007-02-28 Sandro Santilli + + * server/swf.h: add reference to ActionConstantPool + description + * server/parser/action_buffer.h (read_int16): + Use int16_t type, not 'int'. + * server/parser/action_buffer.cpp (process_decl_dict): + Use int16_t type, not 'int'. + * server/vm/ActionExec.{cpp,h} (operator()): + Additional SWF consistency check for action 'length' + field. + +2007-02-28 Sandro Santilli + + * server/vm/ActionExec.{cpp,h}: Survive malformed + SWF containing + * server/as_function.cpp: fix Function.apply() + and Function.call() to correctly fetch the + 'this' pointer (ie: not accessing the stack + directly). + * server/swf_function.{h,cpp}: properly setup + the 'arguments' variable at dispatch time. + * testsuite/actionscript.all/Function.as: + Test the 'arguments' variable in function context. + * server/array.{cpp,h}: allow resize trough + setting the 'length' property. + * testsuite/actionscript.all/array.as: test + that arrays 'length' is settable. + +2007-02-28 Markus Gothe + + * server/asobj/Date.cpp: #define NAN (0.0/0.0) as this is not comp. + with C++98 and non-GCC compilers borks. + * gui/gtk.cpp: Added '//' before commentary. + +2007-02-27 Martin Guy + + * server/asobj/Date.cpp: Implement Date.UTC(). It is not yet + initialised properly (Date.UTC() still gives undefined) + * testsuite/actionscript.all/Date.cpp: Test Date.UTC() + * server/asobj/Global.cpp: remove oxbow code. + * server/asobj/Global.cpp: bugfixen: log_aserror is (now?) printf-like + * server/asobj/string.cpp: bugfixen: log_aserror is (now?) printf-like + +2007-02-27 Sandro Santilli + + * libgeometry/Range2d.h: add contains(Range2d) method. + * testsuite/libgeometry/Range2dTest.cpp: Add tests for 'contains'. + +2007-02-27 Sandro Santilli + + * backend/Makefile.am, backend/sound_handler.h, + backend/sound_handler.cpp, backend/sound_handler_gst.h, + backend/sound_handler_sdl.h, extensions/Makefile.am, + gui/Player.cpp, gui/Player.h, gui/gtk.cpp, gui/gui.cpp, + server/Makefile.am, server/button_character_instance.h, + server/gnash.h, server/impl.cpp, server/impl.h, + server/mouse_button_state.h, server/sound.cpp, server/sound.h, + server/sprite_instance.cpp, server/asobj/Sound.cpp, + server/asobj/SoundFfmpeg.cpp, server/asobj/SoundGst.cpp, + server/asobj/SoundMad.cpp, server/parser/Makefile.am, + server/parser/button_character_def.cpp, + server/parser/button_character_def.h, + server/parser/movie_def_impl.cpp, + server/parser/sound_definition.cpp, + server/parser/sound_definition.h, server/swf/tag_loaders.cpp, + server/vm/ASHandlers.cpp, server/vm/action.cpp, + testsuite/Makefile.am, testsuite/MovieTester.cpp, + testsuite/MovieTester.h, testsuite/sound_handler_test.h, + testsuite/actionscript.all/LoadVars.as, + testsuite/misc-ming.all/Makefile.am, + testsuite/misc-mtasc.all/hello.as, + testsuite/movies.all/Makefile.am, testsuite/samples/Makefile.am: + Files scramble. sound_handler has now it's own header, sound.{cpp,h} + has been moved to parser/sound_definition.{cpp,h}. + +2007-02-26 Markus Gothe + + * extensions/fileio/Makefile.am: Added {PTHREAD,BOOST}_CFLAGS + +2007-02-26 Sandro Santilli + + * server/impl.cpp, server/swf/tag_loaders.{cpp,h}: + Add support for IMPORTASSETS2 (an SWF8 tag). + +2007-02-26 Sandro Santilli + + * server/parser/sprite_definition.h: don't check + for movie definition being NULL as we're not allowing + this anymore. + * server/parser/sprite_definition.cpp (ctor) *require* + a movie_definition as we'll need it for a few things, + including getVersion.. + * server/generic_character.h: store character_def + by intrusive_ptr ! + * server/sprite_instance.{cpp,h}: new add_textfield method; + fix add_empty_movieclip to provide a movie_definition to + sprite-definition constructor; handle dynamic sprites + when calling getBytestLoaded/getBytesTotal. + +2007-02-26 Sandro Santilli + + * testsuite/actionscript.all/Inheritance.as: + a couple of additional tests for accessing + a function's prototype after a call to + 'extends'. + * testsuite/misc-ming.all/RollOverOutTest.c: don't + use Ming-specific 'gotoFrame' ActionScript syntax. + * testsuite/misc-ming.all/gotoFrame2Test.as: don't + use Ming-specific 'gotoFrame' ActionScript construct. + With newer Ming versions (0.4.0.beta4 up) the gotoAndPlay() + call will be converted to GOTOFRAME2 nonetheless. + * server/vm/ASHandlers.cpp (ActionGotoExpression: + Frame are 1-based when referred to by Flash coders. + * testsuite/samples/Makefile.am: + Enabled run of GotoAndPlayTest.swf self-contained + testcase. + +2007-02-26 Sandro Santilli + + * server/parser/morph2_character_def.cpp (display): + survive malformed SWF (mismatching number of paths + or edges in start and end shape); (read): warn + about malformed swf. Fixes bug #19085. + +2007-02-26 Sandro Santilli + + * testsuite/misc-mtasc.all/: Makefile.am, inheritance.as: + Test inheritance using MTASC. + * server/swf_function.cpp: 'super' in function2 register is now + tested, don't warn anymore. + +2007-02-25 Sandro Santilli + + * libbase/URL.cpp (encode,decode): support ' ' <=> '+' conversion. + * server/asobj/LoadVars.cpp: add support for LoadVars.sendAndLoad(). + +2007-02-25 Sandro Santilli + + * libbase/curl_adapter.cpp: implemented seek_to_end + for curl-based stream. + * server/as_object.cpp (enumerateProperties): + Fix wrong 'this_ptr' send to PropertyList::enumerateKeyValue() + +2007-02-25 Sandro Santilli + + * libbase/URL.{cpp,h}: add encode() and decode() + public static functions. + * server/asobj/Global.cpp (escape/unescape): + Use URL::encode and URL::decode. + +2007-02-25 Sandro Santilli + + * server/PropertyList.{cpp,h}: add + enumerateKeyValue() method; renamed + enumerateValues to enumerateKeys (makes more sense). + * server/as_object.{cpp,h}: + add enumerateProperty() overloaded function to + write properties to a std::map + * testsuite/server/PropertyListTest.cpp: add + test for enumerateKeyValue(). + +2007-02-25 Sandro Santilli + + * server/asobj/NetConnection.{cpp,h}: + Allow build w/out libcurl. + * extensions/fileio/Makefile.am: fix + 'make check' and 'make dist' rules. + * server/asobj/LoadVars.cpp: implemented + LoadVars.loaded property. + * testsuite/actionscript.all/LoadVars.as: + Test LoadVars.loaded. + +2007-02-25 Markus Gothe + + * macros/libslist: Check in lib32 before lib64. + * utilities/processor.cpp: Fixed optopt as extern ifndef _GNUC_ + * macros/boost.m4: Generic approach to test date-time. + * testsuite/libbase/Makefile.am: Fixed $(NULL)-bug. + * server/asobj/Date.cpp: Removed extra ; thus letting gcc compile + it with -pedantic. + * libbase/embedVideoDecoder.h: Removed errornous ','. + * server/asobj/LoadVars.cpp: Fixed "LoadVars.cpp:160: error: ISO C++ + forbids variable-size array 'buf'" + * server/asobj/Number.cpp: \%s -> %s. + +2007-02-24 Sandro Santilli + + * testsuite/actionscript.all/Math.as: + Fix testcase to reflect actual behaviour when SWF target + version is < 7. + * server/asobj/LoadVars.cpp: + Made code more robust, and hopefully also cleaner. + * utilities/processor.cpp: + Fix waitforadvance handling. Wait 5 seconds before + kicking movie to next frame. This allows for testing + intervals and similar time-dependent features. + * testsuite/actionscript.all/LoadVars.as: + Add test for LoadVars.load, LoadVars.getBytesTotal, + LoadVars.getBytesLoaded and LoadVars.onLoad. + +2007-02-23 Sandro Santilli + + * server/asobj/LoadVars.cpp: + Use Timers to avoid premature deletion + of the LoadVars object while it's loading + threads are still alive. + +2007-02-23 Udo Giacomozzi + + * configure.ac: Fix some minor typos + +2007-02-23 Rob Savoye + + * configure.ac: Add --with-pixelformat=option to set the AGG pixel + format via the command line to override the defaults if + desired. Exit if one of the values for --with-pixelformat is + bogus. + +2007-02-23 Sandro Santilli + + * testsuite/media/: vars.txt, vars2.txt: data + files for use with LoadVars and loadVariables + tests. + * server/as_function.h: add a call() function + to make operator() calls nicer when having + an as_function pointer. + * server/asobj/LoadVars.cpp: implement getBytesLoaded, + getBytesTotal, onLoad and onData events, load() method. + * server/StreamProvider.{cpp,h}: turn into + a singleton, add getStream() version taking + post data. + * server/impl.cpp: use the StreamProvider singleton. + +2007-02-23 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Use PIXELFORMAT_xxx defines + introduced by Rob + +2007-02-22 Rob Savoye + + * configure.ac: Set the pixel type when using AGG for better + efficiency by looking at the GUI type. Print out MySQL paths if + extensions are enabled. Don't build klash if KDE isn't found. + +2007-02-22 Udo Giacomozzi + + * server/sprite_instance.cpp: Respect m_old_invalidated_bounds even + when invisible. + +2007-02-22 Sandro Santilli + + * libbase/curl_adapter.cpp: + Use a member to store post data, as it + needs a longer lifetime for libcurl to work. + * testsuite/libbase/Makefile.am: + Don't run CurlStreamTest by 'make check' + as it's not ready for automatic testing. + * testsuite/libbase/CurlStreamTest.cpp: + Turn the test into a tool supporting POST + operations (for manual testing it). + +2007-02-22 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp: Removed the use of ffdec_mp3 since + it isn't recommended by gstreamer. Added warnings if the used + version of the fluendo-mp3-plugin is too low. + +2007-02-22 Udo Giacomozzi + + * backend/render_handler_agg.cpp, backend/render_handler_agg_style.h: + Switched to pre-multiplied pixel values. Fixes some anti-aliasing + issues and improves rendering performance, especially for gradients. + * backend/render_handler_agg.cpp: + Avoid re-initialisation of AGG path class inside for-loop. + * extensions/fileio/fileio.cpp: Fixed fgets() to avoid segfaults; + call fclose() in destructor to close file descriptor in any case. + * server/movie_root.h: Provided write access for m_timer + * gui/fb.cpp: Update global timer to make getTimer() work + at least with the FB GUI + +2007-02-22 Sandro Santilli + + * libbase/curl_adapter.{cpp,h}: + Add support for http POST (untested). + +2007-02-21 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: + Define MEDIADIR + * testsuite/actionscript.all/check.as: + Provide MEDIA() macro to easy access to + paths in testsuite/media directory. + +2007-02-21 Sandro Santilli + + * libbase/log.{cpp,h}: add log_debug and used + for GNASH_REPORT_FUNCTION. + * server/asobj/Global.cpp, server/vm/ASHandlers.cpp: + Changed trace() function to use log_trace. + +2007-02-21 Tomas Groth Christensen + + * backend/sound_handler_{gst,sdl}.cpp: Removed newline from warnings, and + added more user help. + * macros/ffmpeg.m4: Yet another go at bug #16663. + +2007-02-21 Tomas Groth Christensen + + * configure.ac, macros/ffmpeg.m4: Another go at bug #16663. + * backend/sound_handler_gst.cpp: Added warnings when using fluendos + mp3 plugin for gstreamer, since it doesn't support soundstreams. + +2007-02-21 Sandro Santilli + + * server/sprite_instance.cpp (do_actions): report actions + execution with -va. + * server/vm/ASHandlers.cpp: Store number of arguments + into an unsigned integer. Fixes an abort with a malformed + SWF. + * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: + Don't expect failures anymore ! + +2007-02-21 Tomas Groth Christensen + + * configure.ac, macros/ffmpeg.m4: Output warning when old ffmpeg-version + detected. Will hopefully fix bug #16663. + * gui/Player.cpp: Set the soundhandler to NULL when shutting down, Will + hopefully fix bug #18545. + * server/asobj/NetStreamFfmpeg.cpp, server/asobj/SoundFfmpeg.cpp, + server/asobj/SoundMad.cpp: Disconnect cleanly from the soundhandler, + if it exists. + * server/sound.{cpp,h}: Made sound_stream_tag into a state tag. + * testsuite/sound_handler_test.cpp: Increment the counting variables + stopped_all and started_all. + +2007-02-21 Sandro Santilli + + * server/Makefile.am, + server/swf/DefineFontAlignZonesTag.{cpp,h}: + Initial implementation of DefineFontAlignZones + tag loader (unfinished). + * server/impl.cpp: use unfinished loader for + DEFINEFONTALIGNZONES. + * server/stream.h: add skip_to_tag_end() method. + +2007-02-21 Sandro Santilli + + * server/font.{cpp,h}, server/impl.cpp, + server/swf/tag_loaders.{cpp,h}: + Add support for DEFINEFONT3 tag (not much done, + as Alexis report it to be equal to DEFINEFONT2 + in definition - needs support of DEFINEALIGNZONES + tag to be fully supported. + +2007-02-21 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, gotoFrame2Test.as: + Stubbed Udo's test as Ming source and build rule and test runner. + +2007-02-21 Udo Giacomozzi + + * testsuite/samples/GotoAndPlayTest.{as,swf}: Testcase for + gotoAndPlay() bug + +2007-02-21 Sandro Santilli + + * server/sound.{h,cpp}: made start_sound_tag a "state" + tag. This seems to fixes eventSoundTest1.swf, altoguth + it's runner still fails (a bug in the tester, most likely). + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: + Fixed input filename (sorry guys). + +2007-02-20 Sandro Santilli + + * server/sprite_instance.cpp (get_topmost_mouse_entity): + Check also drawable bounds ! + * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: + Don't expect failure with filled shapes making + the MovieClip grab mouse envets. Add another test + showing that non-filled shapes (simple lines) still + fail in this. + +2007-02-20 Sandro Santilli + + * server/sprite_instance.cpp (get_invalidated_bounds): + Include bounds of drawable instance. + * server/vm/with_stack_entry.h: add non-const + version of object() accessor. + * server/vm/ActionExec.{cpp,h}: add getTarget() + method to properly set "this" pointer for function + calls. + * server/vm/ASHandlers.cpp (ActionCallFunction): + Properly set the "this" pointer by fetching it + from ActionExec "thread" (looks in 'with' stack). + +2007-02-20 Sandro Santilli + + * testsuite/actionscript.all/with.as: add test for function + call in 'with' context (fails!). + * testsuite/misc-ming.all/eventSoundTest1-Runner.cpp: + Fix input filename; expect the failures (we'll be happy + to see XPASS messages :) + +2007-02-20 Tomas Groth Christensen + + * server/gnash.h: Added support for the new test-soundhandler. + * testsuite/sound_handler_test.{h,cpp}: Added. A soundhandler for + testing gnash. + * testsuite/Makefile.am: Added the new test-soundhandler. + * testsuite/MovieTester.{cpp,h}: Added support for the new + test-soundhandler. + * testsuite/misc-ming.all/{eventSoundTest1.c,eventSoundTest1-Runner.cpp}: + Added. Tests simple event sounds. + * testsuite/misc-ming.all/Makefile.am: Added the eventSoundTest1 + testcase and its runner. + * testsuite/media/sound1.mp3: Added. Used in the eventSoundTest1 + testcase. + +2007-02-20 Sandro Santilli + + * testsuite/misc-ming.all/: DrawingApi.as => DrawingApiTest.as, + DrawingApiTestRunner.cpp, Makefile.am: + Add a runner for DrawingApi test (failing). + +2007-02-20 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + RollOverOutTest-Runner.cpp, root_stop_testrunner.cpp: + Allow run of test runners from external dirs. + * configure.ac: report failign gstreamer detection + to refer to failign 0.10 or higher gstreamer + detection. + * testsuite/simple.exp: have CR also break lines. + * testsuite/misc-ming.all/attachMovieTestRunner.cpp: + Oops, SWF6 is converting stuff to lowercase, so + we need to get_member( "mousedown"/"mouseup" ) + rather then "mouseDown"/"mouseUp". + Don't expect a failure anymor ! :) + +2007-02-20 Sandro Santilli + + * testsuite/misc-ming.all/attachMovieTest.c: + print instance name on mouse down/up events. + * server/button_character_instance.cpp (on_button_event): + survive on unhandled event handler. + * server/character.{cpp,h}: add getter_setter for + onMouseDown, onMouseUp and onMouseMove; add has_mouse_event() + method. + * server/movie_root.{cpp,h}: + Add mouse listeners. Change key listeners to use std::set + (more appropriate) and to use intrusive_ptr (safer); + Notify mouse listeners on move and click events, don't + duplicate notification on *active* entity as these events + (mouse up,down,move) are not restricted to entity under the + mouse. + * server/sprite_instance.{cpp,h}: (on_event): if a builtin + handler is invoked, don't go look for functions; register + as a mouse listener if have mouse event handlers. + +2007-02-20 Udo Giacomozzi + + * extensions/fileio/fileio.cpp: Fixed some compiler warnings + +2007-02-19 Sandro Santilli + + * testsuite/misc-ming.all/: attachMovieTest.c, + attachMovieTestRunner.cpp: + Add onMouseDown and onMouseUp handlers to + exported symbol. Confirms bug #19040. + +2007-02-19 Rob Savoye + + * macros/boost.m4: Tweak patch for bug #18788 to work when cross + configuring. + +2007-02-19 Wil Mahan + + * configure.ac, macros/boost.m4: add check for libboost-date-time + (see bug #18788). + +2007-02-19 Tomas Groth Christensen + + * macros/ffmpeg.m4: The minimum LIBAVCODEC_VERSION is now 51.11.0. + Also we can now handle if VP6 (FFMPEG_VP6) or avcodec_decode_audio2() + (FFMPEG_AUDIO2) is not supported by the used version of ffmpeg. + * backend/sound_handler_sdl.cpp: Added support for FFMPEG_AUDIO2 + * libbase/embedVideoDecoderFfmpeg.cpp: Made use of the constructor and + deconstructor. Added support for FFMPEG_VP6. + * libbase/embedVideoDecoderGst.cpp: Made use of the constructor and + deconstructor. + * server/asobj/NetStreamFfmpeg.cpp: Added support for FFMPEG_AUDIO2. + * server/asobj/Sound.cpp: Use the supplied name when searching for exports. + * server/asobj/SoundFfmpeg.cpp: Added support for FFMPEG_AUDIO2. + Made the deconstructor work better. + * server/asobj/SoundGst.cpp: Made the deconstructor work better. + +2007-02-19 Sandro Santilli + + * server/: DynamicShape.{cpp,h}, sprite_instance.{cpp,h}: + Implement beginFill() and endFill() + * testsuite/misc-ming.all/DrawingApi.as: non-automatic + source for testing the drawing api. Feel free to add + calls there :) + +2007-02-19 Udo Giacomozzi + + * server/fill_style.h: add missing return type + * gui/fb.cpp: add support for eGalax/eTurbotouch touchscreens; + use persistent buffer for PS/2 mice also + +2007-02-19 Sandro Santilli + + * server/fill_style.{cpp,h}: add setSolid() method. + +2007-02-19 Sandro Santilli + + * server/parser/shape_character_def.{h,cpp}: removed calls + for dynamic drawing. Use DynamicShape instead. + * server/: Makefile.am, DynamicShape.{cpp,h}: + New subclass of shape_character_def to abstract dynami drawing + * server/sprite_instance.{cpp,h}: + Implement lineStyle, moveTo, lineTo methods of MovieClip + class. This works by maintaining a DynamicShape member. + * server/parser/BitmapMovieDefinition.{cpp,h}: use + a DynamicShape rather then a shape_character_def. + +2007-02-19 Sandro Santilli + + * server/shape.{cpp,h}: new empty() and close() + methods. + +2007-02-18 Rob Savoye + + * plugin/.klash/Makefile.am: Install klashpartui.rc, + klash_part.desktop, and pluginsinfo in their correct + directories. bug #190821. + +2007-02-17 Sandro Santilli + + * server/parser/shape_character_def.{cpp,h}: + Changed signature of add_fill_style and + add_line_style to take into account reuse + of existing styles and to abstract offset + semantic (1-based). + * server/parser/BitmapMovieDefinition.cpp: + Update call to add_fill_stle; don't make + assumption about offset of the newly added + style. + +2007-02-16 Martin Guy + + * doc/C/sources.xml: Correct Debian dev package names. + * server/asobj/Date.cpp: Remove commentary copied from sephiroth; + it was lifted straight from MacroMedia copyright material + (see http://www.brajeshwar.com/reference/as2) + * server/asobj/Date.cpp: Document incompatabilities with FlashPlayer. + * server/asobj/Math.cpp: Remove unused and duplicate code. + * server/asobj/Math.cpp: Don't abort on missing args; return NAN + * testsuite/actionscript.all/Math.as: Add test suite for Math methods. + * testsuite/actionscript.all/Makefile.am: Add Math.as to tests to run. + +2007-02-16 Sandro Santilli + + * testsuite/misc-ming.all/consecutive_goto_frame_test.c: + Visually trace action execution, use C-style comments. + * server/sprite_instance.cpp (advance_sprite): + always update oldDisplayList, not only when in PLAY state ! + * testsuite/misc-ming.all/action_execution_order_test.c: + Check UNLOAD being called only *once* (proper management + of oldDisplayList). + +2007-02-16 Sandro Santilli + + * testsuite/misc-ming.all/consecutive_goto_frame_test.c: + reduce frame rate to 1 frame per second. + Shows that all actions (up to the final stop) are + executed at the first advancement (are *supposed* to work like that) + * server/sprite_instance.cpp (add_display_object): + don't check for "events" match when comparing existing + char at given depth. Fixes move_object_test.swf. + * testsuite/misc-ming.all/: Makefile.am, move_object_test.c: + Test unnamed instances handling on restart, and also test + for syntetized instance names. + +2007-02-16 Udo Giacomozzi + + * server/sprite_instance.cpp: Removed name check to get sprites + moved to their correct position after a loop + +2007-02-16 Sandro Santilli + + * server/dlist.{h,cpp}: don't dispatch UNLOAD event + unless explicitly requested by caller. + * server/sprite_instance.cpp: properly dispatch + UNLOAD event on just-removed chars. + * testsuite/misc-ming.all/action_execution_order_test.c: + Added an additional test for order of onLoad event call. + +2007-02-16 Sandro Santilli + + * server/sprite_instance.cpp: + Warn only once about unsupported stuff; Provide + the *unimplemented* MovieClip.moveTo method. + * testsuite/actionscript.all/MovieClip.as: don't + expect failure in checking moveTo. + +2007-02-16 Sandro Santilli + + + * server/asobj/: Color.cpp, Sound.cpp: + Warn only once about unsupported stuff; don't terminate + log_ with a newline (will be added); properly + tag ActionScript errors (log_aserror, and protect by + IF_VERBOSE_ASCODING_ERRORS). + * server/sprite_instance.{cpp,h}: Fixed (hopefully) + the action execution order. Implementation is far + from elegant, but gives the idea of how it should work, + and actually passed our test for it, w/out breaking + anything else. + * testsuite/misc-ming.all/action_execution_order_test.c: + Add an additional test to verify that function definitions + are not specially handled as it comes to action execution + order. Don't expect failures anymore. + * server/dlist.{cpp,h}: add clear_except() override taking + a DisplayList as argument. Add a call_unload argument + for both clear_except() methods; add empty() method; + add clear() override taking a DisplayList as argument. + * utilities/processor.cpp: add -f switch to control + the number of "advance" calls on the top movie. + +2007-02-15 Sandro Santilli + + * server/parser/movie_definition.h: documented get_frame_size(). + * server/parser/BitmapMovieDefinition.h (get_{width,height}_pixels): + use TWIPS_TO_PIXELS for consistency with movie_definition. + * server/parser/BitmapMovieDefinition.cpp (getShapeDef): use 1 twip + per image pixel while drawing. + +2007-02-15 Rob Savoye + + * doc/C/gtkext.xml: Chapter on the Gtk extension. + * doc/C/mysqlext.xml: Chapter on the MySQL extension. + * doc/C/fileext.xml: Chapter on the File I/O extension. + * doc/C/Makefile.am: Add new files to dependencies. + + * doc/C/extensions.xml: New file on the extension mechanism, and + on writing extensions. + * doc/C/gnash.xml: Add extensions chapter. + + * extensions/gtk2: New directory for Gtk2 API extension. + * extensions/gtk2/hello.as: The well known Gtk "Hello" example + program written in ActionScript. + * extensions/gtk2/gtkext.{cpp,h}: Wrappers for the Gtk2 API to + export it into Gnash. + +2007-02-14 Udo Giacomozzi + + * server/BitmapMovieInstance.cpp, server/parser/BitmapMovieDefinition.cpp: + Corrected JPG scale + +2007-02-14 Sandro Santilli + + * server/: movie_instance.cpp, movie_root.cpp: move + tu_random reset from movie_instance to movie_root + (random number generation should be taken care at global level); + Have movie_instance::advance call ::construct() rather + then manually executing frame tags. + * testsuite/misc-ming.all/action_execution_order_test.c: + Add an additional complexity to the test, checking + for proper DisplayList construction to happen *before* + actions execution. + * server/asobj/xmlnode.cpp: fix getter-setters for read-only + properties to survive attempts to set (logging the aserror). + +2007-02-14 Rob Savoye + + * testsuite/actionscript.all/XMLNode.as: Fix tests for newly work + XLNode class. + * server/asobj/xmlnode.{cpp,h}: Make nextSibling, previousSibling, + firstChild, and lastChild work correctly. + +2007-02-14 Sandro Santilli + + * server/swf/tag_loaders.{cpp,h}: implement serialnumber_loader. + * server/impl.cpp: register SERIALNUMBER loader. + * server/stream.{h,cpp}: add read_string_with_lenght() function + taking length as argument; add get_tag_length() function + returning length of current tag. + +2007-02-14 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp, server/asobj/NetStreamFfmpeg.{h,cpp}, + server/gnash.h: Changed the aux_streamer_ptr callback to return bool. + * libbase/gstgnashsrc.h, server/asobj/NetStreamGst.cpp: Moved definition + of gnash_plugin_desc to registering file to avoid multiple definitions. + * server/asobj/SoundGst.{cpp,h}, server/asobj/SoundFfmpeg.{cpp,h}, + server/asobj/SoundMad.{cpp,h} Added FFMPEG, Gstreamer and libmad + backends for the Sound class. + * server/asobj/Sound.{cpp,h}: Added support for the new backends. + * server/asobj/Makefile.am: Added SoundGst.{h,cpp}, SoundFfmpeg.{h,cpp}, + and SoundMad.{h,cpp}, + * server/asobj/NetConnection.{cpp,h}: Made accept as_object as argument + instead of NetStream, to allow Sound to use NetConnection. + +2007-02-14 Sandro Santilli + + * server/shape.h: add more public functions for + manipulation. + * server/parser/morph2_character_def.cpp: try to + avoid direct access to shape private wonnabes; + simplified code, hopefully more readable now. + * server/parser/shape_character_def.cpp: try + to avoid direct access to shape pritave wonnabes. + +2007-02-14 Sandro Santilli + + * server/shape.{cpp,h}: added primitives for + drawing API: drawLineTo, drawCurveTo. + Method names track Ming interface. + * server/parser/BitmapMovieDefinition.cpp: + Use the path drawing api, draw a thicker outline + (outline works, fill not). + +2007-02-14 Sandro Santilli + + * server/sprite_instance.cpp (goto_frame): + Don't trash actions following gotoFrame() calls + (fixes multiple_doactions_and_goto_frame_test.c). + Added comments about problems with consecutive_goto_frame_test. + * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c: + Don't expect the failure anymore :) + +2007-02-14 Tomas Groth Christensen + + * server/asobj/ASSound.{cpp,h}: Renamed to Sound.{h,cpp}. + * server/asobj/Global.cpp, server/asobj/Makefile.am, win32/VC8/gnash.vcproj, + win32/VC8/npgnash.vcproj: Updated to use Sound.{h,cpp} instead of + ASSound.{h,cpp}. + +2007-02-14 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: run the multi_doactions + gotoframe test. + * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c: + expect the failure. + * server/BitmapMovieInstance.{cpp,h}: use sprite_instance::display, + don't override it. instead, place the bitmap shape in the + displaylist. + * server/parser/BitmapMovieDefinition.{cpp,h}: change + constructor to take an image rather then a bitmap_character_def + (the latter has a poor interface). + * server/impl.cpp: updated construction of BitmapMovieDefinition. + * server/parser/shape_character_def.h: new add_line_style() + method, for programmatic definition of shapes. + +2007-02-14 Zou Lunkai + + * testsuite/misc-ming.all/multi_doactions_and_goto_frame_test.c + another testcase for goto_frame. + +2007-02-13 Rob Savoye + + * configure.ac: Disable dmalloc check for now. Configure + extension/fileio directory. + * extensions/Makefile.am: Build in the fileio directory. + + * server/asobj/xmlnode.cpp: Implement toString(). Make appendChild + actually work. + * server/asobj/xml.cpp: Re-implement toString(). Make + createElement() and createTextNode() actually work. + * server/asobj/xmlnode.h, xml.h: Include stringstream, and add to + stringify() prototype. + * server/asobj/xml.cpp: + * server/vm/ActionExec.cpp: Renable the stack dump messages for + -va. + * testsuite/actionscript.all/XML.as: Replace all the create* and + appendChild() tests now that this functionality actually works. + * server/Makefile.am: Add boost and pthread libs for cross compiling. + * server/asobj/Makefile.am: Add glib and gstreamer cflags, needed + when cross compiling with Gstreamer support. + + +2007-02-13 Sandro Santilli + + * server/parser/shape_character_def.h: new add_path() and + add_fill_style() methods, to allow for programmatic + definition of shape chars (will likely need more of these + for implementing the Drawing API). + * server/sprite_instance.h: add a protected place_character + method, to fiddle with displaylist w/out character *ids*. + * server/shape.h (class path): add setLeftFill, setRightFill + and setStartPoint methods; document some more. + * server/sprite_instance.{cpp,h}: + Drop unused registeredClass arg in constructor. + * server/parser/sprite_definition.cpp: + update call to sprite_instance constructor. + +2007-02-13 Sandro Santilli + + * server/: Makefile.am, fill_style.{cpp,h}, + styles.{cpp,h}: moved fill_style class in its + own file. Removeod unused code, provided + a fill_style constructor for creating clipped + bitmap fills. + * server/render.h: had doxygen comments point + to the correct place (render_handler). + +2007-02-13 Sandro Santilli + + * server/parser/: Makefile.am, BitmapMovieDefinition.h: + Class used to return a movie_definition from load of a JPEG. + * server/: Makefile.am, BitmapMovieInstance.{cpp,h}: + Instance of a BitmapMovieDefinition (a movie_instance). + * server/impl.cpp: move the unimplemented stuff over + to the new BitmapMovie classes. + * testsuite/misc-ming.all/loadMovieTestRunner.cpp: + Don't expect a failure in loading the external JPEG + (it loads, just doesn't display). + +2007-02-13 Sandro Santilli + + * testsuite/misc-mtasc.all/.cvsignore: new file. + * testsuite/misc-ming.all/consecutive_goto_frame_test.c: + expect the current failures, just to allow 'make check' + to continue working (known bugs need be 'expected', if + they unexpectedly pass 'make check' will exit with a + FAILURE code so we can joy and remove the expectance). + * testsuite/misc-mtasc.all/: Makefile.am, hello.as: + Generalized Makefile, stuff Dejagnu.swf in first frame + and dejagnu_so_fini.as in last frame using 'makeswf'. + Ready to start with mtasc tests. + +2007-02-13 Udo Giacomozzi + + * gui/gui.cpp: Make full redraw on ENABLE_REGION_UPDATES_DEBUGGING + configurable + * gui/fb.cpp, gui/fbsup.h: Initial support for mouse + * server/character.h: Avoid redrawing when matrix did not change + * backend/render_handler_agg.cpp: Correctly handling NULL clipping + rectangle + * server/character.cpp, server/character.h, + server/sprite_instance.cpp: distinguish between own and child's + invalidation state to avoid useless redrawing (should be a big + performance gain in certain cases) + +2007-02-13 Rob Savoye + + * extensions/fileio/Makefile.am, fileio.cpp, fileio.h, test.as: + New files for direct File I/O extension for Gnash. + +2007-02-12 Sandro Santilli + + * macros/mtasc.m4: provide some detection for mtasc + (CLASSPATH detection needs more work). + * configure.ac: detect mtasc availability. + * Makefile.am: dump MTASC info on 'make dumpconfig'. + * testsuite/Makefile.am: descend in misc-mtasc.all + * testsuite/misc-mtasc.all/Makefile.am: initial Makefile + for mtasc. + * testsuite/misc-mtasc.all/hello.as: simple test + (build with 'make hello.swf'). + +2007-02-12 Sandro Santilli + + * server/button_character_instance.cpp (on_button_event): + Survive MOUSE_DOWN and MOUSE_UP events. + * server/movie_root.cpp: (generate_mouse_button_events): + Dispatch events MOUSE_DOWN and MOUSE_UP togheter with PRESS + and RELEASE (see bug #19040). + * server/sprite_instance.cpp (can_hanle_mouse_envent): + Consider MOUSE_DOWN and MOUSE_UP events (see bug #19040). + +2007-02-12 Tomas Groth Christensen + + * server/asobj/ASSound.{cpp,h}, server/asobj/Global.cpp: Updated the + AS Sound class to the new init method. + +2007-02-12 Sandro Santilli + + * server/sprite_instance.{cpp,h}: reverted + goto_frame patch introducing regression failures. + See bug #19020. + +2007-02-12 Sandro Santilli + + * server/tesselate.cpp: std::fabsf => std::abs. + * server/execute_tag.h: doxygen documentation, + add new execute_action() function. + * server/sprite_instance.{cpp,h}: changed signature + of execute_frame_tags() to allow executions of + action tags only. + +2007-02-12 Markus Gothe + + * server/debugger.h: &val, &val -> &var, &val + * server/matrix.cpp: Using namespace std; + +2007-02-12 Sandro Santilli + + * server/character.h: documented ::advance() method. + * testsuite/misc-ming.all/action_execution_order_test.c: made + more verbose, reduced frame rate to better see what goes on, + don't use C++ comments. + * testsuite/misc-ming.all/Makefile.am: add consecutive_goto_frame_test + to the 'make check' loop. + * libbase/utility.h: std::logf => std::log. + +2007-02-12 Zou Lunkai + + * testsuite/misc-ming.all/consecutive_goto_frame_test.c + add a new testcase for testing consecutive ActionGotoAndStop. + + +2007-02-12 Markus Gothe + + * libbase/utility.h: Added note on log2 + +2007-02-11 Deanna Phillips + + * server/asobj/Number.cpp: Removed use of fpclassify. + +2007-02-11 Sandro Santilli + + * server/sprite_instance.cpp: stubbed unloadMovie ActionScript + function. + * server/asobj/MovieClipLoader.cpp: properly register + the MovieClipLoader global class (use builtin_function, + not a "dumb" c_function. + * testsuite/actionscript.all/: Makefile.am, MovieClipLoader.as: + simple test for MovieClipLoader (just inheritance and functions + availability). + +2007-02-11 Markus Gothe + + * server/asobj/Number.cpp: Reverted stupid mistake. + +2007-02-11 Sandro Santilli + + * macros/pthreads.m4: use -pthread for linux, as suggested by boost + error. + +2007-02-11 Martin Guy + + * server/asobj/Date.cpp: Disable use of tzset/timezone that does not + compile on BSD, contrary to the GNU glibc manual. + +2007-02-11 Sandro Santilli + + * server/: impl.cpp, swf.h: renamed IMPORT2 as IMPORTASSETS2, tracking + Ming naming convention; add ENABLEDEBUGGER2 definition (and null + loader). + * server/asobj/Number.cpp: don't redefine fpclassify: _fpclassify + won't build on an ubuntu dapper; fpclassify is defined in math.h, + already included. + +2007-02-10 Rob Savoye + + * libbase/Makefile.am: Add glib and gstreamer cflags, needed when + cross compiling with Gstreamer support. + * macros/gnashpkgtool.m4: Search_libs after a directory search. + * macros/pkg.m4: Use pathlist to find pkg-config. + * server/Makefile.am: Add glib and gstreamer cflags, needed when + cross compiling with Gstreamer support. + * server/debugger.cpp,: Tweak usage + * server/parser/Makefile.am: Add libxml, glib, and gstreamer + cflags, needed when cross compiling with Gstreamer support. + * server/vm/Makefile.am: Add glib and gstreamer cflags, needed + when cross compiling with Gstreamer support. + * utilities/Makefile.am: With GST for sound, include glib and + gstreamer libraries. + +2007-02-10 Markus Gothe + + * server/asobj/Math.cpp: using namespace std; + * server/asobj/Number.cpp: using namespace std; Fixes for C99->C++. + * libbase/postscript.cpp: using namespace std; + * libbase/tu_file.cpp: namespacing. + +2007-02-10 Udo Giacomozzi + + * gui/fb.cpp: fixed some compilation problems when DOUBLE_BUFFER is + disabled; fixed _validbounds so that the movie is visible again; + added 2 pixel border to invalidated bounds to fix anti-aliasing + problems; set scaling to view movie full-screen; added/fixed + support for 24 and 32 bit modes + * render_handler_agg.cpp: added pixel format BGRA32 + +2007-02-10 Sandro Santilli + + * server/sprite_instance.cpp: remove characters + not in current DisplayList from _frame0_chars when + looping back. See patch #5620. + * testsuite/misc-ming.all/Makefile.am: + fixed typo in loadMovieTestRunner dependency. + +2007-02-10 Zou Lunkai + + * testsuite/misc-ming.all/place_and_remove_object_insane_test.c + add a new check that fails current Gnash and some comments. Only + xchecks are supposed to be insane. + +2007-02-09 Rob Savoye + + * doc/C/debugger.xml: New file about the Flash debugger. + * doc/C/sources.xml: Add --disable-debugger option. + * doc/C/gnash.xml: Add info about the -g option. Add an entity for + the new debugger chapter. + * doc/C/gnash-man.xml: Add info about the -g option. + + * server/debugger.{cpp, h}: Implement breakpoint functions. Add a + call stack. + * server/vm/ASHandlers.cpp: Break and watch point here. + * server/vm/ActionExec.cpp: Don't watchpoint here anymore. + + * macros/ffmpeg.m4: Check for the version of ffmpeg and print a + warning if it's too old to use. + * configure.ac: Print warning if you have ffmpeg, but it's a + version older than 5.29.0. #18663. + +2007-02-09 Bastiaan Jacques + + * libbase/tu_types.h: Add the BYTE_ORDER name used on Mac OSX. + +2007-02-09 Tomas Groth Christensen + + * libbase/Makefile.am: Added embedVideoDecoderGst.{cpp,h}. + * libbase/embedVideoDecoderGst.{cpp,h}: Added. Use Gstreamer to decode + embedded video. + * libbase/embedVideoDecoder.h, libbase/embedVideoDecoderFfmpeg.cpp: + Added support for more codecs. + * server/parser/Makefile.am, server/parser/video_stream_def.cpp, + server/parser/video_stream_def.h: Added support for using Gstreamer + to decode embedded video. + +2007-02-09 Sandro Santilli + + * testsuite/actionscript.all/dejagnu_so_init.as: made use + of frame loop a compile-time define for having another way + to test setInterval. + * testsuite/misc-ming.all/: Makefile.am, intervalTest.as, + intervalTestRunner.cpp: add test *runner* for intervalTest.swf + +2007-02-09 Sandro Santilli + + * testsuite/MovieTester.cpp: advance the movie_root, not + the topmost sprite ! This properly run interval timers. + * server/movie_root.{cpp,h}: Store Timer objects + by value, not by pointer (make memory management easier); + I might change this in the future, but for now it works + fine. Possible future changes include: reserving a number + of slots for timers (possibly setting a limit), reusing + slots of expired timers (needs a testcase to see if that's + allowed). + * server/timers.{cpp,h}: Big cleanup; got rid of timer_as_object; + use integer values for times, reduced function calls (store timeouts + in microseconds directly); documented. + * server/asobj/xmlsocket.cpp: fix use of Timer class. + * testsuite/misc-ming.all/: Makefile.am, intervalTest.as: new + test for setInterval() and clearInterval(). Lacks a test *runner* + but the manually running it clearly shows it works with this commit + (and not before). Note that self-contained tests are already + present, but a MovieTester based runner is required for proper + testing. + +2007-02-09 Martin Guy + + * server/asobj/Math.cpp: Methods for constants have uppercase names + +2007-02-09 Sandro Santilli + + * server/parser/: movie_def_impl.h, movie_definition.h: + Don't include timers.h. + * server/asobj/Global.cpp: add setInterval and clearInterval + global functions. + * testsuite/actionscript.all/Global.as: test existance of + setInterval and clearInterval function. + +2007-02-08 Rob Savoye + + * server/debugger.cpp: Dump the name of as_objects on the stack + too. Some objects are created internally, so don't have a symbol + table entry. + * server/as_object.h: Return the raw properties handle so the + debugger can use it. Add set_std_string method to let one add + standard STL strings. + * server/debugger.cpp, debugger.h: Add support for setting + variables or registers from the debugger console. Fix the symbol + table to actually work, so now function names are displayed when + doing a stack frame dump instead of just the address. Add minimal + support for dumping information about the movie. + * server/vm/ASHandlers.cpp: Grab the correct address when adding + symbols to the debugger. + +2007-02-08 Sandro Santilli + + * server/timers.{h,cpp}: add execution operator. + * server/movie_root.{h,cpp}: removed do_something method, + replaced by Timer's execution operator. Changed add_interval_timer + to take a Timer& rather then a void*. Fixed clear_interval_timer + to avoid modifying the Timer list consequently making interval + ids invalid (all commented, check out for details). + * server/sprite_instance.{h,cpp}: removed {add,clear}_interval_timer + and do_somthing methods. Callers should use the ones in movie_root. + * server/asobj/xmlsocket.cpp: don't register setInterval and + clearInterval functions as they should be globals ! + +2007-02-08 Tomas Groth Christensen + + * server/video_stream_instance.cpp, server/parser/video_stream_def.cpp: + Make sure current video really is from a VideoFrame tag, before trying to + decode. + +2007-02-08 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, loadMovieTestRunner.cpp: + Test runner for loadMovie.swf. + +2007-02-08 Bastiaan Jacques + + * server/debugger.cpp: Simple cleanup: remove unneeded casts. + +2007-02-08 Sandro Santilli + + * server/asobj/MovieClipLoader.cpp (loadClip): use the new + sprite_instance::loadMovie() method. + * server/movie_root.cpp: keep root sprite alive during actions + execution. + * server/sprite_instance.{cpp,h}: complete implementation of + MovieClip.loadMovie(). + +2007-02-08 Martin Guy + + * server/asobj/Number.cpp: Only do string-to-number conversion when + text value is required, not on every math operation; moved text + conversion code out of class definition into its own function. + * server/asobj/Number.cpp: Added text conversion of NaN and Infinities. + +2007-02-08 Sandro Santilli + + * server/event_id.h: add id() accessor, properly use the id_code enum. + * server/sprite_instance.cpp (can_handle_mouse_event): handle + case insensitiveness for SWF<7 fixing bug exposed by + loadMovieTest.swf; (sprite_load_movie): add + a few more checks, needs more work. + * testsuite/misc-ming.all/: Makefile.am, loadMovieTest.c: + simple testcase for MovieClip.loadMovie(); exposes a bug + in event handling too. No runner for it (yet). + +2007-02-08 Tomas Groth Christensen + + * libbase/embedVideoDecoder.h, libbase/embedVideoDecoderFfmpeg.cpp: + Added more video codecs. + * server/asobj/NetStreamFfmpeg.cpp: Check if url is readable. + * server/asobj/NetStreamGst.cpp: Check if a NetConnection object exists. + * server/parser/video_stream_def.cpp: Fixed a warning. + * testsuite/actionscript.all/rtmp.as: Made it actually test something. + +2007-02-08 Tomas Groth Christensen + + * libbase/Makefile.am: Added embedVideoDecoder.h, + embedVideoDecoderFfmpeg.{h,cpp} + * libbase/embedVideoDecoderFfmpeg.{h,cpp}: Added. Decoder for embedded video + using ffmpeg. + * server/impl.cpp: Added support for parsing swf embedded in a player (.exe) + * server/asobj/NetStreamFfmpeg.{cpp,h}: Fixed some warnings. + * server/parser/movie_def_impl.h: Removed unused soundstream list. + * server/video_stream_instance.{cpp,h}, + server/parser/video_stream_def.{cpp,h}, server/swf/tag_loaders.cpp: + Added support for embedded video. + +2007-02-08 Sandro Santilli + + * server/character.{h,cpp} (get_relative_target_common): + support "_parent". + * testsuite/actionscript.all/MovieClip.as: add test for _parent + member of actionscript created movieclips. + +2007-02-07 Sandro Santilli + + * testsuite/actionscript.all/Global.as: expect failures with + 'unescape'... anyone confirming the results with other players + is welcome. + * testsuite/MovieTester.{cpp,h}: add pressKey() and releaseKey() + methods. + * testsuite/misc-ming.all/: KeyTest-Runner.cpp, KeyTest.as, + Makefile.am: test for Key events. + * testsuite/actionscript.all/Object.as: add test for overriding + addProperty() member of an object. + +2007-02-07 Martin Guy + + * server/asobj/Data.cpp: Completed reverse engineering of get/set + methods + * configure.ac: Added check for ftime() + * testsuite/actionscript.all/Date.as: Add tests for get/set methods + +2007-02-07 Sandro Santilli + + * server/debugger.h: const-correctness fixes. + * server/parser/action_buffer.h: buffer accessor return by const + pointer. + * server/asobj/Key.cpp (notify_key_event): fix update + of the _global.Key object, properly handle case of function names + (TODO: produce an automated testcase for this!). + * server/sprite_instance.cpp (movieclip_ctor): don't attach MovieClip + properties, as those are only good for real sprites. + * server/swf/tag_loaders.cpp: use log_swferror where appropriate, + (swf_event::read): tolerate malformed header. + +2007-02-07 Sandro Santilli + + * server/types.cpp (rgba::read): made more readable. + * server/vm/fn_call.h: add dump_args() method. + * server/asobj/Object.cpp: use log_aserror() where appropriate, + dump function args when invalid. Don't giveup when number of + args is greater then required. + +2007-02-07 Sandro Santilli + + * testsuite/actionscript.all/Object.as: add tests for invalid calls + to addProperty() [ found in hello.swf from Laszlo ] + * server/asobj/Object.{cpp,h}: export getObjectInterface() + * server/asobj/as_object.{cpp,h} (get_prototype): return + Object class interface when hit top of inheritance chain; + make sure to never access m_prototype directly but always + use get_prototype() instead. This ensures that *every* object + ends up being an Object instance. + * testsuite/actionscript.all/Function.as: a few more tests to + ensure that functions are instance of Object. + * testsuite/actionscript.all/: MovieClip.as, Inheritance.as: + Don't expect failures while checking for objects being + instance of Object class. + +2007-02-07 Sandro Santilli + + * server/swf/tag_loaders.cpp (define_shape_loader): neater parse + print. + * server/types.{cpp,h}: add output operator and toString + method for rgba class. + * server/styles.cpp (fill_stle::read): neater color print. + * server/parser/shape_character_def.cpp (read): + neater parse print. + +2007-02-06 Rob Savoye + + * server/as_value.h: Add is_as_function() . + * server/debugger.cpp: Try to lookup a symbol name for each + address when dumping the stack. Add support for a symbol table for + all functions and "new" objects and an "i s" command to dump the + symbol table. "i f" now dumps the stack frame, it was "i s" + before. + * server/parser/action_buffer.h: Add accessors for the code + buffer. + * server/vm/ASHandlers.cpp: Don't need std:: since we're using the + std namespace. Add a symbol for function definitions. + * server/vm/ActionExec.cpp: Stash the pc pointer for later instead + of passing it in on the command line. + * utilities/parser.cpp, processor.cpp: Add support for the debugger. + +2007-02-06 Sandro Santilli + + * server/debugger.{h,cpp}: (disassemble): first argument + can safely be passed as a 'const' pointer. + * server/parser/action_buffer.h: added get_buffer() to + return an unsugned char. + * server/vm/ActionExec.cpp (operator()): use + action_buffer::get_buffer() to fetch an appropriate argument + for Debugger::disassemble. + +2007-02-06 Martin Guy + + * server/asobj/Data.cpp: Fixed bug in setUTCHours(), + make utc/localtime specification compulsory in inner workings. + * server/asobj/Number.cpp: Convert numbers to strings the same way as a + certain commercial Flash Player does. + * configure.ac: Add check for memmove, used in Number.cpp + +2007-02-06 Rob Savoye + + * configure.ac: Add --disable-debugger option. + * server/debugger.h, debugger.cpp: New files for Flash debugger + support. + * gui/gnash.cpp: Add -g option to start the debugger console. + * server/as_environment.h: Add methods to set registers. + * server/parser/action_buffer.cpp: Add to existing string value, + don't replace it. + * server/vm/ActionExec.cpp: Add support for the Flash + debugger. Simplify the methods where case conversion is done. + +2007-02-06 Sandro Santilli + + * server/as_environment.cpp (get_variable_raw): + Don't provide "_global" when SWF version is < 6. + * testsuite/actionscript.all/getvariable.as: don't expect + failures in SWF5 mode (_global related) + * testsuite/actionscript.all/Global.as: use check_equals + when possible, fix for missing SWF5 _global, remove + escape() tests with SWF > 5 as I can't confirm correct + result. + * testsuite/actionscript.all/delete.as: fix for SWF5 run + (_global related). + +2007-02-05 Tomas Groth Christensen + + * server/asobj/NetConnection.cpp: Make sure we don't setup a connection + that already exists. + * server/asobj/NetStreamFfmpeg.{cpp,h}: Fixed a potential hanging thread. + * server/asobj/NetStreamGst.{cpp,h}: Switched from pthreads to boost. + Fixed a potential hanging thread. + +2007-02-05 Sandro Santilli + + * server/PropertyList.cpp: delete overridden properties in import(); + properly clear current container on assignment operator (also fixed + it's signature). Properly delete Property in delProperty(). + * server/PropertyList.h: Properly document Property ownership. + +2007-02-05 Zou Lunkai + + * server/movie_root.cpp, server/asobj/xml.cpp, + server/asobj/xmlnode.cpp. + typos, get rid of unnecessary warnings with vc8 compiler + +2007-02-05 Markus Gothe + + * macros/pthreads.m4: Fixed a quirky LIBS/CFLAGS-bug. + * libbase/log.cpp: Removed BOOST_HAS_THREADS. + * cygnal/cygnal.cpp: Removed implicit include. + * cygnal/statistics.h: Removed unsed include. + +2007-02-03 Sandro Santilli + + * server/GetterSetter.{cpp,h}: fixed assignment operator (a bad typo!). + * server/dlist.cpp: call character::construct() everytime an object + is placed on stage, making the code much more readable and clean + (IMHO). + * server/sprite_instance.{h,cpp}: implement 'construct' method + to take care of properly handling user-defined registered + classes for sprites and to execute tags in frame0; attach + properties to *instances* rather then to the MovieClip + exported interface. + * server/character.h: add a 'construct' method. + * testsuite/misc-ming.all/: registerClassTest.c, + registerClassTestRunner.cpp: add new tests, a fix + for gnash will follow shortly. + * server/parser/sprite_definition.h: add getRegisteredClass() + method. + +2007-02-03 Martin Guy + + * server/asobj/Data.cpp: Fixed fmod issues. + +2007-02-03 Martin Guy + + * server/asobj/Data.cpp: Pretty much complete rewrite of nonworking + module forced by change of internal representation from many little + date fields to milliseconds since epoch. Not fully working yet. + * configure.ac: include tests for localtime_r and tzset. + +2007-02-02 Markus Gothe + + * server/asobj/Data.cpp: Fixed fmod issue. + +2007-02-02 Martin Guy + + * testsuite/actionscript.all/Global.as: add checks for malformed + encoded URLs + +2007-02-02 Tomas Groth Christensen + + * server/asobj/NetStreamFfmpeg.cpp: Fixed a deadlock when deleting + netstream before playback started. + +2007-02-02 Rob Savoye + + * plugin/klash/Makefile.am: Simplify heavily as most of the KDE + settings we don't need for a simple kpart. + +2007-02-02 Sandro Santilli + + * server/as_object.h (set_prototype): made public, as any + protection is useless as long as set_member("__proto__") + still changes the prototype. + +2007-02-02 Martin Guy + + * server/Date.cpp: Eliminate Date class; port to date_as_object + +2007-02-02 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: add a few more checks + for properties. + * testsuite/actionscript.all/Inheritance.as: don't expect + failures with Date object; add a test about constructors + calling order. + * server/asobj/: Date.{cpp,h}, Global.cpp: + Ported Date object to new layout; make Date.UTC a not-exported + class-static + * testsuite/actionscript.all/Date.as: don't expect a failure + for Date.UTC. + * server/: character.h, sprite_instance.h: get_current_frame() + and has_looped() removed from character class (meaningless). + Added some comments about restart(). + * plugin/klash/Makefile.am: defined kde_moduledir + and kde_servicesdir as required by automake 1.9.6. + Used KDE_MODULESDIR and KDE_SERVICESDIR, which are + currently *not* defined - at least it builds though. + +2007-02-01 Martin Guy + + * server/Date.cpp: Add date_utc unimplemenrted stub for + ActionScript Date.UTC method + +2007-02-01 Rob Savoye + + * configure.ac: Use the new KDE and QT macros. + * macros/kde.m4: Rewrite completely to be more standard with how + all the other tests work. + +2007-02-01 Martin Guy + + * server/asobj/Date.cpp: #if 0 out unused function stubs + and implement missing setDate method + +2007-02-01 Martin Guy + + * server/asobj/{Date,Global,string}.cpp: Convert all assert()s that + triggered by illegal number of args in runtime ActionScript + to IF_VERBOSE_ASCODING_ERRORS() warnings with and keep going, + giving safe default return values. + +2007-02-01 Bastiaan Jacques + + * server/asobj/NetStreamFfmpeg.h: Switch multithread_queue over to + using boost threads. Add a comment about some strange code in + push()... + +2007-02-01 Martin Guy + + * server/asobj/Global.cpp: Implement ActionScript 5 "escape" method + * testsuite/actionscript.all/Global.as: Add test case for "escape" + +2007-02-01 Bernhard Rosenkraenzer + + * Makefile.am: Add the plugin directory to our SUBDIRS when we don't + have GTK but when we do want Klash. + * plugin/klash/klash_part.cpp: Move visibility annotations to from + the class implementation into the declaration. + +2007-02-01 Martin Guy + + * server/asobj/Global.cpp: Rewrite lame code in string conversions: + remove insane case statement and avoid unnecessary use of floating + point + +2007-02-01 Martin Guy + + * testsuite/actionscript.all/Global.as: fix bug in parseInt octal test + (now succeeds) + +2007-02-01 Sandro Santilli + + * testsuite/misc-ming.all/: registerClassTest.c, + registerClassTestRunner.cpp: made test more + complex, showing that the *constructor* of + the registered classes is called ! + This currently fails. + +2007-02-01 Sandro Santilli + + * server/parser/movie_def_impl.cpp (read_all_swf): + Perform a last check for "orphaned" actions, which are + action blocks NOT followed by a SHOWFRAME. + * doc/C/internals.xml (Writing self-contained SWF tests): + Document new optional argument for check() and xcheck(). + * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): + Allow second argument to check() and xcheck() for an explicit + label. + +2007-02-01 Sandro Santilli + + * server/as_object.h (get_primitive_value): return + an OBJECT value by default (not a number). + * server/as_value.cpp (operator==): avoid infinite + recursion now that get_primitive_value is allowed + to return an OBJECT again. + * server/asobj/Numbec.cpp: override get_primitive_value + to return a NUMBER value. + * testsuite/actionscript.all/Object.as: don't expect + failures for valueOf tests. + +2007-02-01 Sandro Santilli + + * testsuite/actionscript.all/Object.as: add tests for toString + and valueOf. The latter doesn't work yet. + * server/asobj/Object.cpp: add valueOf and toString methods, + make addProperty availability version-dependent (only if SWF > 5) + * server/as_object.{cpp,h}: add generic and reusable + actionscript method handlers for toString() and + valueOf(). + * server/asobj/Number.cpp (attachNumberInterface): + define toString() and valueOf() methods. + * testsuite/actionscript.all/Number.as: test toString() + and valueOf(). + +2007-01-31 Sandro Santilli + + * server/sprite_instance.cpp (sprite_attach_movie): + tolerate bogus third argument to attachMovie(). + Fixes bug #18920. + +2007-01-31 Martin Guy + + * configure.ac: Remove check for png.h; it is not a Gnash dependency. + It is a sub-dependency of gtk and pango, not required for gtk-less + builds. + +2007-01-31 Sandro Santilli + + * server/mouse_button_state.h: symbolic button states. + * server/movie_root.cpp (generate_mouse_button_events): + use symbolic names for button states. + * server/as_object.cpp (set_member_default): more verbose warning + for invalid properties found in the inheritance chain. + +2007-01-31 Bastiaan Jacques + + * backend/render_handler_agg.cpp, gui/{gui.cpp, gtk.cpp}: Do not + subtract 1 from the rendering width and height (fixes bug #18904). + * gui/README: update to current status. + * gui: Rename Gui::set_invalidated_region to setInvalidatedRegion to + match naming style. + * gui/fltk{.cpp, sup.h, _glue_agg.cpp, _glue_agg.h}: Add a menu bar + to the FLTK window. Make the AGG glue inherit from fltk::Widget, so + it can be added to the FLTK window without interfering with menu + drawing. Since the same hasn't yet been done for the Cairo glue, + disable Cairo/FLTK for now. Account for the menu height when passing + the mouse position to the rest of Gnash. Delay initialisation of the + Glue until we are ready to add it to the FLTK window. Until we can + solve rendering issues, disable region based clipping for AGG. + Note that some FLTK menu items are not yet implemented. + * gui/gtk{.cpp, _glue_agg.cpp}: Remove the unused valid_coord method. + * gui/gui{.cpp, .h}: Declarations in the header, implementation in + the .cpp file. Shuffle the order of declarations so they are grouped + by type. + * server/movie_root.h: set_invalidated_region is used across libraries, + so visibility should be DSO_EXPORT. + * server/sprite_instance.cpp: Assert that our pointer is non-NULL + before attempting to dereference it. + +2007-01-31 Sandro Santilli + + * server/button_character_instance.{h,cpp}: + Use getter-setter properties, and avoid override + of get_member/set_member methods. + * server/character.{cpp,h}: define more generic + getter-setters. + * server/sprite_instance.cpp: use character class + statics for onload and onrollout events + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: + expect less failures :) + +2007-01-31 Sandro Santilli + + * server/sprite_instance.cpp (goto_frame): fix + check for target frame being already loaded. + * server/button_character_instance.cpp (on_event): + added verbose output for unsupported button events. + * testsuite/misc-ming.all/: ButtonEventTest.c, + ButtonEventTest-Runner.cpp: added some (failing) + tests for user defined event handlers. + +2007-01-30 Zou Lunkai + + * testsuite/misc-ming.all/goto_frame_test.c: + add test for consecutive goto + +2007-01-30 Ann Barcomb + + * Added: devtools/lib/Gnash/Distribution.pm and + devtools/lib/Gnash/Utils.pm + These libraries will be used to support the devtools/testsuite + tests, which are tests intended to increase conformance with + coding standards. + * Added devtools/testsuite/uncuddled_else.t + It is a test which searches for instances of uncuddled elses + in C++ source files. + +2007-01-30 Martin Guy + + * config.mk.in, compatibility_include.h: Remove unused GAMESWF defines + +2007-01-30 Sandro Santilli + + * server/: character.{h,cpp}, sprite_instance.cpp: + Made generic gettersetter definitions statics + in the 'character' class. Ready for reuse in button + instances and whichever other ActionScript class + associated with a character (_x,_y,_width...). + +2007-01-25 Martin Guy + + * configure.ac: Make libjpeg presence mandatory and fail otherwise; + otherwise compilation fails. + +2007-01-25 Martin Guy + + * configure.ac: Fix message about Debian packages required for boost + +2007-01-30 Sandro Santilli + + * server/: video_stream_instance.{h,cpp}, + server/asobj/: NetConnection.cpp, NetConnection.h, NetStream.cpp, + NetStream.h, NetStreamFfmpeg.cpp, NetStreamFfmpeg.h, NetStreamGst.cpp, + NetStreamGst.h: + Refactored NetStream inheritance model, got rid of + netstream_as_object and netconnection_as_object wrappers. + +2007-01-30 Sandro Santilli + + * server/parser/movie_def_impl.cpp (incrementLoadedFrames): + handle malformed SWF containing more SHOWFRAME then expected; + (readHeader): allocate more slots for actions to make malformed + SWF handling easier. + * server/asobj/: NetConnection.cpp, NetStream.cpp: + Cleanups and robustness improvements. + * server/parser/movie_def_impl.cpp (read_all_swf): + Don't discard anything past the last SHOWFRAME, + as Ming seems to still put EXPORTASSETS after it + (possibly bogus, but we want to accept it). + +2007-01-30 Tomas Groth Christensen + + * server/asobj/NetStreamGst.cpp: Fixed wrong return type. + +2007-01-30 Sandro Santilli + + * server/asobj/xml.cpp: removed stale #endif. + +2007-01-29 Rob Savoye + + * configure.ac: Remove --disable option. Bug #18905: + * libamf/amftest.cpp: Remove HAVE_LIBXML ifdefs, we always + want XML support. + * libbase/log.h, log.cpp: Remove HAVE_LIBXML ifdefs, we always + want XML support. + * server/asobj/xmlsocket.h: Remove HAVE_LIBXML ifdefs, we always + want XML support. + * server/vm/action.cpp: Remove HAVE_LIBXML ifdefs, we always want + XML support. + * utilities/parser.cpp, processor.cpp: Remove HAVE_LIBXML ifdefs, + we always want XML support. + +2007-01-25 Martin Guy + + * configure.ac, README: Remove code and documentation for + --disable-xml + +2007-01-25 Martin Guy + + * configure.ac, server/asobj/xml.cpp: Remove broken + --enable-xmlreader and --enable-dom leaving only dom. + +2007-01-29 Sandro Santilli + + * server/parser/movie_def_impl.cpp (read_all_swf): when last + expected SHOWFRAME tag is hit, discard the rest and warn + user if next tag is not an END. This happens when Ming users + forget to call SWFMovie_nextFrame() as last thing before output. + +2007-01-29 Ann Barcomb + + * Removed reference to '--disable-xml' option in doc/C/sources.xml. + It is required now. + +2007-01-29 Sandro Santilli + + * server/parser/movie_def_impl.h (add_execute_tag, add_init_action): + Add an assertion to catch out-of-bounds accesses. + +2007-01-29 Zou Lunkai + + * testsuite/misc-ming.all/goto_frame_test.c: + add checks about the _currentframe property before + and after goto_frame actions; change xcheck to check. + * server/sprite_instance.cpp sprite_instance.h: + fixed goto_frame_test(bug #18845). the next step is to + make testcase more complicated + +2007-01-27 Tomas Groth Christensen + + * server/asobj/Global.cpp: NetConnection switched to the new init method. + * server/asobj/NetConnection.{cpp,h}: Switched to the new init method. + Moved URL checking to NetConnection, and added support for different ways + to setup the URL. + * server/asobj/NetStreamFfmpeg.{cpp,h}, server/asobj/NetStreamGst.cpp: + Removed the URL checking, and moved it to NetConnection. Added "support" + for the "mp3:" prefix (untested). + +2007-01-26 Rob Savoye + + * configure.ac: Look for libexpat too to resolve a stupid library + dependency on some systems. + * gui/Makefile.am: Add EXPAT_LIBS for GTK builds. Add XFT and X11 + libs for FLTK2 builds + * macros/x11.m4: New file for X11. The default one from aclocal + doesn't support cross configuration very well, so now we have our + own. Also look for Xinerama to keep Debian Etch happy. + * macros/firefox.m4: Add an --with-gnashexe to specify an optional + path to find the gnash executable if it's not in $prefix/bin. + * plugin/Makefile.am: + * plugin/plugin.cpp: Use GNASHBINDIR instead of PREFIX to be clearer. + +2007-01-25 Sandro Santilli + + * backend/render_handler.h (Detection of regions update page): + note that set_invalidated() must be called *prior* actual + modifications; minor typos and rewordings. + * server/sprite_instance.cpp (on_event): don't attempt to call + event handlers functions when they are simply *undefined*. + * testsuite/MovieTester.cpp: call display() before advancing + to make invalidated bounds computation properly work. + * testsuite/misc-ming.all/simple_loop_testrunner.cpp: + don't expect a failure about invalidated bounds at loopback. + * server/character.h: more info about invalidated bounds + methods and members. + +2007-01-25 Martin Guy + + * configure.ac: Regularize indentation, reorder things + +2007-01-25 Rob Savoye + + * plugin/Makefile.am: Add more header paths so we can be cross + compiled. + +2007-01-25 Sandro Santilli + + * server/sprite_instance.cpp (goto_frame): + hopefully made code more readable; added warning + for gotoFrame invoking a yet-to-be-loaded frame; + added comments submitted by Zou Lunkai; + undefined OLD_GET_MEMBER accidentally defined by + some of the previous commits. + +2007-01-25 Sandro Santilli + + * testsuite/misc-ming.all/simple_loop_test.c: anchor + the characters at 0,0 and fix compiler warnings. + * testsuite/misc-ming.all/simple_loop_testrunner.cpp: + fix invalidated bounds checking (but still fails + with both bogus and correct version of + sprite_instance::execute_frame_tags - odd!) + * server/character.h: more info about set_invalidated() + * server/sprite_instance.cpp (execute_frame_tags): properly + call set_invalidated() when resetting DisplayList. + +2007-01-24 Martin Guy + + * Makefile.am: fltk cares about Xft; gtk doesn't. + * configure.ac: Move fltk gui test for Xft outside if(gui-gtk) clause + * configure.ac: Also accept "none" as alias for "no" for --enable-sound + and --with-mp3-decoder to match values reported by --version. + Mention "none", not "no", in --help. + * gui/gtk.cpp: Shorten About text to remove comments about other Flash + players; add main compile-time configurations to About box. + * gui/gtk.cpp: Extend About dialog copyright to 2007 + * gui/gnash.cpp: Update copyright in --version to 2007 + * gui/gnash.cpp: Remove unimplemented options -e and -f + (klash stubs never implemented) + * gui/Player.cpp: Remove old version of Player::run, #if 0'ed out and + mostly the same as the new implementation + +2007-01-24 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, simple_loop_test.c, + Simple_loop_testrunner.cpp: new test for simple loop. + Seems to work internally, but reveals a bug in invalidated + bounds computation !! + +2007-01-24 Ann Barcomb + + * Replaced outdated references to -a in the manual (doc/C) + with current usage. + +2007-01-24 Sandro Santilli + + * server/character.h: add isDynamic() and setDynamic() + function to tag actionscript-created characters; + have accept_anim_moves return false for dynamic chars. + * server/dlist.{cpp,h}: new add() and addAll() helper methods. + * server/sprite_instance.cpp (execute_frame_tags): + keep script objects when reinitializing DisplayList + on loop-back; (sprite_attach_movie, sprite_duplicate_movieclip, + add_empty_movieclip): mark created characters as dynamic. + * testsuite/misc-ming.all/: Makefile.am, attachMovieLoopingTest.c, + attachMovieLoopingTestRunner.cpp: test for DisplayList reset + on loopback when dynamic characters are present. + * testsuite/misc-ming.all/action_execution_order_test.c: + expect failure of the only test in there... + +2007-01-24 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + action_execution_order_test.c, attachMovieLoopingTest.c, + attachMovieLoopingTestRunner.cpp: + More tests, with failures (didnt' bother using xcheck as + I'm working on them). + +2007-01-24 Sandro Santilli + + * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: + Last commit fixed a couple of tests in this testcase. + * server/: character.h, sprite_instance.{cpp,h}: + Understood, documented and cleaned up the concept of + "ActionScript-transformed" characters; Fix property handlers + to properly register having been transformed by script. + Fixes elvis.swf and bitmap.swf. + * testsuite/misc-ming.all/: Makefile.am, attachMovieTestRunner.cpp, + loop_test-Runner.cpp, registerClassTestRunner.cpp: + Allow running tests from any directory. + +2007-01-23 Sandro Santilli + + * server/sprite_instance.cpp (ctor): fix handlign of registerClass + (at least for the new testcase). + * testsuite/misc-ming.all/: Makefile.am, registerClassTest.c, + registerClassTestRunner.cpp: new testcase for registerClass. + +2007-01-23 Tomas Groth Christensen + + * server/asobj/NetStream.{h,cpp}, server/asobj/NetStreamFfmpeg.{cpp.h}: + Use int64_t instead of long. + * server/asobj/NetStreamGst.{cpp,h}: Use int64_t instead of long. + Switched to use gst_element_seek() for seeking, which is supported by + older version of gstreamer. + +2007-01-23 Sandro Santilli + + * server/as_object.cpp ({get,set}_member_default): + handle ActionExceptions. + * testsuite/generic-testrunner.sh: be more verbose about + exit failures. + +2007-01-23 Sandro Santilli + + * libbase/GnashException.h: add ActionException class. + * server/sprite_instance.cpp, server/asobj/Date.cpp: + throw an ActionException if methods or gettersetter properties are invoked + against the wrong instance type. + * server/vm/action.cpp (call_method): catch ActionException + so return for invalid calls is always undefined. + * testsuite/actionscript.all/Date.as: don't expect a failure + on dateInstance.UTC being undefined. + * testsuite/actionscript.all/Inheritance.as: Test access of + builtin methods or gettersetter properties from user defined + objects. + +2007-01-23 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Also resample if samplerate is correct + but number of channels is not (mono => stereo). + * server/asobj/Global.cpp: Initialize NetStream using the new method. + * server/asobj/NetConnection.h: Now compiles without Curl. + * server/asobj/NetStream.{cpp,h}: Initialize NetStream using the new method. + Implemented the time-property. + * server/asobj/NetStreamFfmpeg.{cpp,h}: Switched from pthreads to boost. + Hopefully fixed a thread-join-bug (#18571). + Use ffmpeg/libavcodec's audio resampler since gnashs own resampler only + supports a limited samplerates. + Implemented seek() and time(). + * server/asobj/NetStreamGst.{cpp,h}: Implemented seek() and time(). + +2007-01-23 Sandro Santilli + + * server/as_object.cpp (copyProperties): use set_member + while importing properties to properly scan the + inheritance chain. + * server/PropertyList.h: add visitValues() templated function. + * server/sprite_instance.cpp (sprite_attach_movie): + Copy properties from initialization object *after* + placement to ensure matrix is properly updated. + * testsuite/misc-ming.all/: attachMovieTest.c, + attachMovieTestRunner.cpp: + Made dejagnu-enabled, test for actual position + of attached movieclips. + +2007-01-22 Sandro Santilli + + * testsuite/actionscript.all/Inheritance.as: add a new test triggering + an assertion failure due to 'extends' modifying inheritance chains + and importing a getter_setter not meant for non-sprite objects. + * testsuite/actionscript.all/: Inheritance.as, MovieClip.as: expect + failures on 'any instanceOf Object' after fix to + 'as_object::instanceOf'. + * server/as_object.h: add const version of get_prototype. + * server/as_function.cpp (getPrototype): use get_member to access + the prototype, in case it was set by ActionScript. + * server/as_object.cpp (instanceOf): fix broken implementation always + returning true :/ + +2007-01-22 Sandro Santilli + + * testsuite/actionscript.all/Inheritance.as: additional + test for 'new Function' construct. + * server/sprite_instance.cpp (attachMovieClipInterface, get_member): + handled most standard properties by means of calls to the new + 'init_property' call. Fixes run of the new attachMovieTest testcase + and makes code easier and more reusable (next step is to reuse + the getter-setter for other builtin classes like TextField, Button + or the like). + * testsuite/misc-ming.all/: attachMovieTest.c, + attachMovieTestRunner.cpp: + test 3rd argument to attachMovie (initObject). + Fixed by change in sprite_instance above. + * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: + Expect a failure accessing '_x' property of a clip, not sure + about importance of it being the test insane. + +2007-01-22 Zou Lunkai + + * testsuite/misc-ming.all/: Makefile.am, goto_frame_test.c: + Failing test for gotoFrame action. + +2007-01-22 Ann Barcomb + + * Partially merged branch 'testing-documentation-refactor' for + files doc/C/sources.xml and doc/C/internals.xml. The change + involved moving 'running tests' from the test-writing section + into the user's installation section. + +2007-01-21 Rob Savoye + + * Makefile.am: Organize the output of dumpconfig somewhat. Make + some lines optional based on the configuration to save space. + * NEWS: Add that cross compiling is now supported. + * README: Mention trying cvs Head befor bug reporting. + * configure.ac: Check for the build and host systems. We don't + have to hack cross_compile. it works correctly now. Use + $host_alias instead $target_alias for the directory search + paths. Look for PNG, OLPC needs it. Define a restricted path for + cross configuring and export it for the other m4 scripts. + * doc/C/sources.xml: Clarify cross configuring based on current + technique. + * gui/Makefile.am: PTHREAD_LIBS must be after BOOST_LIBS. + * libamf/Makefile.am: Remove unused libraries from LDFLAGS. + * macros/curl.m4: Only look for curl-config in the pathlist + variable. + * macros/glib.m4: Look for glibconfig.h in the right place. + * macros/gtk2.m4: Add -lgobject and -lgmodule for cross + compiling. + * macros/incllist, libslist: Look in $host_alias, not + $target_alias. + * macros/libXML.m4: Only look for xml2-config in the pathlist + variable. + * macros/ming.m4: Only look for ming-config in the pathlist + variable. + * macros/pthreads.m4: Use correct comment syntax. Also look for + pthread.h and libpthread so we cross configure correctly. + * macros/sdl.m4: Only look for sdl-config in the pathlist + variable. + * plugin/klash/Makefile.am: Don't build klash here anymore. + * utilities/Makefile.am: Link in XML2 libs. + +2007-01-19 Sandro Santilli + + * server/asobj/xmlnode.cpp (attachXMLNodeInterface): + add_property -> init_property. + * server/sprite_instance.{h,cpp}: MovieClip.attachMovie() implemented. + * testsuite/misc-ming.all/: Makefile.am, attachMovieTest.c, + attachMovieTestRunner.cpp: testcase and runner for + MovieClip.attachMovie(). + +2007-01-19 Sandro Santilli + + * server/asobj/xmlnode.cpp (xmlnode_new): cast double to int + before casting to an enum [ fix for gcc-3.3.5 ] + * server/sprite_instance.cpp: cleanups, including use + of log_aserror when appropriate. + * server/as_object.cpp: commented out debugging output. + +2007-01-18 Sandro Santilli + + * extensions/mysql/mysql_table.cpp, server/array.cpp, + server/array.h, server/as_function.cpp, server/as_object.cpp, + server/as_object.h, server/button_character_instance.cpp, + server/button_character_instance.h, + server/edit_text_character.cpp, server/edit_text_character.h, + server/event_id.h, server/gnash.h, server/movie_root.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/swf_function.cpp, server/video_stream_instance.cpp, + server/video_stream_instance.h, server/asobj/ASSound.cpp, + server/asobj/Boolean.cpp, server/asobj/Camera.cpp, + server/asobj/Color.cpp, server/asobj/ContextMenu.cpp, + server/asobj/CustomActions.cpp, server/asobj/Date.cpp, + server/asobj/Error.cpp, server/asobj/Global.cpp, + server/asobj/Key.cpp, server/asobj/Key.h, + server/asobj/LoadVars.cpp, server/asobj/LocalConnection.cpp, + server/asobj/Math.cpp, server/asobj/Microphone.cpp, + server/asobj/Mouse.cpp, server/asobj/MovieClipLoader.cpp, + server/asobj/NetConnection.cpp, server/asobj/NetStream.cpp, + server/asobj/NetStream.h, server/asobj/NetStreamFfmpeg.cpp, + server/asobj/NetStreamGst.cpp, server/asobj/Number.cpp, + server/asobj/Object.cpp, server/asobj/Selection.cpp, + server/asobj/SharedObject.cpp, server/asobj/Stage.cpp, + server/asobj/System.cpp, server/asobj/TextSnapshot.cpp, + server/asobj/Video.cpp, server/asobj/gen-asclass.sh, + server/asobj/string.cpp, server/asobj/xml.cpp, + server/asobj/xmlnode.cpp, server/asobj/xmlsocket.cpp, + server/vm/ASHandlers.cpp, server/vm/ActionExec.cpp, + server/vm/ActionExec.h, server/vm/action.cpp, + server/vm/action.h, testsuite/actionscript.all/XML.as, + testsuite/server/GetterSetterTest.cpp: + (1) Change {get,set}_member{,_default} as_object members + to take a std::string rather then a tu_string and to avoid + case conversion of key based on target SWF version + (2) Provide init_{member,property} as_obejct members to initialize + AS class methods/props and take care of SWF#-based case-conversion; + use where appropriate. + (3) Provide {get,set}ObjectMember methods in ActionExec to take + care of SWF#-based case conversion when called from AS handlers. + +2007-01-18 Bastiaan Jacques + + * server/asobj/xml.cpp: Make sure we actually have an XMLNode pointer + before attempting to clone it. Do not attempt to setup a frame unless + XML parsing succeeded. Fixes bug #18746. + +2007-01-18 Sandro Santilli + + * server/asobj/xml.{cpp,h}: third pass of new layout port: + don't override get_member, rely on getter/setters instead. + +2007-01-18 Sandro Santilli + + * server/asobj/: Global.cpp, xml.{cpp,h}: second pass of new layout + port: use xml_class_init and hide method functions. + +2007-01-18 Sandro Santilli + + * server/asobj/xml.{cpp,h}: first pass of new layout port. + * testsuite/actionscript.all/XML.as: first unexpected success. + +2007-01-18 Sandro Santilli + + * server/asobj/: xml.cpp, xmlnode.{cpp,h}: drop xmlnode_as_object, + making XMLNode a direct subclass of as_object; Implement or stub + many properties as actual *properties* (new layout). + * testsuite/actionscript.all/XMLNode.as: other unexpected successes. + +2007-01-18 Sandro Santilli + + * server/asobj/xmlnode.{cpp,h}: (nodeValueSet): always replace + previous value. (xmlnode_nodevalue, xmlnode_nodename): act + both as a setter and a getter. + * testsuite/actionscript.all/XMLNode.as: another unexpected success. + +2007-01-18 Sandro Santilli + + * server/asobj/: Global.cpp, xml.cpp, xmlnode.{cpp,h}: + Port XMLNode class to current correct architecture. + * testsuite/actionscript.all/XML.as: unexpected pass ;) + +2007-01-18 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed a bug for 8=>16 bit conversion. + * server/asobj/NetConnection.cpp: Removed a printf. + * server/asobj/NetStreamFfmpeg.cpp: Stop the decoding thread properly, + hopefully fixes bug #18571. + * misc: Tried adding some cvs id tags (again)... + +2007-01-18 Sandro Santilli + + * server/asobj/xml.cpp: use fn_call interface for + function arguments access rather then as_environment one. + +2007-01-17 Sandro Santilli + + * macros/gnashpkgtool.m4: accept pkg-config finding for CFLAGS + (the bug was introduced by last commit of this file) + * testsuite/actionscript.all/Makefile.am: don't distribute + prebuilt test cases. + * missing: fix stub for missing 'makeinfo' + * macros/ming.m4: prepend MING_PATH to PATH when + scanning for 'makeswf'. + +2007-01-17 Bastiaan Jacques + + * gui/Makefile.am: Stop calling the KDE GUI executable Klash; use + gnash instead. + * gui/kde{.cpp, sup.h}: Make a new class named qwidget derived from + QGLWidget. This allows us to create the QApplication before + instantiating an object derived from QWidget, thereby fulfilling + QT requirements. And, this way, we can also pass it argv and argc. + * plugin/klash/Makefile.am: Stop building the klash binary. The klash + code is obsolete and hasn't compiled for a while. + * plugin/klash/klash_part.cpp: Use the gnash binary instead of klash. + * backend/render_handler.h: Add get_scale() method, to retrieve the + renderer's current scaling. + * backend/render_handler_agg.cpp: Add a better trunc() implementation + from Sandro. Implement drawVideoFrame(); scaling is not yet supported. + Implement get_scale(). + * server/render{.h,.cpp}: initialise s_render_handler to NULL so as to + avoid reading uninitialised memory. Add and implement + render::get_scale(). + +2007-01-17 Sandro Santilli + + * backend/Makefile.am, libbase/Makefile.am: + ZLIB_CFLAGS => Z_CFLAGS, ZLIB_LIBS => Z_LIBS + * configure.ac: include ZLIB vars in summary. + * macros/gnashpkgtool.m4: make sure to define HAVE_header when + a package header is found. + * testsuite/samples/clip_as_button2-TestRunner.cpp: enable + verbosity *before* attempting to load the movie, to know + more about why the movie could not be loaded. + * .cvsignore, cygnal/.cvsignore, extensions/mysql/.cvsignore, + testsuite/actionscript.all/.cvsignore, + testsuite/misc-ming.all/.cvsignore, + testsuite/movies.all/.cvsignore, testsuite/samples/.cvsignore, + testsuite/server/.cvsignore: + Ignore generated files. + * testsuite/libbase/Makefile.am: don't attempt to run Curl test + if no curl is enabled. + * libbase/zlib_adapter.cpp: fix build for !TU_CONFIG_LINK_TO_ZLIB. + +2007-01-16 Bastiaan Jacques + + * configure.ac, Makefile.am, gui/Makefile.am: Stop abusing + gnashpkgtool.m4 and use GNASH_PKG_FIND. Update the users of the FLTK + compiler and linker flags to use FLTK2_flag. + * gui/fltk.cpp: Code cleanups. Fix the menu rendering bug by moving + drawing calls into draw(). Actually enable the region rendering code. + Redraw the whole window when it is moved. + * gui/{fltk_glue_agg.h, fltk_glue_agg.cpp, fltksup.h}: Trivial code + cleanups. + * gui/fltksup.h: Remove the Mozilla exception. + * macros/sdl.m4: Fix typos. + +2007-01-15 Tomas Groth Christensen + + * libbase/gstgnashsrc.{c,h}: Fixed some warnings. + * server/asobj/NetStreamGst.{cpp,h}: Fixed some warnings, and removed + some unused code. + * server/video_yuv.cpp: Removed since it function has been moved to + image::yuv. + * testsuite/movies.all/yapc2006.swf: Removed since it's just too big! + +2007-01-15 Sandro Santilli + + * server/font.h: proper include to avoid undefined + references to drop_ref(). + +2007-01-15 Sandro Santilli + + * server/asobj/TextSnapshot.cpp: fixed methods + casing. + * testsuite/actionscript.all/TextSnapshot.as: + fixed checks taking SWF version into account. + +2007-01-15 Zou Lunkai + + * server/vm/ASHandlers.cpp (ActionDefineFunction, + ActionDefineFunction2): don't push named function literals + on the stack (do it only for anonymous functions). + See patch #5685. + +2007-01-15 Sandro Santilli + + * testsuite/server/Makefile.am: explicitly link to libgnashvm. + +2007-01-15 Sandro Santilli + + * server/as_environment.{cpp,h}: added padStack + method to help stack underrun fixes. + * server/vm/: ASHandlers.{cpp,h}, ActionExec.{cpp,h}: + Moved stack underrun handling from ASHandlers to + ActionExec, taking "stack frame" in consideration. + The fix for stack underron will now insert undefined + variables in *front* of the stack frame, not at the + end. The effect is that *final* arguments of tags are + undefined, not *initial*. + * testsuite/actionscript.all/Makefile.am: + Enabled build of swap.as testcase. + +2007-01-15 Zou Lunkai + + * testsuite/actionscript.all/swap.as: new test for + stack underrun handling. + +2007-01-14 Sandro Santilli + + * server/vm/ActionExec.{cpp,h} (getVariable, setVariable, + setLocalVariable): convert variable name to + lowercase if SWF version is < 7. This should relief us + from doing it in as_object::get_member_default (TODO: check it out). + * server/sprite_instance.cpp (get_member): + handle '_root', '_level0' and 'this' references. + * server/vm/ASHandlers.cpp (CommonSetTarget): use + as_environment::get_variable() rather then find_target() + to resolve target name (more hiding, automatic use of the + new implementaion). + * server/as_environment.{cpp,h}: (get_variable): + allow objects to be used as path components, scan _global for + first element of path. Uses a newly added find_object_slashsyntax + and find_object_dotsyntax methods, with interface similar to find_target, + but w/out insisting on getting a sprite_instance. + (find_target): return NULL on invalid paths. + * testsuite/actionscript.all/getvariable.as: some new tests. + +2007-01-13 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: don't attempt to + build "quickcheck" runners with 'make all'. + +2007-01-13 Tomas Groth Christensen + + * backend/render_handler_ogl.cpp: No need to flip the frame twice. + * libbase/Makefile.am, libbase/gstgnashsrc.{c,h}: Added gstgnashsrc.{c,h} + for feeding gstreamer through callbacks. + * server/Makefile.am, server/asobj/Makefile.am, + server/asobj/NetStream.h, server/asobj/NetStreamGst.{cpp,h}: Added + NetStreamGst for decoding of external videofiles using Gstreamer. + * server/asobj/NetConnection.{cpp,h}: Rewritten to use curl (based on + curl_adapter) + * server/asobj/NetStreamFfmpeg.cpp: Use NetConnection instead of + StreamProvider. Fixed a 100%-CPU-use-bug. Stopped fliping the videoframe. + +2007-01-12 Sandro Santilli + + * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: + simplified testcase to show actual Gnash problem. + +2007-01-12 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionPushData): include + dictionary offset when printing actions. + * testsuite/misc-ming.all/ming_utils.h: cleanup documentation + for dejagnu-like macros, fix check_equals and xcheck_equals + macros so they actually print the "obtained" result. + * testsuite/misc-ming.all/Makefile.am: enable run of + the insane testcase. + +2007-01-12 Zou Lunkai + + * testsuite/misc-ming.all/place_and_remove_object_insane_test.c: + new insane testcase (surprisingly works though). + +2007-01-12 Bastiaan Jacques + + * server/asobj/NetStreamFfmpeg.cpp: Don't delete the RGB video data + buffer until we've actually finished using it. Doh! + +2007-01-12 Sandro Santilli + + * server/vm/ActionExec.{h,cpp}: don't really + limit the size of 'with' stack. Only use the + limit information to warn user when ActionScript errors + verbosity is enabled. + * testsuite/actionscript.all/with.as: don't assume 'with' + stack limits are driven by SWF# (it will depend on the player + version instead). + * testsuite/actionscript.all/Color.as: + Use typeof() for stricter checking, fix case of methods. + * server/asobj/Color.cpp: fix case of methods. + * testsuite/actionscript.all/System.as: _global.System is + an object, not a class. Use typeof() for stricter checking. + * server/asobj/System.cpp: fix case of methods, make System + an object, not a class. + * testsuite/actionscript.all/Selection.as: _global.Seleciton is + an object, not a class. Use typeof() for stricter checking. + * server/asobj/Selection.cpp: fix case of methods, make Selection + an object, not a class. + * testsuite/actionscript.all/NetStream.as: don't check unavailability + of the class based on SWF version as the player is allowed to + provide new classes reguardless of it. Use typeof to strictly check + methods existance, check case-sensitiveness of methods. + * server/asobj/NetStream.cpp: fix case of methods. + * testsuite/actionscript.all/Makefile.am: add 'quickcheck' + rule, running *one* gnash process for each version. + Currently some tests fail, but that's likely due to + persistance of variable set in previous testcases + (they are compiled in separate frames of the same movie). + * testsuite/actionscript.all/check.as: include filename + in test result report (easier to see what goes on, altought + bigger output); make dump of rcsid hushable. + +2007-01-11 Sandro Santilli + + * server/as_environment.cpp (get_variable_raw): accept + slashes in variable names (see getvariable.as). + * testsuite/actionscript.all/: Makefile.am, getvariable.as + New testcase for GetVariable action type. Gnash aborts + against it. + +2007-01-11 Sandro Santilli + + * server/as_environment.cpp (get_variable): revert patch + forcing use of 'with' stack as it breaks other testcases. + Will need further analisys. + +2007-01-11 Sandro Santilli + + * server/sprite_instance.{cpp,h}: (ctor) optionally take + an additional argument for giving the instance an arbitrary + interface (rather then MovieClip). + * server/parser/sprite_definition.{cpp,h}: add registerClass() + method to request all subsequent instances of the sprite + get a specified interface. + * server/asobj/Object.cpp: complete registerClass() [ testing ]. + +2007-01-11 Sandro Santilli + + * server/as_environment.cpp (get_variable): use 'with' stack when + finding path component of a path.to.variable (seems to fix + a use case in player2.swf). + * server/styles.cpp: warn only once about 1st gradient fill + style position != 0. Use log_swferror when appropriate. + +2007-01-11 Sandro Santilli + + * server/asobj/Global.cpp: always provide the Function + and System classes. Add a note about possibly bogus + approach of making classes available based on SWF + version. + * testsuite/actionscript.all/Camera.as: expect + a failure on availability of Camera class for + old version (will likely change again in the future + if we confirm that availability of classes doesn't + depend on SWF version). + +2007-01-11 Sandro Santilli + + * server/asobj/Stage.cpp: Stage is not a class, but + just an object! + * testsuite/actionscript.all/Stage.as: fix taking + SWF version into account. + * server/asobj/ContextMenu.cpp: fixed method cases + * testsuite/actionscript.all/ContextMenu.as: fix taking + SWF version into account. + * server/asobj/SharedObject.cpp: fixed method cases + * testsuite/actionscript.all/SharedObject.as: fix taking + SWF version into account. + * testsuite/actionscript.all/: Error.as, LoadVars.as: + fix tests taking SWF version and case into account. + * server/asobj/LoadVars.cpp: fix method case. + * server/asobj/Error.cpp: tostring => toString + * server/asobj/Global.cpp: moved most classes to appropriate + versioned SWF section. + * configure.ac: reverted a change in FLTK lib detection + committed by accident. + +2007-01-10 Sandro Santilli + + * configure.ac: fltk gui requested and fltk2 dev package not found + is a nogo. + +2007-01-10 Bastiaan Jacques + + * gui/{fltk.cpp, fltksup.h}: Initial FLTK GUI implementation. + * gui/{fltk_glue_agg.cpp, fltk_glue_agg.h}: Agg glue for the FLTK GUI. + * gui/{fltk_glue_cairo.cpp, fltk_glue_cairo.h}: Cairo glue for the + FLTK GUI. + * configure.ac: Allow the FLTK/Agg combination. Detect the FLTK + library when the FLTK GUI was selected. Don't allow OpenGL/FLTK. + * gui/Makefile.am: Build the FLTK GUI when requested. + * gui/Player.cpp: Enable the FLTK GUI. + * gui/gtk.cpp: Use an anonymous namespace for dbglogfile to avoid + symbol collisions. + * gui/gtk.cpp, gui/gui{.h, .cpp}: Move GtkGui::menuitem_sound_callback + to class Gui so other GUIs can use it. + * gui/fltk*: Update to the new license header sans Firefox exception. + +2007-01-10 Sandro Santilli + + * gui/Player.cpp, libbase/zlib_adapter.cpp, libbase/zlib_adapter.h, + server/gnash.h, server/impl.cpp, server/parser/movie_def_impl.cpp, + server/parser/movie_def_impl.h, utilities/parser.cpp, + testsuite/MovieTester.cpp: + Use std::auto_ptr to have input tu_file ownership transferred up to + the point where it belongs (a parser unit, or an adapter). + +2007-01-10 Bastiaan Jacques + + * gui/gtk{.cpp, sup.h}: Reimplement the open file dialog, and + this time include support for legacy GTK versions. It doesn't + yet actually open the selected file. + +2007-01-10 Sandro Santilli + + * testsuite/actionscript.all/Video.as: xcheck => check + (not available when swfversion<6) + * server/dlist.{h,cpp}: added sort() method to resort + when depth of characters is externally changed. + * server/sprite_instance.{h,cpp}: simplified state save + of frame0 displaylist, with the side-effect of properly + keeping ref-counting of frame0 character instances. + +2007-01-10 Sandro Santilli + + * libbase/: extension.cpp, sharedlib.cpp: hush compiler warnings + about unused parameters. + * server/asobj/Global.cpp (ctor): stubbed organization of + ActionScript classes in SWF target versions (volunteers + to filling it up?). + * testsuite/actionscript.all/: LocalConnection.as, Camera.as, + NetStream.as, System.as, NetConnection: + test that the class are unavailable when target version + is < their entry point. + +2007-01-10 Sandro Santilli + + * backend/render_handler_tri.cpp, server/array.cpp, + server/sprite_instance.cpp, server/text.cpp, + server/swf/tag_loaders.cpp: House cleaning + (compiler warnings..) + +2007-01-10 Sandro Santilli + + * server/styles.cpp (sample_gradient): fix interpolation. + +2007-01-09 Bastiaan Jacques + + * configure.ac: Fix typo. Comment out configure output regarding + the Agg compatibility layer, as it appears to be unused. + * macros/agg.m4: `test' Can have only one instance of the -a + argument, so add a separate test and match indentation. + * macros/kde.m4: Stop trying to use the undefined GNASH_PATH_ZLIB + and instead rely on the ZLIB macro which configure executes. + +2007-01-10 Sandro Santilli + + * server/Makefile.am, server/bitmap_info.h, server/gnash.h, + server/parser/bitmap_character_def.h, + server/parser/movie_definition.h: + Put 'bitmap_info' clases in its own header. + +2007-01-09 Rob Savoye + + * server/asobj/Global.cpp: Always add XML support. Include + config.h. + * server/asobj/xml.cpp, xml.h, xmlattrs.h, xmlattrs.cpp, + xmlnode.h, xmlnode.cpp, xmlsocket.h, xmlsocket.cpp: Don't make + building XML optional, it's part of the Flash spec. + +2007-01-09 Sandro Santilli + + * server/swf_function.{cpp,h}: use symbolic + names for Function2 flags. + +2007-01-09 Sandro Santilli + + * server/swf_function.cpp (operator()): + Fix 'this' reference in function2 (both register and local var, + only the latter tested but I'd assume the former would also work). + Remove "UNTESTED" notice for super in function2 local var as it's + now tested using latest Ming. + +2007-01-09 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionSetRegister, ActionPushData): + when setting/getting registers in function2 context and local + registers are not available, fallback to using global register. + +2007-01-09 Bastiaan Jacques + + * macros/agg.m4: When pkg-config is available and it knows Agg, + check for the agg-2.5 header in case we're dealing with an + improperly named Agg package. + +2007-01-08 Sandro Santilli + + * server/as_environment.h: add num_local_registers() and + resize_local_registers() methods. + * libbase/log.{cpp,h}: added log_swferror and log_aserror + functions. + +2007-01-08 Rob Savoye + + * Makefile.am: Change ZLIB_ to Z_, so it works with + gnashpkgtool. + * configure.ac: Autoconf isn't correctly determining when we + are cross compiling, so do our own test. Set $incllist and + $libslist to the output of a text file listing all the paths. Use + GNASH_PATH_JPEG, GNASH_PATH_SDL, and GNASH_PATH_GLIB again.Use + GNASH_PATH_LIBXML again so we can be cross configured. + * macros/jpeg.m4: Add this back in as the name munging leaves + gnashpktool with the wrong setting. + * macros/sdl.m4: Add this back in so we correctly determine the + SDL version regardless of the format. + * cygnal/Makefile.am: Add LIBLTDL to LDFLAGS. + * gui/Makefile.am: Add GTK_ for GTK specific CFLAGS and + LDFLAGS. Link in libgnashamf too. + * gnash/libamf/Makefile.am: Remove a bunch of libraries we don't + actually need. + * macros/agg.m4: Use global incllist and libslist. Drop test for + version 2.3. + * macros/boost.m4: Use global incllist instead of pathlist. Move + AC_CHECK_HEADERS and AC_CHECK_LIB to after directory search. + * macros/curl.m4: Don't use pkg-config when cross compiling. Use + global incllist and libslist. + * macros/ffmpeg.m4: Use global incllist instead of pathlist. Move + AC_CHECK_HEADERS and AC_CHECK_LIB to after directory search. Don't + use pkg-config when cross compiling. + * gnashpkgtool.m4: Don't use pkg-config when cross compiling. Use + global incllist and libslist. Add additional test for header file + without the package name as the top level directory. + * macros/gtk2.m4, pango.m4: Don't use pkg-config when cross + compiling. Use global incllist and libslist. + * macros/gtkglext.m4, mysql.m4, opengl.m4: Use global incllist and + libslist. + * macros/libXML.m4: Change --with option names to incl and libs to + match everything else. Only traverse header paths once. + * macros/ming.m4: If we don't have ming-config, find stuff our + usual way. + * macros/mysql.m4: Use global incllist and libslist. + * macros/opengl.m4: Use global incllist and libslist. + * utilities/Makefile.am: Add Boost and PTHREAD libs, along with + gnashamf. These are needed when cross compiling. + * macros/incllist: List of directories to use for header file searches. + * macros/libslist: List of directories to use for library searches. + +2007-01-08 Bastiaan Jacques + + * macros/ffmpeg.m4: Fix a rather unfortunate typo that was causing + configure to look for liblibavformat rather than libavformat. + +2007-01-08 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionDefineFunction2): + check consistency of code_size, handling bogus SWF. + +2007-01-08 Sandro Santilli + + * testsuite/actionscript.all/Inheritance.as: added a couple more + tests to the 'extends' section, curtesy of Zou Lunkai. + * testsuite/actionscript.all/Function.as: added test for 'this' + reference in Object's context. By Zou Lunkai. + +2007-01-06 Sandro Santilli + + * server/vm/ASHandlers.cpp: removed unused code. + * server/vm/ActionExec.cpp: made action verbosity a bit more compact; + cleanup the stack after block execution. + * testsuite/actionscript.all/MovieClip.as: new test for MovieClip + being an Object instance. + +2007-01-04 Markus Gothe + + * Fixed bug #18694 + added extra info. + +2007-01-04 Sandro Santilli + + * server/asobj/Object.cpp: stubbed registerClass(). + * server/sprite_instance.cpp (movieclip_ctor): allow 'new MovieClip'. + * testsuite/actionscript.all/MovieClip.as: test 'new MovieClip'. + * server/impl.cpp, server/swf/tag_loaders.{h,cpp}: + Implemented parsing (not use) of FILEATTRIBUTES (69) + and METADATA (77) tags. + +2007-01-04 Sandro Santilli + + * server/parser/shape_character_def.cpp (read): + use symbolic names for tags (not yet for flags: TODO); + (read_fill_styles): don't choke on malformed SWF. + * server/styles.{h,cpp} (sample_gradient): made private, + changed arg type to be stricter, cleaned up; + (fill_style::read) don't choke on malformed SWF. + * testsuite/actionscript.all/check.as: Ming can compile 'asm' + blocks since 0.4.0.beta3, not beta2 (as of Ming's NEWS file). + +2007-01-03 Ann Barcomb + + * Removed 'Level of Conformance' from doc/C/internals.xml. + This information will go in the wiki. Temporarily created + conformance.xml in the same directory which contains the + removed material. + +2007-01-03 Bastiaan Jacques + + * libbase/tu_opengl_includes.h: Make building against X11/OpenGL work + even when we're using MACH, i.e. on OSX, but only when the GTK GUI + is used. (Because there's a good chance we're using X11 when GTK is + involved; however, there is an experimental GTK/Cocoa port, so this + is not a definitive fix and we may have to revisit this issue some + day.) To do this, all we have to do is to make sure GL/glx.h is + included. + +2007-01-03 Ann Barcomb + + * Corrected Firefox version and canvas information + in doc/C/internals.xml + +2002-01-03 Markus Gothe + + * cygnal/http.cpp: removed extra ';'. + * cygnal/alloc.cpp: throw stuff. + +2007-01-02 Markus Gothe + + * utilities/processor.cpp if not GCC define optarg as extern. + * server/asobjs/NetStreamFfmpeg.cpp: Fixed static_cast of + AV_NOPTS_VALUE. Dynamic allocation of the buffer, since it's wasn't + valid ISO C++ before. + +2007-01-02 Ann Barcomb + + * Created directory devtools, which will contain + things like editor styles, tests for style conformity, + server-side CVS hooks, etc. + +2007-01-02 Ann Barcomb + + * Removed zoomhenge.mbox; information abstracted to + README. + +2007-01-02 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: provide + MING_VERSION_CODE define. + * testsuite/actionscript.all/check.as: toggle define + MING_SUPPORTS_ASM and MING_SUPPORT_ASM_EXTEND based + on MING_VERSION_CODE + * testsuite/actionscript.all/String.as: don't assume + that ming supports ASM, rely on the define set in + check.as instead. + * testsuite/actionscript.all/Inheritance.as: + Add test for ActionExtend (optionally enabled + based on MING_SUPPORTS_ASM_EXTENDS define) + +2007-01-02 Sandro Santilli + + * macros/ming.m4: synced with the version in Ming repository. + Basically add MING_VERSION and MING_VERSION_CODE variable, + we'll use them to detect wheter 'asm' or specific features + are supported. + * Makefile.am: show Ming stuff on 'make dumpconfig' + * configure.ac: print Ming stuff on summary, properly invoke + the Ming macro (renamed from GNASH_PATH_MING to AC_PATH_MING). + +2007-01-02 Sandro Santilli + + * server/as_function.{h,cpp}: _properties member kept by + intrusive_ptr to simplify implementation (never + directly call add_ref/drop_ref); added private + setPrototype() method for possible future use + to keep "prototype" AS member in sync with + _properties class member; Added extends() method. + * server/as_object.{h,cpp}: m_prototype member kept + by intrusive_ptr to simplify implementation (never + directly call add_ref/drop_ref) and made private; + provided get_prototype() accessor to it. + * server/swf_function.cpp: updated accesses + of as_object::m_prototype. + * server/vm/ASHandlers.cpp (ActionExtends): implemented + (needs more testcases). + +2007-01-02 Bastiaan Jacques + + * gui/gtk.cpp: I've commented out the GTK file chooser code because: + - It doesn't actually make Gnash open the file. + - It requires GTK >= 2.4, and we want to preserve compatibility + - with GTK 2.2 for embedded, old and thin systems. + +2007-01-01 Sandro Santilli + + * server/dlist.{h,cpp}: added clear_except() function + to remove all but a specified set of character + instances from the list; deprecated clear_unaffected() + method. + * server/sprite_instance.{h,cpp}: take note of which + character instances are created by execution of first + frame tags and exclude them from the DisplayList cleanup + performed at each restart. Simplifies the advance_sprite + pretty much. + * testsuite/misc-ming.all/place_and_remove_object_test.c: + don't expect any failure. + +2007-01-01 Sandro Santilli + + * server/as_function.cpp (getPrototype): + added check for 'prototype' member overwrite (debugging). + * server/swf_function.{h,cpp}: provide variable 'super' in + function1 and 2 contexts (local variable or register); + fixed the 'this' variable-or-register in function2 contexts + to point + * testsuite/actionscript.all/Inheritance.as: don't expect + a failure in using the 'super' variable (not function2!) + +2006-12-31 Sandro Santilli + + * server/as_function.cpp: allow Function construction + using 'new' + * testsuite/actionscript.all/Inheritance.as: don't expect + 'new Function' to fail. Fix for SWF<6 + * server/vm/ActionExec.{h,cpp}: simplified constructor for + function calls. + * server/swf_function.{h,cpp}: updated calls to ActionExec + constructor. + * testsuite/actionscript.all/Inheritance.as: added test + for using 'super' from within a function (failing). + * testsuite/misc-ming.all/ming_utils.h: + Include filename in test result messages. + * testsuite/misc-ming.all/: Makefile.am, place_object_test.c, + place_object_testrunner.cpp: Test turned into a self-contained + one. + +2006-12-30 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + place_and_remove_object_test.c: + turned last testcase into a self-contained + one. + * doc/C/internals.xml: updated section about writing Ming-based + self-contained tests and using the generic-testrunner.sh script. + * testsuite/misc-ming.all/ming_utils.{h,c}: + Added compile_actions() method, removed check/check_equals + function and substituted with + check/check_equals/xcheck/xcheck_equals macros (so you + get the source file line number of failing cases). + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + updated calls to check/check_equals + * server/as_object.h (get_numeric_value): return 0 if + get_text_value() returns NULL. + * testsuite/generic-testrunner.sh: accept -r switch + for passing it to gprocessor (useful when you are testing + restart conditions). + * utilities/processor.cpp: add -r switch to control + allowed number of runs (restarts). + +2006-12-30 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, + place_and_remove_object_test.c: + Added new test from Zou (missing a testrunner). + +2006-12-30 Bastiaan Jacques + + * macros/boost.m4: When the --with-boost-lib configure + flag is specified, don't forget to append the library + name to the specified path. + +2006-12-29 Sandro Santilli + + * cygnal/cygnal.cpp: removed compiler warnings. + +2006-12-29 Bastiaan Jacques + + * gui/gtk.cpp: Don't add the drawing area to a container + twice. This eliminates a GTK warning. + +2006-12-29 Sandro Santilli + + * autogen.sh: check return from libtoolize call, + giving up if non-zero (excessive zeal?). + +2006-12-28 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am, + testsuite/misc-ming.all/Makefile.am, + extensions/Makefile.am, extensions/dejagnu/Makefile.am: + Some fixes for 'distcheck' rule. + +2006-12-28 Sandro Santilli + + * testsuite/samples/Makefile.am: removed references + to loop_test.swf, generated in misc-ming.all lately. + +2006-12-28 Sandro Santilli + + * server/sprite_instance.{h,cpp}: cleanup and document + add_display_object method reintroducing use of + the replace_if_depth_is_occupied parameter. + * server/swf/tag_loaders.cpp (place_object_2::execute): don't + let new characters replace existing ones at same depth + when placing them. This fixes all existing testcases + in misc-ming.all. + * testsuite/misc-ming.all/: loop_test-Runner.cpp, + place_object_testrunner.cpp: don't expect failures. + +2006-12-28 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, place_object_test.c, + place_object_testrunner.cpp: new test by Zou Lunkai for + depth replacement and automatic runner for it (by myself). + +2006-12-28 Sandro Santilli + + * testsuite/misc-ming.all/root_stop_testrunner.cpp: + carriage returns removed; fixed wrong assumption, + added more tests (no more expected failures). + +2006-12-26 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, loop_test-Runner.cpp, + loop_test.c: added source of loop_test testcase, updated + tester. + * testsuite/samples/: Makefile.am, loop_test-Runner.cpp, + loop_test.swf: removed code moved to misc-ming.all. + +2006-12-25 Tomas Groth Christensen + + * backend/render_handler_ogl.cpp: Made the OpenGl backend + actually use RGB for video... + +2006-12-24 Sandro Santilli + + * server/swf.h: add name for tag 777 (from a contribution to Ming). + * server/sprite_instance.cpp, + testsuite/misc-ming.all/root_stop_testrunner.cpp, + testsuite/samples/loop_test-Runner.cpp: + temporary hack to fix elvis.swf, breaking other + stuff... just a shuffle to let elvis be with us + for Christmas :) + +2006-12-24 Sandro Santilli + + * testsuite/check.h: always use the stub replacement of Dejagnu + as we need 'xpass' and 'xfail' which are not available in + latest distributed version of dejagnu.h ... + * testsuite/misc-ming.all/root_stop_testrunner.cpp: + marked failures as expected. + * server/sprite_instance.cpp: debug messages hopefully + made a bit less confusing. + +2006-12-23 Tomas Groth Christensen + + * backend/render_handler_ogl.cpp: Changed the OpenGL render, + so that it uses RGB frames for video instead of YUV, since + there's some color issues with YUV->RGB convertion. + +2006-12-22 Sandro Santilli + + * server/: execute_tag.h, sprite_instance.cpp, swf/tag_loaders.cpp: + Simplified get_depth_id_of_replace_or_add_tag() interface to NOT + use negative numbers (return 0 for non-place-or-replace-chars). + +2006-12-22 Zou Lunkai + + * gui/sdl_agg_glue.cpp (render): fix black + display - see bug #18425. + +2006-12-22 Sandro Santilli + + * gui/sdl.cpp: don't report run of renderBuffer() - too much noise. + * testsuite/misc-ming.all/Makefile.am: enabled run of + root_stop_testrunner by 'make check' + +2006-12-22 Zou Lunkai + + * testsuite/misc-ming.all/root_stop_test.c: updated + testcase. + * testsuite/misc-ming.all/root_stop_testrunner.cpp: + test runner for root_stop_test.swf + +2006-12-21 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: added rules + to build root_stop_test.swf + +2006-12-21 Zou Lunkai + + * testsuite/misc-ming.all/root_stop_test.c: new testcase + for bug #18549. + +2006-12-21 Rob Savoye + + * macros/ffmpeg.m4: Also check for the dc1394_control library, + needed on Ubuntu with ffmpeg. + +2006-12-21 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed bug #18244: Forgot to + write to the correct index, and to set a variabel to 0 in a loop. + * server/asobj/NetStreamFfmpeg.cpp: Removed the use of + AVFormatParameters, since it doesn't seem to be needed, and might + make older versions of ffmpeg useable. + +2006-12-21 Sandro Santilli + + * server/as_value.h (set_null): return a reference to self, + to make building a null as_value cleaner. + * server/asobj/xml.cpp, testsuite/actionscript.all/XML.as: + fix a couple of existing tests (minor thing). + * server/as_value.h: fixed extra qualification + 'gnash::as_value::' on member 'typeOf'. + +2006-12-21 Sandro Santilli + + * server/sprite_instance.h: add a static integer keeping + number of unnamed character placements and a function + to return a syntetized name for them. + * server/sprite_instance.cpp (add_display_object): always + provide a name for placed object, syntetizing it if + not provided. This is needed for MOVIECLIP as_values, + now that they basically store a clip's target. + This is experimental, Zou should have a testcase for + this, which would help making it stable. + +2006-12-21 Sandro Santilli + + * testsuite/actionscript.all/String.as: check that no automatic + converstion to String object is performed on a string literal + when instanceOf is called on it. + * server/as_value.{cpp,h}: made get_type() private, provided new + is_number(), is_string(), strictly_equals() and typeOf() methods; + automatically convert string and number primitive values + to String and Number objects from to_object() function. + * server/array.cpp, server/as_environment.cpp, + server/as_function.cpp, server/as_object.cpp, + server/sprite_instance.cpp, server/asobj/Key.cpp, + server/asobj/MovieClipLoader.cpp, server/asobj/xml.cpp, + server/vm/ASHandlers.cpp: + replaced calls to as_value::get_type() with as_value::is_(), + cleaned up some functions to delegate to as_value or to rely + on implicit cast. + +2006-12-21 Sandro Santilli + + * server/as_value.h: m_type, m_string_value and values union + made private. + * testsuite/misc-ming.all/VarAndCharClashTest.as: + added new tests checking integrity of a *reference* + to the movieclip. + +2006-12-20 Sandro Santilli + + * server/as_value.cpp (to_sprite): don't segfault if the + sprite path doesn't reference an existing target. + * testsuite/samples/clip_as_button2-TestRunner.cpp: + handled failures of MovieTester initialization + (see bug #18567). + * server/as_value.{cpp,h}: add MOVIECLIP primitive type. + * server/vm/ASHandlers.cpp (ActionTypeOf): + do the right thing for MOVIECLIP values. + +2006-12-20 Sandro Santilli + + * server/sprite_instance.cpp (sprite_swap_depths): + Use as_value::is_object() rather then comparing get_type(). + This helps when as_value will support MOVIECLIP types. + * server/as_environment.cpp (find_target(const as_value&)): + Use as_value::is_object() rather then comparing get_type(). + This helps when as_value will support MOVIECLIP types. + * server/sprite_instance.cpp (get_member): fixed + CHECK_FOR_NAME_CLASHES block. + * testsuite/movies.all/README: filled 'origin' field + for gravity.swf and gravity-embed.swf. + +2006-12-19 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: added test for + timeline-variable (thanks to Zou Lunkai). + * server/as_environment.cpp (set_variable_raw, get_variable_raw): + give local vars precedence. + * server/vm/ASHandlers.cpp: use ActionExec methods for variables + manipulation. + * server/vm/ActionExec.{cpp,h}: added variable manipulation + functions. + * testsuite/misc-ming.all/timeline_var_test.c: added + additional check for timeline variables. + +2006-12-19 Ann Barcomb + + * removed testsuite/movies.all/elvis.swf due to license uncertainty. + +2006-12-19 Sandro Santilli + + * server/vm/with_stack_entry.h: made all data members private. + * server/as_environment.{cpp,h}: ScopeStack typedef, improved + dox on variable setters/getters. + * server/asobj/Makefile.am: added libltdl include dir. + * server/as_environment.{cpp,h} (get_version): + simplified and clarified dox. + +2006-12-18 Rob Savoye + + * gui/Player.h, Player.cpp: Start adding support for playing + movies from the menu item. From patch #5640. + * gui/gtk.cpp: If running standalone, add a menu bar (task #6124), + and a Preferences box (task #6125). Use Submenus instead of menu + items for right-click menu. Based on (patch #5640 by Sebastiá + Matas) Use separete functions to create each menu so they can be + shared between the MenuBar and the Popup Menu. + +2006-12-18 Sandro Santilli + + * server/sprite_instance.cpp (execute_action): don't reset + local frame top as there's nothing like a 'movie-frame' local + scope. See bug #18523. + * testsuite/misc-ming.all/timeline_var_test.c: don't expect failures. + * server/as_environment.cpp (get_variable_raw): target members take + precedence over local variables. + * testsuite/misc-ming.all/: Makefile.am, timeline_var_test.c: + added Dejagnu.swf capabilities (for visual debugging). + +2006-12-18 Sandro Santilli + + * testsuite/actionscript.all/dejagnu_so_init.as: fix removal + of onEnterFrame callback (don't use 'this'). + * testsuite/misc-ming.all/Makefile.am: enabled + timeline_var_test-Runner + * testsuite/check.h: added stubs for xpass/xfail and defined + xcheck/xcheck_equals/xcheck_equals_label (unfortunately + xfail/xpass are not in latest dejagnu release so we'll either + have to force dejagnu upgrade or always use the stubs instead... + latter being not a bad idea IMHO). + * server/vm/ASHandlers.cpp (ActionPushData): cleanups, including + verbose actions output and symbolic names for push types. + * server/sprite_instance.cpp: use 1-based frame numbers in + action executions reports (VERBOSE ACTION). + * testsuite/misc-ming.all/timeline_var_test.c: turn into + a self-contained test (still not Dejagnu.swf based). + * utilities/processor.cpp: allow 10 loop backs before + kicking to one-after latest frame processed. + * utilities/Makefile.am, testsuite/server/Makefile.am: + link to libgnashvm.la. + +2006-12-18 Markus Gothe + + cygnal/cygnal.cpp: Added getopt.h etc. + +2006-12-17 Rob Savoye + + * configure.ac: USe new GNASH_PATH_MYSQL instead of + GNASH_PKG_FIND. Fix debug display. Don't build extensions by + default. Don't build extensions by default. + * server/asobjs/Global.cpp: If extensions are enabled, scan the + plugin directories and load them. + * Makefile.am: Only build in the extensions or cygnal directories + if enabled. Add MYSQL to dumpconfig. Dump $SUBDIRS list too. + * libbase/network.cpp: Change from log_msg() to + GNASH_REPORT_FUNCTION. + * gui/Makefile.am: Add MYSQL_LIBS if extensions are enabled. + * utilities/Makefile.am: Add MYSQL_LIBS if extensions are enabled. + * macros/mysql.m4: New file to find MySQL dependancies. Uses + mysql-config, and then a path search if that fails. + * extensions/Makefile.am: Don't try to build MySQL extension if + MySQL isn't installed. + * extensions/mysql/Makefile.am: Use new MYSQL_* flags from new + macro. + * extensions/mysql/mysql_db.cpp: Attach the Interfaces when + initializing. + * extensions/mysql/test.as: Don't try to run if extensions are + disabled. + * extensions/dejagnu/test.as: Don't try to run if extensions are + disabled. + * extensions/dejagnu/Makefile.am: Add libgnashvm. + * extensions/dejagnu/dejagnu.cpp: Attach the Interfaces when + initializing. + * libbase/log.cpp: Only check for verbose not being zero when tracing. + * server/vm/Makefile.am: Install the gnashvm library, so + extensions work again. + +2006-12-17 Markus Gothe + + * libamf/amf.cpp: reinterive cast. + * libgeometry/Range2D.h: static_cast + using namespace std (for wicked + compilers, like MIPSPRO ;)). + * libbase/hash_wrapper: fixed namespace for find(). + * macros/gtk2.m4: Typos, fixed lib-finding. + +2006-12-16 Rob Savoye + + * configure.ac: Add tests for MySQL. Print MYSQL flags from + configure tests. Drop enable testing option. Add mysql and cygnal + configure output directories. Remove unused options for http + server. Add option to disable building cygnal. Add option to + disable building extensions. + + * cygnal: New directory for media server. + * cygnal/cygnal.cpp: Main entry for server. + * cygnal/Makefile.am: Makefile for media server. + * cygnal/README: Server specific info file for developers. + * cygnal/stream.cpp, stream.h: Streaming data class. + * cygnal/netstats.cpp, netstats.h: Collect statistics on + network performance. + * cygnal/statistics.cpp, statistics.h: Collect statistics on each + movie being played for performance tweaking and bandwidth shaping. + * cygnal/http.c, http.h: Support for a simple subset of HTTP, + enough to respond to GET requests. + * cygnal/alloc.cpp: Threadsafe new & delete to keep STL containers + working in a multi-threaded application. + + * gui/Makefile.am: Switch from the rectangular gnash_128_96.ico to + the square "Gnashing G" icon. It looks better in the toolbar. + * gui/gtksup.h: Add about box callback prototype. + * gui/gui.h: Add menu_about(). + * gui/gtk.cpp: Switch from the rectangular gnash_128_96.ico to + the square "Gnashing G" icon. Add about box, patch by Sebastiá + Matas, #5640. + +2006-12-15 Rob Savoye + + * extensions/Makefile.am: Build MySQL extension. + * libbase/extension.cpp: Don't continue if the search directory + doesn't exist. + + * server/array.cpp: Add the size operator, which wasn't being added + as a member. + * extensions/mysql/mysql_table.h: Remove. + * extensions/mysql/mysql_db.cpp, mysql_db.h: Tottally + rewritten. Work as a Gnash extension. Add methods for MySQL API, + as well as a generic getData() method for simple queries. + * extensions/mysql/test.as: Test the MySQL extension. + * extensions/mysql/test.sql: MySQL schema for test case. + * extensions/dejagnu/Makefile.am: Use libdir instead of + prefix. Include from asobjs too, and also link in + libgnashvm. Don't build Sharedtest. + * extensions/dejagnu/dejagnu.cpp: Setup the members + correctly. Don't attach twice for this class. + * extensions/dejagnu/test.as: Use pass and fail. + +2006-12-14 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: + rules for building timeline variable scope + test (missing a test runner!) + +2006-12-14 Zou Lunkai + + * testsuite/misc-ming.all/timeline_var_test.c: + testcase for timeline variables scope + (could be turned into a self-contained test!) + +2006-12-14 Sandro Santilli + + * testsuite/actionscript.all/Function.as: fixed for SWF5 target. + +2006-12-14 Sandro Santilli + + * server/as_environment.{cpp,h}: add dump_local_variables + method. + * server/vm/ActionExec.cpp: include dump of local variables + IF_VERBOSE_ACTION. + +2006-12-14 Sandro Santilli + + * testsuite/actionscript.all/Function.as: re-enabled + lots of tests that were commented out with previous + commit of this file (Oops). + * server/vm/ActionExec (operator()): + handle stack smashing and warn about elements left on + the stack after a function call. + +2006-12-14 Sandro Santilli + + * server/as_environment.{h,cpp}: add an additional + argument to findLocal() to specify wheter the seek + should descend in upper frames; descend when getting, + deleting and setting variables; don't descend when + setting or declaring a *local* variable (set_local, + declare_local). + * testsuite/actionscript.all/Function.as: added tests + for timeline-local variable access from within a function + (see bug #18523). + +2006-12-13 Sandro Santilli + + * server/parser/action_buffer.cpp: neater output + for constant pool (-va). + +2006-12-13 Sandro Santilli + + * server/sprite_instance.cpp (sprite_create_empty_movieclip): + accept more then 2 args, just discarding the one in excess. + * testsuite/actionscript.all/MovieClip.as: don't expect + failures when createEmptyMovieClip is called with more then + 2 args. + +2006-12-13 Sandro Santilli + + * testsuite/Makefile.am: don't attempt to build Dejagnu.swf + if Ming isn't enabled. + * testsuite/actionscript.all/Makefile.am: don't attempt + to run tests if Ming isn't installed, that support is + currently broken, this is a quick fix to enable users + to run some test even w/out Ming. + * testsuite/: movies.all/Makefile.am, samples/Makefile.am: + don't require Ming to run tests in these dirs; add + required BOOST cflags. + +2006-12-13 Sandro Santilli + + * doc/C/gnashrc.xml, libbase/log.h, libbase/rc.cpp, libbase/rc.h: + Add 'ASCodingErrorsVerbosity' and 'MalformedSWFVerbosity' + settings in gnashrc, IF_VERBOSE_MALFORMED_SWF() and + IF_VERBOSE_ASCODING_ERRORS() now use these settings + (not overridable from command line). + * server/character.cpp (get_relative_target_commont): + don't warn about refenrecing on-up from root movie + unless verbose ascoding errors are requested. + +2006-12-13 Sandro Santilli + + * server/as_environment.cpp: added debugging lines for + find_target (compile-time enablable). + * server/vm/ASHandlers.{h,cpp}: added CommonSetTarget(). + * server/font.cpp (font::read_font_info): warn only once + about DefineFontInfo2 being partially implemented... + * server/swf/tag_loaders.cpp: removed additional newlines in log + messages; (define_sound_loader) raise a warning when no sound + handler is set, becasue characters will be missing from the + Dictionary; (export_loader): turn export error into a warning. + +2006-12-13 Sandro Santilli + + * server/sprite_instance.cpp (set_member): don't attempt to set the + value of a character in the DisplayList, see VarAndCharClashTest.swf + testcase; (get_member): give object members precedence over + characters in DisplayList -- should be tested what happens with + "inherited" members.. + * testsuite/misc-ming.all/VarAndCharClashTest.as: don't expect + any failure. + +2006-12-13 Sandro Santilli + + * testsuite/misc-ming.all/VarAndCharClashTest.as: + added more tests, dissipating some of the cloud... + +2006-12-12 Sandro Santilli + + * testsuite/misc-ming.all/: Makefile.am, VarAndCharClashTest.as: + Code and Makefile rule generating a self-contained testcase for + variables and characters name clashes (failing in Gnash). + Note how powerful 'makeswf' is :D + +2006-12-12 Sandro Santilli + + * server/: button_character_instance.cpp, sprite_instance.cpp: + introduce button actions execution IF_VERBOSE_ACTION; include + total frame count in sprite's frame action executions. + +2006-12-12 Sandro Santilli + + * server/: button_character_instance.h, character.h, + edit_text_character.h, generic_character.h, sprite_instance.cpp, + sprite_instance.h, video_stream_instance.h: + const-corrected can_handle_mouse_event() and get_event_handler(). + +2006-12-12 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: some more + (verified) tests for MovieClip.useHandCursor. + +2006-12-12 Sandro Santilli + + * server/sprite_instance.cpp: stubbed all interfaces + tested for existance in MovieClip.as (drawing api, mainly). + * testsuite/actionscript.all/MovieClip.as: don't expect + failures while testing existance of newly added stubs; + Move globalToLocal test in SWF5 section (verified). + +2006-12-12 Sandro Santilli + + * server/sprite_instance.cpp: stubbed MovieClip.getBounds(). + * testsuite/actionscript.all/MovieClip.as: added incomplete + test for MovieClip.getBounds(). + +2006-12-12 Sandro Santilli + + * server/as_object.h: added get_primitive_value() virtual + functions. + * server/as_value.{cpp,h}: added to_primitive(). + * server/character.h: made set_name virtual to allow handling + from subclasses. For the same reason _name is now protected + (from private). + * server/sprite_instance.{h,cpp}: override get_text_name() + and set_name(). + * server/asobj/string.cpp: override get_primitive_value(). + * testsuite/actionscript.all/MovieClip.as: add test for + cast to primitive. + +2006-12-12 Sandro Santilli + + * server/asobj/string.cpp: added get_text_value + override. + +2006-12-12 Ann Barcomb + + * The Dejagnu format--as described in the test section of the + Docbook documentation--is now fully explained. + +2006-12-11 Sandro Santilli + + * testsuite/movies.all/: ORIGIN merged into README. + +2006-12-11 Ann Barcomb + + * Added test movie 'testsuite/movies.all/yapc2006.swf', a + large movie which does not currently play very well. + +2006-12-11 Sandro Santilli + + * testsuite/samples/: Makefile.am, README, loop_test-Runner.cpp, + loop_test.swf: Added contributed SWF test and associated test runner. + See patch #5620. + +2006-12-11 Ann Barcomb + + * Modified plugin list in documentation, + based upon comments from Bastiaan. + +2006-12-11 Sandro Santilli + + * server/swf/tag_loaders.cpp (place_object_2): + some cleanup of class definition. + +2006-12-10 Sandro Santilli + + * server/PropertyList.{h,cpp} (delProperty): + changed return type to std::pair + to let caller know wheter delete failed because + the property was not found OR because it was + protected from deletion. + * server/as_object.{h,cpp} (delProperty): same + as with PropertyList: return std::pair + with same semantic. + * server/as_environment.cpp (del_variable_raw): + don't keep scanning the 'with' stack if any object + actually had the given property defined, even if + protected from deletion. + * server/vm/ASHandlers.cpp: updated calls to + as_object::delProperty(). + * testsuite/server/PropertyListTest.cpp: updated + calls to PropertyList::delProperty. + * testsuite/actionscript.all/delete.as: added test for + protected member deletion. + +2006-12-09 Sandro Santilli + + * server/button_character_instance.{cpp,h}: added missing + get_width() and get_height() overrides. + * server/button_character_instance.cpp, server/dlist.cpp, + server/parser/action_buffer.cpp: cleanup debugging lines. + +2006-12-09 Sandro Santilli + + * server/as_environment.cpp (del_variable_raw): try to delete from + _global if anything else fails. + * testsuite/actionscript.all/delete.as: xcheck => check as delete + from _global now works fine. + +2006-12-09 Sandro Santilli + + * testsuite/actionscript.all/delete.as: added "scoped delete" as of + bug #18482, but using ActionDelete rather then ActionDelete2 which + is used in the bug item testcase. Gnash is currently failing to + delete a variable in _global. + +2006-12-09 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionDelete): be more robust + on malformed SWF (actually not sure about correctness, + but at least our testcase behave as the official + player does). + * testsuite/actionscript.all/delete.as: xcheck => check. + +2006-12-09 Timothy Lee + + * configure.ac: Detect the Cairo library when the Cairo backend is + enabled (and also when GTK GUI is being used). + * backend/render_handler_cairo.cpp: + Removes Xlib-specific header and test code. + Fixes viewport clipping problem. + Removes offscreen buffer and renders directly through Cairo. + This opens the possibility of using OpenGL/Glitz acceleration in Cairo + by calling set_handle() with different types of handles. + An added benefit of this change is that the bitmap created by the + SDL glue now becomes the direct target of Cairo's rendering, + without the redundant offscreen buffer in-between. + * gui/gtk_glue_cairo.{cpp,h}: + The GTK glue now manages an offscreen bitmap for the backend to render on. + Window resizes now causes the offscreen bitmap to be resized as well. + +2006-12-08 Sandro Santilli + + * testsuite/simple.exp: raised timeout to 4 minutes. + * server/as_environment.cpp (findLocal): it seems I missed something. + bring back the crappy code while keeping the external interface + cleaner (will check later what's the difference there..). + +2006-12-08 Sandro Santilli + + * server/: swf.h, vm/ASHandlers.{cpp,h}: + Renamed ACTION_DELETE to ACTION_DELETE2 + and ACTION_DELETEVAR to ACTION_DELETE, to reflect + official nomenclature (Ming's listswf also uses + this names) + +2006-12-08 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionDelete): use the new + ActionExec::delVariable() method. Fixes bug #18482. + (ActionDeleteVar) use the new as_object::delProperty() + method, but no testcases for it... + +2006-12-08 Sandro Santilli + + * server/as_environment.{cpp,h}: obsoleted crappy find_local function, + substituted with iterators-based equivalent; typedef'd + LocalFrames; added del_variable_raw method. + * server/vm/ActionExec.{cpp,h}: added delVariable() method, invoking + as_environment::del_variable_raw with current 'with' stack. + +2006-12-08 Sandro Santilli + + * server/as_object.{cpp,h}: added delProperty() member. + * server/PropertyList.{cpp,h}: added delProperty() member. + * testsuite/server/PropertyListTest.cpp: added test for delProperty(). + +2006-12-08 Sandro Santilli + + * server/as_prop_flags.h: added methods for + clearing flags, encoded bit values in an enum, + better documentation and implementation cleanup. + * testsuite/server/: Makefile.am, as_prop_flagsTest.cpp: + Added testcase for as_prop_flags class. + +2006-12-08 Sandro Santilli + + * testsuite/MovieTester.cpp (getInvalidatedBounds): + use a float factor for scale (1/20 was being converted + to 0). Don't clear invalidated bounds (or a NULL + range would always be returned). + +2006-12-08 zoulunkai , + + * server/sprite_instance.cpp (advance_sprite): + don't re-execute tags in first frame when looping. + +2006-12-08 Sandro Santilli + + * libbase/log.{cpp,h}: add a templated operator << for + printing *any* class that has an output operator defined. + It could replace most operator<< methods, but I won't go + there for now... just happy with derived Range2d printing facility. + * testsuite/{samples,movies.all,misc-ming.all}/Makefile.am: + add libtestsuite.la to DEPENDENCIES of test runners. + * libgeometry/Range2d.h: properly inlined specialized + round{Min,Max} functions. + * testsuite/MovieTester.{h,cpp}: changed getInvalidatedBounds + to return bounds in PIXELS rather then TWIPS (to + conform with mouse movement notification) + +2006-12-08 Sandro Santilli + + * libgeometry/Range2d.h: implemented cast between range types, + with float=>{int,unsigned int} cast ensuring resulting range + is not smaller then original. + * testsuite/libgeometry/Range2dTest.cpp: added tests for + Range2d type cast. + +2006-12-08 Sandro Santilli + + * libgeometry/Range2d.h: changed scale() functions to take a float, + to allow for fractional scales; implemented specializations + for int and unsigned int types to ensure rounding doesn't make + the range smaller. + Fixed many functions erroneously returning *this by value rather + then by reference. + * testsuite/libgeometry/Range2dTest.cpp: added tests for scale() + function verifying the rounding for integer types. + +2006-12-08 Sandro Santilli + + * libgeometry/Range2d.h: added scale() functions to scale both + horizontally and vertically in a single call. + +2006-12-07 Sandro Santilli + + * testsuite/actionscript.all/String.as: more + tests for ActionSubString (invalid calls...) + * server/vm/ASHandlers.cpp (ActionSubString): + do the right thing on invalid calls. + +2006-12-07 Sandro Santilli + + * server/asobj/string.cpp (string_set_length), + server/sprite_instance.cpp (sprite_hit_test): + fixed IF_VERBOSE_ASCODING_ERRORS macro use syntax. + * server/parser/: movie_def_impl.{h,cpp}, sprite_definition.cpp + (add_frame_name): don't inline it. + * server/vm/action.cpp (attach_extern_movie): + store sprites in intrusive pointers (fixes some + testInvariant failures). + * server/as_environment.cpp (dump_global_registers): + don't print anything if none of the registers are defined. + * testsuite/actionscript.all/String.as: + Added test for SUBSTRIN tag, but only + enabled if MING_SUPPORTS_ASM is defined + (which never happens atm.. should add that). + * server/vm/ASHandlers.cpp (ActionSubString): + when size argument is too big fix it rather + then returning undefined. + * server/as_environment.cpp (find_target): + fixed handling of paths ending with a slash + (example: '../'). + * server/vm/ASHandlers.cpp (ActionGetProperty): + raise a warning if the target is not found + (ASCODING ERROR) + * server/as_environment.{cpp,h}: registers + debugging functions moved to implementation + file, don't print local registers if empty. + * server/asobj/NetStream.cpp (ctor): don't + abort on ActionScript coding errors. + +2006-12-06 Rob Savoye + + * libbase/sharedlib.cpp: Don't call lt_dlexit when destructing. + * server/asobj/Global.cpp: Look for extensions. + * extensions/dejagnu/Makefile.am: Use libdir instead of + prefix. Include from asobjs too, and also link in + libgnashvm. Don't build Sharedtest. + * extensions/dejagnu/dejagnu.cpp: Setup the members + correctly. Don't attach twice for this class. + * extensions/dejagnu/test.as: Use pass and fail. + * libbase/extension.cpp: Remove the plugin suffix. + * libbase/sharedlib.cpp: Don't exit libltdl in the destructor. + +2006-12-07 Ann Barcomb + + * doc/C/internals.xml, gnashrc.xml: + Explicitly documented that there are two sound support + settings. Addresses documentation task #6129. + +2006-12-07 Sandro Santilli + + * server/: movie_root.cpp, sprite_instance.cpp: + Added debugging output. + * utilities/processor.cpp: don't always kick + a STOPPED movie, wait for a specified number + of seconds before kicking it (defaults to 5). + Fixes bug #18475. + +2006-12-07 Sandro Santilli + + * server/: edit_text_character.cpp, movie_root.cpp, + movie_root.h: streamlined headers inclusions. + +2006-12-06 Sandro Santilli + + * testsuite/server/PropertyListTest.cpp: updated test + to reflect the new case-sensitive implementation + of PropertyList class. + +2006-12-06 Sandro Santilli + + * gui/gui.cpp (advance_movie): add support for sequentially + displaying all frames of a movie (compile-time define). + * gui/gui.cpp (display): when debugging invalidated bounds + show only the last invalidated region. this slows the + rendering, but when debugging you probably don't care. + BTW, this commit also makes NO debugging the default. + +2006-12-06 Sandro Santilli + + * server/sprite_instance.cpp (get_invalidated_bounds): + cleaned up debugging output to use rect::toString. + * server/movie_root.cpp (get_invalidated_bounds): remove + the dirty workaround to invalidated bounds bug. + * server/character.{h,cpp} (set_invalidated_bounds): propagate + invalidity to parent (seems to fix the invalidated bounds + bug introduced by last big refactoring). + * server/rect.{cpp,h}: added toString() method. + +2006-12-06 Sandro Santilli + + * backend/render_handler_d3d.cpp, gui/Player.cpp, gui/fbsup.h, + gui/gtk_glue_cairo.h, gui/kdesup.h, gui/sdl_ogl_glue.h, + libbase/URL.cpp, libbase/log.cpp, libbase/rc.cpp, + libbase/sharedlib.cpp, plugin/plugin.cpp, server/as_object.h, + server/font.h, server/gnash.h, server/render.cpp, + server/sprite_instance.h, server/swf.h, server/timers.cpp, + server/asobj/NetConnection.cpp, server/parser/action_buffer.h, + server/swf/tag_loaders.cpp, server/vm/ASHandlers.cpp, + server/vm/ASHandlers.h, server/vm/ActionExec.h: + Minor cleanups to reduce Doxygen warnings. + +2006-12-06 Sandro Santilli + + * testsuite/server/GetterSetterTest.cpp: fix segfault + by initializing the VM with a dummy v6 movie definition. + +2006-12-06 Sandro Santilli + + * server/Makefile.am, server/drag_state.h, gui/Player.cpp, + gui/gui.cpp, gui/gui.h, server/button_character_instance.cpp, + server/character.cpp, server/character.h, + server/edit_text_character.cpp, server/impl.cpp, server/impl.h, + server/movie_instance.cpp, server/movie_instance.h, + server/movie_root.cpp, server/movie_root.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/asobj/Key.cpp, server/parser/movie_def_impl.cpp, + server/parser/movie_def_impl.h, + server/parser/movie_definition.h, + server/vm/ASHandlers.cpp, server/vm/VM.cpp, server/vm/VM.h, + server/vm/action.cpp, utilities/processor.cpp: + Redesigned movie_root so that it doesn't derive from sprite_instance + anymore, but it is rather a wrapper around the *single* *absolute* + root movie for a specific run. Changed VM to return that single + movie_root by ref using the getRoot() method; + Sorry if this changelog is too short, but was a lot of work, and + tried my best at keeping doxygen comments in sync. + Also, note that invalidated bounds seems broken now, + movie_root::get_invalidated_bounds() always return the WORLD rect + as a quick fix, but we have to fix that. + * testsuite/MovieTester.cpp, testsuite/server/PropertyListTest.cpp, + testsuite/server/Makefile.am, testsuite/DummyMovieDefinition.h: + Added a dummy movie definition for use in unit tests, + PropertyListTest still fails because we handle case sensitiveness + in as_object, not in PropertyList.. + + +2006-12-06 Sandro Santilli + + * server/movie_root.h (get_invalidated_bounds): use rect::set_world() + rather then using a custom value for big bounds. + * testsuite/MovieTester.{cpp,h}: add getInvalidatedBounds function. + * libgeometry/Range2d.h (Intersect): removed spurious code. + * server/rect.h: added getRange() method. + + +2006-12-05 Sandro Santilli + + * server/rect.cpp (expand_to_rect): handled world rects. + * server/asobj/MovieClipLoader.cpp (loadClip): use smart + pointers (to avoid testInvariant failures in sprite_instance). + * server/types.{cpp,h} (rgba::print): made a const method. + * .cvsignore, extensions/.cvsignore, plugin/klash/.cvsignore, + testsuite/libgeometry/.cvsignore, utilities/.cvsignore, + testsuite/.cvsignore, testsuite/libbase/.cvsignore, + testsuite/libgeometry/.cvsignore, testsuite/misc-ming.all/.cvsignore, + testsuite/server/.cvsignore, + New/updated cvs ignore files. + * plugin/klash/Makefile.am: added libgeometry + directory in include list. + * server/rect.h: added output operator. + * backend/render_handler_agg.cpp (ctor): + properly initialized m_drawing_mask member. + +2006-12-05 Tomas Groth Christensen + + * backend/render_handler.h, backend/render_handler_agg.cpp, + backend/render_handler_cairo.cpp, server/render.h, + backend/render_handler_ogl.cpp, server/render.cpp: Removed + YUV_video, and added videoFrameFormat() and drawVideoFrame(). + * libbase/image.cpp, libbase/image.h: Added yuv. + * server/Makefile.am: Removed video_yuv.cpp + * server/gnash.h: Removed YUV_video. + * server/video_stream_instance.cpp: Changed to use the new + videoframe rendering method. + * server/asobj/Makefile.am: Added NetStreamFfmpeg.{cpp|h} + * server/asobj/NetStream.{cpp|h}: Removed the ffmpeg code, + and made a non-decoding class (NetStreamBase). + * server/asobj/NetStreamFfmpeg.{cpp|h}: Created the files, + which contains the ffmpeg specific code, moved from + NetStream.{cpp|h}. Now uses StreamProvider to handle files, + and connects in a seperate thread to avoid blocking. + +2006-12-05 Sandro Santilli + + * server/movie_root.h: Added more information for the + class (using repository for planning, let me know if + you find this disturbing). + * server/parser/movie_definition.h: Added more information + for the class (Doxygen class description). + +2006-12-04 Sandro Santilli + + * server/parser/: movie_def_impl.h, movie_definition.h, + sprite_definition.h: provided a default implementation + for most movie_definition methods, to make deriving + from it easier. Removed some unneeded overload from + sprite_definition (the new default implementations are + good enough). Cleaned up and improved doxygen comments. + +2006-12-03 Sandro Santilli + + * testsuite/libgeometry/Range2dTest.cpp: add tests for + growBy(). + * libgeometry/Range2d.h: fix growBy() to properly handle + numerical overflows ( see relative tests ). + +2006-12-02 Sandro Santilli + + * libgeometry/Range2d.h: Add growBy() and shrinkBy() methods. + Make all mutators return a reference to *this (nicer use sytax). + * backend/render_handler_agg.cpp, gui/gtk.cpp: set back the + drawn bounds 2 pixel grow needed for antialiasing. + +2006-12-02 John Franklin + + * backend/render_handler_agg.cpp (render_handler_agg ctor): + initialize x/y scale to 1/20 by default. + +2006-12-02 Sandro Santilli + + * gui/fb.cpp, gui/gtk.cpp: don't render anything + if _drawbounds.isNull() - we should make sure + that _drawbounds is expanded to cover 'newly' exposed + regions, and that it is reset to NULL after each + call to renderBuffer. + +2006-12-02 Sandro Santilli + + * backend/render_handler.h, backend/render_handler_agg.cpp + backend/render_handler_tri.cpp, backend/render_handler_tri.h + gui/gtk.cpp, gui/gtksup.h, gui/gui.cpp, gui/gui.h, gui/fbsup.h, + gui/fb.cpp: + Use Range2d rather then 4 integers for clip bounds, + keep trac of *valid* range for pixel values, add some questions + as comments in the code. Please forgive me if this will break + something but we're in a stage we'll have to break things + for making them better ... + +2006-12-02 Sandro Santilli + + * server/rect.h: added is_world() and get_world() methods. + +2006-12-01 Sandro Santilli + + * testsuite/: actionscript.all/swf_exists.exp, libbase/libbase.exp, + server/server.exp: removed, ../simple.exp is better ! + * testsuite/: libbase/Makefile.am, server/Makefile.am: + use ../simple.exp for testing. + +2006-12-01 Sandro Santilli + + * backend/render_handler_agg.cpp (set_invalidated_region): + Temporary hack to fix bug #18416, and a way to + show Udo a usage case. The real solution is use + Range2d instead of m_clip_{x,y}{max,min}. + +2006-12-01 Sandro Santilli + + * server/Makefile.am, server/rect.cpp, server/rect.h, + server/asobj/Makefile.am, server/parser/Makefile.am, + server/parser/movie_definition.h, server/parser/video_stream_def.h, + server/vm/Makefile.am, utilities/Makefile.am, testsuite/Makefile.am: + Rewritten gnash::rect class to use Range2d. + +2006-12-01 Sandro Santilli + + * backend/render_handler.h, server/render.h: + some doxygen notes for bounds_in_clipping_area. + +2006-12-01 Sandro Santilli + + * configure.ac, libgeometry/Makefile.am, libgeometry/Range2d.h, + testsuite/Makefile.am, testsuite/libgeometry/Makefile.am, + testsuite/libgeometry/Range2dTest.cpp, testsuite/server/Makefile.am: + New Range2d template class and associated unit test. + +2006-12-01 Sandro Santilli + + * configure.ac: make missing BOOST_LIBS + a nogo (we need threads now). + +2006-12-01 Vitaly Alexeev + + * backend/render_handler_ogl.cpp, + * libbase/image_filters.cpp, + * libbase/tu_config.h, + * libbase/log.cpp, + * libbase/network.cpp, + * libbase/container.cpp, + * server/sprite_instance.cpp, + * server/movie_instance.cpp, + * server/dlist.cpp, + * server/dlist.h, + * server/parser/movie_def_impl.cpp, + * server/vm/ASHandlers.cpp + Cleaning of Vitaly dust from comments + +2006-11-30 Sandro Santilli + + * libbase/: Makefile.am, sharedlib.cpp: + boost::lightweight_mutex => boost::mutex + * backend/render_handler_agg.{cpp,h}: + some cleanups (including a missing virtual destructor) + and some assertions checking, to make reproducing + bug #18416 easier. + +2006-11-30 Patrice Dumas + + * autogen.sh: add libltdl once. + +2006-11-30 Markus Gothe + + * backend/sound_handler_sdl.{h,cpp}: hash<> to hash_wrapper<> change. + * fontlib.h: Don't include "container.h". + +2006-11-30 Sandro Santilli + + * server/parser/movie_def_impl.cpp (resolve_import): + remove unneeded round-trip with static casts. + * server/edit_text_character.{h,cpp}, + server/parser/edit_text_character_def.h: + use unsigned integers for curosr and max text length. + * server/parser/movie_def_impl.{h,cpp}: implement + a thread-safe get_bytes_loaded taking seek-backs + into account. + +2006-11-30 Sandro Santilli + + * server/parser/Makefile.am: added BOOST_LIBS as + we now use boost threads. + * server/parser/movie_def_impl.{h,cpp}: be less + lock-intensive in load. Note that this exposes + a problem with get_bytes_loaded, play elvis.swf + to see. I'm committing anyway as a mileston, + will fix get_bytes_loaded later. + +2006-11-30 Sandro Santilli + + * testsuite/actionscript.all/gen-index-wiki.sh: + include a link to the source code. + * server/parser/movie_def_impl.cpp (read_all_swf): + catch std exceptions (including parsing exceptions). + * server/styles.cpp (read): throw ParserException when + an unsupported fill style type is read. + * libbase/GnashException.h: add a ParserException class. + * backend/Makefile.am: add BOOST_CFLAGS (see bug #18398) + +2006-11-29 Patrice Dumas + + * macros/kde.m4: Remove plies of useless code we don't need. + +2006-11-29 Rob Savoye + + * config.sub, config.guess: Let autogen.sh install these. + * libltdl: Remove directory and let libtoolize install this + instead. + * autogen.sh: Add --ltdl to libtoolize. + +2006-11-29 Sandro Santilli + + * testsuite/actionscript.all/: Makefile.am, gen-index.sh, + gen-index-wiki.sh: fix index.wiki generation rule. + * testsuite/anaylse-results.sh: sort directories, to make + cross-systems comparison easier. + * testsuite/simple.exp: handle deadlocks or infinite loops + in testcases. + * testsuite/simple.exp: handle premature death and non-zero + return of testcases. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + Add tests for dynamically changing a TextField's variable name. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp + Updated and simplified (the most part is done in the sefl-contained + testcase anyway). + * server/edit_text_character.{cpp,h}: + Allow programmatically setting a TextField's + variable name. + +2006-11-29 Sandro Santilli + + * server/edit_text_character.cpp: properly set + TextField interface (to finish); implement 'variable' + propery. + * updated .cvsignore files, moved binary only swf + from testsuite/actionscript.all to testsuite/samples. + * server/movie_root.cpp (advance): + Don't check delta_time, rather always call advance of + current_root. My plan is to have movie_root be just a + wrapper around movie_instance. + * testsuite/MovieTester.cpp: + Activate verbosity to allow for self-contained testcases + to be taken into account; give initial kick to movie. + * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, + DefineEditTextVariableNameTest-Runner.cpp, + RollOverOutTest-Runner.cpp: + Omit the initial ::advance(), MovieTester will take + care of that. + +2006-11-28 Sandro Santilli + + * testsuite/Makefile.am: added -Iserver/vm + needed for MovieTester.cpp + * testsuite/MovieTester.cpp (ctor): fixed + reference to root movie (it's still pretty + confusing) + +2006-11-28 Markus Gothe + + * server/shape.cpp: hash<> -> hash_wrapper<>. + +2006-11-28 Sandro Santilli + + * testsuite/MovieTester.cpp (ctor): properly initialize + the virtual machine. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + test TextField.variable. + * testsuite/misc-ming.all/ming_utils.c (add_xtrace_function): + register 'xtrace' on the _root movie. + * gui/Player.cpp: fix handling of the -d switch. + +2006-11-28 Sandro Santilli + + * server/character.cpp (do_mouse_drag): indentation + * server/character.h (drag_state): documented + coordinate space for drag bounds. + * server/vm/ASHandlers.cpp (ActionStartDragMovie): + convert pixels to twips when reading drag boundaries. + +2006-11-28 Sandro Santilli + + * server/button_character_instance.{cpp,h}: + Don't override get_mouse_state with an equivalent + implementation. + * server/rect.{cpp,h}: Add clamp(point) method. + * server/: character.{cpp,h}, movie_root.{cpp,h}, + sprite_instance.{h,cpp}: + Change signature of get_mouse_state() and get_drag_state() + to use references rather then pointers; Improve + definition of drag_state class to use our rect + class for bounds and to store character in a smart pointer. + * server/vm/ASHandlers.cpp (ActionStartDragMovie): + flip drag boundaries coordinates if given in the wrong + order (fixes bug #18394). + +2006-11-28 Sandro Santilli + + * gui/Player.cpp (load_movie) : don't start loader thread + also for stdin reads. Fixes bug #18393. + * server/: impl.{cpp,h}, parser/movie_def_impl.{cpp,h}, + parser/sprite_definition.cpp, swf/TagLoadersTable.{cpp,h}: + Another global removed: 's_tag_loaders', replaced + with TagLoadersTable turned into a singleton. + +2006-11-28 Markus Gothe + + * Applied a bunch of RiscOS-patches. + +2006-11-28 Sandro Santilli + + * macros/libtool.m4: removed so that ltmain.sh + always matches the one found in system. + (libtoolize --force --copy will replace ltmain.sh) + +2006-11-28 Patrice Dumas + + * remove or conditionalize CPPFLAGS and LIBS + * add distributed files or dirs + * use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL in autogen.sh + * add dependencies on libs for gnash, to avoid parallel make error + * change <..> to ".." for includes from source + +2006-11-28 Sandro Santilli + + * server/impl.cpp (globals): base_url auto_ptr made + module-static. + * autogen.sh: make 'Running' messages show all args. + * server/sprite_instance.cpp (ctor): initialize + all members (m_sound_stream_id in particular + needed it). + +2006-11-27 Markus Gothe + + * Reverted naming-changes. + * libgeometry/kd_tree_dynamic.cpp: hash_wrapper(). + * utilities/parser.cpp: hash_wrapper(); + * libbase/hash_wrapper.h: template-wrapper for add() and get() to + replacing hash()-code with . + +2006-11-27 Sandro Santilli + + * server/parser/sprite_definition.cpp (read): + don't choke if DEFINESPRITE tag contains more + SHOWFRAME then expected. + * server/: gnash.h, impl.cpp: export the movie creation + functions taking additional argument to control + start of the loader thread. + * server/parser/movie_definition.h: completeLoad() + definition moved in base class. + * server/parser/movie_def_impl.cpp (create_instance): + don't execute actions of frame 0, delegate that + to movie_instance::advance. + * server/movie_instance.cpp (advance): execute + actions in frame 0 on first call. + * gui/Player.cpp (run), utilities/processor.cpp (play_move): + complete root movie load *after* the VM is initialized. + +2006-11-27 Sandro Santilli + + * server/sprite_instance.cpp (get_member): + clean up _name and _droptarget handling. + (btw, we should use addProperty for these). + * testsuite/actionscript.all/MovieClip.as: + fixed tests for SWF5 target. + * testsuite/actionscript.all/dejagnu_so_init.as: + implement dejagnu initialization checker function + with setInterval (in addition to onEnterFrame). + This makes SWF5 targets work fine. + * server/parser/movie_def_impl.cpp (create_instance): + don't force the instance name to be _root ! + * server/sprite_instance.{h,cpp}: added support + for the _target property; report execution of + frame tags when in verbose action mode. + * testsuite/actionscript.all/MovieClip.as: added + tests for the _target property. + * server/asobj/Video.cpp: attachvideo => attachVideo. + * server/asobj/string.cpp: lastindexof => lastIndexOf. + * testsuite/actionscript.all/: XMLNode.as, MovieClip.as: + fixed tests to match reality. + +2006-11-26 Sandro Santilli + + * server/sprite_instance.cpp (attachMovieClipInterface): + only activate the methods available for the target SWF + version. Added stubs for getURL, startDrag, stopDrag + and attachAudio. + * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): + don't "visualize" expected successes. + * server/vm/ASHandlers.cpp (ActionTypeOf): + return "movieclip" when object is a sprite_instance. + * testsuite/actionscript.all/MovieClip.as: + typeof(mc) == "movieclip" succeeds. + * testsuite/actionscript.all/: Object.as, XML.as: + don't expect case-based failure. + * server/as_object.{h,cpp}: added getVM() function, + store a reference to the VM in class definition. + * testsuite/misc-ming.all/ming_utils.c: add a note + function to dejagnu module interface. + * doc/C/internals.xml: cleanups in the 'writing testcases' + sections, new section about using Dejagnu.swf for writing + testcases using non-Ming compilers. + +2006-11-26 Udo Giacomozzi + + * backend/render_handler_agg.cpp (draw_glyph): + allow glyphs to be used for drawing masks. + Fixes bug #18242. + +2006-11-26 Sandro Santilli + + * backend/render_handler_agg_style.h (agg_style_base): + add missing virtual destructor. Fixes bug #18309. + +2006-11-26 dolphinling + + * server/edit_text_character.cpp: + code cleanups. + +2006-11-26 Markus Gothe + + * server/rect.h DSOEXPORT expand_to_transformed_rect(). + * libbase/smart_ptr.h: Removed TU's rights since we don't use his + code. + +2006-11-25 Udo Giacomozzi + + * backend/render_handler.h, backend/render_handler_agg.cpp: + Don't start drawing a character when it's outside the clipping + rectangle. + * server/render.h, server/render.cpp: + Added interface to bounds_in_clipping_area() + * server/sprite_instance.cpp: Don't draw sprites (and their + childs) outside the clipping rectangle. + + +2006-11-25 Sandro Santilli + + * server/asobj/Global.cpp, testsuite/actionscript.all/Global.as: + isNan => isNaN. + * testsuite/actionscript.all/Boolean.as: + fix method names capitalization. + * server/asobj/gen-asclass.sh: keep method names + capitalization. + * server/asobj/Boolean.cpp (attachBooleanInterface): + fix method name capitalization. + * server/as_object.{h,cpp} (setPropFlags, set_member_flags): + fix property case handling, documented it. + * testsuite/simple.exp: show NOTES with verbosity + level == 1. + +2006-11-25 Michael Meier + + * testsuite/actionscript.all/String.as: fixed to match + expected behaviour. + * server/asobj/string.cpp: implement 'length' with the + add_property() interface. + +2006-11-25 Markus Gothe + + * backend/render_handler_ogl.cpp: #ifdef'd VITALY to get OGL working. + * configure.ac: List FLTK and RISCOS as params to --enable-gui. + * libbase/rc.h: DSOLOCAL -> DSOEXPORT. + * configure.ac: Try-out of finding zlib with generic macro. + * macros/: major clean-up... + +2006-11-24 Rob Savoye + + * config.guess: Update so it recognizes + armv5tel-unknown-linux-gnu for embedded arm targets when building + natively. + +2006-11-24 Sandro Santilli + + * plugin/plugin.cpp: wait for gdb if GNASH_OPTIONS + environment variable contains the substring 'waitforgdb'; + cleanups. + * testsuite/actionscript.all/Date.as: + case-sensitiveness tests pass now. + +2006-11-24 Patrice Dumas + + * Makefile.am, backend/Makefile.am, gui/Makefile.am, + libamf/Makefile.am, libbase/Makefile.am, libgeometry/Makefile.am, + packaging/redhat/gnash.spec, plugin/Makefile.am, + plugin/klash/Makefile.am, plugin/mozilla-sdk/Makefile.am, + server/Makefile.am, server/asobj/Makefile.am, + server/parser/Makefile.am, server/vm/Makefile.am, + testsuite/actionscript.all/Makefile.am, + testsuite/libbase/Makefile.am, + testsuite/misc-ming.all/Makefile.am, + testsuite/movies.all/Makefile.am, testsuite/samples/Makefile.am, + testsuite/server/Makefile.am, utilities/Makefile.am: + Use AM_CPPFLAGS instead of INCLUDES at most as possible, + try to be more selective in linking, + remove unused KLASH_DIRS in top-level Makefile.am, + remove one $(LIBADD_DL) since this variable is not set, + remove some redundancy, bring the spec file in sync with 0.7.2 branch, + avoid protecting everything in testsuite/movies.all/Makefile.am, + only what is dependent on ming. + +2006-11-24 Sandro Santilli + + * server/vm/ASHandlers.cpp (ActionDelete): + don't force 2 elements on stack, since only one is needed. See + bug #18365. + +2006-11-24 Rob Savoye + + * libbase/sharedlib.cpp: Use & instead of a pointer to an + as_object. const_cast basename. + * configure.ac: Test for libgen.h. + * extensions/dejagnu/Makefile.am: Add libgnashvm to ldflags. + * extensions/dejagnu/dejagnu.cpp, dejagnu.h: Use & instead of a + pointer to an as_object. + * libbase/extension.h, extension.cpp: Use & instead of a pointer + to an as_object. + +2006-11-24 Markus Gothe + + * libbase/sharedlib.cpp: Fixed include for basename and casting to + const char *. + +2006-11-24 Sandro Santilli + + * server/vm/VM.{cpp,h}: added isInitialized() method. + * gui/gui.cpp (resize_view): don't abort :) + * server/asobj/Date.cpp: use proper case when registering class + interface. + * server/PropertyList.h: be case sensitive ! + * server/as_object.cpp (set_member_default, get_member_default): + convert memer names to lowercase when VM is targetted at + SWF version < 7. + +2006-11-24 Sandro Santilli + + * server: as_environment.cpp, as_function.cpp, as_function.h, + impl.cpp, swf_function.cpp, asobj/GMath.h, asobj/Global.cpp, + asobj/Global.h, asobj/Key.cpp, asobj/Key.h, asobj/Makefile.am, + asobj/Math.cpp, asobj/MovieClip.cpp, asobj/MovieClip.h, + asobj/System.cpp, asobj/System.h, vm/ActionExec.cpp, + vm/VM.cpp, vm/VM.h, vm/action.cpp, vm/action.h: + Got rid of another global: 's_global'; various cleanups for + ActionScript classes.. Whooo! + +2006-11-24 Vitaly Alexeev + + * libbase\sharelib.cpp: fixed VC++ compiler errors + * libbase\extension.cpp: fixed VC++ compiler errors + * libltdl\ltdl.c: fixed VC++ compiler errors + +2006-11-24 Sandro Santilli + + * server/Global.h = server/asobj/Global.h + * server/as_object.{cpp,h}: off-lined constructors and + destructor, with constructor asserting the presence + of an unitialized VM; made set_prototype() a protected member + to allow sprite_instance to attach a MovieClip prototype. + * server/sprite_instance.{cpp,h}: conform to the ActionScript + classes API, wipe the as_builtins crap; assert the presence + of an initialized VM in constructor. + * server/asobj/Global.cpp: invoke movieclip_class_init() + * testsuite/actionscript.all/MovieClip.as: added check + for MovieClip class. + * gui/: Makefile.am, Player.cpp: + use the new VM interface for initialization. + * server/impl.cpp: deprecate set_current_root(), implement + get_current_root() with a call to the VM singleton. + * server/sprite_instance.cpp (ctor): assert that a VM has + been initialized (for debugging) + * utilities/: Makefile.am, processor.cpp + use the new VM interface for initialization. + * server/vm/: Makefile.am, VM.{cpp,h}: new class aimed at + holding VM-related globals. + +2006-11-24 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: added "class YUV_video_ogl_NV" + that uses opengl extensions for fast video rendering + * server\swf\tag_loaders.cpp: fixed case of "sound_id < 0" + * server\button_character_instance.cpp: fixed case of "sound_id < 0" + * backend\sound_handler_sdl.cpp: sound is stereo now + * server\asobj\NetStream (cpp, h): added "pause" & fixed bugs, + video is tested on FC4 + * win32\VC8\gnash.vcproj: added server\am dir + * testsuite\samples\player.swf: added pause + +2006-11-24 Sandro Santilli + + * server/gnash.h: ok, include as_value, but document what's needed + * server: {xmlattres,xmlnode,xmlsocket}.{h,cpp} => asobj + +2006-11-24 Sandro Santilli + + * configure.ac, server/ActionExec.cpp, server/ActionExec.h, + server/Makefile.am, server/action.cpp, server/action.h, + server/array.h, server/button_character_instance.cpp, + server/edit_text_character.cpp, server/fn_call.h, server/gnash.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/swf_function.cpp, server/with_stack_entry.h, + server/asobj/Makefile.am, server/asobj/MovieClipLoader.cpp, + server/parser/Makefile.am, server/parser/action_buffer.cpp, + server/parser/action_buffer.h, server/swf/ASHandlers.cpp, + server/swf/ASHandlers.h, server/vm/.cvsignore, + server/vm/ASHandlers.cpp, server/vm/ASHandlers.h, + server/vm/ActionExec.cpp, server/vm/ActionExec.h, + server/vm/Makefile.am, server/vm/action.cpp, + server/vm/action.h, server/vm/fn_call.h, + server/vm/with_stack_entry.h, testsuite/server/Makefile.am: + New vm/ dir and libgnashvm.so convenience library; + Obsoleted as_environment::execute (use ActionExec instead). + +2006-11-24 Sandro Santilli + + * configure.ac: comment out extension dir (no Makefile.am + in there atm) + * testsuite/actionscript.all/: Object.as, Date.as: + expect failures on case sensitiveness. + * gui/Makefile.am: don't directly link convenience + libaries. + * server/: as_environment.cpp, swf_function.cpp: + fixed includes + +2006-11-23 Rob Savoye + + * libbase/Makefile.am: Add new extension files. Pass a directory + based on $prefix as a constant for Gnash extensions. + * libbase/sharedlib.h: Add as_object typed entry point. Optionally + pass in the search path for most methods. Find as_object typed + entry point differently than a generic symbol. + * libbase/sharedlib.cpp: Many changes, it basically works + now. Don't do in SharedLib class what should be done in the + Extension class. Initialize libltdl in the constructor, so it's + done before anything else. Support a path as a parameter, or use + GNASH_PLUGINS for a colon seperate path. + * libbase/extension.h, extension.cpp: New files for Gnash + extension plugins. + * extensions/Makefile.am: New file. Recurse into extension + directories. + * extensions/dejagnu/Makefile.am: Build DejaGnu extension for + Gnash. + * extensions/dejagnu/dejagnu.cpp, dejagnu.h: New files for DejaGnu + extension. This is mostly just a template on creating custom + ActionScript extensions for Gnash. + * Makefile.am: Add extension directory, but don't build for now + from the top level. + + * configure.ac: Look for 64 bit OpenBSD systems, and set + WORDSIZE. Configure extension directory. + +2006-11-23 Sandro Santilli + + * server/sprite_instance.cpp: removed compiler warnings. + * server/: timers.{h,cpp}, sprite_instance.h: includes cleanup. + (shouldn't this be under asobj, btw ?) + * server/parser/: movie_def_impl.h, movie_definition.h: + forward declarations. + +2006-11-23 Sandro Santilli + + * server/parser/bitmap_character_def.h: removed action.h include + * Makefile.am: fix 'make dumpconfig' output when using GST sound. + * server/parser/movie_def_impl.cpp: removed compiler warnings. + * libbase/sharedlib.h: removed unneeded includes + * server/character.h: removed action.h include + * server/asobj/MovieClipLoader.h: removed all includes + * server/impl.cpp (set_current_root): don't allow multiple calls + to this function, we're not read for it yet. + * testsuite/actionscript.all/Object.as: object members are + case-sensitive starting at SWF7 ! + * testsuite/actionscript.all/Date.as: method names are case-sensitive + starting at SWF7 ! + * testsuite/actionscript.all/CustomActions.as: disabled all + tests as the class is only intended for use in the Flash + authoring tool, see http://sephiroth.it/reference.php?id=156&cat=1 + * testsuite/actionscript.all/Camera.as: updated after run reports. + * testsuite/actionscript.all/dejagnu.as: don't override rcsid + set in testcases. + * testsuite/actionscript.all/check.as: make all traces + visual (trace == info). + +2006-11-22 Rob Savoye + + * configure.ac: Check for powerpc Darwin, and set __powerpc64__ so + the Mozilla headers still work to do a gtk build. Fixes #18353. + * plugin/mozilla-sdk/include/prcpucfg.h: Include config.h. + +2006-11-22 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: + fixed some typos, use the same relative + path to Dejagnu.swf for both offline and + online testcases. + * testsuite/generic-testrunner.sh: made more + verbose + * testsuite/Makefile.am: add rule to build + Dejagnu.swf "on-dir-up" (so we don't need + two different versions of actionscript + testcases with different path to it. + +2006-11-22 Sandro Santilli + + * testsuite/actionscript.all/gen-index.sh: use + first argument as name of the 'all-inclusive' + test. + * testsuite/actionscript.all/Makefile.am: isolate + unit tests to avoid a broken support to influence + results of other units; changed online-tests rule + to avoid unneeded rebuilds and use version-specific + filenames. + * testsuite/generic-testrunner.sh: allow for multiple + SWF files to be tested. + * server/: xmlattrs.h, xmlnode.cpp, xmlnode.h: + use delete [] when allocating with new []. + (why aren't we using std::string, btw ?) + +2006-11-22 Sandro Santilli + + * testsuite/actionscript.all/Function.as: tweaked + tests to take into account differences in numerical + computations between SWF target version. + * testsuite/actionscript.all/XML.as: fixed test. + * testsuite/actionscript.all/Video.as: + attach => attachVideo, expect Video + class to non exist with SWF < 6 + +2006-11-22 Bastiaan Jacques + + * libbase/sharedlib.cpp: getcwd() should be passed a buffer of + size at least equal to PATH_MAX. Fix an invalid dereference of + the buffer pointer, too. + +2006-11-22 Sandro Santilli + + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: updated + to perform the tests in all frames. + * testsuite/misc-ming.all/ButtonEventsTest.c: added two more + frames to the testcase adding shapes at lower (frame1) and + higher (frame2) depth then the button. The aim is debugging + what I think VV tried to fix in DisplayList::visitBackward. + * testsuite/check.h: add an 'info' macro as a proxy to dejagnu's + note() function, with a fallback stub. + * testsuite/actionscript.all/MovieClip.as: fix some expected + values to match the defaults. + * testsuite/actionscript.all/Mouse.as: instantiation + should not be allowed (probably). + * testsuite/actionscript.all/Microphone.as: updated to + properly check the get() method. + * testsuite/actionscript.all/Date.as: check UTC to be + a method of the Date class, not inherited by instances. + * testsuite/actionscript.all/ContextMenu.as: check that + support starts with SWF7. + * testsuite/actionscript.all/Camera.as: updated to + properly check the get() method. + +2006-11-22 Michael Meier + + * server/asobj/string.cpp: implemented string methods + slice, concat, slice, lastindexof; added String + property length + * testsuite/actionscript.all/String.as: tests for the + newly implemented features. + +2006-11-21 Sandro Santilli + + * server/asobj/Makefile.am: added missing FFMPEG_LIBS dependency. + * plugin/klash/klash.cpp: fixed after movie_interface and + movie deprecation. + * testsuite/actionscript.all/dejagnu_so_init.as: + fix information about *which* version of Ming contains + the bug preventing proper load of Dejagnu.swf lib. + * Makefile.am: fix 'make dump' output. + * testsuite/actionscript.all/Makefile.am: fixed dependencies + for explicitly generated SWF (ASTESTS_OUT). + * configure.ac: suggest 'texinfo' package for building dox + (contains 'makeinfo') + * server/array.h: documented ::slice function + * server/array.cpp: more fixes. + * testsuite/actionscript.all/array.as: added some tests for + invalid calls to Array.slice() + * server/array.cpp (slice): handled some unexpected user input. + * testsuite/actionscript.all/Makefile.am (make check): + run the all-inclusive testcases (one for each target version). + * server/mouse_button_state.h: added missing + character.h include. + +2006-11-20 Sandro Santilli + + * server/: Makefile.am, movie.h, movie_interface.h, + server/parser/bitmap_character_def.h: removed + obsoleted movie.h and movie_interface.h files. + +2006-11-20 Sandro Santilli + + * gui/Player.cpp, gui/Player.h, gui/gui.cpp, + gui/gui.h, server/action.cpp, server/action.h, + server/as_object.h, server/button_character_instance.cpp, + server/button_character_instance.h, server/character.h, + server/dlist.cpp, server/dlist.h, server/edit_text_character.cpp, + server/edit_text_character.h, server/execute_tag.h, + server/generic_character.cpp, server/generic_character.h, + server/gnash.h, server/impl.cpp, server/impl.h, + server/mouse_button_state.h, server/movie.h, + server/movie_interface.h, server/movie_root.cpp, + server/movie_root.h, server/sound.cpp, server/sound.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/timers.cpp, server/xmlsocket.cpp, + server/asobj/MovieClipLoader.cpp, + server/parser/movie_def_impl.cpp, + server/parser/movie_def_impl.h, server/parser/movie_definition.h, + server/parser/sprite_definition.h, server/swf/ASHandlers.cpp, + server/swf/tag_loaders.cpp, testsuite/MovieTester.cpp, + testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, + testsuite/misc-ming.all/RollOverOutTest-Runner.cpp, + utilities/processor.cpp: + Got rid of 'movie' and 'movie_interface' classes. + Feel much better now. + Make check succeeds, but I'm sure we lost something... + please anyone help checking in the next days. + +2006-11-20 Sandro Santilli + + * server/event_id.h: include gnash.h for gnash::key def. + * server/shm.h: streamlined header inclusion. + +2006-11-20 Sandro Santilli + + * server/xml.{h,cpp}: changed signatures taking event_id + so to take it by const ref; reduced headers inclusion. + * server/xmlattrs.h: reduced headers inclusion. + +2006-11-20 Sandro Santilli + + * server/parser/button_character_def.h: added missing rect.h + include. + * server/asobj/: NetConnection.h, System.h: + streamlined headers inclusion. + * server/asobj: Global.cpp, SharedObject.{h,cpp}, Stage.{h,cpp}, + Video.{h,cpp}, TextSnapshot.{cpp,h}: + ported ActionScript class stubs to new layout. + +2006-11-20 Sandro Santilli + + * server/asobj/: Key.h, LocalConnection.h: + streamlined headers inclusion. + * server/asobj: Global.cpp, Error.{h,cpp}, LoadVars.{h,cpp}, + Microphone.{h,cpp}, Mouse.{cpp,h}, Selection.{cpp,h}: + ported ActionScript class stubs to new layout. + +2006-11-20 Sandro Santilli + + * server/asobj/Date.h: streamlined headers inclusion. + * server/asobj: Global.cpp, Camera.{h,cpp}, Color.{cpp,h}, + ContextMenu.{h,cpp}, CustomActions.{cpp,h}: + ported ActionScript class stubs to new layout. + * doc/C/gnashrc.xml: fixed description of whitelist/blacklist + settings. + +2006-11-20 Vitaly Alexeev + + * plugin\win32\plugin.cpp: reanimated + * win32\VC8\npgnash.vcproj: reanimated + +2006-11-20 Vitaly Alexeev + + * server\parser\movie_def_impl.cpp: + usleep(x) ==> Sleep(x/1000) for win32; + 'return _thread == 0' is invalid in win32 that 'pthread_t' + is typedef struct { + void * p; /* Pointer to actual object */ + unsigned int x; /* Extra information - reuse count etc */ + } ptw32_handle_t; + * server\video_stream_instance.h: typo + * gui\gui.cpp: typo + * backend\render_handler_ogl.cpp: GL/glx.h is absent in win32 + * backend\sound_handler_sdl.cpp: sdl_audio_callback() is switched + off for win32 because of segmentation fault + * server\video_stream_instance.cpp: typo + * reconfigured win32 dir + +2006-11-20 Sandro Santilli + + * gui/gnash.cpp (parseCommandLine): don't remove log file ! + * server/URLAccessManager.cpp (host_check_blackwhite_lists): + if whitelist is non-empty and host is not listed there, forbid + access. + * libbase/rc.cpp (dump): typo fixed + * testsuite/actionscript.all/gen-index.sh: add more info + in the versioned SWF index page. + * testsuite/actionscript.all/Boolean.as: don't expect + failures anymore, it works now. + * server/parser/movie_def_impl.cpp (get_exported_resource): + tweak timeouts to give thread switching a chance; more + debugging. + +2006-11-20 Michael Meier + + * server/asobj: Global.cpp, Boolean.cpp, Boolean.h: + implemented Boolean ActionScript class. + +2006-11-19 Rob Savoye + + * backend/render_handler_ogl.cpp: Include glx.h so + glXGetCurrentContext is defined on Darwin. + +2006-11-18 Markus Gothe + + * libbase/smart_ptr.h: Fixed "error: extra ';'". + +2006-11-18 Markus Gothe + + * configure.ac: Applied patches for RISC OS support. Fixed gui + ro->riscos. + * gui/Makefile.am gui/Player.cpp gui/sdl_agg_glue.cpp libbase/Thread.cpp + libltdl/ltdl.c macros/pkg.m4 server/shm.cpp server/shm.h + server/parser/button_character_def.h utilities/Makefile.am + utilities/dumpshm.cpp: Applied patches for RISC OS support. + * gui/ro.cpp, gui/ro_glue_agg.cpp, gui/ro_glue_agg.h, gui/ro_glue.h, + gui/rosup.h: Added RISC OS support. + +2006-11-18 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.c: fixed xfail + to increment expected failures rather then 'unexpected' ones. + * server/asobj/gen-asclass.sh: typos fixed; added + missing constructor for target objects; + 'unimplemented' messages printed with log_warning + +2006-11-18 Tomas Groth Christensen + + * server/movie.h, server/sound.cpp, server/sprite_instance.{cpp,h}, + server/swf/ASHandlers.cpp: Instead of stopping all sounds when + framejumping or on sprite-stop, now only stop soundstreams. The + id of the current playing stream is stored in the sprite. + +2006-11-17 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: fixed + 'online-tests' rule. + +2006-11-17 Tomas Groth Christensen + + * backend/Makefile.am, backend/sound_handler_gst.{cpp,h}: Split + the gstreamer backend into a .cpp-file and a .h-file. Also + applied Hiroyuki Ikezoe patches, and did a bit of cleanup. + * backend/sound_handler_sdl.cpp: More cleanups. + +2006-11-17 Sandro Santilli + + * server/asobj/gen-asclass.sh: typo fixed. + +2006-11-17 Sandro Santilli + + * server/shm.cpp (Shm::attach): don't use PROT_EXEC to + mmap call (permission denied on some systems) + * server/parser/movie_def_impl.{cpp,h}: + +2006-11-17 Sandro Santilli + + * server/parser/movie_def_impl.cpp (get_exported_resource) : + fixed use of timeout. + +2006-11-17 Sandro Santilli + + * server/parser/movie_def_impl.cpp (get_exported_resource) : + use a timeout to handle circular IMPORT chains. + * server/parser/movie_def_impl.{cpp,h}: + Added MovieLoader::isSelfThread() method, more assertion + checking, made LOAD_MOVIES_IN_A_SEPARATE_THREAD work again. + * server/swf/tag_loaders.cpp (import_loader): updated messages + to be less confusing. + +2006-11-17 Tomas Groth Christensen + + * backend/sound_handler_sdl.{h,cpp}: Re-structured the code a bit + to make pointer handling safer, and changed from structs to + classes. General cleanups... Added doxygen comments. + +2006-11-17 Sandro Santilli + + * server/swf/tag_loaders.cpp (import_loader): don't allow + a movie to import it's own exported symbols. + * server/impl.cpp (create_library_movie): normalize real url + when using it as a cache label. + * server/impl.cpp (create_library_movie): don't start loader + thread before the created movie is added to the library. + This is to handle a parser that tries to load again the + same stream being parsed (self-import) + * gui/gui.cpp (ctor): properly initialize members, in particular + the _renderer one, to ensure delete is not called on an undefined + pointer at destruction time. + * server/parser/movie_def_impl.{cpp,h}: decomposed + read() method in readHeader() and completeLoad(); + added a MovieLoader::started() method. + +2006-11-17 Tomas Groth Christensen + + * plugin/plugin.cpp: Remove Mozilla license exemption. + +2006-11-17 Sandro Santilli + + * testsuite/actionscript.all/dejagnu_so_init.as: raise + timeout to 5 seconds, assuming 20FPS. + * testsuite/actionscript.all/Makefile.am: simplified + rules for online-tests creation + * testsuite/actionscript.all/gen-index.sh: assume + we have an 'alltests.swf' file containing *all* tests. + +2006-11-17 Sandro Santilli + + * testsuite/misc-ming.all/Dejagnu.c: make xtrace window larger + toller, and set SWF size accordingly. + * testsuite/actionscript.all/rtmp.as: don't add a custom + xtrace function, rather use the one provided with the framework. + * testsuite/misc-ming.all/ming_utils.c (add_xtrace_function): + make the textfield selectable (for copy 'n paste). + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: more cleanups, + initial rules for all-inclusive SWF testcases (try it out! + rule names: astests-v{5,6,7,8}.swf) + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/dejagnu_so_init.as: add + totals() in fallback implementation (when load of Dejagnu.swf + fails) + * testsuite/actionscript.all/dejagnu.as: be compatible with + DEJAGNU shared lib. + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/: check.as, dejagnu_so_init.as: + if USE_DEJAGNU_MODULE is defined have dejagnu_so_init.as + print SWF and Player version (so we can print once for a + set of testcases compiled on multiple frames) + * testsuite/actionscript.all/: LocalConnection.as, XML.as, XMLNode.as: + added rcsid. + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: fixed dependencies + for SWF targets, cleanups. + +2006-11-16 Sandro Santilli + + * server/parser/movie_def_impl.{cpp,h}: + get_exported_resource() changed to take incremental + loading into account, by making sure the whole + stream has been parsed before returning a failure + (the EXPORT tag might be at the end of the stream!) + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/check.as: moved most dejagnu_so + specific code. + * testsuite/actionscript.all/dejagnu_so_init.as: + take slowness of loading into account by using a frameloop + waiting for dejagnu module to be initialized, with a timeout + to fallback to 'trace' mode. + +2006-11-16 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.c + (add_xtrace_function): + don't duplicate visual traces to trace channel; + (get_dejagnu_actions) : + export (x)pass()/(x)fail()/report() on the _root, don't + visually print expected successes. + * testsuite/actionscript.all/check.as: + when USE_DEJAGNU_MODULE is defined, really use the + module's *dejagnu*-like interface (includes printing summary). + +2006-11-16 Sandro Santilli + + * testsuite/actionscript.all/: dejagnu_so_init.as, check.as: + check for initialized Dejagnu module moved from init.as to + check.as (we know it will NOT be initialized in first frame) + and made warning message much more verbose. + * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): + Set the 'dejagnu_module_initialized' variable on the _root movie. + +2006-11-16 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.c (get_dejagnu_actions): + Set a 'dejagnu_module_initialized' variable to one after + initialization; it can then be used by loaders for consistency + checks. + * testsuite/actionscript.all/dejagnu_so_init.as: + Add consistency checks: complain if __shared_assets is + undefined (using makeswf with wrong switches?), + and if __shared_assets.dejagnu_module_initialiezed evaluates + to false (using bogus Ming version?). + +2006-11-16 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: build Dejagnu.swf + on 'make check' + * testsuite/actionscript.all/: dejagnu_so_fini.as, + dejagnu_so_init.as: + New wrappers around Dejagnu.swf shared library to make + it's use effective. + * testsuite/actionscript.all/check.as: use Dejagnu.swf + shared library if USE_DEJAGNU_MODULE is defined, provide + fallback to bare 'trace' if it is not-working (due to bogus + 'makeswf' found in Ming-0.4.0beta22. Obsolete USE_XTRACE. + * testsuite/actionscript.all/Makefile.am: change *.swf rule + to use the Dejagnu.swf module (includes defining USE_DEJAGNU_MODULE + and wrapping source in dejagnu_so_init.as and dejagnu_so_fini.as. + +2006-11-16 Sandro Santilli + + * macros/agg.m4: don't assume AGG is installed + if agg_gradient_lut.h is not found. + +2006-11-15 Rob Savoye + + * macros/agg.m4: Look in the agg2 subdirectory for + agg_gradient_lut.h. + +2006-11-16 Sandro Santilli + + * testsuite/misc-ming.all: ming_utils.{c.h}: add + a get_dejagnu_clip() function. + * testsuite/misc-ming.all: Makefile.am, Dejagnu.c: + initial version of a loadable Dejagnu module for SWF + (needs more work) + +2006-11-15 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.{c,h}: + removed add_xtrace_function from header, + changed add_dejagnu_functions to take a font object and + to create the xtrace window w/out the drawing api (so + that gnash is able to use it); added get_default_font function. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + use pixel coordinates, use get_default_font function, + cleanups. + +2006-11-15 Sandro Santilli + + * backend/render_handler_agg.cpp: comment out unneeded + assertion (see https://savannah.gnu.org/bugs/?18119#comment2) + +2006-11-15 Sandro Santilli + + * server/edit_text_character.cpp: warn only once + about missing 'no word wrap' implementation. + +2006-11-15 Sandro Santilli + + * server/movie_root.cpp (goto_labeled_frame): print + an error asking users to report url of movie triggering + the call (I plan to change implementation of it). + * server/sprite_instance.cpp (goto_labeled_frame): + make invalid label a "malformed swf" warning. + +2006-11-15 Sandro Santilli + + * server/sprite_instance.{h.cpp}: use a std::list + for ActionList (now typedef'd) as it's more appropriate + since we execute it from the start and execution can + append items to it; typdef both PlayList and ActionList. + This seems to fix bug #17793. + * server/parser/: movie_definition.h, movie_def_impl.h, + sprite_definition.h: typedef PlayList and use that. + +2006-11-14 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Make sure the decoded data is + always able to fill the return buffer. + +2006-11-14 Sandro Santilli + + * libbase/container.h: don't redefine _LIB_PTHREAD_TYPES_H. + +2006-11-14 Patrice Dumas + + * server/Makefile.am, server/asobj/Makefile.am, + testsuite/Makefile.am, testsuite/server/Makefile.am: + other missing BOOST_CFLAGS + +2006-11-14 Sandro Santilli + + * testsuite/misc-ming.all/: ming_utils.{c,h}, + DefineEditTextVariableNameTest.c: + Moved general testcase generator facilities to ming_utils + lib. + * doc/C/internals.xml: new sections about writing Ming-based + self-contained SWF testcases and MovieTester-based testcases. + (Ann, help!) + +2006-11-14 Bastiaan Jacques + + * server/parser/Makefile.am: parser uses Boost, so add BOOST_CFLAGS + to INCLUDES. + * backend/render_handler_agg.cpp: add a not quite correct trunc() + implementation (which nevertheless serves our purposes) for + platforms which don't define it. + +2006-11-14 Sandro Santilli + + * testsuite/misc-ming.all/ming_utils.c (add_dejagnu_functions): + improved functions to use a TestState class, including + a totals() function. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + added checks for sprites size and final call to runtest.totals(). + * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, + Makefile.am: + reintroduced DefineEditTextVariableNameTest-Runner to also test + frame advancements (removed every test already checked by + self-containsd SWF testcase) + +2006-11-14 Sandro Santilli + + * plugin/klash/klash.cpp: fetch dbglogfile before use + (fixes bug #18290) + +2006-11-13 Markus Gothe + + * macros/gtkglext.m4: Fixed bug #18286. + +2006-11-13 Patrice Dumas + + * server/: Makefile.am, StreamProvider.cpp, impl.cpp, movie_root.h, + asobj/Makefile.am, parser/Makefile.am, swf/tag_loaders.cpp: + remove lot of CFLAGS, some LIBS and #include. + +2006-11-13 Sandro Santilli + + * server/edit_text_character.cpp (registerTextVariable): + update warning about VariableName referencing an unknown character. + * server/edit_text_character.cpp: have M_TEXT member getter + use get_text_value (so to get a chance of registering + variable name) + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + change last expected failures to successes. + +2006-11-13 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: + make sure DefineEditTextVariableNameTest-Runner is created prior + to use. + * server/edit_text_character.{h,cpp}: added primitive support + for VariableName targets referring to yet-to-be-instantiated + characters. + * testsuite/generic-testrunner.sh: new file to generate runners + for self-contained SWF testfiles. + * testsuite/misc-ming.all/Makefile.am: run DefineEditTextVariableName + test again (uses the generic-testrunner.sh file) + +2006-11-13 Sandro Santilli + + * testsuite/simple.exp: check for XPASSED before PASSED. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + make the DefineEditTextVariableNameTest.swf file a self-contained + testcase. + * testsuite/misc-ming.all/: Makefile.am, + DefineEditTextVariableNameTest-Runner.cpp: + removed unneeded test runner for DefineEditTextVarible + (the SWF is now a self-contained test) + * testsuite/simple.exp: fix handling of XPASSED/XFAILED results. + * testsuite/misc-ming.all/ming_utils.{c,h}: + added add_dejagnu_functions() method and fixed + xtrace() function to *append* rather then replace + the trace lines. + +2006-11-13 Hiroyuki Ikezoe + + * utilities/Makefile.am: add missing BOOST include flags. + +2006-11-13 Bastiaan Jacques + + * server/swf/ASHandlers.cpp: Remove old comment and unneeded const + keyword. + +2006-11-13 Sandro Santilli + + * server/as_environment.cpp (find_target): more informative + message about failure. + * server/edit_text_character.cpp (registerTextVariable): + don't abort if VariableName references an unknown character, + instead print an error calling for help interpreting this + case in the correct way :) + * server/sprite_instance.{cpp,h}: drop all self-assignments + to intrusive_ptr used as a mean to keep ourselves alive + (sounds dangerous and confusing); added a testInvariant() + inline method and called from all function modified in such + a way. + +2006-11-12 Markus Gothe + + * backend/render_handler_ogl.cpp: sprintf -> snprintf. + +2006-11-12 Bastiaan Jacques + + * server/swf/ASHandlers.cpp: Fix compilation errors by initialising + the singleton on the stack. + +2006-11-11 Sandro Santilli + + * server/swf/ASHandlers.cpp (SWFHandlers::instance): store + the allocated singleton in a std::auto_ptr<>, so to avoid + leaks report (gprocessor w/out args is now leak-free). + +2006-11-11 Sandro Santilli + + * libbase/smart_ptr.h: removed smart_ptr definition, added + function helpers and include for boost::intrusive_ptr + * backend/render_handler_tri.cpp, server/action.cpp, server/action.h, + server/array.cpp, server/as_environment.cpp, server/as_function.cpp, + server/button_character_instance.cpp, + server/button_character_instance.h, server/character.h, + server/dlist.cpp, server/dlist.h, server/font.cpp, server/font.h, + server/fontlib.cpp, server/gnash.h, server/impl.cpp, + server/mouse_button_state.h, server/movie_root.cpp, + server/movie_root.h, server/sprite_instance.cpp, + server/sprite_instance.h, server/styles.cpp, server/styles.h, + server/swf_function.cpp, server/with_stack_entry.h, server/xml.cpp, + server/asobj/ASSound.cpp, server/asobj/Key.cpp, server/asobj/Key.h, + server/asobj/MovieClipLoader.cpp, server/asobj/Number.cpp, + server/asobj/Object.cpp, server/asobj/System.cpp, + server/asobj/string.cpp, server/parser/bitmap_character_def.h, + server/parser/button_character_def.cpp, server/parser/character_def.h, + server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, + server/parser/movie_definition.h, server/parser/sprite_definition.h, + server/swf/ASHandlers.cpp, server/swf/tag_loaders.cpp: + Updated to use boost::intrusive_ptr instead of tu's smart_ptr + * testsuite/libbase/Makefile.am, testsuite/libbase/smart_ptrTest.cpp: + removed unit test for smart_ptr (obsoleted) + * server/asobj/gen-asclass.sh: stub generator for ActionScript classes. + +2006-11-11 Sandro Santilli + + * Makefile.am (mudflap and mudlfap-check rules): + use mudflapth as gnash's a threaded application. + * testsuite/libbase/TCXXRc.cpp: use "check.h" if dejagnu + isn't found. + +2006-11-11 Sandro Santilli + + * gui/Player.cpp, gui/gnash.cpp, gui/gtk.cpp, + gui/gtk_glue_gtkglext.cpp, gui/sdl_agg_glue.cpp, + libamf/amf.cpp, libamf/rtmp.cpp, libbase/network.cpp, + libbase/rc.h, server/as_function.cpp, server/dlist.cpp, + server/movie_root.cpp, server/asobj/NetConnection.cpp, + server/swf/ASHandlers.cpp, utilities/parser.cpp, + utilities/processor.cpp: + removed extra semicolons + +2006-11-11 Sandro Santilli + + * gui/Player.cpp, gui/gnash.cpp, gui/gtk.cpp, + gui/gtk_glue_gtkglext.cpp, gui/sdl_agg_glue.cpp, libamf/amf.cpp, + libamf/rtmp.cpp, libbase/log.cpp, libbase/log.h, libbase/network.cpp, + libbase/rc.cpp, libbase/rc.h, libbase/sharedlib.cpp, + server/as_function.cpp, server/dlist.cpp, server/movie_root.cpp, + server/asobj/NetConnection.cpp, server/parser/action_buffer.cpp, + server/swf/ASHandlers.cpp, testsuite/libbase/TCXXRc.cpp, + testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp, + testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, + testsuite/misc-ming.all/RollOverOutTest-Runner.cpp, + testsuite/movies.all/gravity_embedded-TestRunner.cpp, + testsuite/samples/clip_as_button2-TestRunner.cpp, + testsuite/server/GetterSetterTest.cpp, + testsuite/server/PropertyListTest.cpp, + utilities/parser.cpp, + utilities/processor.cpp: + global rcfile hidden as function-static of the new + static RcInitFile::getDefaultInstance() method. + +2006-11-11 Markus Gothe + + * backend/Makefile.am: Applied patch from Hiroyuki Ikezoe. + +2006-11-11 Sandro Santilli + + * Makefile.am: added mudflap-check rule (make check + won't work after make mudflap) + * libbase/rc.{cpp,h}: made static initialization + of default RcInitFile predictable, by having + it happen at first call to a newly introduced + getDefaultInstance() static function. This + fixes one of many invalid accesses reported by + mudflap (see bug #18100) + * gui/: Player.cpp, gnash.cpp, plugin/klash/klash.cpp, + server/URLAccessManager.cpp, utilities/: parser.cpp, + processor.cpp: + fetch global RcInitFile by using the new + RcInitFile::getDefaultInstance() + +2006-11-10 Markus Gothe + + * backend/Makefile.am, gui/Makefile.am, libamf/Makefile.am, + libbase/Makefile.am, libgeometry/Makefile.am, server/Makefile.am, + server/asobj/Makefile.am, server/parser/Makefile.am, + utilities/Makefile.am: Added _la_LDFLAGS = -avoid-version. + Closed bug: #18235. + + * libbase/sharedlib.cpp: Fixed + "error: ISO C++ forbids comparison between pointer of type 'void *' + and pointer-to-function" + + * macros/agg.m4: Check for agg_gradient_lut.h. + +2006-11-09 Sandro Santilli + + * utilities/processor.cpp: call gnash::clear() as last step to help + finding leaks. + * server/asobj/Number.cpp: hush warnings. + * gui/gnash.cpp (parseCommandLine): fixed sound setting. + +2006-11-09 Markus Gothe + + * macros/atk.m4, macros/boost.m4, macros/cairo.m4, + macros/gnashpkgtool.m4, macros/gtk2.m4 macros/gtkglext.m4, + macros/pango.m4, macros/sdl.m4 macros/xft.m4: Bugs, typos, indentation. + +2006-11-09 Sandro Santilli + + * testsuite/libbase/: TCXXRc.cpp, gnashrc.in: + add test for 'sound' and 'soundPlugin' directives + (and test for case-insensitive matching). + +2006-11-09 Sandro Santilli + + * gui/gnash.cpp, libbase/rc.h, plugin/klash/klash.cpp, + utilities/parser.cpp, utilities/processor.cpp: + Reverted privatization of RcFile.loadFiles(). + We actually want to keep control of that call, at + least for the unit testing... + +2006-11-09 Sandro Santilli + + * plugin/klash/klash.cpp, utilities/: parser.cpp, processor.cpp: + remove explicit rcfile.loadFiles() call. + * libbase/rc.cpp: set pluginSound on by default + +2006-11-09 Sandro Santilli + + * libbase/rc.h: loadFiles() made private + * libbase/rc.cpp: call loadFiles from constructor + * gui/Player.cpp (init_sound): don't call rcfile.loadFile(); + don't use rcfile for setting sound config, trust class user + for that. + * gui/gnash.cpp (parseCommandLine): use rcfile for sound + setting only if no -r switch is given + * plugin/plugin.cpp: don't use any -r switch so that config + file completely drive the run. + +2006-11-09 Sandro Santilli + + * libbase/rc.cpp: rc file parsing made case-insensitive. + * server/font.cpp (readDefineFont2): allow seek-back in stream + while reading shape glyphs (fixes bug #16311). + +2006-11-09 Bastiaan Jacques + + * libbase/curl_adapter.cpp: Allow libcurl to follow HTTP redirects. + Don't forget to store curl_easy_setopt()'s return value, in addition + to checking it. + +2006-11-09 Sandro Santilli + + * server/URLAccessManager.cpp (host_check): use log_security() + and (IMHO) clearer messages; use standard algorithms for + whitelist/blacklist query. + * libbase/log.{cpp,h}: added log_security() for security-related + messages. + +2006-11-09 Markus Gothe + + * server/URLAccessManager.cpp: -> for C++ ;). + +2006-11-09 Hiroyuki Ikezoe + + * backend/render_handler_cairo.cpp: stub required + video interface. + +2006-11-09 Sandro Santilli + + * server/URLAccessManager.cpp: added missing include. + +2006-11-08 Sandro Santilli + + * server/URLAccessManager.cpp: fixed segfault in host_check, + cleaned up and made more robust (hopefully) + +2006-11-08 Markus Gothe + + * backend/sound_handler_gst.cpp: Applied patch from Hiroyuki Ikezoe. + +2006-11-08 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: hack for glRasterPos2f() + * server\asobj\NetStream.cpp: pthread_join() should be caused + in only case when video streamer is started + +2006-11-08 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Made ffmpeg error handling + more robust. Fixed a deadlock. Added a notice that upgrading + ffmpeg might fix mp3-errror. Made stop_all_sounds() thread safe. + Make mp3-decoding with mad work when the stream is not fully + loaded when playback starts. + +2006-11-08 Sandro Santilli + + * libbase/smart_ptr.h: *fixed* invariant testing (well, at + least we know that it works fine) + +2006-11-08 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: The elementary yuv-video opengl + render which should work on all platform (very slow). + The second attempt to commit + +2006-11-08 Sandro Santilli + + * testsuite/libbase/smart_ptrTest.cpp: test static initialization + of smart_ptr (segfaults!!) + * libbase/smart_ptr.h: added invariant testing + * testsuite/libbase/CurlStreamTest.cpp: added missing + config.h include. + * testsuite/libbase/: Makefile.am, smart_ptrTest.cpp: + added unit test for smart_ptr<>. + * configure.ac: move the AC_DEFINE([GUI_*]) calls *after* + the possible fallback to SDL (see bug #15540) + * server/: array.cpp, as_function.cpp, asobj/: MovieClip.cpp, + MovieClipLoader.cpp, Number.cpp, Object.cpp, System.cpp, + string.cpp: change static pointers to static *smart* pointers + so we're sure they don't get deleted due to assignment to + some other short-lived smart_ptr and that they are released + at exit. + +2006-11-08 Sandro Santilli + + * server/text.cpp, server/parser/text_character_def.cpp: + resolve style fonts at parse time (not use time) - reduce + number of warnings given. + * backend/render_handler_ogl.cpp: revert last commit, which + made this a binary file !!! + * gui/Makefile.am, utilities/Makefile.am: don't list + LIBLTDL as a *dependency* (it's in LIBADD already) + * server/parser/movie_def_impl.cpp: issue a warning + when version of SWF being read is > 7. + +2006-11-07 Sandro Santilli + + * libbase/ref_counted.h: drop support for weak proxies. + * libbase/smart_ptr.h: drop all but smart_ptr + * server/button_character_instance.cpp (on_button_event): + simplify access to our environment. + * server/: character.{h,cpp}, generic_character.h, sprite_instance.cpp: + store our parent in a smart_ptr<> (rather then a dumb one) + * server/impl.cpp: don't force refcount increment on newly + created movies (or we'll never get rid of them) + * server/mouse_button_state.h: store active and topmost + entities in a smart_ptr<> (rather then weak_ptr<>); it + might introduce minor behavioural bugs, but it's safer. + * server/movie_root.cpp: minor assertion checking + * server/asobj/Key.{h,cpp}: store smart_ptr<> elements + in listeners vector (rather then weak_ptr<>). + +2006-11-07 Sandro Santilli + + * libbase/log.h: don't warn about ASCODING errors by default + * server/sprite_instance.cpp (sprite_hit_test): warn + only once about hitTest not being implemented. + +2006-11-07 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: The elementary yuv-video opengl + render which should work on all platform (very slow) + * libbase\URL.cpp: #include removed for win32 + * server\asobj\NetStream.cpp: a bit cleunup + + +2006-11-07 Udo Giacomozzi + + * backend/render_handler.h, gui/gui.cpp, gui/gui.h: + Further described invalidated bounds + +2006-11-07 Sandro Santilli + + * server/action.cpp, server/swf/ASHandlers.cpp: turn + more actionscript coding errors into warning and + wrap them in IF_VERBOSE_ASCODING_ERRORS. + +2006-11-07 Sandro Santilli + + * server/parser/movie_def_impl.cpp: fix support + for completely disabling using a separate + thread for loading (just undef the + LOAD_MOVIES_IN_A_SEPARATE_THREAD macro) + +2006-11-06 Rob Savoye + + * libltdl: New directory for libtool library, which is supposed to + be included with the source of the application, although in our + case it only gets build of libltdl is already installed in the + system. + * utilities/parser.cpp: Fix typo of executable name. + * Makefile.am: Add libltdl as a SUB_DIR. Don't build plugin + in KDE or GTK isn't found. Print out the proper KDE flags. Display + build options as determined by configure. + * configure.ac: Run configure in libltdl too. Autochange to SDL + gui if GTK or KDE isn't found. Don't build klash unless QT and KDE + are installed. + * gui/Makefile.am: Add LIBLTDL support to AM_LDFLAGS. Define + constants for build options so we can print them from Gnash. Add + -export-dynamic (now required) to gnash and klash executables. + * gui/gnash.cpp: Display build options from configure with + --version or --help. + * libbase/Makefile.am: Add LIBLTDL support. Add new files for + shared libraries. Add LIBLTDL support to AM_LDFLAGS. + * utilities/Makefile.am: Add -export-dynamic (now required) to + gparser and gprocessor executables. + * libbase/sharedlib.h, sharedlib.cpp: New files for loading of + shared libraries into Gnash so we can support our own plugins. + * libbase/URL.cpp: Include sys/param.h to get PATH_MAX for + arm-linux. + * macros/cairo.m4: Look in $prefix too so we can be cross + configured. + * macros/curl.m4: Don't use curl-config when cross-compiling. + * plugin/klash/Makefile.am: Use the more standard KDE_CFLAGS and + KDE_LIBS. Build klash here again, the version on gui is totally + broken. + * plugin/Makefile.am: Put back in the KLASH conditional so klash + actually gets built. + * utilities/parser.cpp: Fix the wrong name of the executable in + the debug message. + +2006-11-06 Sandro Santilli + + * server/sprite_instance.cpp (sprite_create_text_field): + don't abort on "invalid?" calls. Warn if requested. + * testsuite/actionscript.all/Function.as: fixed test for + SWF >= version 7. + * server/as_function.cpp (function_apply): don't abort + on invalid calls, warn about them if requested. + * testsuite/actionscript.all/Function.as: added tests for + invalid Function.apply() calls. + * server/parser/sprite_definition.h: dirty patch for dirtier + programmatically-created MovieClip implementation. + * testsuite/actionscript.all/MovieClip.as: expect failures. + * testsuite/actionscript.all/MovieClip.as: added more tests + for createEmtyMovieClip - expose the segfault bug in it. + * testsuite/misc-ming.all/: DefineEditTextVariableNameTest-Runner.cpp, + DefineEditTextVariableNameTest.c: added test for assigning + an empty string to a textfield. + * server/edit_text_character (format_text): properly + handle empty-text. + * backend/render_handler_agg_style.h: comment-out + add_bitmap with NULL input warning. + * server/styles.{h,cpp}: warn about bitmap fills with + invalid character_id. + +2006-11-06 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Protected clear_framebuffer() + against negative width and height arguments + +2006-11-05 Rob Savoye + + * gui/gui.h: Add stuff for Emacs mode. + * gui/gtk.cpp: Handle control keys better, so Gnash doesn't core + dump. Work around #18207. + +2006-11-05 Sandro Santilli + + * testsuite/actionscript.all/String.as: + added testcases for automatic string => String casts. + * server/asobj/: Number.{h,cpp}: expose + Number instance constructor. + * server/asobj/: gstring.h, string.cpp: + expose String instance constructor. + * server/swf/ASHandlers.c (call_method): + implicitly cast STRING values to String + objects and NUMBER values to Number objects + (to be possibly moved in as_value::to_object) + +2006-11-05 Sandro Santilli + + * server/sprite_instance.cpp: stubbed attachMovie, added + comment about possible improvement of sprite_duplicate_movieclip, + added some use of the new IF_VERBOSE_ASCODING_ERRORS macro + * libbase/log.h: added IF_VERBOSE_MALFORMED_SWF and + IF_VERBOSE_ASCODING_ERRORS macros. + * server/swf/ASHandlers.cpp (ActionSubstring): early + return if input string is undefined or null, base + is out of range, size is negative or invalid (overflow + input length when added to base); attempt + to support negative base args (untested: ming unable + to output such opcode). See bug #18204. + +2006-11-05 Markus Gothe + + * macros/mad.m4: Fixed bogus test-case... + * macros/pthreads.m4: Added -D_SGI_MP_SOURCE (for IRIX). + * plugin/klash/klash.cpp: bool do_sound = true. + +2006-11-04 Rob Savoye + + * testsuite/check.h: Include config.h. Optionally include + dejagnu.h. Add stubs if it's not found. + * testsuite/libbase/NoSeekFileTest.cpp: Include + config.h. Optionally include either dejagnu.h or check.h. + * testsuite/libbase/URLTest.cpp: Include + config.h. Optionally include either dejagnu.h or check.h. + * testsuite/server/GetterSetterTest.cpp: Include + config.h. Optionally include either dejagnu.h or check.h. + * testsuite/server/MatrixTest.cpp: Include + config.h. Optionally include either dejagnu.h or check.h. + * testsuite/server/PropertyListTest.cpp: Include + config.h. Optionally include either dejagnu.h or check.h. + +q2006-11-04 Sandro Santilli + + * server/sprite_instance.cpp (ctor): code cleanup. + * testsuite/libbase/NoSeekFileTest.cpp: added missing unistd.h + include. + +2006-11-04 Vitaly Alexeev + + * libbase\noseek_fd_adapter.cpp: size_t ==> int + (Thanks Sandro) + +2006-11-04 Udo Giacomozzi + + * backend/render_handler_agg.cpp: removed compatibility include as + it is not enough anyway; optimized screen and mask clearing + * server/parser/edit_text_character_def.h: added read method for + m_no-select + * server/edit_text_character.cpp: don't catch mouse events when + text feld is not selectable + * server/button_character_instance.cpp, + server/parser/button_character_def.cpp, + server/parser/button_character_def.h: Character depths are now + respected while drawing + +2006-11-04 Markus Gothe + + * backend/render_handler_ogl.cpp: Added matrix for YUV->RGB-conversion. + * macros/gnashpkgtool.m4: Look in the $prefix path for includes and + libraries. This lets specifying --prefix become the default path to + search in for cross compiling. + * macros/zlib.h: Fixed typo, corrected output. + * macros/pkg.m4, macros/libXML.m4: Typo: + cross_compling -> cross_compiling. + * server/impl.cpp: moved register_tag_loader() to the right place... + * macros/ffmpeg.m4: Clean-ups and fixed linking... + +2006-11-03 Sandro Santilli + + * server/parser/button_character_def.{cpp,h}: fixed last + fix attempting to still properly read the stream even + in case of an error. + +2006-11-03 Sandro Santilli + + * server/impl.cpp, server/swf.h: register "fixme" loaders + for known SWF8 opcodes; fix a typo in previous commit of swf.h. + * server/parser/movie_def_impl.cpp: be more quiet when not + in verbose parse mode. + * server/button_character_instance.cpp (ctor): don't resolve + characters associated to button records, that is now done + by button_record read function. + * server/parser/button_character_def.{h,cpp} (button_record::read): + resolve characters immediately, returning false if impossible. + +2006-11-03 Rob Savoye + + * macros/curl.m4: Don't use curl-config when cross + compiling. Break when the header is found, and don't forget to + actually add the library to LDFLAGS. + * autogen.sh: Don't pass -I macro if the directory doesn't + exist. This is useful for nested configure scripts. + * macros/agg.m4, atk.m4, boost.m4, curl.m4, glib.m4, gtk2.m4, + gtkglext.m4, jpeg.m4, kde.m4, libXML.m4, pango.m4, png.m4, sdl.m4: + Look in the $prefix path for includes and libraries. This lets + specifying --prefix become the default path to search in for cross + compiling. + * macros/pkg.m4: When cross compiling, don't use pkg-config, as it + only gets host values. + +2006-11-03 Sandro Santilli + + * server/swf.h: added some new SWF8 opcodes. + * server/as_function.cpp (ctor): always increment refcount on + prototype object. + +2006-11-03 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Removed debug output + +2006-11-03 Vitaly Alexeev + + * server\asobj\NetStream.cpp: processing of + the end of video is added + +2006-11-03 Vitaly Alexeev + + * server\video_stream_instance.(h,cpp): added + get_invalidated_bounds() method + * gui\gui.cpp: removed win32 hack + +2006-11-03 Vitaly Alexeev + + * libbase\noseek_fd_adapter.cpp: ssize_t ==> size_t + * libbase\container.h: Has forgotten to clean marks + * server\asobj\NetStream.cpp: Has forgotten to clean marks + * server\gnash.h: Has forgotten to clean marks + +2006-11-03 Markus Gothe + + * server/asobj/Math.cpp, server/as_value.h: Added #include . + * server/asobj/NetStream.h: #ifdef USE_FFMPEG. + * backend/render_handler_ogg.h: Removed unused include... + +2006-11-03 Vitaly Alexeev + + * server\asobj\NetStream.h, cpp: updated video timing + * testsuite\sample\player.swf: 4 video simultaneously + * win32\gnash\gnash.vcproj: added new files + +2006-11-03 Sandro Santilli + + * testsuite/actionscript.all/swf_exists.exp: use 'gnash' + rather then 'gprocessor' (gprocessor is currently broken, btw) + +2006-11-03 Sandro Santilli + + * server/: [too many files] + Changed some 'tu' containers to 'std' ones... + * server/: action.h, event_id.h, Makefile.am: extracted event_id + class from action.h header. + * server/StringPredicates.h: added StringNoCaseEqual. + * server/as_value.{h,cpp}: to_std_string method added. + * libbase/noseek_fd_adapter.cpp: signed vs. unsigned warnings + fixes. + +2006-11-03 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: When using ffmpeg for + mp3-decoding, keep trying until error or something has been + decoded. + +2006-11-03 Sandro Santilli + + * server/: Makefile.am, PropertyList.h, StringPredicates.h: + Move std::string comparator in a separate file. + * server/as_environment.{h,cpp}: use a std::map for variables + rather then a stringi_hash; made _variables private. + +2006-11-03 Sandro Santilli + + * server/as_function.{h,cpp}: properly update refcount + of function prototype object; improved documentation. + +2006-11-03 Sandro Santilli + + * utilities/processor.cpp: drop support for multiple + input files (due to weakness of libserver due to + unwrapped globals - namely base_url); properly + set base url. + +2006-11-03 Hiroyuki Ikezoe + + * backend/sound_handler_gst.cpp: fix to critical error + exposed by playing samples/sound1.swf + +2006-11-02 Sandro Santilli + + * server/movie_interface.h: adde constructor for proper + initialization of invalidated bounds staff; added TODO + labels for moving the whole API to character class. + +2006-11-02 Sandro Santilli + + * configure.ac, testsuite/Makefile.am, + testsuite/movies.all/Makefile.am, + testsuite/movies.all/gravity_embedded-TestRunner.cpp: + New automated testing for gravity_embedded.swf + +2006-11-02 Sandro Santilli + + * testsuite/MovieTester.cpp: properly set base_url to + allow movies being tested to load other movies. + +2006-11-02 Sandro Santilli + + * testsuite/simple.exp: new file being a copy + of the equal ming.exp and samples.exp files. + * testsuite: misc-ming.all/ming.exp, samples/samples.exp: + replaced by simple.exp above + * testsuite/: misc-ming.all/Makefile.am, samples/Makefile.am: + use unified expect script. + +2006-11-02 Udo Giacomozzi + + * testsuite/samples/gradients-test.swf: Added a extensive + test for gradient rendering. + * backend/render_handler_agg_style.h: correct and faster + implementation of radial fills + * backend/render_handler.h: New function to receive scale + change notifications + * backend/render_handler_agg.cpp: Properly handle rescaling + * gui/gtk_glue_agg.cpp, gui/gtk_glue_agg.h: Implemented + proper rescaling + * gui/gtksup.h, gui/gui.cpp, gui/gui.h: Redraw on rescale + * server/matrix.cpp, server/matrix.h: Added function to + scale with different x/y values + +2006-11-02 Hiroyuki Ikezoe + + * backend/sound_handler_gst.cpp: segfault fix (bug #18167) + +2006-11-01 Sandro Santilli + + * backend/sound_handler_sdl.{h,cpp}: + use more unsigned types (remove compiler warnings); + properly check sdl_audio_callback 'length' argument; + minor style nits. + +2006-11-01 Vitaly Alexeev + + * server\asobj\NetStream.h, cpp: clean up + +2006-11-01 Vitaly Alexeev + + * backend\sound_handler_sdl.cpp: open audio if it is closed + +2006-11-01 Hiroyuki Ikezoe + + * backend/sound_handler_gst.cpp: + Fixed some memory leaks and proper use of + integers (signed/unsigned) + * doc/C/gnashrc.xml: + typo fix (pluginSound => pluginsound) + +2006-11-01 Markus Gothe + + * TODO: Added note on GTK1-support for the plugin. + +2006-10-31 Markus Gothe + + * backend/render_handler_ogl.cpp: Clean up and added comments to + understand what the combiner registers do. + +2006-10-31 Sandro Santilli + + * server/asobj/MovieClipLoader.cpp: fixed event handlers calls + so that they include the target_mc argument. + +2006-10-31 Sandro Santilli + + * server/asobj/MovieClipLoader.cpp: lots of cleanup, implemented + generic handling for event handlers (addListener, removeListener, + dispatchEvent); added dispatch of onLoadInit event. + * server/asobj/MovieClipLoader.cpp: lots of cleanup, implemented + generic handling for event handlers (addListener, removeListener, + dispatchEvent); added dispatch of onLoadInit event. + * server/swf_function.cpp: make quiet (in sync with 0.7.2) + * server/asobj/: Global.cpp, MovieClipLoader.cpp, MovieClipLoader.h: + a bit of cleanup for the MovieClipLoader class, to use the + new ActionScript builtin classes architecture. Stubbed addListener + and removeListener methods. + +2006-10-31 Sandro Santilli + + * testsuite/actionscript.all/MovieClip.as: added test + for getNextHighestDepth(). + * server/:sprite_instance.{h,cpp}: + implemented getNextHighestDepth() ActionScript method; + changed init_builtins() to take a version number; called + init_builtins only when really needed, as in constructor + the as_environment get_version() method will fail as + the top-level movie_root would not have an associated + root movie yet (complex, yes... ) + Made the getNextHighestDepth() AS method only available + when target movie is SWF7 or higher. + * server/: dlist.{h,cpp}: + added getNextHighestDepth() method. + * server/as_environment.cpp (get_version): more assertions + (we have an initialization problem there) + * testsuite/movies.all/README: updated info about gravity-embed.swf + (after last modification) + +2006-10-31 Udo Giacomozzi + + * testsuite/movies.all/gravity-embed.swf: improved by providing + explicit size control buttons and debugging textfield. + * backend/render_handler_agg.cpp: Outline sizes now respect the + transformation matrix + +2006-10-31 Sandro Santilli + + * testsuite/movies.all/README: updated info about gravity.swf + (after last fix) + +2006-10-31 Udo Giacomozzi + + * testsuite/movies.all/gravity.swf: fixed actionscript + referencing undefined variable. + * testsuite/movies.all/gravity-embed.swf: new testcase + +2006-10-31 Sandro Santilli + + * testsuite/movies.all/README: some info about the movies + * libbase/noseek_fd_adapter.cpp (fill_cache): fixed compiler + warnings, plugged leaks, throw an exception on errro. + +2006-10-31 Markus Gothe + + * server/shm.h DSOEXPORT ctor and dtor. + * server/gnash.h: DSOEXPORT get_sound_handler. + * server/shape.cpp: DSOEXPORT edge::is_straight. + +2006-10-31 Udo Giacomozzi + + * backend/render_handler_agg.cpp, + backend/render_handler_agg_style.h: Implemented masks for + AGG renderer + +2006-10-31 Sandro Santilli + + * backend/sound_handler_gst.cpp (stop_all_sounds): fixed infinite + loop due to comparison being always true. + +2006-10-30 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed starting soundstreams + from any frame when using libmad. + +2006-10-30 Udo Giacomozzi + + * testsuite/samples/: subshapes.swf, README: + added new test file for multiple shape layer + combination. + +2006-10-30 Markus Gothe + + * AUTHORS: added Hannes. + * configure.ac: Removed 0.7.1 from the version info, let's stick with + cvs+BUILDDATE. + * macros/boost.m4: Applied patch from Bernhard Rosenkraenzer. + * macros/glib.m4, macros/pango.m4: Fixed output. + * macros/atk.m4: fixed issue due to typo (lack of '$'). + * backend/sound_handler_gst.cpp: Added stubs for aux-streaming. + * server/rect.h: DSOEXPORT rect()/is_bool() for visibility. + +2006-10-30 Hannes Mayr + * server/asobj/NetStream.cpp: added include for sleep() + +2006-10-30 Sandro Santilli + + * testsuite/actionscript.all/swf_exists.exp: added more debugging + lines on -v -v : dunno why but seems broken again on my debian + stable :-( + * server/PropertyList.h: added include for toupper. + +2006-10-29 Markus Gothe + + * libbase/tu_opengl_includes.h: Fixed bug #18145. + +2006-10-29 Rob Savoye + + * All GPL'd files: Remove Mozilla exemption. Maybe someday + they'll not be so scared of the GPL. + * server/gnash.h, server/asobjs/NetStream.h, NetStream.cpp: Use + uint8, not Uint8 as it's defined within Gnash, and Uint8 isn't + defined at all. + * libamf/protocol.h: Add private data for accumulating byte + counts. + * libamf/rtmp.cpp: Accumulate byte counts. + +2006-10-29 Vitaly Alexeev + + * libbase\container.h: added hash::erase() + * server\gnash.h: added attach_aux_streamer & detach_aux_streamer + * server\asobj\NetStream.h, cpp: added audio streamer for video + * backend\sound_handler_sdl.h, cpp: added attach_aux_streamer & detach_aux_streamer + * win32\gnash\gnash.vcproj: added new files + +2006-10-29 Vitaly Alexeev + + * backend/render_handler_ogl.cpp: GL_NEAREST ==> GL_LINEAR + +2006-10-28 Rob Savoye + + * macros/ffmpeg.m4: Also look for libavformat, which is needed on + some systems to support the new video code. + +2006-10-28 Udo Giacomozzi + + * backend/render_handler_agg.cpp: added bogus YUV_video to make + it compile again; fixed some warnings + * backend/render_handler_ogl.cpp, server/Makefile.am, + server/video_stream_instance.cpp, server/parser/Makefile.am: + Extended makefiles, moved YUV_video to it's own file so that + Gnash compiles again for other backends + +2006-10-28 Markus Gothe + + * macros/gnashpkgtool.m4: Typo. + * backend/render_handler_ogl.cpp, libbase/ogl.h: Replaced TU-wrapper + code with the real stuff. + +2006-10-27 Sandro Santilli + + * server/asobj/Makefile.am: added includes from backend + (NetStream uses renderer - should be avoided ?) + +2006-10-27 Markus Gothe + + * server/asobj/NetStream.{h,cpp}: Uint8 -> uint8_t. #ifdef USE_FFMPEG. + Fixed typo of StreamProvider.h for case-sensitive-compilers. + Sleep -> sleep. #ifndef __GNUC__ fmod = std::fmod. + * backend/render_handler_ogl.cpp: Don't use GLew since it useless... + TODO: rewrite NV-ext to generic OGL so it works. Removed ';' to + conform to -pedantic -Werror. Changed name on quad to iquad to avoid + "cc-1101 CC: ERROR File = render_handler_ogl.cpp, Line = 150 + "quad" has already been declared in the current scope." + +2006-10-27 Vitaly Alexeev + + porting to win32: + * server\as_function.cpp + * server\array.cpp + * server\asobj\Global.cpp + * libbase\noseek_fd_adapter.cpp + * backend\sound_handler_sdl.h + +2006-10-27 Vitaly Alexeev + + opengl videostream implementation (4-7 ms per frame) + requirements: NVIDIA card with aux buffers, glew library + + updated: + * server\parser\button_character_def.h, + * server\gnash.h, + * server\asobj\LocalConnection.h, + * server\asobj\LocalConnection.cpp, + * server\parser\movie_def_impl.h, + * server\movie_root.h, + * server\asobj\NetStream.h, + * server\asobj\NetStream.cpp, + * libbase\network.h, + * libbase\network.cpp + * server\render.h + * server\parser\sprite_definition.h + * server\swf\tag_loaders.h + * libbase\tu_types.h + * gui\gui.cpp + * server\impl.cpp + * libbase\log.cpp + * server\movie_root.cpp + * server\render.cpp + * backend\render_handler.h + * backend\render_handler_ogl.cpp + * server\swf\tag_loaders.cpp + * win32\gnash\gnash.vcproj + + added: + * server\parser\video_stream_def.h + * server\parser\video_stream_def.cpp + * server\video_stream_instance.h + * server\video_stream_instance.cpp + * testsuite\sample\player.swf + +2006-10-27 Markus Gothe + + * backend/render_handler_ogl.cpp: Revived code for OGL antialiasing, + albeit #if 0 until I've got the time to work on this. Added ctor stub. + +2006-10-27 Sandro Santilli + + * testsuite/actionscript.all/Date.as: fixed testcase + (get => getDate, set => setDate, getUTC => getUTCDate, + setUTC => setUTCDate) + +2006-10-27 Sandro Santilli + + * server/Property.h: improved documentation, added isGetterSetter, + modified other methods to take as_object by *reference* (not + pointer, as we dont' accept NULLs). + * testsuite/server/PropertyListTest.cpp: updated to match new + interface. + * server/PropertyList.{h,cpp}: added getProperty(key) method; + removed "as_object" member and accepted it as an argument of + setValue/getValue: this allow for inherited properties (the "owner" + is not the object containing the property list when this is just + a prototype); fixed copy constructor to clone container elements, + implemented assigment operator, fixed clear() method to delete + container elements; tried to handle some const-correcness. + Will need a final cleanup and simplification pass. + * server/as_object.{h,cpp}: added private findProperty() and + findGetterSetter() methods, for crawling the inheritance chain; + fixed set_member_default() to look for getter/setters in + the inheritance chain before falling back to "override" mode; + added doxygen comments. + * testsuite/actionscript.all/Object.as: added Property inheritance + tests. + +2006-10-27 Hannes Mayr + + * gtk_glue_agg.cpp: Fixed rendering for screens with 8-bit and + 16-bit color depth. + +2006-10-26 Sandro Santilli + + * server/as_object.h: new add_property() method + * server/asobj/Object.cpp (object_addproperty): completed. + * testsuite/actionscript.all/Object.as: xcheck => check :) + +2006-10-26 Sandro Santilli + + * server/GetterSetter.{cpp,h}: getValue/setValue method made const + (problems with const-correctness of as_function are handled in + the implementation file with use of const_cast<>) + * server/: Makefile.am, Property.h: new class for properties, + obsoletes as_member. + * server/PropertyList.{cpp,h}: changed container to store + pointers to the new polymorphic Property class; added pointer + to as_object owner for calls to getter/setter properties. + * testsuite/server/PropertyListTest.cpp: fixed test to work + with new interface (requirement for an as_object in ctor) + * server/as_object.h: fix constructors to properly initialize + the PropertyList. + * server/as_member.h: removed, as obsoleted + * server/Makefile.am: removed obsoleted reference to as_member.h + +2006-10-26 Markus Gothe + + * macros/gnashpkgtool.m4: Added GNASH_PKG_LIBS. Added GNASH_PKG_FIND. + * macros/boost.m4: Added "2>/dev/null". + +2006-10-26 Sandro Santilli + + * server/textformat.h: added missing forward declarations. + * server/asobj/Global.cpp: added missing header. + * server/builtin_function.h (constructor): added default value of + NULL for exported interface. + * server/: GetterSetter.{h,cpp}, Makefile.am: added new class for + getter-setter properties. + * testsuite/server/: GetterSetterTest.cpp, Makefile.am: unit test + for the new class. + +2006-10-26 Sandro Santilli + + * server/: Makefile.am, as_object.{cpp,h}: use the PropertyList class + rather then the simple stringi_hash<> (replaces TU things + with standard things, btw) + * server/PropertyList.{cpp,h}, testsuite/server/Makefile.am, + testsuite/server/PropertyListTest.cpp: new class for use + by as objects + associated test. + * server/as_value.h: added output operator. + * server/as_member.h: added is_read_only() method; changed + get_member_flags() to return a reference (+added a const + and non-const version). + +2006-10-26 Udo Giacomozzi + + * server/gnash.h, server/styles.cpp, server/styles.h, + server/types.cpp: Added new methods for read access to + some members and for faster color transform. + * backend/render_handler_agg.cpp, + backend/render_handler_agg_bitmap.h, + backend/render_handler_agg_style.h: Fully implemented + bitmap and gradient fill styles and split main AGG + renderer file for better readability. + * backend/render_handler.h, backend/render_handler_agg.cpp, + gui/gtk.cpp, gui/gtk_glue.h, gui/gtk_glue_agg.cpp, + gui/gtk_glue_agg.h, gui/gtksup.h, gui/gui.cpp, + gui/gui.h, gui/sdl_agg_glue.cpp, gui/sdl_agg_glue.h: + Reverted Bastiaan's changes (set_invalidated_region) + * server/dlist.cpp: Improved invalidated bounds method + * server/button_character_instance.cpp: Fixed invalidated + bounds detection on button state change + +2006-10-25 Sandro Santilli + + * server/as_object.h: get_member() method taking + an as_member pointer made private (toward getter/setter + properties). + * configure.ac: don't check for cairo if not required + (and a minor typo fix) + * server/as_prop_flags.h (set_flags): changed interface + to return bool, documented and simplified implementation. + +2006-10-25 Markus Gothe + + * macros/jpeg.m4: Fixed double -I-bug. + +2006-10-25 Sandro Santilli + + * server/as_object.{h,cpp}: added enumProperties() and + copyProperties() public methods, m_members member made + private (toward getter/setter properties). + * server/sprite_instance.cpp (sprite_duplicate_movieclip): + use the as_object::copyProperties() to avoid direct access + to object members (lacks a testcase for validation) + * server/swf/ASHandlers.cpp (enumerateOjbect): call the + as_object::enumerateProperties() to avoid direct access + to object members (validated with existing testcase); + dropped the not-more-needed enumerateObjectRecursive + function (the one provided by as_object uses a stack + rather then recurs, btw). + +2006-10-24 Sandro Santilli + + * server/asobj/Object.cpp: hide Object.addProperty member. + +2006-10-24 Sandro Santilli + + * server/asobj/Object.cpp: added stub for addProperty() AS function. + * server/asobj/Object.{cpp,h}: added init_object_instance() function + to create an instance of the Object as class. + * server/swf/ASHandlers.cpp (ActionInitObject): use the new + init_object_instance() function. + * testsuite/actionscript.all/Inheritance.as: one more expected success + becomes an actual success. + * testsuite/actionscript.all/Object.as: add a few more tests for + inheritance. + +2006-10-24 Sandro Santilli + + * testsuite/actionscript.all/: merged inheritance.as into + Inheritance.as + * server/asobj/: Global.cpp, Makefile.am, Object.{cpp,h}: + added Object class. + +2006-10-24 Sandro Santilli + + * testsuite/samples/samples.exp: dejagnu driver for + tests in sample dir (actually a copy of ming.exp) + * configure.ac, testsuite/Makefile.am, + testsuite/samples/Makefile.am: enable Makefile + under testsuite/samples dir. + * testsuite/samples/clip_as_button2-TestRunner.cpp: + added test runner for clip_as_button2.swf + +2006-10-24 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Fix typos. + +2006-10-24 Sandro Santilli + + * testsuite/MovieTester.{cpp,h}: added findDisplayItemByDepth() + * server/dlist.h: added const version of get_character_at_depth(). + * server/dlist.cpp (dump): added character type (using RTTI). + * gui/gtk.cpp, gui/gui.h: added 'INPUT' cursor type (to be used + in input text fields) + * server/: Makefile.am, generic_character.cpp, generic_character.h: + added a new implementation file for generic_character, fixed + can_handle_mouse_events to delegate to parent, + had get_topmost_mouse_entity check for can_handle_mouse_events + to completely skip hit test if that returns false (fixes #17935) + * server/movie_root.{h,cpp}: moved isMouseOverActiveEntity() from + header to implementation file. + * server/smart_ptr.h: made conversion from weak_ptr to smart_ptr + a const method, added operator* for smart_ptr + * server/parser/movie_def_impl.cpp (create_instance): minor cleanups. + +2006-10-24 Markus Gothe + + * configure.ac: Fixed finding correct X11-ABI and X11-lib-path on IRIX. + * macros/gnashpkgtool.m4: Implemented GNASH_PKG_INCLUDES. + +2006-10-23 Sandro Santilli + + * server/swf/ASHandlers.cpp (ActionTypeOf): add support + for C_FUNCTION values. + * server/server/edit_text_character.cpp (registerTextVariable): + don't assume our parent is a sprite, use the new get_environment() + function to get to a variable scope instead. + * server/character.h: added get_environment virtual function + (every character should have an associated variable scope) + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: add checks + for MouseOverMouseEntity. + * testsuite/MovieTester.{cpp,h}: added isMouseOverMouseEntity() method. + * server/action.{cpp,h} (event_id class): added is_mouse_event() + method. + * testsuite/actionscript.all/with.as: add a few more tests + for access of variable in higher-level scopes. + * server/: movie_interface.h, movie_root.h: added + isMouseOverActiveEntity interface and implementation. + * gui/gui.cpp (notify_mouse_moved): call isMouseOverActiveEntity + to switch cursor type. + * libbase/smart_ptr.h (weak_ptr): made equality operator an inspector, + added inequality operator. + +2006-10-2 Markus Gothe + + * configure.ac: Fixed finding correct X11-ABI and X11-lib-path on IRIX. + * macro/jpeg.m4: Fixed a bug. + * macro/kde.m4: Fixed typos. + * macro/opengl.m4: Fixed typo (I wonder how we got away with this one?). + +2006-10-23 Sandro Santilli + + * testsuite/actionscript.all/Number.as: removed expected failures + (all we have passes now, there are a lots of other tests to + add for that class, anyway) + * server/as_value.cpp: (operator==): handle comparison of C_FUNCTION + types + * server/as_value.cpp: (operator==): fix handling of object/non-object + comparison (when object is first operand). + * server/asobj/Number.cpp: override get_numeric_value(). + * server/as_object.h: added get_numeric_value() virtual + method (convert to number). + * server/as_value.h: added is_object() method (abstracts + difference between AS_FUNCTION and OBJECT types. + * server/swf.h: comment on semantic of ACTION_NEWEQUALS. + +2006-10-22 Sandro Santilli + + * server/asobj/: Global.cpp, Makefile.am, Number.cpp, Number.h: + new Number ActionScript class (to be finished) + +2006-10-22 Bastiaan Jacques + + * libbase/log.h: size_t cannot be long long, so don't check for it. + * configure.ac: Don't check for long long as it's unused. + * gui/gui{.h,.cpp}: Add setCursor() to be used to set the mouse cursor. + * gui/{gtk.cpp, gtksup.h}: Implement setCursor() for GtkGui. + * configure.ac: Have the description of --enable-write make sense. + * gui/{gui.h, sdl.cpp}: Gui::init() should return true on success. + Document this in gui.h and implement it in sdl.cpp. + * gui/Player.cpp: Remove obsolete comment. + * backend/render_handler.h: Add get_invalidated_region(). + * backend/render_handler_agg.cpp: Implement get_invalidated_region(). + * gui/{gtk.cpp, gtk_glue_agg.cpp, gtk_glue_agg.h, gtksup.h, gui.cpp, + gui.h}: Remove duplicate implementation of set_invalidated_region(); + instead, call get_invalidate_region() from the relevant glue. Call + render_handler::set_invalidated_region() directly instead of the Gui + implementation. + * gui/sdl_agg_glue{.cpp, .h}: Implement region clipping based + rendering. + +2006-10-22 Rob Savoye + + * configure.ac: Group --disable-klash and --enable-plugin + together. Reverse the test to run KDE tests. + + * gui/Makefile.am: Don't link with -no-undefined to reduce + dependancy problems. + * plugin/Makefile.am, klash/Makefile.am: Don't link with + -no-undefined to reduce dependancy problems. + * backend/Makefile.am: List additional headers in + noinst_HEADERS. + * libbase/Makefile.am: Add ref_counted.h. + * macros/agg.m4: Look in $includedir instead of $prefix. + * macros/libXML.m4: Use double quotes when setting LIBXML_CFLAGS. + +2006-10-22 Markus Gothe + + * configure.ac: Don't look for KDE if not --enable-plugin. + Wrong amount of args to 'test'. AC_DEFINE(KLASH...). + Added checking and setting HAVE_SHM_UNLINK. Added check for + shmdt. + * utilities/dumpshm.cpp: Fixed !__GNUC__ stuff. + Look at server/shm.cpp and implement it likewise. + * server/shm.cpp: Actually HAVE_SHM_UNLINK is appriate here. + * plugin/mozplugger/mozpluggerrc.patch: added -j -k and 'stream'. + +2006-10-21 Rob Savoye + + * gnash/NEWS: Update with new fetures. + * server/shm.cpp: Don't core dump anymore by not trying to open + the same memory segment twice. + * utilities/dumpshm.cpp: Shared memory utility. Lists, deletes, + and dumps internal data from Gnash shared memory segments. + * server/shm.h: Add more accessors for private data. + * server/asobj/LocalConnection.cpp: Dump all the networking crap, + that's for NetConnection. + * server/asobj/LocalConnection.h: Derive class from Shm base class + instead of Network base class. + * testsuite/actionscript.all/LocalConnection.as: Use dejagnu.as. + * utilities/Makefile.am: Add dumpshm program. + + * configure.ac: Build klash if the plugin is enabled, and KDE is + found. Use --disable-klash with --enable-plugin to change this + behaviour. + +2006-10-21 Bastiaan Jacques + + * server/gnash.h: Declare sound_handler::is_muted(). + * backend/{sound_handler_gst.cpp, sound_handler_sdl.cpp, + sound_handler_sdl.h}: Implement is_muted(). + * gui/gtk.cpp: Use is_muted() instead of a static Gui variable to + determine whether or not sound is muted. + +2006-10-21 Markus Gothe + + * macros/ffmpeg.m4: Fixed AC_MSG_*-style. + * macros/mad.m4: Added pkg-config support... + +2006-10-20 Rob Savoye + + * macros/ffmpeg.m4: If we find ffmpeg, it has dependancies on + other libraries, so find libvorbisenc and libgsm or Gnash won't + link on Ubuntu with sound enabled. Use pkg-config also for libdts, + vorbisenc, and theora, all dependancies on Ubuntu. + * macros/boost.m4: Don't let the boost lib get added to LIBS, we + want to handle it seperately. + +2006-10-20 Markus Gothe + + * server/as_enviroment.cpp: Removed MIPSPRO #pragma. CC will fail + due to a fundamental template-instantiation error. *Fixed*! + +2006-10-20 Sandro Santilli + + * testsuite/actionscript.all/rtrace.as: fixed typo, make sure + to have 1 second (not a tenth of it) of inactivity before + sending the report. + * server/movie_root.{cpp,h} (notify_mouse_moved, notify_mouse_clicked): + delegate return code to fire_mouse_events, changed to return bool; + (fire_mouse_events): delegate return to generate_mouse_events, + changed to return bool. Ok, final effect is we *sometime* return + false (when NO event is actually triggered). Still partial as an + implementation but a little step forward. + * testsuite/actionscript.all/swf_exists.exp: strip PASSED/FAILED + from test output labels. + +2006-10-20 Sandro Santilli + + * doc/C/sources.xml: Update configure option behaviour. + * testsuite/actionscript.all/swf_exists.exp: catch errors + in 'makeswf' call. + * testsuite/actionscript.all/swf_exists.exp: made it work + again with tcl versions in debian stable :D + Also, reintroduced test id labels in pass/fail messages. + * libbase/log.{cpp,h}: LogFile operator << for 'std::endl' (?) fixed + to return LogFile (not std::ostream). + * testsuite/actionscript.all/Makefile.am: added 'check.as' and + 'xtrace.as' dependencies. + +2006-10-19 Sandro Santilli + + * testsuite/actionscript.all/Number.as: use OUTPUT_VERSION, + not SWFVERSION (the former is set by Makefile rule, the + latter will be available in upcoming Ming releases) + * testsuite/actionscript.all/Makefile.am: add with.as to + GENERATED variable, and a comment about why we need that. + * testsuite/actionscript.all/with.as: deeply test just the + 'with' action. + * server/swf/ASHandlers.cpp (ActionSetVariable, ActionGetVariable): + pass the with_stack to get_variable/set_variable calls. + * server/as_environment.h: made set_variable and get_variable + methods taking a with_stack back to public. + +2006-10-19 Sandro Santilli + + * server/swf/ASHandlers.cpp (unsupported_action_handler): more + verbosity; (ActionWith): cleaned up; (ActionGetVariable): added + note about probable reason for 'with' failing (will work on + that next) + +2006-10-19 Sandro Santilli + + * server/ActioExec.{cpp,h}: added getWithStackLimit() method, + fixed pushWithStackEntry() to use the limit (documented why + in comments); fixed initialization list ordering. + +2006-10-19 Sandro Santilli + + * server/swf/ASHandlers.cpp: fix ActionExec use after privatization + of some members. + * server/ActionExec.{cpp,h}: more doxygen comments, with_stack + made private and provided interfaces for pushing entries + and getting a const ref to it. made _is_function2 data member + private. + +2006-10-19 Sandro Santilli + + * gui/gui.cpp: use return value of mouse move and click events + notifier to decide wheter to trigger redisplay. + * server/gnash.h: added note in key event handler about the + need to conform to the event handling described in the new + doxygen page. + * server/movie.h, server/movie_root.cpp, server/movie_root.h: + switched mouse movement and click event notification functions + to the new interface (note: they always return true currently) + * server/movie_interface.h: added a doxygen page about events + handling, changed notify_mouse_moved() and notify_mouse_clicked() + to return a bool as to wheter redisplay is needed. + +2006-10-18 Udo Giacomozzi + + * gui/gui.h, gui/gui.cpp: Immediate redraw after mouse click + +2006-10-18 Rob Savoye + + * gui/gtk.cpp: Include rc.h, to get the default sound + setting. Toggle the sound using mute() & unmute() via the menu + item. Add static variable for the sound toggle. Don't add the + "Toggle Sound" item if sound is disabled on the command line with + -r 1. + +2006-10-18 Udo Giacomozzi + + * gnash/server/button_character_instance.cpp, + gnash/server/character.h, gnash/server/dlist.cpp, + gnash/server/edit_text_character.cpp, + gnash/server/generic_character.h, + gnash/server/movie_interface.h, + gnash/server/sprite_instance.cpp: Invalidated region + detection reviewed + +2006-10-18 Sandro Santilli + + * macros/agg.m4: make sure agg_include_dir is an absolute path. + +2006-10-18 Stefan Schweizer + + * gui/Makefile.am: klash_DEPENDENCIES += libgnashplayer.la. + +2006-10-18 Sandro Santilli + + * backend/render_handler_cairo.cpp: + don't directly access rect private members. + * gui/fb.cpp, backend/render_handler_agg.cpp: + don't directly access rect private members. + * gui/gui.cpp: let initial _last_invalidated_rect be null; + don't directly access rect private members. + * server/rect.h: added constructor taking all coordinates. + * backend/render_handler_ogl.cpp: don't directly access rect + "to-be" private members. + * server/: fontlib.cpp, movie_root.cpp: don't directly access + rect "to-be" private members. + * gui/gtk.cpp: don't directly access rect "to-be" private members. + * server/rect.h: added shift_x, shift_y, scale_x and scale_x + methods (toward making data members private). + * server/rect.h: added getters for all ordinates (toward making + them private). + * server/as_environment.h: minor cleanups. + * server/as_environment.cpp: fix signed/unsigned comparison warning, + fixed a small typo in debugging message. + * libbase/log.: always check for SIZEOF_SIZE_T == SIZEOF_INT + before comparing against SIZEOF_LONG and SIZEOF_SHORT. + * configure.ac: print an error on invalid --enable-sound value. + +2006-10-18 Markus Gothe + + * gui/gnash.cpp, gui/sdl.cpp, utilities/parser.cpp, + utilities/processor.cpp: #ifndef __GNUC__ keeps the bisons away. + * utilities/Makefile.am: Removed unnecessary linkage (which even + make the binaries break on IRIX). + +2006-10-18 Sandro Santilli + + * server/xml.cpp (setupFrame): static cast pointer arg for %p to + void * (fixes compiler warning) + * macros/sdl.m4: fix handling of --with-sdl-incl (add the missing -I + switch). + * configure.ac: check for getopt.h + * gui/: gnash.cpp, sdl.cpp, + utilities/: parser.cpp, processor.cpp: + don't redeclare geopt stuff is getopt.h is available. + * macros/sdl.m4: fixed typo ("$/" => "$i/") + +2006-10-18 Bastiaan Jacques + + * configure.ac: Have configure export SIZEOF defines for various + integer types. + * libbase/log.h: Define SIZEOF_SIZE_T based on the size of its + integer type definition, so as to avoid warnings caused by integer + size difference variations in platforms. + * gui/kde_glue.h: Remove OpenGL include. + * gui/kde_opengl_glue.cpp: Add OpenGL include. + +2006-10-18 Sandro Santilli + + * Makefile.am: @CC => $(CC) + * server/rect.cpp (expand_to_transformed_rect): do nothing + when rect to expand to is null. + +2006-10-18 Hannes Mayr + + * configure.ac: Added Option 'no' to --enable-sound's help output. + +2006-10-18 Markus Gothe + + * configure.ac, libbase/tu_types.h: Check for endian.h. + * macros/libtool.m4, + config.guess, config.sub, ltmain.sh: Updated to latest version from + 2005 / serial 48. + * macros/pthreads.m4: added check for pth-config. + +2006-10-17 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Removed call to GCC specific STL + vector function. + * server/swf/ASHandlers.cpp: Removed redundant soundstop in + ActionGotoFrame(). + + +2006-10-17 Markus Gothe + + * server/as_enviroment.cpp: If MIPSPRO #pragma do_not_instantiate. + * libbase/tu_types.h: Fixed endian.h-includness for max. portability. + * backend/sound_handler_sdl.h: -> + * backend/sound_handler_sdl.cpp: -> + * macros/sdl.m4: Fixed wrong search-path. + * gui/Player.cpp: Removed getopt_win32.h include. + * gui/gnash.cpp: Added declaration of getopt, optind and optarg. + * gui/sdl.cpp, gui/gnash.cpp, utilities/parser.cpp, + utilities/processor.cpp: extern "C" {getopt()}. + +2006-10-17 Rob Savoye + + * testsuite/actionscript.all/with.as: Minor changes. + * macros/kde.m4: Remove test for vsnprintf, as this breaks on + Ubuntu, and this is tested for elsewhere anyway, so it's + redundant. + +2006-10-17 Sandro Santilli + + * server/swf/ASHandlers.cpp (ActionGetVariable): optimizations: + avoid pop/push; avoid unneeded as_value copies. + * server: Makefile.am, rect.cpp rect.h: put rect class in it's own + files, fixed width() and height() to return 0 when rect is + null. + * gui/gui.h, server: font.h, gnash.h, movie_interface.h, types.cpp, + parser/: character_def.h, edit_text_character_def.h, + shape_character_def.h, text_character_def.h: updated all includes + to use new rect.h file. + * gui/gui.cpp (display): added missing return (doesn't tell much + actually) + * server/gnash.h, server/types.cpp (rect class): added is_null(), + set_null() methods and check for it in all public functions; + added enclose_point() method; added some TODO items. + * server/edit_text_character.h (reset_bounding_box): avoid + directly accessin rect class data members. + * server/movie_root.h (get_invalidated_bounds): use set_null() + to reset bounds when browsing for invalidated rectangle, + avoid directly accessing rect class data members. + * server/parser/shape_character_def.cpp (compute_bound): + avoid directly accessin rect class data members, use + rect::set_null() to initialize bounds. + +2006-10-17 Bastiaan Jacques + + * gui/Makefile.am: when we are building the KDE GUI, build + target klash.moc before anything else. + * gui/sdl_ogl_glue.cpp: variable depth is now called _bpp. + +2006-10-17 Sandro Santilli + + * gui/gui.{cpp,h}: notify_mouse_moved made non-static; call + display() after mouse move notification to immediately + show changed triggered by any event handler. This is an + overkill and needs better architecture, but at least it is + correct now. + * gui/gui.{cpp,h}: extracted a display() function out of + advance_movie(), for possible reuse from event notifiers. + * server/edit_text_character.cpp: commented out debugging line + * testsuite/misc-ming.all/ButtonEventsTest.c: set movie rate + to 0.2 frames per second, to test redraw-on-event (not working + as it should). + * gui/Player.cpp (run): exit with an error if gui initialization + failed. + * gui/fb.cpp (init): return false if pixel format is not + supported. + +2006-10-17 Markus Gothe + + * configure.ac: Added use of AC_LANG{PUSH,POP}(C++). + * Makefile.am: Install doc/gnash.1 as man page. + * doc/gnash.1: Imported www-version. + +2006-10-16 Rob Savoye + + * server/xml.cpp: Fix parseXML so it takes a string, and properly + sets up the stack with the values parsed from the XML. + * testsuite/actionscript.all/XML.as: Tests pass now, no expected + failures anymore. + * testsuite/actionscript.all/with.as: New test case for making + sure the 'with' Flash keyword works, which currently it doesn't. + +2006-10-16 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, + backend/sound_handler_sdl.h, server/gnash.h: Added support for + muting and unmuting soundhandlers. + +2006-10-16 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Fixed stop_all_sounds() and + stop_sound(). + * server/sprite_instance.cpp: When a movie is stopped/paused + or jumps to a new frame the audio playback now stops. + +2006-10-16 Sandro Santilli + + * testsuite/misc-ming.all/ButtonEventsTest-Runner.cpp: + expect immediate execution of mouse event handlers. + * server/button_character_instance.cpp (on_button_event): + execute events handler immediately, not at next 'advance' + * configure.ac: comment out unused OGG and PNG checks + * testsuite/server/Makefile.amadd libgnashbase explicit + linking as the one deduced by libgnashserver seems + to be bogus (points to the installed one). + * testsuite/misc-ming.all/ming_utils.c: include ming_utils.h + * configure.ac: don't complain if mp3_decoder is set but no + sdl sound was requested (since mp3_decoder=ffmpeg by default). + Just set it to none instead.. + +2006-10-16 Hannes Mayr + + * gui/gtk.cpp: Use set_invalidated_region() only with AGG renderer + until world_to_pixel() is implemented for triangle-based renders. + +2006-10-16 Rob Savoye + + * doc/C/gnashrc.xml: New section on the Gnash configuration file + and it's settings. + * doc/C/gnash.xml: Add section on the Gnash configuration file. + + * gui/gtksup.h: Add prototype for menuitem_sound_callback. + * gui/gtk.cpp: Add menuitem_sound_callback, and a "Toggle Sound" + menu item. + * gui/Player.cpp: Enable sound by default, but also check the + $HOME/.gnashrc file. + * libbase/rc.cpp, rc.h: Add support for "sound" and "pluginsound" + config settings. + * configure.ac: Enable the SDL-ffmpeg sound system by default. + +2006-10-16 Udo Giacomozzi + + * gui/gui.h, gui/gui.cpp: Added want_redraw() function + * backend/render_handler.h, backend/render_handler_agg.cpp: + Added get_pixel() function + +2006-10-16 Hannes Mayr + + * gui/gtk_glue_agg.cpp, gui/gtk.cpp, gui/gtksup.h: Added regions support + to the GTK-AGG GUI. + +2006-10-16 Tomas Groth Christensen + + * doc/C/internals.xml: Updated the docs about the SDL soundhandler + * backend/sound_handler_gst.cpp: Dummy support for sound envelopes + * backend/sound_handler_sdl.cpp, backend/sound_handler_sdl.h, + server/button_character_instance.cpp, server/gnash.h, + server/sound.cpp, server/sound.h, server/asobj/ASSound.cpp, + server/parser/button_character_def.cpp, + server/parser/button_character_def.h: Added support for volume + control using sound envelopes. + +2006-10-16 Sandro Santilli + + * testsuite/misc-ming.all/: ButtonEventsTest-Runner.cpp, + ButtonEventsTest.c, Makefile.am: new test for button + events. + * testsuite/MovieTester.{cpp,h}: added call to set_current_root + (seems needed by notify_mouse_clicked) and new pressMouseButton() + and depressMouseButton() methods. + * server/movie_root.cpp (generate_mouse_button_events): use + C++ style casts, assert that a "current root" has been set. + * server/: action.cpp, action.h: added ROLLOVER and ROLLOUT standard + members. + * server/sprite_instance.cpp: set and get ROLLOVER and ROLLOUT + events within get_member and set_member (fixes RollOverOutTest) + * testsuite/misc-ming.all/Makefile.am: enable RollOverOutTest-Runner + on 'make check' + * testsuite/misc-ming.all/: Makefile.am, RollOverOutTest-Runner.cpp, + RollOverOutTest.c: new test for RollOver and RollOut events + * testsuite/misc-ming.all/ming_utils.{c,h}: added make_fill_square() + function. + * testsuite/MovieTester.{cpp,h}: added movePointerTo() method + to generate mouse events. + * server/types.cpp, server/matrix.cpp: don't check IF_VERBOSE_PARSE + in types' ::print method, have that checked by caller. + +2006-10-16 Hannes Mayr + + * gui/gtk_glue_agg.cpp, gui/gtk_glue.h: Code cleanup, fixed unused + parameter warnings. + +2006-10-16 Udo Giacomozzi + + * gui/fbsup.h, gui/fb.cpp: Implemented clean exit for FB GUI + +2006-10-16 Bastiaan Jacques + + * plugin/klash/klash.cpp: Fix compilation issues by ensuring that + `windowid' is actually defined. + * macros/docbook.m4: Make an invalid directory passing message refer + to the relevant directory. + * configure.ac: Permit only the KDE GUI when klash is requested. KDE + is not a renderer, so don't test for it. + * gui/{kde_glue.h, kde_glue_opengl.cpp, kde_glue_opengl.h, + gui/kdesup.h}: Remove OpenGL-specific code from KdeGlue, so as to + allow glues other than OpenGL to inherit from KdeGlue; propagate this + change to subclasses. Also fix some typos. + * plugin/klash/Makefile.am: Deprecate the klash binary from + plugins/klash in favour of gui/klash. + * configure.ac: Allow SDL-GUI to be built with Agg. Fix typo. + * gui: Implement the Agg renderer for SDL-GUI. This does not yet + include region updating. + * gui/README: Update to reflect recent changes. + * gui/gnash.cpp: Remove assertion for invalid bit depths. Renderer + glues must decide if a bit depths is appriopriate and signal the user + if necessary. + * gui/sdl_cairo_glue{.cpp, .h}: Remove OpenGL code. + * gui/sdl_agg_glue.cpp: Don't call free() on a operator new-allocated + buffer. + +2006-10-16 Markus Gothe + + * backend/render_handler_agg.cpp: Added log_error on unknown + pixelformat. Added RGBA16/RGBA32 pixel-formats. + * gui/gtk_glue_agg.cpp: Added RGBA16/RGBA32 pixel-formats. + * plugin/klash/klash.cpp: Fixed windowid in accordance to Bastiaan's + code clean-up in action.cpp + +2006-10-15 Patrice Dumas + + * testsuite/Makefile.am: Add anaylse-results.sh to the + distibution. + * testsuite/anaylse-results.sh: Make sure the test log exists + before trying to parse it. + * testsuite/actionscript.all/Makefile.am: Also clean the out.swf + file. + * testsuite/libbase/Makefile.am: Also clean the site.exp.bak + file. + * testsuite/misc-ming.all/Makefile.am: Clean the debug log, and + testing log files. + * testsuite/misc-ming.all/PlaceObject2Test.c: Deal with the + warning, and don't comment out argc and argv. + * testsuite/server/Makefile.am: Clean the debug log, and testing + log files. + + +2006-10-15 Rob Savoye + + * testsuite/actionscript.all/swf_exists.exp: Use local_exec() + instead of spawn/expect. This works better with batch tests. + * testsuite/actionscript.all/check.as: Add xcheck and + xcheck_equals to handle expected failures. + * testsuite/actionscript.all/dejagnu.as: Add xpass and xfail to + handle expect failures. + * testsuite/actionscript.all/Boolean.as, Date.as, Global.as, + Inheritance.as, MovieClip.as, NetConnection.as, Number.as, + Object.as, Selection.as, array.as, delete.as, inheritance.as: Use + xcheck and xcheck_equals for tests expected to not work yet. + * testsuite/actionscript.all/XML.as, XMLNode.as: Use xpass and + xfail for tests expected to not work yet. + +2006-10-15 Sandro Santilli + + * gui/sdl_ogl_glue.cpp: fixed unused parameters warning. + +2006-10-15 Bastiaan Jacques + + * configure.ac: Print KDE configuration flags when using KDE. + * gui/Makefile.am: Correct the order of KDE linker flags. + * gui/gui.cpp: Fix a typo. + * macros/docbook.m4: Substitute variables used in Makefiles, so they + can be used by `make'. + * server/action.cpp: Remove unused GUI code. + * configure.ac, macros: Implement all configuration option + descriptions using AC_HELP_STRING for a pretty alignment. + +2006-10-15 Markus Gothe + + * backend/render_handler_agg.h: Chmod -x. + * AUTHORS: Updated in accordance with the www. + * doc/C/sources.xml, win32/npgnash/npgnash.vcproj, plugin/klash/README, + backend/sound_handler_mp3.cpp, backend/sound_handler_sdl.cpp, + win32/gnash/gnash.vcproj, backend/sound_handler_sdl.h,config.mk.in, + doc/C/internals.xml, gui/Makefile.am, libamf/Makefile.am, Makefile.am, + plugin/klash/Makefile.am, plugin/Makefile.am,server/asobj/Makefile.am, + server/Makefile.am, server/parser/Makefile.am, + testsuite/actionscript.all/Makefile.am: + Removed references to SDL-mixer. + +2006-10-14 Sandro Santilli + + * server/movie_root.h, server/movie_interface.h, server/movie.h: + notif_mouse_moved() function documentation improved and + moved only in movie_interface (parent class). + +2006-10-14 Markus Gothe + + * libgeometry/Makefile.am, server/asobj/Makefile.am, server/Makefile.am, + server/parser/Makefile.am: Removed unused $(ENGINE_INCLUDE). + +2006-10-14 Markus Gothe + + * server/shape.h: DSOEXPORT class mesh_set + * server/styles.h: DSOEXPORT class fill_style. + * server/gnash.h: DSOEXPORT void expand_to_rect(const rect& r); + DSOEXPORT movie_definition* create_movie(tu_file* in, + const std::string& url); + * gui/gui/gtk_glue_cairo.h: Fixing undef'd virtual. + * backend/render_handler_cairo.{cpp, h}: DSOEXPORT void + set_handle(cairo_t* handle); DSOEXPORT gnash::render_handler* + create_handler(); + * macros/gnashpkgtool.m4: Initial import. + +2006-10-13 Rob Savoye + + * macros/boost.m4: Do stupid and complex searching for the Boost + version number, followed by digging around via 'ls' to find the + right Boost thread library no matter what it's called. For now, + the results of this test are unused by current code. + +2006-10-13 Markus Gothe + + * gui/sdl.cpp, gui/sdl_ogl_glue.cpp: Fixed some #defines that were + reverted. Removed basename(). + * macros/ogg.m4: Typo. + * macros/boost.m4: Clean up and fixed missing AC_LANG{PUSH,POP}(C++). + * gui/gtk_glue_gtkglext.h: Fixed non-def'd virtual. + * libbase/container.h: Adding namespace gnash{}. Avoiding confusion. + * libgeometry/kd_tree_dynamic.cpp: hash -> gnash::hash. + +2006-10-13 Udo Giacomozzi + + * testuite/movies.all/gravity.swf: Added test movie + +2006-10-13 Hannes Mayr + + * configure.ac: AGG is now supported by GTK GUI too. + +2006-10-13 Bastiaan Jacques + + * gui/{sdl_*, Makefile.am}: Add OpenGL and Cairo glues for SDL. + Clean up sdl.cpp. + +2006-10-13 Hannes Mayr + * gui/gtk.cpp, gui/gtksup.h, gui/gtk_glue.h, gui/gtk_glue_agg.cpp, + gtk_glue_agg.h, Makefile.am: Added support for GTK with AGG renderer. + +2006-10-13 Sandro Santilli + + * gui/sdl.cpp, gui/sdlsup.h: added support for expose and + resize events. (resize does nothing, just logs it). + * backend/render_handler_cairo.cpp (line_style_width): handle + "hairline" width. + * backend/render_handler_ogl.cpp (line_style_width): handle "hairline" + width. + * gui/gui.cpp (resize_view): set _width and _height. + * testsuite/libbase/Makefile.am, testsuite/misc-ming.all/Makefile.am, + testsuite/server/Makefile.am: update dejagnu rule to use + check_PROGRAMS rather then noinst_PROGRAMS. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + add border to the textfield (to test for bug# 17992). + * testsuite/libbase/Makefile.am, testsuite/misc-ming.all/Makefile.am, + testsuite/server/Makefile.am: only build tests on 'make check' + +2006-10-13 Markus Gothe + + * autogen.sh: avoid using the '-path' primary to find(1) as it's an + extension to posix.2 and is not supported on some operating systems + such as Solaris and IRIX. + * configure.ac: Die on --enable-strict && --enable-renderer=agg. + +2006-10-13 Sandro Santilli + + * gui/gui.h, gui/fbsup.h, gui/fb.cpp: changed set_invalidated_region + to take rect by const reference (a const value didn't make sense) + * gui/gtk.cpp: redraw buffer on expose events. + * backend/render_handler.h (draw_poly): documented the fact + that the polygon's corner need not be closed (am I right?) + * macros/atk.m4: fixed missing -I switches in include, cleaned + up verbosity. + * backend/render_handler.h, backend/render_handler_tri.h: + added links new pages, cleaned up doxygen comments. + * doc/Doxyfile.in: exclude mozilla-sdk and win32 paths from + doxygen parsing + +2006-10-13 Udo Giacomozzi + + * backend/render_handler.h: Added documentation + * backend/render_handler.h, backend/render_handler_agg.cpp, + backend/render_handler_tri.h: code cleanup + * backend/render_handler.h, backend/render_handler_agg.cpp, fb.cpp: + split AGG buffer initialization from constructor + +2006-10-13 Markus Gothe + + * macros/png.m4: Added pkg-config support. + +2006-10-12 Udo Giacomozzi + + * render_handler_agg.cpp, gui/fb.cpp: Implemented clipping for + AGG backend + +2006-10-12 Rob Savoye + + * testsuite/libbase/Makefile.am: Redefine the check-DEJAGNU target + to execute the testcase directly if DejaGnu isn't installed. + * testsuite/libbase/libbase.exp: New test driver for libbase test + cases. + * testsuite/server/Makefile.am: Redefine the check-DEJAGNU target + to execute the testcase directly if DejaGnu isn't installed. + * testsuite/server/server.exp: New test driver for server tests. + * testsuite/misc-ming/Makefile.am: Redefine the check-DEJAGNU target + to execute the testcase directly if DejaGnu isn't installed. + * testsuite/misc-ming/ming.exp: New test driver for Ming tests. + + +2006-10-10 Rob Savoye + + * gui/images/gnash_G_v3.ico: Updatedb "Gnashing 'G'" square + icon in color. + * gui/gtk.cpp: Use updated icon image used when minimized. + +2006-10-13 Sandro Santilli + + * server/character.h: clarified semantic of get_width() and + get_height(). + * server/generic_character.h: fixed get_width() and get_height() + to return "local untransformed" size. + * server/sprite_instance.cpp (get_member): fixed M_WIDTH and + M_HEIGHT members fetch using a plain call to get_width() and + get_height() [ only additionally adding twips_to_pixel transform] + * gui/gui.cpp: added IF_DEBUG_REGION_UPDATES and + ENABLE_REGION_UPDATES_DEBUGGIN macros, for future + compiletime + runtime conditional support. + * gui/gui.{cpp,h}: advance_movie reverted to a static, to make + current gtk gui work fine (there's no point of being non-static + *and* take a 'this' argument). + * macros/ogg.m4: added missing -I, -L and -l (!); + quoted 'test' args. + +2006-10-12 Markus Gothe + + * gui/sdl.cpp: fixed includes for getopt() and basename(). + include tu_opengl_includes.h + * macros/agg.m4: Added pkg-config support :D. + +2006-10-12 Udo Giacomozzi + + * gui/fb.cpp, gui/fbsup.h, gui/gui.cpp, gui/gui.h, + server/button_character_instance.cpp, server/button_character_instance.h, + server/character.c, server/character.h, server/dlist.cpp, + server/dlist.h, server/edit_text_character.cpp, + server/edit_text_character.h, server/generic_character.h, + server/gnash.h, server/movie_interface.h, server/movie_root.cpp, + server/movie_root.h, server/sprite_instance.cpp, + server/sprite_instance.h, gnash/server/types.cpp, + server/parser/button_character_def.h, erver/parser/character_def.h, + server/parser/edit_text_character_def.h, server/parser/movie_def_impl.h, + server/parser/sprite_definition.h, server/parser/text_character_def.h: + Enhanced "rect" class and implemented a method to detect updated regions + on the stage. + + +2006-10-12 Sandro Santilli + + * configure.ac: don't check for GLEXT unless gtk/opengl combination + is requested. + * macros/atk.m4: added missing switches in lib detection; + always look for atk version and topdir as those might eventually + be needed by subsequent library seeking; removed bogus if/else/fi + blocks; added some # }{ labels to help debugging. + * server/gnash.h: document enclose_transformed_rect() function. + +2006-10-12 Markus Gothe + + * libbase/postscript.cpp, libbase/triangulate_impl.h, libbase/tu_math.h + libbase/utility.h, libgeometry/collision.cpp, libgeometry/cull.cpp, + libgeometry/geometry.cpp, libgeometry/kd_tree_dynamic.cpp, + libgeometry/kd_tree_packed.cpp: Removed special-SGI std-declareation. + std::math_function in-code instead. + * server/asobj/Math.cpp, libbase/tu_math.h: Fix for !__GNUC__. + +2006-10-12 Sandro Santilli + + * server/dlist.{h,cpp}: dump() inpsector correctly made const. + +2006-10-12 Patrice Dumas + + * testsuite/Makefile.am: only build libgnashtestsuite.la + on 'make check'. + +2006-10-12 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: made .swf testfiles + dependencies for the corresponding runners. + * testsuite/misc-ming.all/Makefile.am, + testsuite/misc-ming.all/PlaceObject2Test.c, + testsuite/misc-ming.all/ming_utils.c, + testsuite/misc-ming.all/ming_utils.h: + moved ming utility function from test file to ming_utils. + +2006-10-12 Markus Gothe + + * configure.ac: Check if strlcpy and strlcat already is defined. + Fixes problems with redefinition on systems where they exists. + +2006-10-12 Sandro Santilli + + * backend/render_handler_agg.cpp: added missing config.h include, + fixed mispelled HAVE_AGG_SCANLINES_COMPOUND_LAYERED + * gui/fbsup.h, gui/fb.cpp: moved class documentation from + implementation to header file, for better doxygen consumption. + +2006-10-12 Patrice Dumas + + * configure.ac: check for KDE stuff if klash build is + requested. + +2006-10-12 Sandro Santilli + + * gui/Makefile.am, libbase/Makefile.am, + testsuite/libbase/Makefile.am, utilities/Makefile.am: + removed BOOST_LIBS as we're not using them anymore. + * macros/curl.m4: define USE_CURL if curl libs are found + * server/StreamProvider.cpp: rely on USE_CURL from config.h + so we're sure we won't end up with undefined references. + * plugin/plugin.cpp: raise maxargc to 16, split -r3 + into two arguments (-r) and (3). + +2006-10-11 Markus Gothe + + * configure.ac: Check for __FUNCTION__, __PRETTY__FUNCTION and + __func__. + * libbase/tu_types.h, plugin.h: Redefine __FUNCTION__. + +2006-10-11 Sandro Santilli + + * testsuite/Makefile.am: descend in actionscript.all last + (quick hack to avoid premature failure of check run) + * testsuite/libbase/Makefile.am: use $(top_builddir) to find + .la files, don't use -I for libs! + +2006-10-11 Sandro Santilli + + * testsuite/misc-ming.all/Makefile.am: added the new files, + fixed yet another $(top_srcdir) misuse. + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c, + testsuite/misc-ming.all/ming_utils.c, + testsuite/misc-ming.all/ming_utils.h: + extracted useful Ming functions from a single test, for reuse. + +2006-10-11 Sandro Santilli + + * backend/render_handler_agg.cpp: fixed typo in compatibility + layer inclusion. + * configure.ac, Makefile.am, macros/agg.m4: report need for + AGG compatibility layer. + +2006-10-11 Sandro Santilli + + * macros/gtkglext.m4: added missing -L to GLEXT_LIBS when + --with-glext-lib is given. + * backend/render_handler_agg.cpp: + use HAVE_AGG_SCANLINES_COMPOUND_LAYERED define to toggle inclusion + of compatibility header. + * macros/agg.m4: check availability of the + render_scanlines_coumpound_layered function and set + HAVE_AGG_SCANLINES_COMPOUND_LAYERED accordingly. + * configure.ac: exit with error on invalid gui/renderer selection + combination. + +2006-10-11 Markus Gothe + + * backend/Makefile.am, testsuite/Makefile.am, gui/Makefile.am, + libamf/Makefile.am, libgeometry/Makefile.am, plugin/Makefile.am, + plugin/klash/Makefile.am, server/Makefile.am, utilities/Makefile.am, + server/asobj/Makefile.am, server/parser/Makefile.am: + Added $(top_builddir). + +2006-10-11 Sandro Santilli + + * server/asobj/Global.cpp (as_global_parseint): fixed invalid + free. + +2006-10-11 Sandro Santilli + + * testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp, + testsuite/misc-ming.all/Makefile.am: first movie tester. + * testsuite/Makefile.am, testsuite/MovieTester.cpp, + testsuite/MovieTester.h: initial implementation of + a movie tester class. + +2006-10-11 Sandro Santilli + + * server/sprite_instance.h: added getDisplayList() method usefull + for testing. + * server/edit_text_character.{cpp,h}: implemented get_width() and + get_height(). + * server/character.h: added comment to get_width() and get_height() + virtual function (return in TWIPS). added a warning log when + a subclass did not override these. + * macros/gtk2.m4: fix handling of --with-gtk2-libs (and commented-out + the caching call due to ignorance about it :) + * configure.ac: print GTK, PANGO and GLIB and ATK variables if gtk + gui is requested (even if not with opengl renderer) + * configure.ac, testsuite/Makefile.am, testsuite/server/Makefile.am, + testsuite/server/MatrixTest.cpp: added initial unit test for + matrix class. + * server/matrix.{cpp,h}: added equality and output operators. + * server/Makefile.am, server/gnash.h, server/matrix.cpp, + server/matrix.h, server/movie.h, server/types.cpp: + moved matrix class in its own files and added/fixed + documentation. + +2006-10-11 Markus Gothe + + * macros/agg.m4: Added /usr/pkg/include. + * testsuite/server/Makefile.am: Fixed bug. + * libbase/log.cpp: Fixed lightweight locking. + +2006-10-10 Sandro Santilli + + * server/character.h, server/generic_character.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/parser/character_def.h, server/parser/shape_character_def.cpp, + server/parser/shape_character_def.h: + const-corrected get_height(), get_height_local(), get_width() and + get_width_local() + +2006-10-10 Sandro Santilli + + * testsuite/check.h: added check() macro + * testsuite/misc-ming.all/DefineEditTextVariableNameText.c: + added traces of some _width and _height proprieties. + * server/dlist.h: added const version of get_character_by_name + and size() methods. + +2006-10-10 Markus Gothe + + * macros/sdl.m4: Removed AC_DEFUN([GNASH_PATH_SDL_MIXER]. Added + AC_MSG_RESULT(VERSION). + * macros/zlib.m4: Added AC_MSG_RESULT. + * macros/atk.m4: Added AC_MSG_RESULT. Fixed detection + (I love pkg-config). + * macros/sdl.m4: Added pkg-config-support. + * macros/ogg.m4: Pkg-config tweaks. + * macros/boost.m4: AM_CONDITIONAL should be set IFF headers are found. + Added /usr/pkg/include to paths. + * macros/curl.m4: Added id-tag. + * macros/glibmm.m4, macros/libXML++.m4: Removed! + * macros/glib.m4: Extended pkg-config support. + * macros/gtk2.m4: Extended pkg-config support. + * macros/cairo.m4: Extended pkg-config support. + * macros/gtkglext.m4: Extended pkg-config support. + * configure.ac: #define HAVE_STRINGCASECMP 1, Fixed BOOST. + +2006-10-10 Sandro Santilli + + * testsuite/Makefile.am, testsuite/check.h, + testsuite/libbase/URLTest.cpp, testsuite/libbase/Makefile.am: + Moved dejagnu utility macros into a separate header file + (check.h) and updated URLTest so to use that. + +2006-10-10 Sandro Santilli + + * server/parser/edit_text_character_def.h: specified coordinate space + for get_width and get_height return values. + * backend/render_handler.h: doxygen comments cleanup (ensure briefs) + * server/text.cpp: added some debugging labels, you can enable + them defining GNASH_DEBUG_TEXT_RENDERING (just a placeholder + as we'll eventually need to fix the text antialiasing problem) + +2006-10-10 Udo Giacomozzi + + * backend/render_handler_agg.cpp: Added asserts for parameters and + fixed draw_poly() which was always filling the polygon. + +2006-10-10 Sandro Santilli + + * configure.ac: fix USE_FFMPEG and USE_MAD defines. + * gui/Makefile.am: refer to the ico file in CVS... + * macros/agg.m4: added missing result of headers check; add a + a check for need of a compatibility layer (testing) + * macros/ffmpeg.m4: use libdts and libavutil if found. don't look + for any of them if pkg-config could find out by himself. + * configure.ac: added --with-mp3-decoder, only check for mp3 decoder + if needed. + * backend/Makefile.am: HAVE_FFMPEG => USE_FFMPEG_ENGINE, + HAVE_MAD => USE_MAD_ENGINE + * doc/C/sources.xml: documented --with-mp3-decoder (replaces the + missing --enable-engine) + +2006-10-09 Sandro Santilli + + * gui/gtk.cpp, gui/gtksup.h: fixed run() method to honour + gui.h interface (removed argument, unused anyway) + +2006-10-09 Rob Savoye + + * doc/C/internals.xml: Add libgui mention. + * doc/C/sources.xml: Add info about agg, ffmpeg, and boost + dependancies and configure options. + * doc/C/gnash.xml: Update out of date version number. + + * plugin/plugin.cpp: Pass -r 3 to the player so we have sound when + using the plugin. + * utilities/Makefile.am: Optionally add the sound engine flags to + the link list. + * gui/Makefile.am: Optionally add the sound engine flags to the + link list. + * macros/ffmpeg.m4: Rewrite to support new --enable-engine + option. Look for libavcodec, libavutil, and libdts seperately, + they aren't necessarily in the same package + * macros/mad.m4: Remove --enable-mad option, use + --enable-engine=mad now instead. Don't define USE_MAD here. + * configure.ac: Add --enable-engine to select the decoding engine + to use for sound support. use sound_engine in addition to + sound_handler. + + * macros/zlib.m4: Update test to use AC_CHECK_HEADER and + AC_CHECK_LIB correctly. For bug #17954. + +2006-10-09 Rob Savoye + + * macros/agg.m4, boost.m4, cairo.m4, curl.m, ffmpeg.m4, + gstreamer.m4, gtkglext.m4, libXML.m4, mad.m4, + pango.m4, png.m4, sdl.m4, zlib.m4: Add /opt/local/include to all + include paths, and /opt/local/lib for opendarwin. + * macros/atk.m4, gtk2.m4, ogg.m4: Add /opt/local/include to all + include paths, and /opt/local/lib for opendarwin. Use pkg-config + if it exists. + +2006-10-09 Sandro Santilli + + * backend/render_handler_agg_compat.h: added compatibility + header for agg package found in debian testing. + * gui/fb.cpp: implemented correct timing + +2006-10-09 Udo Giacomozzi + + * backend/render_handler_agg.h, gui/fb.cpp: Added header file + for create_render_handler() + +2006-10-09 Bastiaan Jacques + + * gui: Some more cleanup. Work KdeGui in a usable state. + +2006-10-09 Sandro Santilli + + * gui/fb.cpp, gui/fbsup.h: fixed createWindow() function to reflect + new Gui interface. Removed unused parameters warnings. + * macros/gstreamer.m4: fix invocation of pkg-config (use it IFF + PKG_CONFIG is set, not if it is NOT set :/) + * gui/gui.h: forced generation of brief description for doxygen. + * backend/sound_handler_sdl.h: removed unused + include. + * configure.ac: add some package names for required ffmpeg libs. + (names for yum are missing). + +2006-10-09 Bastiaan Jacques + + * gui: First attempt at a cleanup of Gui and friends; document + class Gui. Adjust related classes to match the changes to Gui. + * gui/sdl.cpp: Fix the flipped OpenGL rendering bug. + +2006-10-09 Sandro Santilli + + * macros/ffmpeg.m4: check for libdts too (required); always run + the standard AC_CHECK_LIB. + * macros/ffmpeg.m4: don't force linking of libavutil, don't trash + results of a previous detection. + * configure.ac: don't check for gstreamer unless gst sound + was requested. + +2006-10-09 Markus Gothe + + * macros/ogg.m4, macros/ffmpeg.m4: Removed $pkg. + +2006-10-09 Sandro Santilli + + * backend_render_handler_agg.cpp: commented out unused + get_cache_of() method (relies on uncommitted changes to + character class); fixed draw_shape_character_old to allow + build. + * backend/render_handler_agg.cpp (line_style_width): + log unimplemented (current code assigned to undefined variable). + * configure.ac: don't complain about GtkGLExt unless GTK/opengl + setup is requested. + * configure.ac: use better warning messages about SDL sound handling + and ffmpeg/mad choices. + * configure.ac: fixed refs to the obsoleted --enable-mp3 switch + and $mp3 variable. + * configure.ac: GLIB is needed also for GST sound, not only + for GTK gui (anything else?) + * macros/ogg.m4: use PKG_CONFIG *after* having manually looked. + this prevents the checks for actual existance of the lib from + confusing an LDFLAG with a path, resulting in an error (LDFLAGS + contain spaces). + * backend/render_handler.h, backend/render_handler_agg.cpp, + backend/render_handler_tri.cpp, backend/render_handler_tri.h: + Changed corner_count argument of draw_poly() method to an + unsigned type (fixes some compiler warnings, and seems more + correct to me). + +2006-10-08 Markus Gothe + + * server/parser/shape_character_def.cpp: removed unused include. + * server/parser/shape_character_def.h: Added ID-tag. removed unused + include. + * backend/render_handler_tri.cpp: added id-tag. static_cast from float + to short int. Mem-fixes + Scoping. + * backend/render_handler_agg.cpp: added id-tag, static_cast to int16*. + * backend/render_handler_tri.h: added id-tag. + * backend/render_handler.h: added virtual desctror and id-tag. + * server/asobj/string.cpp, server/fontlib.cpp: static_cast(). + * server/edit_text_character.cpp: static_cast(). + * libbase/image_filters.cpp: static_cast() + C++-mem-handling. + +2006-10-07 Bastiaan Jacques + + * backend/sound_handler_sdl{.cpp, .h}: Code cleanup: move declarations + into a seperate header file. + +2006-10-07 Sandro Santilli + + * backend/render_handler_tri.{h,cpp}: moved initialization + of static const float from header to implementation (required + by ISO C++ for non-integral types). + +2006-10-07 Udo Giacomozzi + + * server/render.h, server/shape.h, server/styles.h, + server/parser/character_def.h, backend/render_handler.h, + server/edit_text_character.cpp, server/render.cpp, + server/shape.cpp, server/styles.cpp, server/text.cpp, + server/parser/morph2_character_def.cpp, + server/shape_character_def.cpp: + Changed to support new renderer design + +2006-10-07 Tomas Groth Christensen + + * Makefile.am, configure.ac, backend/Makefile.am, + backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, + macros/ffmpeg.m4, macros/mad.m4, plugin/Makefile.am, + server/gnash.h, server/swf/tag_loaders.cpp, + utilities/Makefile.am: Commited the new soundbackend, based + on SDL and optionally ffmpeg or libmad. Also changed the + buildsystem to reflect the change. + +2006-10-07 Bastiaan Jacques + + * configure.ac: Replace --enable-lotsa-warnings with --enable-strict, + because strict is a more descriptive name for what lotsa-warnings + actually does. + +2006-10-07 Markus Gothe + + * configure.ac: Fixed typo. '!=' -> '='. + * macros/ffmpeg.m4, macros/gstreamer.m4: check if pkg --exists. + * macros/sdl.m4: Fixed finding libpath. + * macros/atk.m4: Typo. + * plugin/plugin.h: Define __FUNCTION__ and __PRETTY_FUNCTION__ if not. + * configure.ac: Check and set #SIZEOF_SIZE_T. + * backend/Makefile.am: Include XML_{CFLAGS,LIBS} for GST. + +2006-10-07 Tomas Groth Christensen + + * configure.ac: Fixed typo, so that we check for OpenGL when + it is the selected renderer. + * backend/Makefile.am: Fixed type, so that the OpenGL libs + are linked. + +2006-10-06 Rob Savoye + + * configure.ac: Make config tests for gui or rendered enabled or + disabled based on the selected ones. Define all conditional + variables here, since the tests may not get executed now. This + makes configuring faster. + * backend/Makefile.am: Add AGG support. + * gui/Makefile.am: Add AGG support. + * gui/README: Add Framebuffer and AGG notes. + * macros/cairo.m4, ffmpeg.m4:, gtkglext.m4, kde.m4, opengl.m4: + Don't define conditional variables here. + +2006-10-06 Sandro Santilli + + * server/render.cpp: don't abort when parsing w/out any + renderer registered (the NullGui will rely on this) + * gui/sdl.cpp (run): use _xsize, _ysize when notifying mouse move. + * gui/gtk.cpp (motion_notify_event): take xscale/yscale + into account, (configure_event): invoke Gui::resize_view + with an object. + * gui/gui.{h,cpp}: split _scale into x/y components, + resize_view method made non-static so it can update + _xscale and _yscale. + +2006-10-06 Markus Gothe + + * server/ref_counted, libbase/ref_counted.h: Moved file. + * server/Makefile.am: Removed ref_counted.h. + * server/impl.cpp, server/ref_counted.h: Moved code to ref_counted.h + +2006-10-06 Bastiaan Jacques + + * gui/Makefile.am: Automake directives may not be indented, so remove + the indentation. + +2006-10-06 Sandro Santilli + + * libbase/log.cpp: remove useless xml includes + * gui/Makefile.am: don't link against unecessary libs + * backend/Makefile.am: don't link against unecessary libs + +2006-10-06 Hannes Mayr + + * macros/jpeg.m4: fixed typo. + +2006-10-05 Patrice Dumas + + * testsuite/misc-ming.all/Makefile.am: Change clean to clean-local. + * packaging/redhat/gnash.spec: Add new buildrequires in specfile + and use gstreamer sound backend. + * libbase/Makefile.am: Remove reference to smart_ptr.hpp + +2006-10-05 Rob Savoye + + * configure.ac: Add --enable-write option to optionally write the + Flash movie to disk when using the plugin. + * plugin/plugin.h, plugin.cpp: Optionally write the streaming + Flash movie to disk. + * macros/boost/m4: Look for the Boost thread library using a + variety of names. + * macros/boost.m4: Also look for libboost_thread-mt if + libboost_thread doesn't exist. + +2006-10-05 Sandro Santilli + + * server/as_object.cpp (setPropFlags): added support for + property arg being a comma-separated list string, minor + cleanups to reduce memory copies. + +2006-10-05 Markus Gothe + + * libbase/log.cpp: Added #define BOOST_HAS_THREADS. + * libbase/smart_ptr.hpp: Removed. + +2006-10-05 Sandro Santilli + + * server/swf/ASHandlers.cpp: handle print requests (with an + "unimplemented" message, but better then nothing) + * testsuite/actionscript.all/swf_exists.exp: build and run + each test with SWF target versions 5 to 7. + +2006-10-05 Sandro Santilli + + * testsuite/actionscript.all/swf_exists.exp: allow inclusion + of non-text chars in messages (needed to also print line + number of tests). + +2006-10-05 Sandro Santilli + + * testsuite/actionscript.all/swf_exists.exp: add test filename + in output. + +2006-10-05 Sandro Santilli + + * testsuite/actionscript.all/swf_exists.exp: make compatible + with expect/tcl found in debian stable. + * gui/gnash.cpp: fixed typo in usage string (-k for height) + +2006-10-04 Sandro Santilli + + * server/swf/ASHandlers.cpp: cleanly handle recursion (with + loops check) in enumerate actions. + * server/asobj/Global.cpp (as_global_object_ctor): fix + copy constructor of the Object class. + * testsuite/actionscript.all/Object.as: added copy-reference + tests. + * server/as_object.cpp (set_member_default): minor cleanups. + * testsuite/libbase/Makefile.am: added required boost lib + (couldn't find a way to have the dependency derived from + libgnashbase.la) + * libbase/Makefile.am: added required boost libs + * testsuite/actionscript.all/Object.as: add enumeration test. + +2006-10-04 Sandro Santilli + + * server/asobj/Global.cpp (as_global_assetpropflags): + delegate work to as_object::setPropFlags(). + * server/as_object.{cpp,h}: add setPropFlags() method. + * server/xml.h (get_member): invoke get_member_default() when + the requested member is not a builtin. + * testsuite/actionscript.all/Object.as: add test for + getter/setter (addProperty) + +2006-10-03 Sandro Santilli + + * gui/NullGui.h: changed constructor to take do_loop arg. + * gui/Player.cpp: propagate the do_loop setting to the NullGui + (gnash -r0 -1 works now) + +2006-10-03 Sandro Santilli + + * server/asobj/Global.cpp (as_global_assetpropflags): + removed complain about ASSetProfFlag not implemented + for a NULL property argument (seems actually implemented) + * server/swf/ASHandlers.cpp (ActionEnumerate): log 'testing' + rather then 'unimplemented' (seems actually working). + +2006-10-03 Patrice Dumas + + * testsuite/actionscript.all/Makefile.am, + testsuite/libbase/Makefile.am: + - distribute XMLNode.as, *.as files included in other *.as files, + *.swf used in checks, but not generated from .as. + - use CLEANFILES and clean-local: instead of a rewritten + 'clean' target. + +2006-10-03 Rob Savoye + + * plugin/plugin.cpp: Use cout instead of dbglogfile to reduce + dependancies. + * plugin/Makefile.am: Don't link in log.cpp directly. + * plugin/plugin.cpp: Use cout instead of Gnash debugging library + since Firefox doesn't print to stdout anyway unless you build from + source. This removes all dependancies on Gnash libraries. + * macros/boost.m4: Look for mutex.hpp instead of weak_ptr.hpp. + * configure.ac: Print the packages to install to add Boost + threads. + + * gui/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. + * libbase/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. + * utilities/Makefile.am: Add BOOST_CFLAGS and BOOST_LIBS. + * libbase/log.cpp: Use Boost::mutex to make debug logging support + thread-safe. + +2006-10-03 Sandro Santilli + + * gui/gnash.cpp (usage): document -j and -k switches. + * backend/render_handler_cairo.cpp: removed compiler warnings. + +2006-10-03 Patrice Dumas + + * gui/Makefile.am: add gtk_glue.h to GTK_SRCS, comment + out missing kde_glue_cairo files. + +2006-10-03 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: fixed clean rule, + avoid to build .swf movies by a simple 'make' call. + +2006-10-03 Patrice Dumas + + * Makefile.am, libbase/Makefile.am, testsuite/libbase/Makefile.am, + testsuite/misc-ming.all/Makefile.am: + simplify check handling by putting testsuite in SUBDIRS and mark; + check programs as check_ instead of noinst_; add smart_ptr.hpp to + distributed files + +2006-10-03 Sandro Santilli + + * testsuite/libbase/NoSeekFileTest.cpp: fixed test, added test + for named cache file. + * testsuite/libbase/Makefile.am: improved clean rule. + * libbase/noseek_fd_adapter.cpp: fixed named-cache operation + (cache file was not opened for read) + +2006-10-03 Patrice Dumas + + * macros/ffmpeg.m4: Fixed failure. + +2006-10-03 Sandro Santilli + + * libbase/noseek_fd_adapter.{cpp,h}: accept const char* as + cache filename. + * server/parser/movie_def_impl.{cpp,h}: wiped out SDL threads stuff. + +2006-10-03 Sandro Santilli + + * server/parser/movie_def_impl.cpp (create_instance): + ensure frame0 has been loaded before attempting to + execute the actions therein. + * server/parser/movie_def_impl.h: documented weird + side-effect of creating an instance of a movie_def_impl + (execution of actions in first frame) + +2006-10-03 Markus Gothe + + * server/parser/movie_def_impl.cpp: remove ensure_frame_loaded inlining. + * server/xml.cpp, server/xmlsocket.{cpp,h}, + server/impl.cpp, server/timers.h, server/spriteinstance.cpp, + server/asobj/MovieClipLoader.cpp, utilities/processor.cpp: + tu_string -> std::string. + +2006-10-03 Sandro Santilli + + * server/sprite_instance.cpp: removed unused blocks of code. + +2006-10-02 Sandro Santilli + + * gui/Player.cpp (run): set base url before parsing. + * server/swf/tag_loaders.cpp (import_loader): + resolve relative urls against base url + * server/ActionExec.cpp: more SIZET_FMT usage. + * server/samples => testsuite/samples: + moved sample movies under testsuite. + +2006-10-02 Rob Savoye + + * configure.ac: Look for ffmpeg paths. Add --enable-sound=ffmpeg + or --enable-sound=mad. + * macros/ffmpeg.m4: Look for ffmpeg paths. + * Makefile.am: Print ffmpeg paths for dumpconfig target. + +2006-10-02 Bastiaan Jacques + + * libamf/amf.h: Prevent character type overflow warnings by using int + type. + * libbase/log.h: Implement macro SIZET_FMT, to be used in printf-like + functions in which a size_t modifier is desired. This prevents + compiler warnings. + * all over the place: Utilise SIZET_FMT to clear up compiler warnings. + +2006-10-02 Sandro Santilli + + * server/fontlib.cpp: minor cleanups. + * server/parser/movie_def_impl.cpp: set startup_frames to 0 + (I feel lucky) + * gui/Player.cpp, gui/Player.h: make sure the sound_handler + is not destroyed before use, initialize sound handling and + gui when run() is invoked, not a construction time. + +2006-10-02 Bastiaan Jacques + + * plugin/plugin{.cpp, .h}: Pipe the SWF file to Gnash's standard + input. + +2006-10-02 Markus Gothe + + * server/movie_interface.h, server/button_character_instance.h: + Clean up. + * server/gnash.h: Added include for create_movie(tu_file*, + std::string&). + * server/xml.cpp, server/xmlnode.cpp, server/xmlattrs.cpp, + server/as_value.h, server/asobj/Global.cpp: Don't include + "smart_ptr.h". + +2006-10-02 Sandro Santilli + + * gui/Player.cpp: don't use cache files (they are broken anyway, + and with cache files disabled a bug is exposed that we must + fix before 0.7.2 release - #17385) + +2006-10-02 Sandro Santilli + + * gui/Player.{cpp,h}: some functions split and cleanups. + +2006-10-02 Sandro Santilli + + * gui/Player.cpp (Player::run): read from stdin when infile == "-" + * server/impl.cpp, server/gnash.h: exposed a create_movie(tu_file*, + std::string&) function to let callers use arbitrary data sources + for movie loading. + +2006-10-01 Bastiaan Jacques + + * testsuit/libbase/URLTest.cpp: Testcase for bug #17725. + +2006-10-01 Bastiaan Jacques + + * gui/gtk.cpp: Fix gtkgl assertion by making sure that the configure + event isn't fired before the drawing area is OpenGL-initialised. + +2006-10-01 Sandro Santilli + + * server/builtin_function.h: doxygen dox. + +2006-09-30 Rob Savoye + + * macros/boost.m4: Look for Boost paths. + * macros/agg.m4: Look for Antigrain paths. + * configure.ac: Look for Antigrain and Boost headers and + libraries. Add an "agg" option to --enable-renderer. + * Makefile.am: Print AGG and Boost flags for the dumpconfig. + +006-09-30 Markus Gothe + + * libbase/noseek_fd_adapter.cpp: fixed typecasting. + +2006-09-30 Sandro Santilli + + * libbase/noseek_fd_adapter.{h,cpp}, libbase/Makefile.am: + new tu_file adapter for nonseekable streams. + * testsuite/libbase/NoSeekFileTest.cpp: test unit for the + noseek_fd_adapter. + * testsuite/libbase/Makefile.am: enabled URLTest, NoSeekFileTest + and RcTest runs at 'make check' time (assigned to TEST variable) + +2006-09-29 Markus Gothe + + * configure.ac, libbase/container.h: fixed HAVE_STRCASECMP collision. + * libbase/container.h: Fixed non-void function not returning warning. + * server/xml.cpp: Fixed unused bool's ret = true; + * libbase/curl_adapter.cpp: %u->%lu. Add static_typecast. + +2006-09-29 Sandro Santilli + + * gui/Player.cpp: handle failures in movie loading. + * backend/render_handler_cairo.cpp: fixed unused parameter warnings. + * gui/gtk_glue_cairo.cpp: fixed unused parameter warnings. + * server/movie.h: fix set_display_callback signature (was changed + when erroneously commented out unused parameter) + * server/sprite_instance.h (attach_display_callback): removed + cast of set_display_callback() first arg (see above item). + * server/parser/movie_def_impl.cpp: cast to void* when printing + args with format %p + * server/xmlsocket.cpp: fixed unused variable warning. + +2006-09-29 Markus Gothe + + * libbase/triangulate_impl.h, server/ActionExec.cpp, server/fontlib.cpp + server/shm.cpp, server/xmlnode.cpp, server/parser/action_buffer.cpp, + server/swf/ASHandlers.cpp, utilities/processor.cpp: Added + static_cast() for %lu. + * gui/Player.h, server/action.h, server/as_value.h, server/asobj/Key.h, + server/movie_root.h, server/gnash.h, libbase/curl_adapter.h: + Added DSOEXPORT. + * libbase/triangulate_impl.h: %zd -> %lu. + * libamf/amf.h: comma at end of enumerator list. + * server/parser/action_buffer.cpp, server/ActionExec.cpp, + server/fontlib.cpp, server/swf/ASHandlers.cpp: %zd -> %lu. + * utilities/parser.cpp, utilities/processor.cpp: Fixed definition of + getopt() to compile with -pedantic in gcc. + +2006-09-28 Markus Gothe + + * libbase/smart_ptr.hpp: Added #define's to ensure it's not included + more than one time. + * plugin/plugin.cpp: Fixed warning on redefing MIN()/MAX(). Added + Id:-tag. + * gui/gtk_glue_gtkglext.cpp, gui/sdl.cpp, gui/kde_glue_opengl.cpp: + Removed unused "OVERSIZE". Added id-tags. + +2006-09-28 Sandro Santilli + + * libbase/curl_adapter.cpp: set curl user agent (gnash-VERSION). + * gui/Player.cpp: stop calling get_movie_info, and be really + streaming instead :) + * gui/gtk.cpp: reintroduced ifdef hell in a struggle to + have a renderer registered in Gui::init. + * gui/sdl.cpp: fixed compiler warnings. + * gui/gtk.cpp, gui/sdl.cpp: moved render handler creation + from createWindow() to init(). + * gui/gui.h: added doxygen comment about init() function + (the need to initialize the renderer) + +2006-09-28 Sandro Santilli + + * backend/render_handler_cairo.cpp, backend/render_handler_cairo.h: + set up a renderer::cairo namespace, split renderer construction + and window association (to be able to create a renderere before + knowing width and height of the window) + * server/gnash.h: commented out create_render_handler_cairo + (see render_handler_cairo.h for new interface) + * gui/gtk_glue_cairo.cpp : moved cairo window association code + from createRenderHandler() to prepDrawingArea(). + * gui/gtk.cpp : moved glue.prepDrawingArea call *after* window + creation. + * gui/sdl.cpp : updated call for cairo handler creation. + +2006-09-27 Markus Gothe + + * plugin/Makefile.am: set path to top-dir. + * README: Clarifying that Mozilla has to be built with gtk2. Put an + emphasis on not trying with gtk1. + +2006-09-27 Sandro Santilli + + * plugin/Makefile.am: don't link the plugin lib + to any gnash library as it only calls it trough + a system() call. Include libbase/log.cpp in sources + as it is used. + +2006-09-27 Sandro Santilli + + * doc/C/gnash.xml: updated -u and -U dox. + * server/asobj/MovieClipLoader.cpp (moviecliploader_loadclip): + resolve relative URLS against base url, not target movie url. + +2006-09-27 Sandro Santilli + + * server/impl.cpp, server/gnash.h: changed get_base_url() to + return a "const" URL. + * server/swf/ASHandlers.cpp (CommonGetUrl): use base url + for relative urls resolution. + +2006-09-27 Sandro Santilli + + * plugin/plugin.cpp: use the new -U switch when invoking + gnash (pass it the base url) + +2006-09-27 Sandro Santilli + + * server/gnash.h, server/impl.cpp: added set_base_url() and + get_base_url() function. + * gui/Player.{h,cpp}: added setBaseUrl method. + * gui/gnash.cpp: added -U switch to set base url. + +2006-09-27 Sandro Santilli + + * plugin/plugin.cpp: cleanup and use of getCurrentPageURL() + * plugin/mozilla-sdk/np_entry.cpp, plugin/mozilla-sdk/npn_gate.cpp: + Added NPN_GetStringIdentifier, NPN_GetProperty and + NPN_ReleaseObject interfaces (tested with firefox 1.0.4!) + * gui/gui.cpp: added missing render_handler.h include, removed + gnash.h include + * gui/gui.h: removed gnash.h include, added forward declaration + for render_handler + * plugin/plugin.cpp, plugin/plugin.h: added getCurrentPageURL + method (still untested, but compiles fine). + +2006-09-27 Vitaly Alexeev + + * gui/Player.cpp, + * libbase/getopt_win32.H, + * libbase/getopt_win32.cpp: + porting to win32 + +2006-09-27 Sandro Santilli + + * configure.ac: don't require gtkglext unless GTK/opengl + combination is requested. + +2006-09-26 Markus Gothe + + * server/timers.cpp: Removed unused header. Added ID-tag. + * server/asobj/Key.h: Removed unused header. Added ID-tag. + +2006-09-26 Sandro Santilli + + * backend/Makefile.am, backend/render_handler.h, + backend/render_handler_cairo.cpp, backend/render_handler_ogl.cpp, + server/Makefile.am, server/gnash.h, server/render.h, + server/parser/Makefile.am: + moved render_handler class definition in it's own file + under backend/ + * server/asobj/MovieClip.cpp: removed useless includes. + * backend/Makefile.am, backend/render_handler.h: + moved render_handler class definitino in it's own header. + +2006-09-26 Sandro Santilli + + * backend/Makefile.am, backend/gnash.cpp, backend/gtksup.cpp, + backend/gtksup.h: removed obsoleted files. + * server/font.{cpp,h}: reduced headers inclusion. + * backend/render_handler_cairo.cpp: make sure that + the bitmap_info we receive are actually bitmap_info_cairo + type (don't just assume it). + * server/parser/bitmap_character_def.cpp, + server/parser/bitmap_character_def.h: changed interface + to construct bitmap_info at construction time, and to + take image::rgb(a) by std::auto_ptr (fixes memory leaks). + * server/swf/tag_loaders.cpp: updated calls to bitmap_character_def. + * server/parser/movie_def_impl.h: doxygen comments update. + * server/Makefile.am, server/bitmap_character_instance.cpp, + server/bitmap_character_instance.h, + server/parser/bitmap_character_def.cpp, + server/parser/bitmap_character_def.h: + Removed bitmap_character_instance (bitmap characters never + get instantiated). Had bitmap_character directly derive + from ref_counted (it is *not* internally used as a character_def + becase it is stored in a separate container in movie_def_impl) + +2006-09-25 Sandro Santilli + + * gui/Player.cpp: make sure gui.createWindow() + is called *before* actual parsing (quick solution + to our renderer calls within the parser) + * server/parser/.cvsignore: new file + * server/render.cpp: abort when bitmap_info creation is + requested but a renderer is not defined. + * server/Makefile.am, server/parser/Makefile.am, + server/bitmap_character_instance.cpp, + server/bitmap_character_instance.h, + server/parser/bitmap_character_def.cpp, + server/parser/bitmap_character_def.h: + Split bitmap_character into definition and instance; + had bitmap_character_def initialized by image::rgb + and image::rgba instead as with bitmap_info, made bitmap_info + creation a lazy process inside get_bitmap_info (to be called + only *after* parsing, when renderer is registered). + * server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, + server/parser/movie_definition.h, server/parser/sprite_definition.h: + Renamed movie_definition methods to add/get bitmap_character_*defs* + * server/generic_character.h, server/styles.cpp, + server/parser/morph2_character_def.cpp, + server/swf/tag_loaders.cpp: + Updated creation of bitmap_character_def and calls to add them + to movie_definitions. + +2006-09-25 Vitaly Alexeev + + * gui/Player.cpp: reverted + +2006-09-25 Markus Gothe + + * libbase/getopt.c => libbase/getopt_win32.cpp. + * libbase/getopt.h => libbase/getopt_win32.h: + renamed to avoid collision with standard header file. + +2006-09-25 Vitaly Alexeev + + * gui/sdl.cpp, gnash.cpp, Player.cpp, + * libbase/getopt.c, getopt.h: + porting to win32 + +2006-09-24 Sandro Santilli + + * server/edit_text_character.{h,cpp}: added private + registerTextVariable() method to handle variablenames. + +2006-09-24 Markus Gothe + + * libbase/ogl.cpp: Removed unsed TU-file. + * libbase/tu_opengl_includes.h: Fixed Darwin glx.h-include, removed + PROC_NAME_PREFIX. + +2006-09-23 Bastiaan Jacques + + * gui/Makefile.am: libgnashplayer.so uses symbols from libgnashgui.so + and linking should reflect this relationship. + +2006-09-23 Bastiaan Jacques + + * libbase/log{.cpp, .h}: Implement LogFile << unsigned long, so the + build will succeed for platforms where size_t is defined to unsigned + long. + +2006-09-23 Vitaly Alexeev + + * server/sprite_instance.cpp, gnash.h, + * server/parser/movie_def_impl.cpp, sprite_definition.cpp: + The improved version of create_empty_movieclip(). + Thanks Sandro Santilli + +2006-09-23 Sandro Santilli + + * gui/Player.cpp: avoid using get_movie_info, so we don't + open the stream twice (including curl if it's a remote url) + +2006-09-23 Markus Gothe + + * libbase/smart_ptr.hpp: Imported and cleaned-up from boost. + +2006-09-23 Sandro Santilli + + * gui/Makefile.am, gui/gnash.cpp: build libgnashplayer, have gnash + executable use the new class. + * gui/gtk.cpp, gui/gtksup.h, gui/gui.h, gui/sdl.cpp, gui/sdlsup.h: + const-corrected createWindow() function. + * gui/Player.{h,cpp}: new class to simplify player startup. + * gui/gnash.cpp, gui/sdl.cpp: moved parsing of -c switch from + gnash to sdl gui. + +2006-09-22 Patrice Dumas + + * testsuite/Makefile.am, testsuite/actionscript.all/Makefile.am, + testsuite/libbase/Makefile.am: fix make distcheck. + +2006-09-22 Sandro Santilli + + * plugin/mozilla-sdk/np_entry.cpp, plugin/mozilla-sdk/npp_gate.cpp, + plugin/mozilla-sdk/pluginbase.h: commented out unused parameters. + +2006-09-21 Vitaly Alexeev + + * server/sprite_instance.cpp: has completed + sprite_create_empty_movieclip(), added sprite_remove_movieclip() + * server/parser/movie_def_impl.cpp: fixed range check error, + added DO_EMPTY_MOVIECLIP + * web/gnash/snapshots/gnash-win32.zip: added zlibwapi.dll + +2006-09-21 Sandro Santilli + + * server/edit_text_character.cpp (ctor): set textfield variable + when available. + * server/sprite_instance.{h,cpp}: added new set_textfield_variable + public method and a lazily-allocated map for textfield variables; + scan textfield variable names in both set_member and get_member. + +2006-09-21 Sandro Santilli + + * server/as_environment.{cpp,h}: parse_path() made a public + static method. + * server/edit_text_character.cpp, server/edit_text_character.h, + server/parser/edit_text_character_def.cpp, + server/parser/edit_text_character_def.h: + get_default_name() => get_variable_name(), moved + warning about missing VariableName support closer to where + we should implement it. + +2006-09-21 Udo Giacomozzi + + * server/shape.cpp (edge::tesselate_curve): don't add curves + on a straight edge. + +2006-09-21 Sandro Santilli + + * server/as_environment.{h,cpp}: doxygen comments, minor + interface cleanup (use references when appropriate) + * server/parser/edit_text_character_def.cpp: added comment + about why we're doing the wrong thing with VariableName + (related to bug#17806) + +2006-09-21 Deanna Phillips + + * plugin/Makefile.am: removed unneeded explicit copy of shared + object for OBSD. + +2006-09-21 Sandro Santilli + + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c: + put the TextField inside a movieclip and it's associated + variable on the root. This is to ensure that using + the variable name as an instance name would clearly NOT work; + equip with xtrace and print more info. + * server/dlist.{cpp,h}: dump() method made public, print + character "name" as part of the dump. + +2006-09-20 Sandro Santilli + + * testsuite/misc-ming.all/DefineEditTextVariableNameTest.c, + testsuite/misc-ming.all/Makefile.am: added test for VariableName + attribute of DefineEditText. + * server/parser/edit_text_character_def.cpp, + server/parser/edit_text_character_def.h: tu_string => std::string, + use new string reader methods. + * server/stream.{h,cpp}: added memory-friendly string reader + functions. + * server/parser/button_character_def.cpp: more symbolic + names. + +2006-09-20 Vitaly Alexeev + + * server/sprite_instance.cpp, + * server/sprite_instance.h, + * server/dlist.cpp, + * server/dlist.h: + added swapDepths(), getDepth(), unfinished createEmptyMovieClip() + methods + +2006-09-20 Markus Gothe + + * Fixed bug submitted by Onkar Shinde. + +2006-09-19 Vitaly Alexeev + + * server/sprite_instance.cpp: added duplicateMovieClip() method + +2006-09-19 Sandro Santilli + + * testsuite/actionscript.all/gen-index.sh: Changed embed.html + page generation to reflect new "remote tracing" feature. + * testsuite/actionscript.all/check.as: use rtrace rather + then xtrace when ONLINE is defined (must actually set + the correct testreport.php url in order to work). + * testsuite/actionscript.all/rtrace.as, + testsuite/actionscript.all/testreport.php: + code for online testcases automation. + * server/asobj/Math.cpp: added missing "log.h" include + * backend/render_handler_ogl.cpp: hush little compiler + (use explicit const_cast) + * server/sprite_instance.cpp (sprite_hit_test): stub for hitTest() + * server/sprite_instance.cpp (call_frame_actions): fixed + premature deletion of action buffers (also optimized somehow). + * testsuite/actionscript.all/Makefile.am, + testsuite/actionscript.all/gen-index.sh: generate + a page with all testcases for each SWF target. + * testsuite/actionscript.all/Makefile.am, + testsuite/actionscript.all/Number.as: + new testcase (small, but already failing for gnash) + * testsuite/actionscript.all/TODO: new file + * server/swf/ASHandlers.cpp (ActionEqual): fixed behavior. + * server/swf.h: Added info about ACTION_EQUAL. + * server/swf/ASHandlers.cpp (CommonGetUrl): added comments about + relative url resolution "known" bug. Added parsing of method + bitfield flags and warnings about unsupported features. + +2006-09-18 Sandro Santilli + + * libbase/URL.cpp: removed call to set_workdir. + +2006-09-18 Vitaly Alexeev + + * libamf/amf.cpp: function must return a value + * gui/sdl.cpp: Don't hog the CPU. + * web/gnash/snapshots/gnash.zip: renamed to gnash-win32.zip + * backend/sound_handler_sdl.cpp: fixed out of range bug + +2006-09-18 Sandro Santilli + + * server/swf/ASHandlers.cpp: added initial support for + GetUrl2 method 64. + +2006-09-18 Patrice Dumas + + * gui/gtksup.h: remove extra qualifier from private method. + +2006-09-18 Sandro Santilli + + * macros/curl.m4: always run AC_CHECK_HEADER and AC_CHECK_LIB + * server/as_value.h: added is_null() method. + * README: updated section about plugin compatibility. + +2006-09-18 Samuel Lidén Borell + + * gui/gtk.cpp, gui/gtksup.h: Forward GTK keyboard events + (Patch #5393) + +2006-09-18 Markus Gothe + + * libbase/container.h: #ifdef HAVE_STRCASECMP-bug-fix. + * Fixed bug #17786... + +2006-09-17 Rob Savoye + + * testsuite/actionscript.all/Makefile.am: Add test driver name to + the command line. Don't pass --srcdir, runtest doesn't need it + anymore, and it breaks the site.exp setting of the same value. + * testsuite/misc-ming.all/Makefile.am: Don't pass --srcdir, + runtest doesn't need it anymore, and it breaks the site.exp + setting of the same value. + * testsuite/actionscript.all/swf_exists.exp: Don't use the file + name, just let makeswf use the default output file, out.swf. + * Makefile.am: Don't have dejagnu as an option, just change to the + testsuite directory and run make check. + * configure.ac: Remove unused configure options. Have dumpconfig + display if libCurl has RTMP support. + * backend/Makefile.am: Remove dejagnu from AUTOMAKE_OPTIONS. + * doc/C/appendix.xmlfdl-appendix.xml, gnash.xml, + internals.xml, localconnection.xml, logging.xml, + netconnection.xml, opcodes.xml, plugin.xml, rtmp.xml, sources.xml, + : Change to , as the xmlto tools on FC5 don't + grok anymore. + * libamf/Makefile.am: Put amftest.cpp in EXTRA_PROGAMS. + * libamf/amf.cpp, amf.h: Use unsigned char instead of signed char + when pointing to RTMP message data. + * libbase/container.cpp, container.h: Define STRCASECMP in the + source file, not the header. + * libbase/network.cpp: Fix the warning message about not binding + to a port. Don't include fn_call.h or xml.h. + * libbase/network.h: Don't include fn_call.h or xml.h. + * macros/opengl.m4: Look in X11R6 too. + * plugin/Makefile.am: Remove dejagnu from AUTOMAKE_OPTIONS. + * server/asobj/NetConnection.h: Add private variables for the + connect message to the server. + * server/asobj/System.cpp, Video.cpp: Tweak the unimplemented + messages. + +2006-09-17 Patrice Dumas + + * libbase/Makefile.am: Don't include anything from the server + directory. + * libbase/log.cpp: Don't include gnash.h. + * libbase/network.h, cpp: Don't include xml.h. + +2006-09-17 Bastiaan Jacques + + * libbase/URL.cpp: Don't treat local filenames as query strings (bug + #17725). + +2006-09-17 Markus Gothe + + * autogen.sh: Applied patch from Mike Heffner. + +2006-09-17 Bastiaan Jacques + + * plugin/plugin.cpp: add NULL checks to avoid attempting to create an + std::string from a NULL character pointer (bug #17776). + +2006-09-16 Patrice Dumas + + * libbase/log.cpp, libbase/network.cpp, libbase/network.h: + removed useless includes. + +2006-09-16 Sandro Santilli + + * plugin/plugin.cpp: SIGINT => SIGTERM (fixes bug #17082) + +2006-09-15 Vitaly Alexeev + + * libbase/tu_config.h: __declspec(dllimport) temporarily is + commented because of VC++ compiler problems. + * web/gnash/snapshots/gnash.zip: added Standalone executable files + & dependences. + * web/gnash/snapshots/gnash.exe, npgnash.dll: removed. + +2006-09-15 Markus Gothe + + * Finished task #5848. Implementing GCC-visibility. + +2006-09-14 Vitaly Alexeev + + * server/swf/ASHandler.cpp: fixed bug #17738. + +2006-09-14 Markus Gothe + + * libbase/URL.cpp: Fixed bug #17727. + * configure.ac, libgeometery/bsp.cpp: Fixed bug #17748. + * libbase/tu_types.h: Fixed bug #17749. + * Removed usage of create_bitmap_info_empty(). + * server/asobj/Global.cpp, server/stream.cpp: Fixed mem leak. + * libbase/container.{h, cpp}: fixed termination '0' -> '\0'. + * backend/sound_handler_gst.cpp: Fixed mem-management. + * Fixed mozilla-sdk for use with the actual mozilla >=1.7.13. + * configure.ac: Check for GCC -fvisibility-support. + * libbase/tu_config.h: Visibility-hack (DSOLOCAL and DSOEXPORT). + +2006-09-13 Markus Gothe + + * libbase/smart_prt.h: Added dtor for weak_ptr. + +2006-09-11 Vitaly Alexeev + + * libbase\URL.cpp: parsing of win32 path + +2006-09-11 Vitaly Alexeev + + * libbase\URL.cpp: Current working directory of Flash is + a directory of the first swf file. + * server\action.h, action.cpp: attach_extern_movie() is reanimated + * server\swf\ASHandlers.h, ASHandlers.cpp: loadMovie() should be + compatible with Flash + * server\impl.h: a bit cleanup + +2006-09-09 Sandro Santilli + + * plugin/plugin.cpp: removed the waitpid call again + (see bug #17082). + +2006-09-08 Sandro Santilli + + * plugin/plugin.cpp, plugin/plugin.h: wait for child pid + (no more zombies). Avoid killing pid == -1 on gnash error ! + +2006-09-08 Sandro Santilli + + * gui/gnash.cpp: FlashVars == flashvars (this is how the browser + sends parameters) + * plugin/plugin.cpp, plugin/plugin.h: added support for + passing parameters. + * plugin/player.h: removed obsoleted file + +2006-09-08 Markus Gothe + + * testsuite/movies.all/zoomhenge.swf: Added. + * plugin/plugin.cpp: Declare maxargc as 'const'. Fixed memory + management for char *argv[]. + +2006-09-02 Rob Savoye + + * configure.ac: Check to see if libCurl supports RTMP. + * macros/curl.m4: Add support to use curl-config. Look to see what + protocols it supports. + +2006-09-02 Sandro Santilli +STRCASECMP + * gui/gnash.cpp, doc/C/gnash.xml: added -P switch to set + contextual parameters (see + http://www.permadi.com/tutorial/flashVars/index.html) + * libbase/URL.{cpp,h}, testsuite/libbase/URLTest.cpp: + added support for query strings (+tests). + * server/swf/ASHandlers.cpp (ActionGetUrl2): log a warning + when an undefined url parameter is on the stack. + * server/as_value.h: added is_undefined() method. + +2006-09-01 Sandro Santilli + + * plugin/plugin.{cpp,h}: Call gnash with -u switch to set + original movies url. + * gui/gnash.cpp, doc/C/gnash.xml: make the -u switch working + and documented. + * server/gnash.h, server/impl.cpp: + Changed create_movie and create_library_movie to optionally + take a "real" url (for use with caches). If given, the "real" + url will be used as a label for the "movie library". Note that + no host-checking is performed on the "real" url (only the + "effective" url will be checked). + * plugin/player.cpp: removed obsoleted file. + +2006-09-01 Tomas Groth Christensen + + * doc/C/internals.xml: Small doc fixes. + +2006-09-01 Sandro Santilli + + * server/swf/ASHandlers.cpp (CommonGetUrl): support + relative urls (testing). + * libbase/URL.{cpp,h}, testsuite/libbase/URLTest.cpp: + Added anchor support in URL class (+tests). + +2006-08-31 Rob Savoye + + * doc/C/Makefile.am: Add --encoding=us-ascii//TRANSLIT so control + characters don't slide in that prevent db2x_texixml from working. + + * gui/images: New directory for images. Patch #5346. + * gui/images/gnash_128_96.ico: New icon for GTK executable. Patch + #5346. + * gui/Makefile.am: Install icon image. Patch #5346. + * gui/gtk.cpp: Add icon to GTK executable. Patch #5346. + * gui/gtksup.h: Add methods for adding and finding pixmaps. Patch + #5346. + * plugin/Makefile.am: For OpenBSD, copy the actual shared libary + when installing since libtool doesn't appear to do this. Baswed on + patch #5345. + +2006-08-31 Sandro Santilli + + * server/swf/tag_loaders.cpp (frame_label_loader): added + primitive support for anchor-labels (just print a warning). + +2006-08-31 Markus Gothe + + * server/parser/movie_def_impl.cpp: Removed 'using namespace std;' + since it's not needed and cause problems on non-gcc-compilers. + * mozilla-sdk/include/jni.h: "using namespace std;" for va_list. + * plugin/plugin.cpp: Added include for tu_types.h + +2006-08-30 Patrice Dumas + + * Patch for the doc system. + +2006-08-30 Sandro Santilli + + * libamf/amf.{cpp,h}: changed amf_element_t.data type to + 'const' unsigned char. This fixed compiler warnings. + * server/gstring.h, server/asobj/gstring.h, + server/string.cpp, server/asobj/string.cpp, + server/Makefile.am, server/asobj/Makefile.am: + Moved string class files to asobj lib. + +2006-08-30 Vitaly Alexeev + + * libbase\tu_opengl_includes.h: added win32 opengl #define + * libbase\jpeg.cpp: a cleanup + * server\URLAccessManager.cpp: a cleanup + +2006-08-30 Markus Gothe + + * libbase/tu_types.h: rededifine __FUCTION__ + * libbase/rc.cpp: include tu_types.h where __PRETTY_FUNCTION__ is + decl. + * configure.ac: Check if sqrt() needs -lm. + * libbase/tu_math.h: Fixed IRIX 6.5-compability. + * server/asobj/Math.cpp: Include "tu_math.h" + * server/asobj/Gmath.h: Deconfuse MIPSPRO/SGI/IRIX. + * libgeometry/axial_box.h: Fixed picky-compiler warnings. + * libbase/network.cpp: renamed struct sockaddr fsin since not + allowed. + * utilities/processor.cpp, utilities/parser.cpp: Compability fixes. + * plugin/Makefile.am: Fixed bug that made non-gnu make crash. + * autogen.sh: Don't run automake with '--gnu'. It'll figure it out + self. + +2006-08-29 Patrice Dumas + + * packaging/redhat/gnash.spec: unusefull gnash-devel + subpackage removed; groups changed; other minor cleanups. + +2006-08-29 Vitaly Alexeev + + * libbase\jpeg.cpp: fixed bug #17507 + +2006-08-29 Markus Gothe + + * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp: + added typecasting. + * libbase/container.h Fixed bugs for compilers missing ext/hashmap. + * libbase/log.h Fixed bugs for non-gcc-compilers. + * libbase/tu_config.h: Added namespace to exit() since MIPSPro is + picky. + +2006-08-29 Sandro Santilli + + * server/morph.cpp, server/morph.h, + Makefile.am: removed obsoleted files. + +2006-08-28 Markus Gothe + + * Disabled building of static-libraries as default. + * libbase/tu_opengl_includes.h: Modern Non-SGI OGL-ABIs include + glext.h in gl.h. + * Fixed isinf() and isnan() for platforms that doesn't include it + in C++ (It however usually is in the later C99, esp. in IRIX). + +2006-08-28 Sandro Santilli + + * libbase/utility.{cpp,h} (dump_memory_stats): removed compiler + warning. + * server/ActionExec.cpp, server/action.cpp, server/impl.cpp, + server/sprite_instance.h: removed "stream.h" inclusion. + * server/morph.cpp: log_msg -> log_parse, minor indentations + * server/parser/movie_def_impl.cpp (resolve_import): + fixed infinite loop. + +2006-08-28 Markus Gothe + + * Merged in klash-patch sent by Patrice Dumas . + * Misc clean-ups in headers. + * server/parser/action_buffer.cpp, server/tesselate.cpp, + serasobj/System.cppver/ActionExec.cpp, libgeometry/bsp.cpp, + libbase/image.cpp, libamf/amf.cpp: + Removed unused . + +2006-08-27 Markus Gothe + + * server/swf/tagloaders, server/ActionExec.cpp + server/swf/ASHandlers.cpp, libgeometry/kd_tree_dynamic.cpp + libamf/amf.cpp, libamf/amftest.cpp: Changed '+= 1' to '++'. + * Removed headers from log.{cpp,h} since it speed up compilation + time. Try avoiding unnecessary includes of as much as + possible. + * utilities/parser.cpp, utilities/processor.cpp: Fixed strange -h + output. + +2006-08-27 Vitaly Alexeev + + * libbase\utility.h, + * server\types.cpp, sprite_instance.cpp, + edit_text_character.cpp, button_character_instance.cpp: + Macromedia Flash changes infinite to zero when works a matrix + +2006-08-27 Vitaly Alexeev + + * backend\gnash.cpp, + * server\swf\tag_loaders.h, + * libbase\tu_opengl_includes.h, + * libbase\image.h: + porting to WIN32 + +2006-08-27 Markus Gothe + + * Merged in klash-patch sent by Patrice Dumas . + * configure.ac: Added "-cvs-BUILDDATE" to VERSION for making life + more easy when people file bugs and such. + * Fixed an issue with the moz-plugin, i.e. library-naming. + * server/parser/movie_def_impl.cpp: Optimized freeing memory. + * gui/gnash.cpp, plugin/player.cpp, utilities/parser.cpp, + backend/gnash.cpp(deprecated!), utilities/processor.cpp: + Clean-up and minor bugfixes related to empty logfiles. + +2006-08-27 Sandro Santilli + + * server/movie_def_impl.{h,cpp}: fixed _swf_end_pos for compressed + movie (needed after zlib_adapter fix); enabled get_bytes_loaded. + * libbase/zlib_adapter.cpp: fixed tell() function to include + header size. + * Split button.{h,cpp} into button_character_instance.{cpp,h}, + mouse_button_events.h and parser/button_character_def.{cpp,h}; + headers inclusion shaking. + +2006-08-26 Markus Gothe + + * server/asobj/Global.cpp, libbase/image.cpp: Found and fixed + memory leakage. + * Optimized the zlib code, which is a bottleneck according to my + profiling. + * Fixed macros/pthread.m4 for portability to other architectures. + See: http://autoconf-archive.cryp.to/acx_pthread.html. + * Added macros/archflag.m4 for optimizations. + See: http://autoconf-archive.cryp.to/ax_gcc_archflag.html + * server/render.cpp, server/xmlnode.cpp, server/xmlnode.h, + server/xmlattrs.cpp, server/xmlattrs.h, server/xml.h: + Don't include "log.h" unless debugging is on. Speeding up + compilation, especially on non-gcc compilers, since + is considered a hog. + * server/as_enviroment.cpp, server/as_enviroment.h, + server/movie_instance.cpp, server/timers.h, server/action.h + server/parser/bitmap_character_def.h, server/character.h + backend/gtksup.h, gui/sdlsup.h, gui/kdesup, gui/gtksup.h, + gui/gui.cpp, libamf/rtmp.h, libbase/network.h, libbase/URL.cpp + plugin/plugin.h, server/swf/ASHandlers.h, server/xmlsocket.h + server/asobjs/Video.h, server/asobjs/TextSnapshot.h, + server/asobjs/System.h, server/impl.h, server/asobj/MovieClip.cpp + server/sound.cpp, server/string.cpp, server/textformat.h + server/shm.h: + Remove "log.h" since not used. + +2006-08-26 Sandro Santilli + + * server/URLAccessManager.cpp (allow): always allow from local host. + * server/morph2.{cpp,h}, server/parser/morph2_character_def.{cpp,h}, + server/Makefile.am, server/parser/Makefile.am, server/impl.cpp, + server/swf/tag_loaders.cpp: + moved morph2 definition class to parser dir. + * server/render.cpp: add a DEBUG_RENDER_CALLS macro to + enable function calls info log. + +2006-08-25 Vitaly Alexeev + + * server\character.h, dlist.h, edit_text_character.h, + generic_character.h, movie.h, sprite_instance.h, button.cpp + fixed events handling bug. 3kines.swf is played now. + +2006-08-25 Markus Gothe + + * Misc header clean-ups... + * Minor variable assignment optimizations. + * libamf/rtmp.cpp: Replaced "stdlib.h" with . + * libbase/network.cpp: Always include . + * plugin/plugin.cpp, plugin/player.cpp: #include . + +2006-08-25 Markus Gothe + + * gui/sdl.cpp, gui/kde.cpp, libbase/network.cpp: Replaced + for speeding up compilation. + * libbase/tu_file.cpp: Changed structs to classes. + * server/gnash.h, backend/render_handler_xbox.cpp, libbase/tu_file.cpp + libbase/image.cpp, libbase/ogl.cpp, server/xmlsocket.cpp, + server/movie_interface.h, server/as_object.h, server/action.h: + libbase/utility.h, libbase/tu_types.h, libbase/tu_math.h, + libbase/tu_file.h, libbase/dlmalloc.h, server/asobj/GMath.h: + Changed #include to . + +2006-08-25 Markus Gothe + + * backend/sound_handler_mp3.cpp, backend/sound_handler_sdl.cpp, + backend/sound_handler_gst.cpp, backend/render_handler_xbox.cpp + backend/render_handler_xbox.cpp, backend/render_handler_d3d.cpp, + backend/render_handler_cairo.cpp, libbase/jpeg.cpp, + libgeometry/kd_tree_dynamic.cpp: Changed structs to classes. + * libbase/jpeg.cpp, libbase/utf8.cpp, libgeometry/kd_tree_dynamic.cpp, + libgeometry/bsp.cpp, plugin/player.cpp plugin/plugin.cpp: + Changed #include to . + +2006-08-24 Markus Gothe + + * backend/render_handler_ogl.cpp: Changing structs to classes + with everything public, mostly for understanding and readability + (it's the same thing in C++ afaik). + * server/parser/movie_def_impl.cpp, backend/render_handler_ogl.cpp: + inlining unlock()/lock() and opengl_accessible(). + * Fixed task #5837. + +2006-08-24 Sandro Santilli + + * server/sprite_instance.cpp, server/swf/tag_loader.cpp, + server/parser/text_character_def.h, + server/parser/text_character_def.cpp, + server/text.h, server/text.cpp: + moved 'text_character_def' class under server/parser/ + +2006-08-24 Vitaly Alexeev + + * server\URLAccessmanager.cpp, StreamProvider.cpp, dlist.cpp, + * libbase\URL.cpp + porting to win32 + +2006-08-24 Sandro Santilli + + * configure.ac, gui/Makefile.am, gui/gtk.cpp, gui/gui.cpp, + server/Makefile.am, server/MovieClip.cpp, server/MovieClip.h, + server/Object.h, server/action_buffer.cpp, server/action_buffer.h, + server/bitmap_character_def.h, server/character_def.cpp, + server/character_def.h, server/edit_text_character_def.cpp, + server/edit_text_character_def.h, server/movie_def_impl.cpp, + server/movie_def_impl.h, server/movie_definition.h, + server/shape_character_def.cpp, server/shape_character_def.h, + server/sprite_definition.cpp, server/sprite_definition.h, + server/sprite_instance.h, server/asobj/Makefile.am, + server/asobj/MovieClip.cpp, server/asobj/MovieClip.h, + server/parser/Makefile.am, server/parser/action_buffer.cpp, + server/parser/action_buffer.h, server/parser/bitmap_character_def.h, + server/parser/character_def.cpp, server/parser/character_def.h, + server/parser/edit_text_character_def.cpp, + server/parser/edit_text_character_def.h, + server/parser/movie_def_impl.cpp, server/parser/movie_def_impl.h, + server/parser/movie_definition.h, + server/parser/shape_character_def.cpp, + server/parser/shape_character_def.h, + server/parser/sprite_definition.cpp, + server/parser/sprite_definition.h, + server/parser/text_character_def.h: + Moved some of parser's files under their own dir/lib (not yet + finished); also moved MovieClip under asobj/, where it belongs. + +2006-08-23 Sandro Santilli + + * server/swf_function.h, server/swf_function.cpp: + added missing include, out-lined set_length to avoid + action_buffer.h include. + * server/impl.h, server/swf_event.h, sprite_instance.cpp: + moved swf_event class into its own header. + * server/swf/ASHandlers.cpp (CommonGetUrl): simplified and fixed + URL parsing code by use of the URL class; added check for + NULL urls and comments about future improvements; use the + newly-exported URLAccessManager::allow function + * server/URLAccessManager.h, server/URLAccessManager.cpp, + server/Makefile.am, server/StreamProvider.cpp: + moved URLAccessManager code into it's own file, export a + single allow(URL&) function of it, updated StreamProvider + accordingly + +2006-08-23 Markus Gothe + + * server/movie_def_impl.cpp: Use pthread_cancel(pthread_self()) + instead of pthread_exit(NULL). + +2006-08-23 Sandro Santilli + + * server/Makefile.am, server/movie_instance.cpp, + server/movie_instance.h, server/sprite_instance.cpp, + server/sprite_instance.h, server/movie_def_impl.cpp, + server/movie_root.cpp: + new 'movie_instance' class derived from 'sprite_instance' + and representing the "main" movie read from a SWF file. + * libamf/amf.cpp, server/dlist.cpp: fixed compiler warnings, or + added some notes about problems arised from them. + +2006-08-23 Bastiaan Jacques + + * configure.ac, plugin/Makefile.am: For OpenBSD, omit some linker + options to successfully build the plugin. + * plugin/plugin{.cpp, h}: Cleanup: Remove threading code, because it's + broken and generally useless. + +2006-08-23 Vitaly Alexeev + + * server\sprite_instance.cpp: action_list.size() may be changed + due to actions + +2006-08-23 Vitaly Alexeev + + * server\dlist.cpp: That there was no crash gnash + we iterate characters through the copy of displaylist + +2006-08-23 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: commented assert(bi->m_texture_id); + +2006-08-23 Markus Gothe + + * libbase/network.cpp, server/xmlsocket.cpp, + server/shm.cpp: Fixed #include for fcntl.h so it conforms + to the POSIX-standard. + * gui/sdl.cpp: Fixed basename() under IRIX. + * libbase/tu_types.h: Fixed #include under IRIX. + * server/action.cpp: added extern "C" for "gdk/gdk.h". + * server/asobj/GMath.h: + Fixed #define __MATH_H__ under IRIX and other platforms. + +2006-08-23 Vitaly Alexeev + + * server\sprite_instance.cpp, sprite_instance.h: + The second attempt to fix goto_frame() bug + +2006-08-22 Sandro Santilli + + * server/dlist.cpp: removed signed/unsigned comparison warning. + * server/gnash.h: removed unused parameter warnings. + * server/render.h: doxygen comments. + * libbase/Thread.cpp: removed unused parameter warnings. + * server/as_value.cpp: removed const cast warning. + * server/font.cpp, server/textformat.cpp: + removed unused parameter warning. + * libbase/image.cpp: removed initialization order warning. + * macros/kde.m4: never add -fno-rtti. + +2006-08-22 Vitaly Alexeev + + * server\sprite_instance: fixed goto_frame() bug (I hope :-) ) + +2006-08-21 Sandro Santilli + + * server/swf/tag_loaders.cpp (do_init_action_loader): + fixed short read when not in verbose parse mode. + * server/sprite_instance.cpp: fix compiler warnings. + * server/movie_def_impl.{cpp,h}: use USE_SDL_THREADS macro + to switch between SDL and straight POSIX threads calls (defaults + to straight POSIX). + +2006-08-21 Sandro Santilli + + * gui/gnash.cpp: fix bug #17467 + * server/gnash.h: doxygen comments on render_handler struct + * utilities/processor.cpp: don't show -vp and -va options if + verbose parsing and action is not compiled in (bug #17367). + * gui/gnash.cpp: fix -vp when VERBOSE_ACTION is undefined (bug #17367). + * server/movie_def_impl.cpp: implement MovieLoader::lock + and MovieLoader::unlock for SDL. Fix MovieLoader::wait_for_frame + for SDL. + * gui/sdl.cpp: fix movie advance delay + * server/gnash.h: fixed compiler warning about initialization order. + * server/movie_def_impl.cpp: + fixed SDL version of signal_frame_loaded. + * server/movie_def_impl.cpp: + added LOAD_MOVIES_IN_A_SEPARATE_THREAD define to switch between + threaded or sequential movie load. + +2006-08-21 Vitaly Alexeev + + * server\movie.h: fixed a bit bit but opposite bug + +2006-08-21 Vitaly Alexeev + + * backend\render_handler_ogl.cpp: a bit cleanup + +2006-08-21 Vitaly Alexeev + + * server\movie_def_impl.cpp, gnash.h: + * backend\render_handler_ogl.cpp: + * libbase\image.cpp, image.h: + attempting to do multithread opengl + +2006-08-21 Bastiaan Jacques + + * server/{action_buffer.cpp, swf/ASHandlers{.cpp, .h}: Solve problems + associated with initialisation of SWFHandler's static variables by + making the variables in-function statics. + +2006-08-21 Vitaly Alexeev + + * server\movie_def_impl.h, movie_impl.cpp: SDL MovieLoader stuff + +2006-08-20 Bastiaan Jacques + + * server/{action_buffer.cpp, swf/ASHandlers.cpp}: Initialise + SWFHandlers::_handlers before class SWFHandlers is instantiated (bug + #17476). + +2006-08-20 Sandro Santilli + + * utilities/processor.cpp: fixed bug #17367 + +2006-08-19 Rob Savoye + + * server/swf/ASHandlers.cpp (CommonGetUrl): Check the domain, and + don't go to the remote URL if it's in the blacklist. This ignores + all attempts to allow the non-local domain if listed. + +2006-08-19 Bastiaan Jacques + + * plugin/klash/klash_part.cpp: Make extra sure we don't kill all + processes. + +2006-08-19 Sandro Santilli + + * server/sprite_instance.h, server/sprite_instance.cpp + (execute_frame_tags, execute_frame_tags_reverse): + modified to take size_t for frame number; small cleanups + and optimizations by use of standard algorithms. + * server/button.cpp, server/morph2.cpp: added missing + IF_VERBOSE_PARSE wrapping. + * server/swf/ASHandlers.cpp: fixed read of 'skip' count in + ActionWaitForFrame handler. Commented out 'testing' logging + from both WaitForFrame handlers (I'd consider them tested). + * server/movie_def_impl.h, server/movie_def_impl.cpp, + server/sprite_instance.cpp: added MovieLoader::lock() + and unlock() functions, lock loader at every iteration + of read_all_swf() and from within wait_for_frame, + only ensure next frame is loaded (rather then loading + next *chunk* at every advance_root call). + +2006-08-18 Vitaly Alexeev + + * server\sprite_instance.cpp: a bit cleanup + +2006-08-17 Vitaly Alexeev + + * server\dlist.h, dlist.cpp, sprite_instance.cpp: + added deleting the display objects created during execution + of frames 2,... and not displayed in the 1-st frame. + Macromedia Flash does not call remove display object tag + for 1-st frame + * server\movie_def_impl.cpp: _loader.start() is switched off + temporarily on win32 + * win32\gnash\gnash.vcproj: updated gnash version + +2006-08-16 Vitaly Alexeev + + * server\character.h, sprite_instance.cpp: + If we already have object with same events on this plane, + then move it instead of replacing + +2006-08-16 Vitaly Alexeev + + * server\movie_def_impl.h, libamf\amf.cpp, libamf\rtmp.cpp: + porting to WIN32 + * win32\gnash\gnash.vcproj: added pthread.h + +2006-08-14 Sandro Santilli + + * server/movie_def_impl.cpp, server/movie_def_impl.h, + server/movie_definition.h, server/sprite_definition.h, + server/swf/tag_loaders.cpp: initial implementation of + movie loading into a separate frame. Needs more cleanup + work, but the intro1.swf and elvis.swf seems to be both + playing nice. + +2006-08-14 Sandro Santilli + + * server/swf/tag_loaders.h, server/swf/tag_loaders.cpp: + allow define_font_info_loader to be called for DEFINEFONTINFO2 + tag, updated doc. + * libbase/container.cpp: removed extra ';' + * server/font.cpp, server/font.h, server/impl.cpp, server/swf.h: + initial support for DefineFontInfo2 tag, stricter use of + SWF::tag_type type. + +2006-08-14 Rob Savoye + + * doc/C/rtmp.xml: Add RTMP chapter with graphic of the RTMP + protocol. + * doc/C/gnash.xml: Add entity for rtmp.xml. + * doc/C/Makefile.am: Add rtmp.xml. + * doc/C/amf.xml: Rewrite AMF chapter now that I understand how it + really works. + + * macros/atk.m4: Look for atk.h, not atkgl.h. + * macros/opengl.m4: Put the single tick mark before the rest of + the statement so it gets expanded correctly. + * macros/gtkglext.m4: Add -I when --with-opengl-incl is used. Also + set the version when using this option so the other tests still + work. + +2006-08-14 Tomas Groth Christensen + + * doc/C/internals.xml: Added info about how the soundhandlers works. + +2006-08-13 Sandro Santilli + + * server/edit_text_character_def.cpp, server/shape_character_def.cpp, + server/sprite_definition.cpp, server/styles.cpp, server/text.cpp, + server/tools.cpp, server/types.cpp, server/swf/tag_loaders.cpp: + remove newline ending from log_parse calls. + * server/stream.cpp (open_tag): add SWF offset in parse logging. + +2006-08-13 Sandro Santilli + + * libbase/log.cpp: fixed strip of CR ending in input operator. + * gui/gnash.cpp (fs_callback): removed unused parameter warning, + reduced log_msg calls. + * libamf/rtmp.cpp, libbase/network.cpp, libbase/network.h, + server/fontlib.cpp: removed compiler warnings. + +2006-08-13 Patrice Dumas + + * macros/pango.m4: fixed pango version detection. + +2006-08-13 Sandro Santilli + + * server/character.cpp, server/character.h: + safely handle ActionScript code referencing '..' + from the root character. + +2006-08-12 Rob Savoye + + * Makefile.am: Build klash if it's enabled, but the plugin + isn't. + * backend/Makefile.am: Add lib dependancies for libgnashbase and + libgnashserver. + * gui/Makefile.am: Spell DEPENDANCIES right. + * libamf/Makefile.am: Make amftest only build for testing. + * libbase/Makefile.am: Add mor dependent libraries, add ogl.h to + the package. + * macros/kde.m4: Fix how KDE_LDFLAGS gets set. + * server/Makefile.am: Add lib dependancies for libgnashbase and + libgnashasobjs. + * server/asobj/Makefile.am: Add lib dependancies for libgnashbase and + libgnashamf. + +2006-08-12 Sandro Santilli + + * server/Makefile.am, server/thread.h: removed duplicated code + (use libbase/Thread.h) + +2006-08-11 Sandro Santilli + + * gui/gtk.cpp: removed unused parameter warnings. + * backend/sound_handler_gst.cpp: removed compiler warnings; + minor optimizations and cleanups. + +2006-08-11 Vitaly Alexeev + + * plugin\win32\npgnash.rc: updated include file name + +2006-08-11 Vitaly Alexeev + + * libbase\curl_adapter.cpp: fixed VC++ compiler error + +2006-08-11 Vitaly Alexeev + + * server\swf\ASHandlers.cpp: removed assert(0), + no actionscript operation should lead to crash player, including + "x=new MyClass();". + +2006-08-10 Rob Savoye + + * gui/Makefile.am: Add more libraries to AM_LDFLAGS. + * libamf/Makefile.am: Remove the rest of the amftest. + * libamf/amf.cpp, amf.h, rtmp.cpp, rtmp.h: Much rearranging of + code, plus additional code till libamf actually works now. + * libamf/rtmp.h: Use gnash namespace instead of rtmp one. + * libbase/log.h, log.cpp: Add support to hexify to optionally + print ascii characters in a hex dump. + * libbase/network.cpp: Add WriteNet(). + * libbase/utility.h: Include math.h for Darwin. + * macros/gtkglext.m4: Use pkg-config if it exists. + * macros/kde.m4: Add -L to KDE_LDFLAGS. + * plugin/klash/klash.cpp: External variables are now defined + here. + * macros/pango.m4: Work around PPC Linux bug (YDL) with gtkglext + and pango library dependancies. + +2006-08-10 Vitaly Alexeev + + * gui\sdl.cpp, sdlsup.h: added key events handler and removed + showlogo(useless) + +2006-08-10 Bastiaan Jacques + + * plugin/plugin{.cpp,.h}: General plugin code cleanup. + +2006-08-10 Vitaly Alexeev + + * gui\sdl.cpp, sdlsup.h: added progress bar & showlogo stuf + +2006-08-10 Sandro Santilli + + * gui/gui.cpp: always call advance_root, no matter play_state + (the advance_root function should take care of that); reintroduce + check for gui loop + * libbase/curl_adapter.cpp: removed compiler warnings. + +2006-08-10 annonygmouse + + * gui/gtk.cpp, gui/gui.cpp: + make "CTRL- q, w, p" and ESC work again. + +2006-08-10 Sandro Santilli + + * server/asobj/NetConnection.cpp: added 'using namespace rtmp' + directory, erroneously removed by a previous commit. + * server/action_buffer.cpp: fixed hexify() call after it's + signature change. + +2006-08-09 Vitaly Alexeev + + * server\dlist.cpp: It is corrected (already again) + a bug leading the wrong order of execution actionscript code/events + +2006-08-09 Vitaly Alexeev + + * win32\readme.txt: warning was reduced + * npgnash.dll: updated + +2006-08-09 Vitaly Alexeev + + * plugin\plugin.cpp, plugin.h: added win32 multithread plugin stuff + * plugin\player.cpp, player.h : removed, becouse source it is moved + to plugin.cpp & plugin.h + * win32\npgnash.vcproj: updated options + * gnash.vcproj: removed, becouse it is moved to \win32\gnash folder + +2006-08-09 Bastiaan Jacques + + * plugin/plugin.cpp: Revise URL parsing to work for a single + option=value pair. + +2006-08-09 Bastiaan Jacques + + * plugin/plugin.cpp: Don't abort on URL arguments without a name; + merely ignore them (bug #17161). + +2006-08-09 Bastiaan Jacques + + * gui/gtk_glue_gtkglext.cpp: Fix typo. Properly dereference the + argument to getopt() (bug #17265). + * gui/gui.cpp: Remove an unused variable. + +2006-08-08 Rob Savoye + + * macros/atk.m4, curl.m4, glib.m4, gtk2.m4, jpeg.m4, libXML.m4, + mad.m4, pango.m4, sdl.m4: Add /opt/local,{include,lib}, which is + the path used by Darwin Ports. + * server/as_object.h: Add math.h for Darwin. + * server/movie_def_impl.h: Use %zu to print a size_t. + * server/sprite_instance.cpp: Add math.h for Darwin. + * server/asobj/Global.cpp: Include GMath.h now. + * server/asobj/Makefile.am: Renameed Math.h to Gmath.h. + * server/asobj/Math.cpp: Include GMath.h now. + * server/asobj/NetConnection.cpp: Removed lines 49-48. + * server/asobj/Math.h: Renamed to Gmath.h to avoid a name + collision on Darwin. + +2006-08-08 Vitaly Alexeev + + * gui\gnash.cpp: ported to win32 + * gui\NullGui.cpp: ported to win32 + * gui\sdl.cpp: ported to win32 + +2006-08-08 Vitaly Alexeev + + * plugin\mozilla-sdk\npplat.h: ported to win32 + * libamf\amf.cpp: fixed compiler warning + * libbase\container.cpp: stricmp --> _stricmp + * libamf\rtmp.cpp: ported to win32 + * libbase\tu_timer.cpp: added win32 include file + * ibbase\URL.cpp: cleanuped comment + * win32\gnash\gnash.vcproj: updated VC++ options + * win32\npgnash\npgnash.vcproj: updated VC++ options + +2006-08-08 Sandro Santilli + + * gui/gnash.cpp, utilities/processor.cpp: notify about -vp -va + requests being ignored when VERBOSE_ACTION and VERBOSE_PARSE + are undefined. + * server/dlist.cpp: commented out GNASH_REPORT_FUNCTION (we should + also make these no-op with a macro). + +2006-08-08 Sandro Santilli + + * libbase/log.cpp (log_action): don't check getActionDump(), + assume callers use IF_VERBOSE_ACTION instead. + * libbase/log.h: added IF_VERBOSE_ACTION and VERBOSE_ACTION + macros (latter is defined by default). + * server/ActionExec.cpp, server/action_buffer.cpp, server/array.cpp, + server/as_environment.cpp, server/button.cpp, server/morph.cpp, + server/styles.cpp, server/swf/ASHandlers.cpp: wrap all log_action + calls inside IF_VERBOSE_ACTION + +2006-08-08 Sandro Santilli + + * server/text.cpp: wrapper log_parse calls in IF_VERBOSE_PARSE. + * libbase/log.h: fixed IF_VERBOSE_PARSE macro + +2006-08-08 Sandro Santilli + + * libbase/log.cpp (log_parse): removed check for + dbglogfile.getParserDump() - it's checked by IF_VERBOSE_PARSE + macro. + * libbase/log.h: added IF_VERBOSE_PARSE macro, either no-op + or checks for dbglogfile.getParserDump(), depending on + VERBOSE_PARSE macro (defaults to 1). + * server/edit_text_character_def.cpp, server/font.cpp, + server/movie_def_impl.cpp, server/shape_character_def.cpp, + server/sprite_definition.cpp, server/stream.cpp, server/styles.cpp, + server/swf/tag_loaders.cpp: wrapped all log_parse calls inside + IF_VERBOSE_PARSE(). + +2006-08-07 Sandro Santilli + + * server/swf/ASHandlers.cpp: allow WaitForFrame actions + to always wait (and never skip actions) by mean of + a compile-time define. + * server/sprite_instance.cpp: simplified code in advance_root + to use the new specialized movie_definition::load_next_frame_chunk() + * server/movie_def_impl.cpp: implemented frame chunk loading, + with chunks currently set to 64 frames (FRAMELOAD_CHUNK def); + Added DEBUG_FRAMES_LOAD define. + * server/movie_definition.h, server/sprite_definition.h, + server/movie_def_impl.h: + Added load_next_frame_chunk() virtual method. + * server/ActionExec.cpp (skip_actions): simplified code. + * server/swf/ASHandlers.cpp (ActionBranchIfTrue): + assertion checking, minor cleanup. + * gui/gui.cpp: removed unused parameters warnings + * server/stream.h: added skip_bytes() method + * server/swf/tag_loaders.cpp: fixed compiler warnings. + +2006-08-07 Bastiaan Jacques + + * server/movie_def_impl.h: Fix return types to match declarations. + +2006-08-07 Sandro Santilli + + * server/asobj/NetConnection.cpp: added rtmp namespace in + search path (didn't build with g++ 3.3.5 otherwise) + +2006-08-06 Vitaly Alexeev + + * libbase/URL.cpp: added win32 path parsing + * win32: added new folder with VC++ projects of gnash & gnash plugin. + This folder also contains executable files: "gnash.exe" and firefox + plugin "gnash.dll". + * plugin/win32/: added new folder with stuff of Win32 Firefox plugin. + * gnash.vcproj: Remove as this now live in win32. + +2006-08-05 Rob Savoye + + * configure.ac: Rewrite strcasecmp to use AC_TRY_COMPILE instead + of AC_CHECK_HEADER which keeps failing on FC5-x86. + * libbase/container.cpp, container.h, jpeg.cpp, membuf.cpp, + network.cpp, rc.cpp, triangulate_impl.h, tu_file.cpp, utility.cpp, + zlib_adapter.cpp, axial_box.h, collision.cpp: Minor tweaks to + remove compiler warnings with the latest GCC on FC5. Printing + size_t should use %zd, and many unused parameters are commented + out to reduce warnings. + * libgeometry/kd_tree_dynamic.cpp, kd_tree_packed.cpp: Minor + tweaks to remove compiler warnings with the latest GCC on + FC5. Printing size_t should use %zd, and many unused parameters + are commented out to reduce warnings. + * macros/kde.m4: Use dnl to comment out serial, it's a reserved + word now. + * server/ActionExec.cpp, MovieClip.cpp, action_buffer.cpp, + as_environment.h, button.cpp, dlist.cpp, font.cpp, fontlib.cpp, + movie.h, movie_root.cpp, shape_character_def.cpp, /shm.cpp, + sound.cpp, sprite_definition.cpp, sprite_instance.cpp, + sprite_instance.h, xml.cpp, xmlnode.cpp, xmlsocket.cpp: Minor + tweaks to remove compiler warnings with the latest GCC on + FC5. Printing size_t should use %zd, and many unused parameters + are commented out to reduce warnings. + * server/asobj/NetConnection.cpp, NetConnection.h: Minor tweaks to + remove compiler warnings with the latest GCC on FC5. Printing + size_t should use %zd, and many unused parameters are commented + out to reduce warnings. + * server/swf/ASHandlers.cpp: Minor tweaks to remove compiler + warnings with the latest GCC on FC5. Printing size_t should use + %zd, and many unused parameters are commented out to reduce + warnings. + * utilities/parser.cpp: Minor tweaks to remove compiler warnings + with the latest GCC on FC5. Printing size_t should use %zd, and + many unused parameters are commented out to reduce warnings. + * plugin/klash/Makefile.am: Add libamf. + +2006-08-05 Sandro Santilli + + * server/ActionExec.cpp: handled case where pc gets far after stop_pc + * server/movie_def_impl.cpp: added comments about assertion in + ensure_frame_loaded() for target frame < loaded frame case. + * server/sprite_definition.h: fixed ensure_frame_loaded() to not + proxy to movie_definition but rather always return true (includes + comment about it) + * server/sprite_instance.cpp: added FRAMELOAD_CHUNK define to load + frames in chunks in advance_root(); reintroduced ensure_frame_loaded() + call in goto_frame() + * server/sprite_instance.h: added get_loaded_frame() public method. + * server/swf/ASHandlers.cpp: simplified WaitForFrame action handlers + to use the new sprite_instance::get_loaded_frame() method. + +2006-08-04 Sandro Santilli + + * server/swf/ASHandlers.cpp: implemented ActionWaitForFrame + and ActionWaitForFrameExpression() + * server/sprite_instance.cpp, server/sprite_instance.h: + added get_frame_number(as_value& frame_spec) for common + use in swf tags. + * server/movie_definition.h: added doxygen comment + * server/ActionExec.cpp, server/ActionExec.h: added + skip_actions() for use with WaitForFrame + * server/execute_tag.h: removed unused parameter warning. + * gui/NullGui.h: removed unused parameters warnings. + * server/character.h, server/movie_def_impl.cpp, + server/movie_def_impl.h, server/movie_definition.h, + server/movie_interface.h, server/movie_root.cpp, + server/movie_root.h, server/sprite_definition.h, + server/sprite_instance.cpp, server/sprite_instance.h: + Fixed more frame number types to be size_t rather then int; + added some doxygen comments; fixed ensure_frame_loaded calls + to not erroneusly using sprite frames rather then movie frames; + removed ensure_frame_loaded calls from goto_frame (will need + further thinking about it). + +2006-08-04 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: added rule to cleanup + temporary files created by new ming versions. + * server/sprite_instance.cpp (init_builtins): don't init builtins + more then once. + * testsuite/misc-ming.all/spritehier.c: fixed code to really + include 3 DoAction blocks. + +2006-08-04 Sandro Santilli + + * libbase/smart_ptr.h, server/action_buffer.h, server/character.h, + server/impl.h: removed unused parameter warning. + * testsuite/misc-ming.all/spritehier.c: updated to test + framesloaded/currentframe. + * server/sprite_instance.cpp: fixed _framesloaded + member to return loaded (not total) frames. + * server/sprite_definition.cpp: added check for + nested DefineSprite (malformed SWF). + +2006-08-03 Sandro Santilli + + * server/character.h, server/impl.cpp, server/movie.h, + server/movie_def_impl.cpp, server/movie_def_impl.h, + server/movie_definition.h, server/movie_interface.h, + server/movie_root.cpp, server/movie_root.h, + server/sprite_definition.cpp, server/sprite_definition.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/swf/ASHandlers.cpp: + Implemented incremental loading of movie (streaming); + fixed lots of references to frame numbers to be expressed + with size_t type rather then int. + + +2006-08-03 Sandro Santilli + + * server/swf/tag_loaders.cpp: warn only once and avoid parsing + tags when no GST sound backend is selected and unsupported sound + tags are encountered. + * server/gnash.h, server/impl.cpp, server/movie_def_impl.cpp, + server/movie_def_impl.h, server/sound.cpp, server/sound.h, + server/swf/tag_loaders.cpp, server/swf/tag_loaders.h: + Moved sound tag loaders to tag_loaders, moved s_sound_handler + instance to globals namespace, made adpcm_expand a static + method of sound_handler class. + +2006-08-03 Sandro Santilli + + * libbase/rc.cpp: initialize RcInitFile::_delay to 0 (undefined). + * server/as_environment.cpp, server/swf/ASHandlers.cpp: + removed superflous newlines at end of debug messages. + +2006-08-02 Sandro Santilli + + * server/font.cpp, server/font.h: tu_hash => std::map, minor + optimizations, more verbose parsing. + * gui/Makefile.am: use a GNASH_LIBS variable, to make future + additions cleaner. Fixes missed link of libamf.la in 'gnash' + executable, + +2006-08-01 Rob Savoye + + * libamf/Makefile.am: Don't bother to build amftest, now that I + can debug with live data. + + * libamf/amf.cpp, amf.h: Changes for cleaner 64 bit support. + * libamf/rtmp.cpp, rtmp.h: Read multiple packets till the entire + body is read in. + * macros/kde.m4: Remove 64 libraries as weel as 32 bit ones for + sed. + +2006-08-01 Rob Savoye + + * configure.ac: Change testing to disabled by default. + * Makefile.am: Always build libamf now, the networking code + requires it. + * gui/Makefile.am: Add libamf to the link line. + * gui/gnash.cpp: Add support for reading the config file. + * libamf/Makefile.am: Add RTMP support files. + * libbase/network.cpp: Add = operator. Add support for passing a + timeout to all functions using select(). + * libamf/rtmp.h, rtmp.cpp: New RTMP protocol support, both client + side and server side. + * libamf/protocol.h: Bases class for network protocols. + * libbase/network.h: Always compile in the accesors, the = + operator needs them. + * libbase/rc.cpp, rc.h: Add documentroot variable. + * plugin/Makefile.am: Add libamf to the link line. + * server/asobj/Makefile.am: Add libamf to the link line. + * server/asobj/NetConnection.cpp: Add establishing the RTMP + connection for connect(). + * utilities/Makefile.am: Add libamf to the link line. + +2006-08-01 Sandro Santilli + + * server/font.h: fixed extra qualification in declaration (bug #17247) + * configure.ac: output cleanups + * server/shape_character_def.cpp: cleanups in read_fill_styles + and read_line_styles. + +2006-08-01 annonygmouse + + * gui/gnash.cpp, gui/gtk.cpp, gui/gtksup.h, gui/gui.h, gui/sdl.cpp, + gui/sdlsup.h: add Gui::createWindow() function taking window + title, with default implementation discarding it. Changed + gui/gnash.cpp to use the new signature. + +2006-08-01 Sandro Santilli + + * server/font.h, server/font.cpp: split read of DefineFont and + DefineFont2 tags + * server/swf/tag_loaders.cpp: more use of symbolic names for SWF tags. + * server/samples/sound1.README: added description of sound1.swf. + * backend/Makefile.am, backend/sound_handler_mp3.cpp, + backend/sound_handler_sdl.cpp, server/Makefile.am, + server/sound_handler_mp3.cpp: + Moved sound_handler_mp3 from server/ to backend/, + enabled build (needs --enable-sound=sdl --enable-mp3) + * configure.ac: disable sound by default, set nogo=true + when sdl sound is requested but dependencies are not + met (bug#17225) + +2006-07-31 Sandro Santilli + + * gui/Makefile.am, gui/NullGui.cpp, gui/NullGui.h, + gui/gnash.cpp, gui/gui.h: + Moved NullGui class into its own files, implemented + frame delay in NullGui so that sound doesn't choke. + +2006-07-31 Sandro Santilli + + * gui/gui.h: added NullGui class definition. + * gui/gnash.cpp: use Gui trough a pointer, to allow for + dynamic polymorphism. Use NullGui when rendering is + disabled. + +2006-07-30 Rob Savoye + + * libbase/Thread.h, Thread.cpp: Base class for handling threads. + * server/network.h, network.cpp: Remove as they now live in + libbase. + * server/Makefile.am: Remove network. + * libbase/network.h, network.cpp: Move from server as this is + really a base class. + * server/Makefile.am: Add network to libbase library. + +2006-07-29 Sandro Santilli + + * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: + merged GetUrl and GetUrl2 common code into a CommonGetUrl + method. + * server/movie_root.cpp, server/movie_root.h: + assert that movie_root::get_url is never called. + +2006-07-29 Rob Savoye + + * macros/glib.m4: Use pkg-config if it exists. + +2006-07-29 Sandro Santilli + + * libbase/URL.cpp, libbase/URL.h, server/StreamProvider.cpp: + moved host security checking from URL class to StreamProvider + class. Do not check security for local files anymore, and + prevents checking security on temporary URL instances + (used for relative urls resolution) + +2006-07-29 Sandro Santilli + + * testsuite/libbase/Makefile.am, plugin/Makefile.am, + testsuite/libbase/Makefile.am: + commented out AM_LDFLAGS (rely on helper libs deps) + * backend/Makefile.am: make sure GLIB_LIBS is listed + before other libraries + * gui/Makefile.am, utilities/Makefile.am: + add GLIB_LIBS to AM_LDFLAGS to make sure + user-provided paths are used rather then the + ones found by libtool in dependent packages + (seems not the cleanest solution, but it worked for me) + +2006-07-29 Sandro Santilli + + * macros/pthreads.m4: don't add -I/usr/include + (should already be in the default search path) + * gui/gnash.cpp: fixed typo in -r help + * gui/Makefile.am: comment out AM_LDFLAGS (rely on dependencies + extracted from .la files) + * Makefile.am: add KDE_INCLUDES and KDE_LDFLAGS to + 'dumpconfig' output. + +2006-07-28 Rob Savoye + + * macros/opengl.m4: Make sure glu.h and libGLU also exist. + * macros/kde.m4: Don't force KDE_LDFLAGS to have /usr/lib. + * macros/libXML.m4: Remove /usr/lib from the output of + xml2-config. + * configure.ac: Only enable -pedantic -ansi when + --enable-lotsa-warnings is used when configuring. + +2006-07-28 Sandro Santilli + + * macros/libXML.m4: don't use -L when lib dir is /usr/lib + (this prevents polluting the libs search path). + Note that this won't work if xml2-config spits out -L/usr/lib, + but you can still override it with explicit --with-xml-libraries. + +2006-07-27 Sandro Santilli + + * utilities/Makefile.am: remove all LIBS references, deps + are derived from Gnash libs (simplifies things a lot) + * macros/glib.m4: Fix the fix of --with-glib-lib. + +2006-07-27 Rob Savoye + + * macros/glib.m4: Fix --with-glib-incl and --with-glib-lib options + to actually work. + +2006-07-27 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp: Made the log messages more + informative. + +2006-07-27 Bastiaan Jacques + + * configure.ac: Allow us to specify --enable-sound=none. Default to + -pedantic -Wno-long-long for GCC. + * backend/render_handler_ogl.cpp: Remove unneeded #includes. + * gui/gtk_glue_cairo{.cpp, h}: Move an include to the .cpp file, + where it's actually used. + * libbase/jpeg.cpp: Don't let jpeglib.h redefine HAVE_STDLIB_H. + * libbase/Makefile.am: Remove ogl{.cpp,h} from the build. + * macros/cairo.m4: Add -lcairo to the Cairo LDFLAGS, if needed. + * plugin/plugin.cpp: trivially fix warnings. + * server/shm.cpp: Remove an unused variable. + * server/asobj/Date.cpp: Make sure the recipient buffer size + matches the size parameter passed to snprintf(), to prevent + overflows. + +2006-07-27 Sandro Santilli + + * macros/gstreamer.m4: fixed handling of --with-gst-lib, + big cleanups + * utilities/Makefile.am: added GSTREAMER_LIBS + * doc/C/gnash.xml: updated doc for -r switch + * gui/gnash.cpp: changed semantic of -r switch: + 0: disable both rendering and sound + 1: enable rendering only (changed!) + 2: enable sound only (as before) + 3: enable both (new, previously done by 2) + +2006-07-27 Bastiaan Jacques + + * all over the place: Facilitate the use of -pedantic in combination + with -ansi by avoiding non-ISO C++. Avoid extra semicolons. Use the + `l' instead of the `z' length modifier in printf-style sequences. + +2006-07-27 Ivor Blockley + + * gui/{gtk.cpp, gui.cpp, gui.h, sdl.cpp}, server/{movie.h, + movie_interface.h, movie_root.cpp, movie_root.h}: Make sure that no + mouse events are ignored by handling them outside of the advance_movie + loop. + +2006-07-27 Sebastià Annonygmouse + + * plugin/plugin.cpp: Don't assume anything about the value of + string::npos. + +2006-07-26 Tomas Groth Christensen + + * gnash.vcproj: Added backend/sound_handler_gst.cpp. + * backend/sound_handler_gst.cpp: Use of more gstreamer plugins. + * backend/gnash.cpp, backend/sound_handler_sdl.cpp, + plugin/player.cpp, plugin/klash/klash.cpp, server/gnash.h, + server/sound.cpp: Use SOUND_GST and SOUND_SDL to select which + soundbackend to use. + * server/swf/ASHandlers.cpp: Stop soundplayback when gotoframe + and stop is called. + +2006-07-26 Sandro Santilli + + * gui/gnash.cpp: use SOUND_GST and SOUND_SDL to switch + between sound handlers. + * utilities/Makefile.am: add CAIRO_LIBS. + * macros/gtk2.m4: fixed typo + * libbase/Makefile.am: don't build ogl.cpp when not using OPENGL + rendered. Don't build tu_file_SDL.cpp if HAS_SDL is not set. + * configure.ac: don't complain about missing SDL_Mixer + if Gstreamer sound is requested + +2006-07-26 Vitaly Alexeev + + * server/movie_def_impl.cpp: fixing bug #17110 + * server/sprite_instance.cpp: xscale & yscale may be > 100 + +2006-07-26 Vitaly Alexeev + + * server/AutoExec.cpp: small optimization is done + +2006-07-26 Sandro Santilli + + * configure.ac: print GSTREAMER flags if gst sound is enabled + (also abort if the lib is not found) + * macros/glib.m4: fixed to allow for custom glib installations + * configure.ac, backend/Makefile.am: add --enable-sound option + to select between SDL or GSTREAMER + * backend/sound_handler_gst.cpp: don't use broken HAVE_GST_GST_H + macro, rather trust builder and use what's specified in + --enable-sound + +2006-07-26 Bastiaan Jacques + + * backend/sound_handler_gst.cpp: When reallocating, don't forget to + copy the old buffer contents. + +2006-07-25 Sandro Santilli + + * configure.ac: move XML2 and GLIB macro calls before gstreamer + one, so we can use LIBXML_CFLAGS and GLIB_CFLAGS when checking + for gstreamer headers. + * macros/gstreamer.m4: always run AC_CHECK_HEADERS for gstreamer + so to get HAVE_GST_GST_H defined; fixed AC_CHECK_LIB call to + use an actually available function in libgstreamer-0.10.so + * macros/gstreamer.m4: --with-gstreamer => --with-gst, + look for libgstreamer-0.10.so rather then for libgstplaybin.so, + fixed handling of --with-gst-libs (was using value given to + --with-gst-incl instead) + * libbase/log.cpp: another small optimization. + * server/ActionExec.cpp: don't call stack dumper + unless -va is given (another optimization) + +2006-07-25 Bastiaan Jacques + + * configure.ac: The correct option is --enable-plugin, not + --disable-plugin. + * backend/sound_handler_gst.cpp: Don't use realloc() on operator + new-allocated pointers. Do some trivial cleanup. + * backend/sound_handler_sdl.cpp: Trivially fix warnings. + * server/edit_text_character.cpp: Likewise. + * server/sound.cpp: Ensure that the sample rate is in the acceptable + range, to avoid invalid memory accesses. + +2006-07-25 Vitaly Alexeev + + * libbase/log.cpp: small optimization is done + +2006-07-25 Rob Savoye + + * macros/gstreamer.m4: Fix the --with options. Change to + --with--gst, instead of --with-gstreamer. Look for the correct + header file and library. + +2006-07-25 Lukasz Stelmach + + * macros/sdl.m4: fix --with-sdl-mixer-lib handling. + +2006-07-25 Vitaly Alexeev + + * server/edit_text_character.h, edit_text_character.cpp: + fixed input_edit_text cursor bug (center, right alignment) + +2006-07-25 Sandro Santilli + + * plugin/klash/Makefile.am: fixed libgnashasobj.la path. + * backend/Makefile.am: gtk stuff is source for + the deprecated backend/gnash.cpp, not libbackend + (which should rely on RENDERER_SORCES instead) + +2006-07-25 Rob Savoye + + * Makefile.am: Print the Gstreamer paths for dumpconfig. + * macros/pkg.m4: Add macros to find pkg-config. + * macros/gstreamer.m4: If pkg-config exists, use it, otherwise + look for the correct header file and libraries. + * configure.ac: Look for pkg-config. + +2006-07-24 Sandro Santilli + + * macros/gstreamer.m4: report result of headers checking + (note: doesn't work with required gstreamer version) + * plugin/Makefile.am: fixed reference to libgnashasobjs.la + +2006-07-24 Tomas Groth Christensen + + * backend/sound_handler_gst.cpp, backend/sound_handler_sdl.cpp, + server/button.cpp, server/gnash.h, server/movie_def_impl.h, + server/movie_definition.h, server/sound.cpp, + server/sprite_definition.h, server/asobj/ASSound.cpp: + Restructured the way sound streams are treated. Not much different + in playing yet, but it will help later. + +2006-07-24 Vitaly Alexeev + * gnash.vcproj: added /server/asobj files + * server/swf/ASHandlers.h: small optimization is done + * server/swf/ASHandlers.cpp: small optimization is done + +2006-07-24 Tomas Groth Christensen + + * Makefile.am, backend/Makefile.am, backend/gnash.cpp, + backend/sound_handler_gst.cpp gui/gnash.cpp, plugin/player.cpp, + server/gnash.h: Added the new Gstreamer based soundbackend. It still + needs some work! + +2006-07-23 Sandro Santilli + + * gui/gnash.cpp: fixed delay to respect FPS. + * configure.ac, backend/Makefile.am, gui/Makefile.am, + server/ASSound.cpp, server/ASSound.h, server/Boolean.cpp, + server/Boolean.h, server/Camera.cpp, server/Camera.h, + server/Color.cpp, server/Color.h, server/ContextMenu.cpp, + server/ContextMenu.h, server/CustomActions.cpp, + server/CustomActions.h, server/Date.cpp, server/Date.h, + server/Error.cpp, server/Error.h, server/Global.cpp, server/Key.cpp, + server/Key.h, server/LoadVars.cpp, server/LoadVars.h, + server/LocalConnection.cpp, server/LocalConnection.h, + server/Makefile.am, server/Math.cpp, server/Math.h, + server/Microphone.cpp, server/Microphone.h, server/Mouse.cpp, + server/Mouse.h, server/MovieClipLoader.cpp, server/MovieClipLoader.h, + server/NetConnection.cpp, server/NetConnection.h, server/NetStream.cpp, + server/NetStream.h, server/Selection.cpp, server/Selection.h, + server/SharedObject.cpp, server/SharedObject.h, server/Stage.cpp, + server/Stage.h, server/System.cpp, server/System.h, + server/TextSnapshot.cpp, server/TextSnapshot.h, server/Video.cpp, + server/Video.h, server/asobj/ASSound.cpp, server/asobj/ASSound.h, + server/asobj/Boolean.cpp, server/asobj/Boolean.h, + server/asobj/Camera.cpp, server/asobj/Camera.h, + server/asobj/Color.cpp, server/asobj/Color.h, server/asobj/.cvsignore, + server/asobj/ContextMenu.cpp, server/asobj/ContextMenu.h, + server/asobj/CustomActions.cpp, server/asobj/CustomActions.h, + server/asobj/Date.cpp, server/asobj/Date.h, server/asobj/Error.cpp, + server/asobj/Error.h, server/asobj/Global.cpp, server/asobj/Key.cpp, + server/asobj/Key.h, server/asobj/LoadVars.cpp, server/asobj/LoadVars.h, + server/asobj/LocalConnection.cpp, server/asobj/LocalConnection.h, + server/asobj/Makefile.am, server/asobj/Math.cpp, server/asobj/Math.h, + server/asobj/Microphone.cpp, server/asobj/Microphone.h, + server/asobj/Mouse.cpp, server/asobj/Mouse.h, + server/asobj/MovieClipLoader.cpp, server/asobj/MovieClipLoader.h, + server/asobj/NetConnection.cpp, server/asobj/NetConnection.h, + server/asobj/NetStream.cpp, server/asobj/NetStream.h, + server/asobj/Selection.cpp, server/asobj/Selection.h, + server/asobj/SharedObject.cpp, server/asobj/SharedObject.h, + server/asobj/Stage.cpp, server/asobj/Stage.h, + server/asobj/System.cpp, server/asobj/System.h, + server/asobj/TextSnapshot.cpp, server/asobj/TextSnapshot.h, + server/asobj/Video.cpp, server/asobj/Video.h, utilities/Makefile.am: + Moved ActionScript built-in objects (client api) under own directory + (asobj). + * configure.ac: fixed tip (suggest --enable-gui, not --with-gui) + +2006-07-17 Bastiaan Jacques + + * libbase/curl_adapter.cpp, server/{ActionExec.cpp, action_buffer.cpp, + array.cpp, swf/ASHandlers.cpp, swf/tag_loaders.cpp}: Trivially fix + compiler warnings. + +2006-07-16 Bastiaan Jacques + + * gui/kde.cpp: Update setCallback() to match the arguments in the + parent class. + * plugin/plugin.{h,cpp}: Remove more unused OpenGL and GTK code. + +2006-07-15 Bastiaan Jacques + + * gui/gnash.cpp: Make sure the argument count is greater than two + before treating an argument as a variable. + * gui/gui.{cpp,h}: Remove unused member _xembed. + * gui/{gnash.cpp,kdesup.h,sdl.cpp,sdlsup.h,gtk.cpp,gtksup.h}: Remove + the unused first argument to setCallback(). + * plugin/plugin.cpp: Don't do any OpenGL initialization in the plugin, + because the forked gnash does this on its own. + +2006-07-14 Bastiaan Jacques + + * gui/gui.cpp: Don't ignore the arguments passed to the Gui class + constructor. + +2006-07-14 Bastiaan Jacques + + * Makefile.am: revert latest change to fix the build. + +2006-07-11 Sandro Santilli + + * Makefile.am: don't make in backend/ (but distribute it) + * configure.ac: fixed plugin config message to avoid confusion + (default is disabled, not enabled). + +2006-07-11 Bastiaan Jacques + + * gui/{gtk.cpp, gtk_glue.h, gtk_glue_cairo.cpp, gtk_glue_cairo.h, + gtk_glue_gtkglext.cpp, gtk_glue_gtkglext.h, gtksup.h}: To facilitate + moving some GtkGlExt code into the appropriate glue, add a Gtk + configure event handler to the GtkGlue class and derivatives. Disable + some unused Gtk event handlers. + +2006-07-10 Sandro Santilli + + * gui/gtk.cpp: added missing gtkgl.h include + * backend/render_handler_cairo.cpp: removed comma at end of + enumeration list (pedantic error). + * backend/Makefile.am: commented out 'gnash' build + (there will be a 'gnash' program built under gui/) + * Makefile.am: added gui/ subdir + * server/edit_text_character.cpp: fixed tu_string => std::string + attempt bug. + * testsuite/actionscript.all/swf_exists.exp: + use gprocessor -v rather then backend/gnash (we/re moving to gui). + clean up also .swf.frame0.pp (new preprocessor output name + from upcoming Ming 0.4) + +2006-07-10 Vitaly Alexeev + + * server\action.h, action.cpp: added SETFOCUS & KILLFOCUS events codes + * server\edit_text_character_def.h: added get_readonly() for + edit_text_character entity + * server\edit_text_character.h, edit_text_character.cpp: + added SETFOCUS & KILLFOCUS event handler and input edit text stuff + * server\Key.h, Key.cpp: keypress event handler moved to movie_root, + because every root must have own event handler + * server\movie_root.h, movie_root.cpp: added m_active_input_text which + points to current entity having focus and related get_active_entity, + set_active_entity + * server\button.cpp: added SETFOCUS & KILLFOCUS events initiator + * server\array.h, as_function.h, as_object.cpp: ported to WIN32 + * backend\gnash.cpp: fixed bug that led to processing of not arisen + events. + * server\button.cpp, sprite_instance.cpp: + add_keypress_listener --> m_root.add_keypress_listener + * gnash.vcproj: added new files + +2006-07-10 Sandro Santilli + + * gui/.cvsignore: new file + +2006-07-08 Sandro Santilli + + * server/Function.cpp, server/Function.h: removed obsoleted files. + * TODO: removed ActionNewMethod from missing opcodes + * server/swf/ASHandlers.cpp: implemented ActionNewMethod, + added static construct_object() utility function. + * server/System.cpp: handled 'new System' attempts. + * testsuite/actionscript.all/System.as: don't try + to instantiate the non-instantiatable 'System' class. + * server/action.cpp, server/action.h: cleaned up and documented + call_method function. + * server/as_object.h, server/as_object.cpp: + added public dump_members() and private set_prototype() + methods. + +2006-07-07 Stefan Schweizer + + * libamf/Makefile.am, libgeometry/Makefile.am, plugin/Makefile.am, + plugin/mozilla-sdk/Makefile.am: + Use CXXFLAGS where appropriate; install plugin using libtool. + +2006-07-07 Sandro Santilli + + * TODO: updated + * server/swf/ASHandlers.cpp: implemented ActionEnum2 + (enumerate object), fixed ActionEnumerate to always set + enumeration end. + * server/ActionExec.cpp, server/Function.cpp, server/Function.h, + server/Global.cpp, server/Makefile.am, server/MovieClipLoader.cpp, + server/System.cpp, server/System.h, server/action.cpp, + server/action_buffer.cpp, server/array.cpp, server/as_function.cpp, + server/as_function.h, server/as_object.cpp, server/as_value.cpp, + server/builtin_function.h, server/impl.cpp, server/impl.h, + server/sprite_instance.cpp, server/string.cpp, server/swf_function.cpp, + server/swf_function.h, server/timers.cpp, server/xml.cpp, + server/xmlattrs.cpp, server/xmlnode.cpp, server/xmlsocket.cpp, + server/swf/ASHandlers.cpp, server/swf/tag_loaders.cpp: + Split Function.{h,cpp} into as_function.{h,cpp}, swf_function.{h,cpp} + and builtin_function.{h,cpp}. + +2006-07-07 Sandro Santilli + + * server/action_buffer.cpp: don't log action at parse time + (is redundant, as they are logged at execution time). + * server/Function.cpp: fixed local registers handling in operator() + for function2 (see the 1-based register WARNING below). + * server/as_environment.cpp, server/as_environment.h: + outlined local register functions, adding assertion checking. + * server/ActionExec.cpp, server/MovieClipLoader.cpp, + server/as_environment.cpp, server/as_environment.h, + server/character.cpp, server/character.h, server/sprite_instance.cpp, + server/sprite_instance.h, server/swf/ASHandlers.cpp: + Changed as_environment's target to be a character rather + then a sprite_instance (it seems buttons are valid targets); + Handled invalid values for sprite_instance members + _xscale and _yscale. + * server/action_buffer.cpp, server/swf/ASHandlers.cpp: + removed -pedantic compiler warnings, fixed a bug in + fix_stack_underrun pushing more undefined values then + required. + +2006-07-06 Sandro Santilli + + * server/array.cpp, server/array.h: implemented + Array.sort(flags=0) method. + * server/Global.cpp, server/array.cpp, server/array.h: + had Array unimplemented methods print an ERROR with -v, + renamed array_init to array_class_init and change signature + to take by-ref. + * server/array.cpp: most functions made module-statics, indentation + * testsuite/actionscript.all/array.as: "tostring" => "toString" + (SWF 7 and up are case-sensitive in this); added tests for + Array constants and instanceOf. + * server/ActionExec.cpp, server/Function.cpp, server/Global.cpp + server/as_environment.cpp, server/as_environment.h, + server/swf/ASHandlers.cpp: environment's global and local registers + made private; provided accessor methods checking for out of bound + conditions; added dumpers for them. Updated all users. + WARNING: 1-based register must be checked, but ming is unable + to output Function2 code... + + +2006-07-05 Sandro Santilli + + * testsuite/actionscript.all/Function.as: + handled differences between player versions. + * server/gstring.cpp: + Provide all of "String" class interface as static methods + (actionscript.all/String.swf testcases passes all now). + * server/ActionExec.cpp, server/Function.cpp, server/Function.h, + server/Global.cpp, server/MovieClip.cpp, server/MovieClipLoader.cpp, + server/System.cpp, server/action.cpp, server/action.h, + server/action_buffer.cpp, server/array.cpp, server/as_object.cpp, + server/as_object.h, server/as_value.cpp, server/as_value.h, + server/gstring.h, server/resource.h, server/sprite_instance.cpp, + server/string.cpp, server/timers.cpp, server/xml.cpp, + server/xmlsocket.cpp, server/swf/ASHandlers.cpp, + server/swf/tag_loaders.cpp: + Refactored ActionScript functions model. + We now have a base as_function class and builting_function and + swf_function being for builtin and user-defined functions/classes. + (actionscript.all/Function.swf testcases passes all now). + +2006-07-05 Vitaly Alexeev + + * backend\gnash.cpp: mouse_scaling.patch from Samuel Liden Borell + * backend\gtksup.cpp: mouse_scaling.patch from Samuel Liden Borell + * server\button.cpp: added button keypress event handler + * server\Key.cpp: added button keypress event handler + + +2006-07-04 Sandro Santilli + + * server/Function.h, server/swf/ASHandlers.cpp: + most function_as_object members made private. + +2006-07-03 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am, + testsuite/actionscript.all/inheritance.as: + New ActionScript inheritance test. + +2006-07-02 Sandro Santilli + + * server/ActionExecp.cpp: dump stack after each action execution + when -va is provided (can switch off undefining DEBUG_STACK). + * server/as_object.cpp: reduced noise on -va. + * gui/gui.cpp: fixed Gui constructors to correctly set scale. + Mouse events now work as expected. + * server/MovieClipLoader.cpp, server/action.cpp, + server/as_environment.cpp, server/as_environment.h, + server/button.cpp, server/button.h, server/character.h, + server/character_def.cpp, server/character_def.h, + server/edit_text_character.cpp, server/edit_text_character.h, + server/edit_text_character_def.cpp, server/edit_text_character_def.h, + server/generic_character.h, server/sprite_definition.cpp, + server/sprite_definition.h, server/sprite_instance.cpp, + server/sprite_instance.h: + Characters's parents are now characters (not sprite_instances). + This is required to have child characters for buttons and + edit_text and other characters (see Vitaly's patch for bug #16969 + for reference). + +2006-07-01 Vitaly Alexeev + + * server\button.cpp: fixed bug #16969 + +2006-07-01 Sandro Santilli + + * server/as_environment.cpp, server/as_environment.h: + changed register-related functions to use unsigned + ints rather the ints for offsets. + * server/as_environment.cpp, server/as_environment.h: + added a get_version() method to hide implementation. + * server/ActionExec.cpp, server/sprite_instance.cpp, + server/swf/ASHandlers.cpp: use env.get_version() + rather then own-rolled version extracter. + * server/Global.cpp: tolerate (don't abort) unimplemented + ASSetPropFlags with non-object 'props' argument. + +2006-06-30 Sandro Santilli + + * server/swf/ASHandlers.cpp (ActionGetUrl): fixed read + of 'target' parameter (action still not fully implemented, + see bug #16435). + * server/dlist.cpp: (advance): keep characters alive + during advancement of them, in case they get removed + from the DisplayList (see bug #16815). + * server/swf/ASHandlers.cpp: fixed bugus stack drop + in ActionWaitForFrame, added pseudo-code implementation of + it and ActionWaitForFrameExpresion. + * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: + added ensure_stack() function to use by action handlers + to check stack size before attempting to fetch from it. + This cleanly handles malformed SWF and prints an error about + it. + +2006-06-30 Vitaly Alexeev + + * server\sprite_instance.cpp: fixed elvis.swf bug + +2006-06-30 Sandro Santilli + + * server/swf/ASHandlers.cpp (SWFHandlers::ActionLogicalOr): + "or" values, don't "and" them. + +2006-06-30 Vitaly Alexeev + + * server\character.h: fixed small bug + * server\swf\ASHandlers.cpp: fixed small bug + + +2006-06-30 Sandro Santilli + + * server/Global.cpp: removed useless C-style casts. + * server/ActionExec.cpp: print stack debugging + informations during actions execution if DEBUG_STACK + is defined (undef by default) and -v is given on command line. + * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: + static action handlers made private in SWFHandlers class; + added an SWFHandlers::action_name(action_type) utility method. + * server/as_environment.h (dump_stack): display stack contents + on a single line, to enhance readibility of stack changes. + * server/action.cpp: removed useless ASHandlers.h include. + * gui/gui.cpp: added missing sprite_instance.h + include after refactoring commit. + +2006-06-29 Vitaly Alexeev + + * server\actionexec.h: ported to win32 + * server\ActionExec.cpp: commented unnecessary log_msg + * server\character_def.h: ported to win32 + * server\as_environment.h: ported to win32 + * server\action_buffer.cpp: ported to win32 + * server\dlist.cpp: added "onClipEvent(construct, unload)" handlers + * server\Function.cpp: fixed tiny bug + * server\Global.cpp: removed unnecessary assert + * server\sprite_instance.cpp: added lost m_display_list.reset() + * server\swf\tag_loaders.cpp: added "onClipEvent(construct) handler + * server\swf\ASHandlers.cpp: ported to win32 + * gnash.vcproj: added new files + + +2006-06-29 Sandro Santilli + + * server/ASHandlers.cpp (ActionWaitForFrame): added stack size check. + * server/ASSound.cpp, server/ActionExec.cpp, server/Function.cpp, + server/Global.cpp, server/MovieClipLoader.cpp, server/action.cpp, + server/as_environment.cpp, server/as_environment.h, + server/as_value.cpp, server/as_value.h, server/button.cpp, + server/button.h, server/character.cpp, server/character.h, + server/character_def.cpp, server/character_def.h, + server/edit_text_character.cpp, server/edit_text_character.h, + server/edit_text_character_def.cpp, server/edit_text_character_def.h, + server/generic_character.h, server/impl.cpp, server/morph2.cpp, + server/movie.h, server/movie_def_impl.cpp, server/movie_interface.h, + server/movie_root.cpp, server/movie_root.h, + server/shape_character_def.cpp, server/sprite_definition.cpp, + server/sprite_definition.h, server/sprite_instance.cpp, + server/sprite_instance.h, server/timers.cpp, server/xmlsocket.cpp, + server/swf/ASHandlers.cpp: + Big cleanup aimed at reducing model complexity. + Use of the 'movie' has been drastically reduced, the aim + is completely drop it. + Every sprite is a sprite_instance, including the + _root movie. We still have a movie_root class + (with a sprite_instance pointer being the _root movie) + representing the actual movie being played. + +2006-06-28 Sandro Santilli + + * server/swf/ASHandlers.cpp, server/Function.cpp: updated to work + with the private as_environment::m_target. + * server/as_environment.h: m_target made private. + * server/as_environment.cpp (find_target): assert that + an as_value of type OBJECT can be cast to an object. + * server/Makefile.am, server/character_def.cpp, server/impl.cpp: + Put character_def implementation in its own file. + * server/character_def.h: Added missing forward declarations. + +2006-06-27 Sandro Santilli + + * server/swf/ASHandlers.cpp, server/ActionExec.cpp: moved + all known action handlers implementations from ActionExec + to ASHandlers, general cleanups. + * server/swf/ASHandlers.cpp: fixed bug in ActionDefineFunction2. + +2006-06-26 Sandro Santilli + + * server/Function.h, server/Function.cpp: added assertion checking + in set_length() and constructor by action_buffer. + * server/swf/ASHandlers.cpp: fixed ActionDefineFunction impl. + * server/ActionExec.cpp: fixed handling of ACTION_RETURN. + +2006-06-25 Sandro Santilli + + * server/ActionExec.cpp, server/ActionExec.h, + server/Makefile.am: new class for action_buffer + execution context. + * server/Function.cpp, server/Function.h: + use action_buffer by const pointers . + * server/action_buffer.cpp, server/action_buffer.h: + added utility functions to read data from the buffer + to eventually use a stream instead. + * server/swf/ASHandlers.cpp, server/swf/ASHandlers.h: + SWFHandlers made a singleton (hopefully fixes the static + initialization problem), used a fixed-size vector + for SWFHandlers::_handlers (faster). Ported some + ActionHandlers from ActionExec (work unfinished). + +2006-06-24 Sandro Santilli + + * server/movie_def_impl.h, server/movie_definition.h, + server/sprite_definition.h: changed add_init_action() + signature to drop unused sprite_id parameter. + * server/Boolean.cpp, server/Camera.cpp, server/Color.cpp, + server/ContextMenu.cpp, server/CustomActions.cpp + server/Date.cpp, server/Error.cpp, server/ASSound.cpp, + server/Key.cpp, server/LoadVars.cpp, server/LocalConnection.cpp, + server/Microphone.cpp, server/Mouse.cpp, server/NetStream.cpp, + server/Selection.cpp, server/SharedObject.cpp, server/Stage.cpp, + server/System.cpp, server/TextSnapshot.cpp, server/Video.cpp, + server/action.cpp, server/button.cpp, server/character.h, + server/character_def.h, server/execute_tag.h, server/movie.h, + server/movie_root.h, server/swf/tag_loaders.cpp: + removed unused parameter warnings. + +2006-06-22 Sandro Santilli + + * server/Function.cpp, server/MovieClipLoader.cpp, server/action.cpp, + server/as_environment.cpp, server/as_environment.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/textformat.cpp, server/timers.cpp, server/xml.cpp, + server/xmlsocket.cpp, server/swf/ASHandlers.cpp: + Added as_environment::{get,set}_variable{,_raw} versions + w/out with_stack argument, those with "with_stack" arg moved + to private space. All files updated to avoid use of dummy + (empty) with_stack objects. + * server/Function.cpp, server/Function.h: + updated doxygen comments, used size_t for action_buffer + offsets and length. + +2006-06-21 Vitaly Alexeev + + * server/action_buffer.h: removed unnecessary operator= + * server/action.cpp: fixed "static SWFHandlers ash;" problem + * server/swf/ASHandler.cpp: fixed "static SWFHandlers ash;" problem + * server/action_buffer.cpp: fixed "static SWFHandlers ash;" problem + * server/action_buffer.h: added operator= + * server/gnash.h: ported to win32 + * server/impl.h: removed read() from swf_event + * server/swf/tag_loader.cpp: added multi-event handler + * gnash.vcproj: added new files + +2006-06-21 Sandro Santilli + + * doc/C/internals.xml: more info about writing ActionScript tests + and layout under testsuite/ + * testsuite/actionscript.all/xtrace.as: commented out xtrace + engagement message (not more needed since check.as prints testfile + info) + * testsuite/actionscript.all/String.as: added inheritance checks. + * testsuite/actionscript.all/Makefile.am: fixed duplicated + defines when building online tests. + * testsuite/actionscript.all/: added rcsid variable + to all testfiles, had check.as print testfile info at + the beginning rather then at each check. + * testsuite/actionscript.all/Makefile.am: made online-test rule + work with external build dir. + +2006-06-20 Sandro Santilli + + * server/Makefile.am, server/action.cpp, server/action.h, + server/action_buffer.cpp, server/action_buffer.h, + server/as_environment.cpp, server/impl.h, server/textformat.cpp, + server/with_stack_entry.h, server/swf/ASHandlers.cpp: + moved action_buffer and with_stack_entry classes in their own + files. + +2006-06-19 Michael Carlson + + * server/string.cpp: Eliminate wasteful if/else and + string_method function, implement several string functions + * testsuite/actionscript.all/string.as: Initial String tests + * testsuite/actionscript.all/Makefile.am: Build string.swf + +2006-06-19 Vitaly Alexeev + + * server/movie_def_impl.h: fixed bug #16882 + +2006-06-19 Vitaly Alexeev + + * server/character.h: added has_keypress_event() method + * server/action.h: updated event name + * server/action.cpp: updated event name + * server/Key.h: added keypress event handler + * server/Key.cpp: added keypress event handler + * server/sprite_instance.h: added m_has_keypress_event + * server/sprite_instance.cpp: added call to keypress listeners + * server/swf/tag_loaders.cpp: updated s_code_bits + +2006-06-19 Sandro Santilli + + * server/sound_handler_mp3.cpp: fix build bug #16836. + * server/swf.h: added symbolic names for fill_style types. + * server/styles.h: some indentation and doxygen comments. + * server/styles.cpp: use symbolic names for fill_style types, + stricter checks on them, accept hard-edges versions of + CLIPPED and TILED bitmap fills. + +2006-06-15 Sandro Santilli + + * server/action.cpp (call_method): include method name in + not-a-function error message. + * server/as_environment.h: changed drop(), top() and bottom() + methods to take size_t rather then int and to check stack + size; added (public) stack_size() method. + * server/swf/ASHandlers.cpp (SWFHandlers::ActionPop): + handle empty stack condition. + * server/edit_text_character.cpp: don't abort when text doesn't + fit into the defined boundaries (fixes bug #16637). + * server/edit_text_character.h: more stuff made private. + * server/edit_text_character_def.h: added do_word_wrap() method. + +2006-06-15 Vitaly Alexeev + + * server/action.h: add clip_event_keypress & clip_event_construct hack + * server/action.cpp: add clip_event_keypress & clip_event_construct hack + * backend/gnash.cpp: add SDLK_0 -- SDLK_9 + * server/swf/tag_loaders.cpp: add clip_event_keypress & clip_event_construct hack + * server/movie_root.cpp: small optimization + * server/sprite_instance.cpp: small optimization + +2006-06-14 Vitaly Alexeev + + * server/movie.h: comment on_event_load() + * server/movie_root.h: comment m_on_event_load_called + * server/sprite_instance.h: add advance_root(), advance_sprite() + * server/dlist.cpp: replace on_event_load -->execute_frame_tags(0) + * server/movie_def_impl.cpp: add execute_frame_tags(0) + * server/movie_root.cpp: replace advance() --> advance_root() + * server/sprite_instance.cpp: add advance_root(), advance_sprite(), update advance() + + +2006-06-13 Sandro Santilli + + * server/movie.h: removed most warnings about unused + parameters, indentation. + * testsuite/media/Bitstream Vera Sans.COPYRIGHT, + testsuite/media/Bitstream Vera Sans.fdb: added + fdb font from Ming project, for embedding in test + units. + * testsuite/media/README: info about media files + (incomplete). + * testsuite/misc-ming.all/Makefile.am, + testsuite/misc-ming.all/DefineEditTextTest.c: + updated DefineEditTextTest file to use embedded + fonts, we can now reproduce bug #16637. + +2006-06-12 Sandro Santilli + + * testsuite/misc-ming.all/DefineEditTextTest.c, + testsuite/misc-ming.all/Makefile.am, + testsuite/misc-ming.all/defineedittext.c: + defineedittext.c renamed to DefineEditTextTest.c, + added some more code to get closer to what's in the + testfile from bug #16637 (missing embedded fonts) + * server/swf/ASHandler.cpp: (ActionDeleteVar): fixed + call to as_object::set_member (as_value passed by + const ref, not pointer). + +2006-06-11 Vitaly Alexeev + + * libbase/log.cpp: fix trace("") bug + * libbase/rc.cpp: porting to WIN32 + * libbase/URL.cpp: porting to WIN32 + * backend/gnash.cpp: add mysql_db call + * server/gnash.h: add register_component(...) + * server/action.cpp: add register_component(...) + * server/movie_root.cpp: add next_random() call to advance() + * server/System.cpp: porting to WIN32 + * server/swf/ASHandler.cpp: add ActionDeleteVar + * extensions/mysql/mysql_db.cpp: new file + * extensions/mysql/mysql_db.h: new file + * extensions/mysql/mysql_table.cpp: new file + * extensions/mysql/mysql_table.h: new file + * extensions/mysql/README: new file + gnash.vcproj: new file + + +2006-06-10 Sandro Santilli + + * libbase/log.cpp: avoid buffer overflows. + +2006-06-08 Sandro Santilli + + * server/impl.cpp: save URL::str() return into a local variable. + * gui/gnash.cpp: updated to use new dbgfile facilities. + * backend/gtksup.cpp: fixed compiler warnings. + * utilities/parser.cpp, utilities/processor.cpp: + use extern rcfile. + +2006-06-08 Rob Savoye + + * plugin/plugin.cpp: Adjust the size of the URL buffer based on + size. Gracefully handle an error when we get "&&" in a URL so + Firefox doesn't crash. + * plugin/klash/klash.cpp: Use new logging functions for actions + and parsing. + + + * libbase/URL.cpp: Add support for using the config file for + security settings. Add host_check() to compare a hostname against + security settings before accessing remote Flash movies. Look for + _WIN32 as well as just WIN32. + * libbase/URL.h: Add host_check(). + * libbase/rc.cpp: Default all security settings to false. + * server/Date.cpp: Look for _WIN32 as well as just WIN32. + * server/action.cpp: Look for _WIN32 as well as just WIN32. + +2006-06-07 Rob Savoye + + * configure.ac: Add config dir for compat files like + getopt.c. Look for getopt, and replace it if it doesn't exist. + * backend/gnash.cpp: Remove getopt code for win32, it's in it's + own file now. + * libbase/container.h: Look for _WIN32 as well as just WIN32. + * libbase/curl_adapter.cpp: Look for _WIN32 as well as just WIN32. + * libbase/log.cpp: Look for _WIN32 as well as just WIN32. + * libbase/log.h: Look for _WIN32 as well as just WIN32. + * libbase/tu_types.h: Look for _WIN32 as well as just WIN32. + * libbase/utility.h: Look for _WIN32 as well as just WIN32. + * libbase/tu_timer.h: Look for _WIN32 as well as just WIN32. + * libbase/tu_opengl_includes.h: Look for _WIN32 as well as just + WIN32. + * libbase/getopt.c: Replacement function for win32. + + * backend/gnash.cpp: Load config file, and use those values if + they exist. Command line options override config file settings. + * backend/gtksup.cpp: Trap the shift and control modifier keys + too. + * backend/gtksup.h: Don't initialize externs. + * backend/sound_handler_sdl.cpp: Use new logging macros. + * libbase/Makefile.am: Add SDL libs. + * libbase/log.cpp: Add log_action() and log_parse() to replace the + old macros. + * libbase/log.h: Add support for optionally logging actions and + parsing. + * libbase/rc.cpp: Add support for optionally logging actions and + parsing. Add extractNumber() for numeric config file values. Add + dump() method. + * libbase/rc.h: Add new config file options for optionally logging + actions and parsing. + * server/ASSound.cpp: Use new logging functions for actions and + parsing. + * server/Function.cpp: Use new logging functions for actions and + parsing. + * server/Global.cpp: Use new logging functions for actions and + parsing. Put in gnash namespace. + * server/Key.cpp, Key.h: Add copyright notice. + * server/action.cpp: Use new logging functions for actions and + parsing. + * server/array.cpp: Use new logging functions for actions and + parsing. + * server/as_environment.cpp: Use new logging functions for actions + and parsing. + * server/as_object.cpp: Use new logging functions for actions and + parsing. + * server/button.cpp: Use new logging functions for actions and + parsing. + * server/dlist.cpp: Use new logging functions for actions and + parsing. + * server/edit_text_character_def.cpp: Use new logging functions + for actions and parsing. + * server/font.cpp: Use new logging functions for actions and + parsing. + * server/fontlib.cpp: Use new logging functions for actions and + parsing. + * server/impl.cpp: Use new logging functions for actions and + parsing. + * server/morph.cpp: Use new logging functions for actions and + parsing. + * server/morph2.cpp: Use new logging functions for actions and + parsing. + * server/movie_def_impl.cpp: Use new logging functions for actions + and parsing. + * server/movie_root.cpp: Use new logging functions for actions and + parsing. + * server/shape_character_def.cpp: Use new logging functions for + actions and parsing. + * server/sound.cpp: Use new logging functions for actions and + parsing. + * server/sound_handler_mp3.cpp: Use new logging functions for + actions and parsing. + * server/sprite_definition.cpp: Use new logging functions for + actions and parsing. + * server/sprite_instance.cpp:Use new logging functions for actions + and parsing. + * server/stream.cpp:Use new logging functions for actions and + parsing. + * server/styles.cpp:Use new logging functions for actions and + parsing. + * server/text.cpp: Use new logging functions for actions and + parsing. + * server/types.cpp:Use new logging functions for actions and + parsing. + * server/types.h:Use new logging functions for actions and + parsing. + * server/swf/ASHandlers.cpp: Use new logging functions for actions + and parsing. + * server/swf/tag_loaders.cpp: Use new logging functions for actions + and parsing. + * testsuite/libbase/Makefile.am: Comment out Log test case for + now. + * testsuite/libbase/gnashrc.in: Add items for all config values. + * utilities/parser.cpp: Use new logging functions for actions + and parsing. + * utilities/processor.cpp: Use new logging functions for actions + and parsing. + +2006-06-01 Vitaly Alexeev + * server/Math.h: porting to WIN32 + * server/network.h: porting to WIN32 + * server/network.cpp: porting to WIN32 + * server/Global.cpp: LocalConnection & NetConnection in WIN32 now + * server/impl.cpp: commented printf + * libbase/curl_adapter.h: porting to WIN32 + +2006-05-30 Rob Savoye + + * plugin/plugin.h: Comment out debug print statements. + * plugin/plugin.cpp: General code cleanup, comment out debug print + statements. + * plugin/Makefile.am: Copy, don't use libtool to install the + plugin. + +2006-05-29 Rob Savoye + + * plugin/plugin.cpp: Change the description strings so the flash + version is detected correctly. + * macros/opengl.m4: Look in 64 bit directories after the 32 bit + ones. + * macros/zlib.m4: Look in 64 bit directories after the 32 bit + ones. + * libbase/rc.h: Add extractSetting() for support function to get + values from the config file. + * libbase/rc.cpp: Use extractSetting(), rather than duplicating + all the code. + * libbase/tu_types.h: Check for more variations of the ENDIAN + constants. Bug #16682. + +2006-05-30 Rob Savoye + + * configure.ac: Link to the test config file in + testuites/libbase. + * libbase/Makefile.am: Add rc.{h,cpp}. + * libbase/rc.h, rc.cpp: Config file support. + * testsuite/libbase/Makefile.am: Add Rc file test case. + +2006-05-29 Stefan Schweizer + + * macros/gtkglext.m4: Fix gnash building with confcache. + +2006-05-29 Sandro Santilli + + * server/dlist.h, server/dlist.cpp: renamed display_list + to DisplayList and made a real class, many functions moved + to private space, abstracted underlying container to allow + for future modifications aimed at performance improvements; + current implementation done with std::list. + * server/sprite_instance.h, server/sprite_instance.cpp: + updated to use the new DisplayList class interface. + +2006-05-27 Vitaly Alexeev + + * server/action.h: updated forward declaration. + * server/resource.h: updated forward declaration. + * server/fn_call.h: updated forward declaration. + * server/gnash.h: added some sound_handler methods. + * server/ASHandler.cpp: added stopAllSounds; + * server/ASSound.cpp: added some sound methods. + * server/button.cpp: added 3-rd parameter in play_sound. + * server/sound.cpp: added 3-rd parameter in play_sound. + * libbase/log.cpp: fixed va_start bug. + * backend/sound_handler_sdl.cpp: added some sound methods. + +2006-05-26 Sandro Santilli + + * testsuite/misc-ming.all/PlaceObject2Test.c, + testsuite/misc-ming.all/RemoveObject2Test.c, + testsuite/misc-ming.all/Makefile.am: added + tests for PlaceObject2 and RemoveObject2 tags. + +2006-05-26 Patrice Dumas + + * doc/C/.cvsignore: add more doc files. + +2006-05-25 Vitaly Alexeev + + * Forward declarations should correspond to definition in Visual + C. Updated all headers where it not so. + * container.h: added hash from gameSWF. There are problems with + stdext:hash in WIN32. + * backend/gnash.cpp: fixing upside-down (flipped horizontally). + +2006-05-25 Vitaly Alexeev + + * Forward declarations should correspond to definition in Visual C. + Updated all headers where it not so. + * container.h: added hash from gameSWF. There are problems with + stdext:hash in WIN32. + * tu_types.h: added types from inttypes.h for WIN32 + * action.cpp: ported to WIN32 + * global.cpp: The network for WIN32 is commented. It does not work. + * log.cpp: ported to WIN32 + +2006-05-24 Patrice Dumas + + * server/Makefile.am: swap order of lib_LTLIBRARIES. + * plugin/Makefile.am: remove redundant lib flags for plugin. + * configure.ac, plugin/Makefile.am: removed references to + the unused Xmu library. + * macros/atk.m4, macros/glib.m4, macros/gstreamer.m4, + macros/gtk2.m4, macros/gtkglext.m4, macros/pango.m4, + macros/sdl.m4: added namespace-like prefixes to commonly + used ${version} and ${topdir} variables. + +2006-05-24 Bernhard Rosenkraenzer + + * plugin/klash/klash.cpp: made URL aware. + +2006-05-24 Sandro Santilli + + * plugin/klash/klash.cpp: removed obsoleted + file_opener callback use. + +2006-05-23 Sandro Santilli + + * macros/gtkglext.m4: check for gtkglext no matter + wheter plugin has been requested or not, fixed + messages during autodetection attempts, cleanly + handled --with-glext-incl switch (make sure to + set the $version variable). + +2006-05-23 Patrice Dumas + + * Makefile.am: gui and plugin unconditionnaly in DIST_SUBDIRS. + * server/Makefile.am: distribute fn_call.h. + * doc/omf.make: don't use -p $(scrollkeeper_localstate_dir) such + that nothing is installed in the staged install directory. + +2006-05-22 Sandro Santilli + + * gui/sdl.cpp: fixed bug in SDL gui preventing movie advances. + * configure.ac: abort with an error at configure time if gui==gtk + and libgtkgl is not found. + +2006-05-21 Sandro Santilli + + * server: action.h, fn_call.h, *: moved + fn_call struct definition in its own file + * server/gen-files.sh: added fn_call.h include + in implementation file and as_object.h include + in header file. Updated all files for new header. + +2006-05-20 Vitaly Alexeev + + * server/gnash.h: struct font; --> class font; + * server/impl.h: struct font; --> class font; + * server/resource.h: struct font; --> class font; + * server/swf/tag_loaders.h: class movie_definition; --> struct + movie_definition; + * server/swf/TagLoaderTable.h: class movie_definition; --> struct + movie_definition; + * server/edit_text_character_def.cpp: class movie_definition; --> + struct movie_definition; + * server/as_value.cpp: porting to WIN32 + * server/backend/gnash.cpp: getopt for WIN32 + * server/SreamProvider.cpp: porting to WIN32 + * server/System.cpp: porting to WIN32 + * server/swf/tag_loaders.cpp: pow(2,... --> pow(2.0,... + * libbase/URL.cpp: porting to WIN32 + + +2006-05-19 Sandro Santilli + + * server/Makefile.am, server/action.cpp, server/action.h, + server/as_environment.cpp, server/as_environment.h, + server/movie.h: put as_environment class in it's own + files. + * testsuite/libbase/.cvsignore: new file + * testsuite/misc-ming.all/.cvsignore: new file + * server/swf/tag_loaders.{cpp,h}: doxygen comments for + define_font_info_loader(). + * server/font.{cpp,h}: doxygen comments. + * testsuite/misc-ming.all/Makefile.am, + testsuite/misc-ming.all/defineedittext.c: + added test for DefineEditText tag (gnash crashes) + +2006-05-18 Sandro Santilli + + * testsuite/misc-ming.all/definebitsjpeg2.c: added copyright + header + * testsuite/misc-ming.all/moviecliploader_test.c: added + copyright header + * Makefile.am, configure.ac, macros/firefox.m4: + moved handling of --enable-plugin from firefox macro + to top-level configure so you can disable build in + the plugin/ dir (--disable-plugin didn't work). + * server/edit_text_character_def.h, server/edit_text_character.cpp + edit_text_character_def made a real class, ensuring data + members are never changed. Type of variables holding twips + values changed from float to uint16_t (a definition is immutable + anyway, and we read uint16_t from the stream) + * server/edit_text_character.h, server/edit_text_character_def.cpp: + updated to use edit_text_character_def interface (no more + direct members access). Added a private 'font' member to allow + for replacement of it from ActionScript code (not sure this + is required). + * server/text.cpp, server/text.h: changed text_style::m_font + member to be a const pointer. + * server/StreamProvider.cpp: fixed compiler warning + in absence of libcurl. + * server/Makefile.am, server/edit_text_character.cpp + server/edit_text_character.h, server/edit_text_character_def.cpp, + server/edit_text_character_def.h, server/text.h, + server/swf/tag_loaders.cpp: extracted edit_text_character + class from text.h. + * server/generic_character.h: struct => class, headers + inclusion streamlined. + * server/Makefile.am, server/edit_text_character_def.cpp, + server/edit_text_character_def.h, server/text.cpp, + server/text.h: moved edit_text_character_def class and + implementation in its own file. + * server/textformat.cpp: fixed compiler warnings + +2006-05-18 Patrice Dumas + + * doc/omf.make: don't use DESTDIR for scrollkeeper-update cache + directory, such that scrollkeeper-update fails if not run at + root, instead of creating directories that are left over when + doing staged install. + * doc/C/Makefile.am: add - in front of the install-info version + test to ignore errors. + +2006-05-17 Bastiaan Jacques + + * backend/gnash.cpp: Create the OpenGL render handler only after + OpenGL has been initialised. + +2006-05-17 Sandro Santilli + + * server/StreamProvider.cpp: added temporary support for + prompting user about Grant/Bock of URL accesses. If input + is not a terminal default to allow from all. + * backend/gtksup.h: fixed preprocessor instructions comments + * gui/gnash.cpp: fixed handling of -h flag (force exit + after printing usage string); added comments to + removal of file_opener stuff. + * gui/Makefile.am: use new USE_GUI_* conditionals + to avoid references to unrequested dependencies. + Move KDE deps to klash_LDFLAGS (from AM_LDFLAGS) + * configure.ac: fixed handling of --enable-gui switch, + added AM_CONDITIONALs USE_GUI_ + * server/xml.cpp: fixed compiler warnings. + +2006-05-16 Bastiaan Jacques + + * gui/gnash.cpp: Update to recent API changes. + +2006-05-16 Bastiaan Jacques + + * macros/gtkglext.m4: Prepend only one -I per added include dir. + +2006-05-16 Bastiaan Jacques + + * backend/gnash.cpp, gui/{gtk_glue_gtkglext,kde_glue_opengl}.cpp: + Remove OpenGL initialisation code. + * backend/render_handler_opengl.cpp: Add OpenGL initialisation code + into create_render_handler_ogl(). + * server/gnash.h, backend/render_handler_cairo.cpp: Modify + create_render_handler_cairo() to accept an argument which is the Cairo + handle to which the renderer will draw. + * backend/gnash.cpp: Remove the hacky cairo binding. If you + want to try the Cairo backend, use the GUI library in gui/. + +2006-05-16 Sandro Santilli + + * server/action.cpp: use GUI_GTK rather then HAVE_GTK2 + * macros/gtk2.m4: fixed ac_cv_path_gtk2_incl setting to + always include -I, compute ${version} even when + --with-gtk2-incl is used (needed to find gdkconfig.h). + +2006-05-16 Rob Savoye + + * macros/glib.m4: Look for the config file the brute force + way. + * macros/gtk2.m4: Look for the config file the brute force + way. + * macros/gtkglext.m4: Look for the config file the brute force + way. + * macros/opengl.m4: Look in /usr/lib*/opengl/xorg-x11/lib for + libGL. + +2006-05-16 Sandro Santilli + + * backend/gnash.cpp, server/gnash.h, + server/Makefile.am, server/StreamProvider.cpp, + server/StreamProvider.h, server/impl.cpp, + utilities/processor.cpp: removed register_file_opener_callback() + global call, added gnash::globals namespace with streamProvider + default instance for the new StreamProvider class. + * gui/sdlsup.h: don't attempt at including cairo.h + if not using cairo rendered. + * server/swf/ASHandlers.cpp: fixed compiler + warnings, print value of failed target for + callMethod tags. + * server/MovieClipLoader.cpp, server/gnash.h, + server/impl.cpp: create_movie() split to + create_swf_movie() and create_jpeg_movie(). + The former will call one of the latters based + on input stream magic number. + * server/MovieClipLoader.cpp: fixed relative url resolution + to use target's parent url, not target url. + * server/gnash.h, server/impl.cpp: changed definition + of file_opener_callback, create_movie and + create_library_movie to take an URL parameter. + * server/swf/tag_loaders.cpp, server/MovieClipLoader.cpp, + server/action.cpp: updated to use new signatures of + movie loaders. + * backend/gnash.cpp, utilities/processor.cpp: + updated file_opener signature, use curl_adapter + when available. + * server/movie_def_impl.{h,cpp}: changed + read() method to return bool (false on error) + +2006-05-15 Sandro Santilli + + * server/as_object.cpp: fixed compiler warnings. + * libbase/: GnashException.h, Error.h, curl_adapter.cpp, + URL.cpp: renamed gnash::Error to gnash::GnashException + ( we already had an Error class, modeling an ActionScript + object ) + * libbase/URL.cpp: throw gnash::Error on error. + * libbase/: Makefile.am, Error.h, curl_adapter.cpp: + moved Error class to own file, and in gnash namespace. + * server/: Makefile.am, as_value.cpp, action.cpp: + moved as_value class implementation from action.cpp + to as_value.cpp. + * libbase/URL.{cpp,h}: refactored path normalization procedure + to split path in components, remove unneeded ones and + resolve back-references, removed all uses of + * testsuite/libbase/URLTest.cpp: added check.as-like macros, + new tests for path normalization, changed expected paths + for 'file' urls to always start with three slashes (file:///) + +2006-05-14 Rob Savoye + + * libbase/Makefile.am: Remove OPENGL_LIBS from _LIBADD, it causes + OpenGL to hang on my Ubuntu system. + * libbase/log.cpp: Add hexify() for printing numbers. Trap '\n' + when coming in from log_msg() and convert to std::endl. + * libbase/log.h: Add hexify(). + * server/Makefile.am: Add swf/ASHandlers to libgnashserver. + * server/action.cpp: Remove old switch table for processing + opcodes and use ASHandlers instead. + * server/swf/tag_loaders.cpp: Add dbglogfile instead of + log_msg(). + * server/swf/ASHandlers.cpp, ASHandlers.cpp: New file for SWF + opcode handlers. These used to be part of action.cpp. + +2006-05-14 Sandro Santilli + + * libbase/URL.{cpp,h}: handling of relative paths containing + "../" components, handling of CWD-relative paths. + * testsuite/libbase/URLTest.cpp: tests for "../" + components in relative paths. + +2006-05-13 Stefan Schweizer + + * libbase/Makefile.am: add CURL_LIBS and OPENGL_LIBS + to libbase/Makefile.am, where it belongs. + +2006-05-13 Sandro Santilli + + * configure.ac, testsuite/Makefile.am, + testsuite/libbase/Makefile.am, + testsuite/libbase/URLTest.cpp, + testsuite/libbase/CurlStreamTest.cpp: unit + testing for curl_adapter and URL class. + * libbase/Makefile.am: add URL.{cpp,h} files + * libbase/URL.{cpp,h}: initial implementation of + an URL class. + +2006-05-12 Sandro Santilli + + * utililites/Makefile.am, backend/Makefile.am: add CURL_LIBS. + * libbase/Makefile.am: curl_adapter build. + * Makefile.am: CURL config dump. + * macros/curl.m4: libcurl detection macro. + * libbase/curl_adapter.cpp, libbase/curl_adapter.h: initial + implementation of a libcurl adapter for tu_file. + +2006-05-12 Rob Savoye + + * configure.ac: Enable conditional for KDE. + * gui/gnash.cpp: Reduce delay to 300 ms. + * gui/gtk.cpp: Add support for configure event, so we can resize + the viewport. + * gui/gtk_glue_gtkglext.cpp: Unreference _glconfig and glcontext + so Firefox doesn't crash. + * gui/gtksup.h: Add unrealize event, remove resizeWindow. + * gui/gui.cpp, gui/gui.h: Add method to resize the viewport. + * gui/kde.cpp: Use setGeometry() instead of resize(). Handle the + resize event, and mouse events. + * gui/kde_glue_opengl.cpp: Set the view so it's oriented + correctly. + * gui/kdesup.h: Add mouse event handlers. + * gui/sdl.cpp, gui/sdlsup.h: Remove resizeWindow(). + * server/impl.cpp: Don't assert, return NULL if not initilized so + we can use this to check the state. + + * gui/kde.cpp: New file for KDE support. + * gui/kde_glue.h: New file for KDE support. + * gui/kde_glue_opengl.cpp: New file for KDE support. + * gui/kde_glue_opengl.h: New file for KDE support. + * gui/kdesup.h: New file for KDE support. + * gui/Makefile.am: Add support for Klash and KDE. + * gui/gnash.cpp: Add support for building with KDE support. + * gui/gtk.cpp: Use Gui class methods for movie control instead of + having the code here. + * gui/gtksup.h: run() now takes an argument. + * gui/gui.cpp: Include movie_definition. Add methods for movie + control. Move advance_movie() from gnash.cpp to here. + * gui/gui.h: Add non virtual init() and createWindow(). Add static + methods for movie control. + * gui/sdl.cpp: run() now takes an argument. + * gui/sdlsup.h: run() now takes an argument. + + * macros/glib.m4: Look for the internal config file in the lib dir + in addition to the regular headers. + * macros/gtk2.m4: Look for the internal config file in the lib dir + in addition to the regular headers. + * macros/gtkglext.m4: Look for the internal config file in the lib + dir in addition to the regular headers. + + * configure.ac: Print a warning, not an error if Cairo or + SDL_Mixer aren't installed. For bug #16560. + * gui/*: Update to latest version of the Mozilla exemption. + + * configure.ac: Use AC_CONFIG_SRCDIR, and add the version number + to AC_INIT. Define conditional for KDE. Add partial support to use + kde and fltk as configure options to --enable-gui. Comment out + visibility-inlines-hidden as it's unstable on some platforms. + * macros/kde.m4: Define variables for conditional if KDE is + installed. + * plugin/klash/klash.cpp: Add code to replace SDL_GetTicks() so we + don't have an SDL dependancy still. + * server/Makefile.am: Don't have $OPENGL_LIBS in + libgnashserver_la_LIBADD for now, for some reason it makes the + executable not ever render an image if installed. + +2006-05-12 Bastiaan Jacques + + * configure.ac: Use GTK as the default GUI. + * gui/gtk_glue.h, gui/gtk_glue_cairo.{cpp,h}, + gui/gtk_glue_gtkglext.{cpp,h}: Introduce an abstraction class + for Gtkglext and "GtkCairo" which connect (glue) GTK to the OpenGL + and Cairo renderers, respectively. + * gui/Makefile.am: Build the appropriate glue. + * gui/README: Deprecate the SDL-based Firefox plugin. + * gui/{gnash.cpp,gui.h,sdl.cpp}: No longer handle the OpenGL LOD bias + parameter. It is now handled in the glue class. + * gui/{gtk.cpp,gtksup.h}: Migrate to the new glue. + * gui/gui.h: No longer handle the OpenGL LOD bias parameter. + * gui/sdl.cpp: Scale mouse event coordinates according to the movie + scale. + +2006-05-11 Stefan Schweizer + + * libbase/Makefile.am, server/Makefile.am, plugin/klash/Makefile.am: + Link needed libraries which are needed to link with --as-needed. + +2006-05-11 Sandro Santilli + + * server/sprite_instance.cpp: removed compiler warnings. + * server/movie_def_impl.h: improved doc of + the read() method. + * configure.ac: added --enable-gui switch, + defined GUI_SDL or GUI_GTK + * backend/gnash.cpp: make ue of GUI_* defines rather + then HAVE_GTK2 ones (you can have GTK2 and still want + SDL gui). + * gui/gnash.cpp: don't realy on HAVE_* defines to + set GUI_* ones, but use GUI_* defines from config.h + +2006-05-10 Bastiaan Jacques + + * gui/gtk_cairo_create.h: Introduce an implementation for + gdk_cairo_create() when it's not available. + * gui/gtk.cpp: Include gtk_cairo_create.h for GTK < 2.8. + +2006-05-10 Sandro Santilli + + * gui/DESIGN: a few design notes about the new gui efforts + * macros/gtkglext.m4: fix AC_DEFINE macros to include a value + * configure.ac: don't complain about missing CAIRO when not required + * gui/gtk.cpp: include cairo.h if RENDERER_CAIRO is defined + * gui/gtksup.h: include cairo.h if RENDERER_CAIRO is defined + * macros/cairo.m4: search cairo dev files even if plugin is disabled + * macros/gtk2.m4: fixed handling of --with-gtk2-lib, fixed AC_DEFINE + call to actually give a value to HAVE_GTK2 define (some code in + backend/gnash.cpp would fail otherwise - #ifndef HAVE_GTK2 namely) + +2006-05-10 Bastiaan Jacques + + * gui/gnash.cpp: Remove unused includes and do small cleanups. + * gui/{gtk.cpp,gtksup.h}: Only compile OpenGL code if we have OpenGL. + * gui/gui.cpp: Remove unused includes. + +2006-05-10 Bastiaan Jacques + + * configure.ac: SDL is not a backend, so don't pretend it is one. + * configure.ac, macros/{atk,glib.gtk2,pango}.m4: We still want to know + if these packages are available if gtkglext isn't, so remove the + gtkglext checks, and fix the indentation to match. + +2006-05-10 Bastiaan Jacques + + * server/swf/tag_loaders.cpp: Struct swf_event is declared in namespace + gnash, not gnash::SWF::tag_loaders; move the implementation into + namespace gnash. + +2006-05-09 Sandro Santilli + + * testsuite/misc-ming.all/moviecliploader_test.c, + testsuite/misc-ming.all/Makefile.am: + moviecliploader_test fixed to build using the new media dir + and to test both relative and absolute url, both jpeg + and swf medias. + * testsuite/media/green.swf, testsuite/media/lynch.swf, + testsuite/media/offspring.swf: added definejpeg2 swf + versions of the corresponding jpeg files. + * testsuite/misc-ming.all/definebits_jpeg2.c, + testsuite/misc-ming.all/Makefile.am: + use argument to definebits_jpeg2 to find jpeg. + * testsuite/media: new dir for storing media files, moved + jpegs from actionscript.all to this new dir + * server/movie_definition.h: added get_url() virtual method + * server/movie_def_impl.cpp, server/movie_def_impl.h: + implemented get_url() method, added url argument to the + read() method. + * server/sprite_definition.h, server/sprite_instance.cpp: + implemented get_url() method. + * server/impl.cpp: updated movie_def_impl constructions to + pass the url method. + * server/xmlattrs.h: fixed compiler warning about %p format used + for non-void pointer. + * libbase/zlib_adapter.h: doxygen comments + * server/stream.h, server/stream.cpp: doxygen comments + * server/sprite_definition.h, server/sprite_definition.cpp, + server/impl.cpp: modified sprite_definition constructor to + automatically read the SWF stream. + * server/swf: new swf directory for SWF parsing related classes. + * server/swf/TagLoadersTable.{h,cpp}: new class modeling a + table of tag loaders. + * server/swf/tag_loaders.{h,cpp}: tag loaders extracted + from impl.cpp file and grouped into the swf namespace. + * server/impl.cpp: (define_shape_loader) symbolic names for + tag types + * server/movie_def_impl.cpp, server/movie_def_impl.h: + new CharacterDictionary class. + * server/movie_definition.h: updated doxygen comments. + * server/sprite_definition.h: update doxygen comments. + * configure.ac: added misc-ming.all directory's Makefile; + fixed name of debian package for gtk2 (libgtk2-dev => libgtk2.0-dev) + * testsuite/Makefile.am: added misc-ming.all subdir, + * testsuite/actionscript.all/Makefile.am: Removed ming-generated + binaries rules (moved to misc-ming.all) + * testsuite/misc-ming.all: new test directory for ming-generated + test files. + +2006-05-09 Bastiaan Jacques + + * configure.ac: Compile with -fvisibility-inlines-hidden, if we're + using gcc-4 or newer. + +2006-05-09 Bastiaan Jacques + + * gui/gnash.cpp: Use the GTK backend by default; if GTK isn't + available, fall back to SDL. + * gui/{gtk.cpp,sdl.cpp}: Fix includes to match recent filename + changes. + +2006-05-08 Bastiaan Jacques + + * configure.ac: Build with -ansi by default. + * libbase/tu_types.h: No longer depend on SDL for the endianness + macros. + * all over the place: Switch to the int types from inttypes.h rather + than SDL.h. This will allow us to remove the dependency on SDL when + sound is disabled and a frontend for Gnash other than SDL is used. + +2006-05-08 Sandro Santilli + + * server/as_value.h, server/button.h, server/impl.cpp, + backend/render_handler_ogl.cpp: + removed commas at end of enums (for -ansi) + +2006-05-08 Bastiaan Jacques + + * libbase/tu_types.h: Use [u]int64_t rather than SDL 64-bit types. + * all over the place: Use s[u]int64 (typedef'ed to [u]int64_t) + rather than SDL 64-bit types. We can now compile with -ansi. + +2006-05-08 Sandro Santilli + + * server/ASSound.h, server/Global.cpp, server/Global.h, + server/Key.h, server/Makefile.am, server/Object.cpp, + server/Object.h, server/action.cpp, server/action.h, + server/as_member.h, server/as_object.cpp, server/as_object.h, + server/as_prop_flags.h, server/as_value.h, server/gnash.h, + server/movie_interface.h, server/ref_counted.h, + server/textformat.cpp, server/textformat.h, server/types.cpp: + + * server/bitmap_character_def.h, server/character.cpp, + server/character_def.h, server/character.h, + server/generic_character.h, server/movie.h, server/ref_counted.h, + server/resource.h, server/shape_character_def.cpp, + server/shape_character_def.h, server/as_object.h, server/button.h, + server/character_def.h, server/font.cpp, server/fontlib.cpp, + server/gnash.h, server/impl.cpp, server/impl.h, + server/Makefile.am, server/morph2.cpp, server/morph2.h, + server/movie_def_impl.cpp, server/movie_def_impl.h, + server/Object.h, server/shape.cpp, server/shape.h, + server/styles.h, server/tesselate.h, server/text.cpp: + new class files for as_member, as_object, as_prop_flags, + as_value, character, shape_character_def, movie. + +2006-05-07 Bernhard Rosenkraenzer + + * plugin/klash/klash.cpp: include movie_definition.h + instead of Movie.h + +2006-05-07 Bastiaan Jacques + + * gui/sdl.cpp, gui/sdlsup.h: implement an SDL frontend. Implemented + backends are Cairo and OpenGL. + * gui/gtk.cpp, gui/gtksup.h: shuffle some code around, integrate + better with Gui class. Make event handlers work. + * gui/Makefile.am: Enable the SDL frontend. + * gui/gnash.cpp: Implement the remaining features from the old + gnash.cpp; make the commandline options work. + * gui/gui.cpp, gui/gui.h: Add some needed variables and methods. Do + some cleanup. + +2006-05-07 Sandro Santilli + + * server/Makefile.am, server/Object.h, + server/bitmap_character_def.h, server/button.h, + server/character_def.h, server/generic_character.h, + server/gnash.h, server/impl.cpp, server/impl.h, server/morph2.cpp, + server/movie_def_impl.cpp, server/movie_def_impl.h, + server/ref_counted.h, server/resource.h, server/shape.cpp, + server/shape.h, server/styles.h: new class files for + bitmap_character_def, character_def, generic_character, + ref_counted and resource + * renamed Movie.{h,cpp} to MovieClip.{h,cpp} + * server/Makefile.am, server/Movie.cpp, server/Movie.h, + server/Sprite.cpp, server/Sprite.h, + server/impl.cpp, server/impl.h, + server/sprite_definition.cpp, server/sprite_definition.h, + server/sprite_instance.cpp, server/sprite_instance.h, + backend/gnash.cpp, server/ASSound.cpp, server/Global.cpp, + server/MovieClipLoader.cpp, server/action.cpp, server/button.cpp, + server/font.cpp, server/fontlib.cpp, server/gnash.h, + server/morph2.cpp, server/movie_def_impl.cpp, + server/movie_def_impl.h, server/movie_definition.h, + server/movie_interface.h, server/movie_root.cpp, + server/movie_root.h, server/sound.cpp, server/styles.cpp, + server/text.cpp, utilities/processor.cpp: + sprite_instance and sprite_definition are now real classes + and are defined in their own files, named after the class + themselves, same split for Movie.h file. + +2006-05-05 Rob Savoye + + * plugin/plugin.cpp: Don't compare supportsXEmbed to PR_TRUE. + * packaging/redhat/gnash.spec: Make a gnash-klash package instead + of just klash. + * README: Update version number and date. + +2006-05-04 Sandro Santilli + + * server/MovieClipLoader.cpp: cleanly handle + attempts to load an external jpeg (complain + rather then crash - see bug #15762 + +2006-05-03 Sandro Santilli + + * configure.in: accept OpenGL and Cairo args to + --enable-renderer, as advertised in the help string. + Print selected renderer in summary. Fixed a couple + of typos. + +2006-05-04 Bastiaan Jacques + + * gui: Add a very initial implementation of the frontend (gui) + library, which has a replacement for backend/gnash.cpp. The gui + subdirectory has not yet been enabled. + +2006-05-03 Tomas Groth Christensen + + * server/Makefile.am: Compile ASSound.{cpp,h} instead of Sound.{cpp,h} + +2006-05-03 Patrice Dumas + + * doc/C/Makefile.am: use $< instead of gnash.info for for + install such that gnash.info from srcdir may be used; replace + /sbin/install-info by install-info everywhere + * plugin/player.h: distribute player.h + +2006-05-03 Sandro Santilli + + * server/array.cpp: removed compiler warnings + * server/: Sound.cpp => ASSound.cpp, Sound.h => ASSound.h + +2006-05-02 Bastiaan Jacques + + * configure.ac: Add --enable-renderer={opengl,cairo}. + * backend/Makefile.am, backend/gnash.cpp, server/gnash.h: + Compile and use Cairo if requested. + +2006-05-02 Timothy Lee + + * render_handler_cairo.cpp: Initial Cairo renderer backend + implementation. + +2006-04-30 Bastiaan Jacques + + * backend/gnash.cpp: Use the right signal name. + +2006-04-29 Bastiaan Jacques + + * backend/{gnash.cpp,gtksup.cpp,gtksup.h}: Add a gtkgl + unrealize_event handler which facilitates destruction of + some gdkgl objects. This fixes shutdown leaks. + +2006-04-28 Sandro Santilli + + * server/array.cpp: fixed bug in copy constructor. + * server/Function.cpp, server/Function.h: added + isBuiltin() public method and new constructor as + a better support for built-in classes (I think we + really need an abstract class and two derivates for + user defined functions and built-in classes). + * server/action.cpp: changed doActionNew to handle + construction of built-in classes. + * server/System.cpp, server/System.h, server/array.cpp, + server/array.h: ported to new built-in class construction + mechanism. Optimized and embellished as_array_object::join() + method, inspired by Bastiaan :) + +2006-04-28 Rob Savoye + + * README: Add comments about runing autogen.sh and configure for + bug #16451. + * doc/C/sources.xml: Add comments about runing autogen.sh and + configure for bug #16451. + +2006-04-27 Rob Savoye + + * configure.ac: Comment out warnings about FLTK and Xft, these are + only used by code under development for now. + * macros/jpeg.m4: Make sure the head exists, not the lib before + runing lib tests. + * utilities/Makefile.am: Add PTHREAD_LIBS. + + +2006-04-27 Bastiaan Jacques + + * server/Key.cpp: Stop using cleanup_listeners(). Use + iterators instead of array indexing for listeners. Use + C++-style rather than C-style casts. + * server/Key.h: Remove cleanup_listeners(). + +2006-04-27 Stefan Schweizer + + * plugin/klash/Makefile.am: added KDE_LDFLAGS to AM_LDFLAGS. + +2006-04-27 Sandro Santilli + + * testsuite/actionscript.all/array.as: turned length() + method calls to length data member accesses, completed + switch to check_equals() macro usage, removed .pop() calls + in macro args (would have unexpected results when macro fails). + * server/: (Function.h, Function.cpp): added new constructor + taking exported interface as argument. + * server/: (System.cpp, System.h, Global.cpp): added System + AS class registration, System.capabilities.version + implementation and scheleton for AS instanciation of it + (the latter being untested). + * doc/C/internals.xml: added note about check_equals() macro + under testing section. + * server/: (Sound.cpp, Sound.h): added missing files + * server/: (array.cpp, array.h): big cleanup, provided + overrides for get_member() and set_member() to add support + for the special 'length' element, turned array_as_object into + a real class, enabled support for class-statics. + * server/: (Object.cpp, Object.h): moved get_member + and set_member to get_member_default and set_member_default + with protected access level, provided public virtuals + invoking the protected non-virtuals. This is to allow cleaner + hooking for ActionScript classes. + +2006-04-26 Timo Lindfors + + * testsuite/actionscript.all/Boolean.as: added some + simple checks for toString() and valueOf() methods. + +2006-04-26 John Radio Gilmore + + * doc/C/sources.xml: Fix typos, update misc build info. + +2006-04-26 Sandro Santilli + + * testsuite/actionscript.all/check.as: added check_equals() + macro. + * testsuite/actionscript.all/Global.as: example usage of + the check_equals() macro. + * server/gen-files.sh: fixed escaping in sed code + * testsuite/actionscript.all/array.as: more use + of the check_equals() macro + * testsuite/actionscript.all/Makefile.am: fixed a bug + in the v8-online-tests rule + * server: Global.cpp, Global.h, Key.cpp, Key.h, + Makefile.am, Math.cpp, Math.h, action.cpp, action.h, + array.cpp, array.h: more code splitting. + +2006-04-25 Rob Savoye + + * packaging/debian/changelog: Reverse the order of entries so it + it uses the right GPG key for packages. + * packaging/debian/control: Fix cut & paste error in Depends + list. + * packaging/debian/gnash-klash.install: Add klash executable. + * server/shape.cpp: Support alternate tag value + + * plugin/klash/klash.cpp: Add player control menu for the right + mouse button. + * plugin/klash/Makefile.am: Build a MOC file for klash.cpp. + + * packaging/debian/gnash-klash.install: Add the klash executable. + * packaging/redhat/gnash.spec: Add the klash executable. + + * libbase/jpeg.cpp: Add support for grayscale jpegs. + * plugin/klash/Makefile.am: Add klash executable. + * plugin/klash/klash.cpp: Build a KDE version of the standalone + player for Konqueror. + +2006-04-25 Bastiaan Jacques + + * libbase/smart_ptr.h: Introduce noref_ptr, a smart pointer without + reference counting. + +2006-04-24 Rob Savoye + + * All GPL'd files: Update Mozilla copyright exemption to the + latest version. + +2006-04-24 Timothy Lee + + * libbase/image.cpp: Remove read_swf_jpeg2(), it's unnecessary now + that read_jpeg() reads multiple headers. + * libbase/jpeg.cpp: Read a jpeg with with multiple headers + correctly. + * server/impl.cpp: Call read_jpeg() instead of read_swf_jpeg2(). + +2006-04-23 Bastiaan Jacques + + * server/Movie.cpp, server/Movie.h, server/Object.h, + server/font.h, server/morph2.h, server/shape.h, + server/stream.h, server/styles.h: Switch structs to classes. + +2006-04-23 Bastiaan Jacques + + * server/Movie.h: make movie_def_impl a friend of import_info. + * server/Movie.cpp: adjust the users of import_info to match + changes to Movie.h. + +2006-04-22 Rob Savoye + + * doc/omf.make: Rename omf-hook to be more consistant. + * doc/xmldocs.make: Set enable-ghelp and enable-docbook together. + * doc/C/Makefile.am: Use /sbin/install-info. Don't try to run + install-info if it doesn't exist. + * packaging/redhat/gnash.spec: Remove the info/dir file. + + * macros/atk.m4: Look for libraries in /usr/X11R6/lib, and headers + in /usr/X11R6/include. + * macros/gtk2.m4: Look for libraries in /usr/X11R6/lib, and + headers in /usr/X11R6/include. + * macros/gtkglext.m4: Look for libraries in /usr/X11R6/lib. + * macros/pango.m4: Look for libraries in /usr/X11R6/lib. + + * macros/fltk.m4: Look in X11R6 for headers. + * macros/gtkglext.m4: Look in X11R6 for headers. + * macros/pango.m4: Look in X11R6 for headers. + * macros/sdl.m4: Find SDL on FreeBSD where vesion SDL11 is used + instead of SDL-1.1. + +2006-04-22 Bastiaan Jacques + + * server/Movie.h: Make the import_info struct a proper class. + * server/Movie.cpp: Adjust the users of import_info to match + changes to Movie.h. + +2006-04-21 Rob Savoye + + * packaging/redhat/gnash.spec: Install the dir file so the rpm + builds. + + * doc/C/Makefile.am: Handle the different options the different + versions of install-info support. + + * doc/C/Makefile.am: Create the info dir if it doesn't exist. + * packaging/debian/changelog: Add new entry and up the version. + * packaging/redhat/gnash.spec: Up the minor version. Install the + info file. + + * packaging/debian/rules: Don't attempt to apply a patch that + doesn't exist. Install the info file. + * packaging/redhat/gnash.spec: Install the info file too. + * plugin/Makefile.am: Add npplat.h to the dist target. + * plugin/plugin.cpp: Don't include player.h, it's unused these + days. + + * doc/xmldocs.make: Add the hook for installing and uninstalling + the info file. + * doc/C/Makefile.am: Install the info file. + +2006-04-20 Rob Savoye + + * server/font.cpp: Delete the pointer the proper way. + * doc/C/gnash-man.xml: Add the -j and -k options to the man page. + + * README: Clarify that no event handling means mouse clicks don't + work with the SDL version of the plugin. + * doc/C/internals.xml: Clarify that no event handling means mouse + clicks don't work with the SDL version of the plugin. + * doc/C/plugin.xml: Clarify that no event handling means mouse + clicks don't work with the SDL version of the plugin. + + * libbase/triangulate_impl.h: Use the z modifier when printing a + size_t. + * plugin/plugin.cpp: Define start and end as a size_t, not an + unsigned int. + + * configure.ac: Add FLTK. Don't create mozilla-sdk/Makefile. + * Makefile.am: Add a dumpconfig target to see what configure + found. + * macros/fltk.m4: New configure tests for FLTK toolkit. + * packaging/redhat/gnash.spec: Don't build libmozsdk, it's now + part of the plguin. + * plugin/Makefile.am: Build the sources in mozilla-sdk as part of + the plugin, rather than as an additional shared library. + * server/array.cpp: Use the z modifier when printing a size_t. + * server/button.cpp: Use the z modifier when printing a size_t. + * server/fontlib.cpp: Use the z modifier when printing a size_t. + * server/shm.cpp: Use the z modifier when printing a size_t. + * server/xmlnode.cpp: Use the z modifier when printing a size_t. + * server/sound_handler_mp3.cpp: Remove unused variable. + +2006-04-19 Bastiaan Jacques + + * server/action.cpp: fixed compiler warnings. + +2006-04-18 Rob Savoye + + * backend/gnash.cpp: Turn off sound by default, since it doesn't + work yet, and it grabs the sound device preventing other programs + from working. Delete the gnash-dbg.log file if we don't want it + writing to disk. Add -u option to set the root URL when navigating + web pages with frames. + +2006-04-15 Sandro Santilli + + * backend/gnash.cpp: verbose SDL_SetVideoMode() failure message. + +2006-04-11 Rob Savoye + + * configure.ac: Check for a SDL, SDL_Mixer, and Gstreamer based on + whether the library exists, not the headers. Comment out Gstreamer + warning for now, it's not used anyway. + * macros/gstreamer.m4: Remove extraneous setting of + ac_cv_path_gstreamer_incl. Remove extraneous MSG_RESULT. + * macros/gtk2.m4: Remove extraneous setting of + ac_cv_path_gtk2_incl. Check for the versioned directory before the + unversioned directory. + * macros/gtkglext.m4: Remove extraneous setting of + ac_cv_path_glext_incl. Remove extraneous MSG_RESULT. + * macros/pango.m4: Always add the library name if we have a legit + path. + * macros/sdl.m4: Remove extraneous MSG_RESULTs. + * server/action.cpp: Tweak the test for getURL() to include https + as well as http. + +2006-04-10 Sandro Santilli + + * server/action.cpp: fix compiler error in as_global_parseint() + +2006-04-10 Rob Savoye + + * server/action.cpp: It the url for getUrl() starts with a + "http:", then remotely tell firefox to load the page. + +2006-04-09 Rob Savoye + + * plugin/klash/klash_part.cpp: Use the new options to set the + window size of the browser window correctly. + * server/NetConnection.cpp: Catch trying to access a URL that is + set to "null", instead of zero. + * packaging/debian/gnash-klash.install: Add klash_part.desktop to + the package. + * packaging/debian/control: Add more dependancies. + * doc/C/gnash-C.omf: Install in "Sound and Video" instead of + Multimedia. + +2006-04-07 Rob Savoye + + * packaging/debian/: Add packaging files. + + * macros/kde.m4: Also look for QT with qt-3.3 as well as qt3. + * README: minor typo corrections. + * packaging/redhat/gnash.spec: Build klash, add additional + dependancies, and tweak till it works. + +2006-04-07 Patrice Dumas + + * macros/ghelp.m4: Don't warn if the user doing ./configure + isn't root. + * doc/omf.make, doc/xmldocs.make, doc/C/Makefile.am: use '-hook' + targets for omf files installation, and '-local' targets for xml + files installation. Remove intermediate useless targets. If ghelp + isn't enabled, disable only the omf files installation. Remove + the @ in front of make rules. + +2006-04-06 Rob Savoye + + * backend/gnash.cpp: Make width and height global variables. + * backend/gtksup.cpp: Reset the width and height global variables + when we get a configure event, as the window has been resized. + +2006-04-05 Rob Savoye + + * configure.ac: Fix --disable-xml option. + * macros/firefox.m4: Don't use the mozilla or firefox config + script to get the path to install the plugin. Check the users + home directory and install there in the plugins directory. + * macros/libXML.m4: Don't do anything if XML support is disabled. + * macros/opengl.m4: Adjust how the libray path gets set so we + don't wind up with a path with no -L option. + +2006-04-04 Rob Savoye + + * backend/Makefile.am: Don't use ../backend in the path to + libgnashbackend.la, as it causes problems with parallel + builds using -j. + + * macros/libXML.m4: Don't configure XML if it's disabled. + +2006-04-04 John Gilmore + + * README: Add more basic information. Thank contributors. + * server/{xmlsocket.cpp, MovieClipLoader.cpp, Sprite.cpp, + network.cpp, shape.cpp}: Lint. + * backend/gnash.cpp: Revise --version and --help for GNU Coding + Standards. + * plugin/player.cpp: Lint. + * plugin/plugin.cpp: Describe the plugin more fully. It's the + GNU Flash Player. Add copyright notice, version number, more + links. + +2006-04-04 Rob Savoye + + * backend/gnash.cpp: Add -j and -k options to set the width and + height of the window. This is used only by the plugin. Uncomment + gtk_plug() code, it works now! If the window ID is set, don't set + the window size again. + * plugin/plugin.cpp: Always return the value when Mozilla + asks. Add -j and -k options to set the window size for the player + instead of letting it default to the movie size. + * libbase/image_filters.cpp: Add struct name to eliminate + warning. + * macros/gstreamer.m4: Change where the -I and -L gets added. + * macros/opengl.m4: Change where the -I and -L gets added. + * plugin/mozilla-sdk/pluginbase.h: Add a destructor to eliminate + warnings. + * testsuite/actionscript.all/Makefile.am: Add the test case source + files to the distribution tarball. Include the generated swf + movies so people don't need Ming installed to have "make check" + work. + +2006-04-02 Rob Savoye + + * gnash/Makefile.am: Move libamf to DIST_SUBDIRS, since it's not + really used yet anyway. Tweak the path for building deb and rpm + files. + * doc/C/Makefile.am: Don't error out if Makeinfo has problems. + +2006-04-02 Rob Savoye + + * doc/C/gnash-man.xml: Add the -x and -w options. + * doc/C/gnash.xml: Rewrite overview and intro chapter. + + * doc/C/gnash.xml: Add a constant for the opcodes chapter. Add -w + option to list of command line options. + * doc/C/sources.xml: Add new dependancies, gtkglext, atk, pango, + cairo, glib, gtk2, gstreamer 0.10, and kde. Update plugin + section. Add all the new configure options of the last few + months. + * doc/C/internals.xml: Change the names of the libraries to match + current versions. Add asobjs, plugin, and klash libraries. Update + plugin section. Add info about GUI toolkit usage. Add section on + Klash. + * doc/C/opcodes.xml: New chapter on opcodes that lists what's + still unimplemented. + * doc/C/localconnection.xml: Update text. Add section about AMF. + * doc/C/plugin.xml: Add section on plugin event handling. + * libbase/Makefile.am: Optionally compile the demo. + * libbase/demo.cpp: Add the demo namespace and open ogl. + +2006-03-31 Rob Savoye + + * macros/atk.m4: Fix finding the proper path with the version + number. + * macros/glib.m4: Fix finding the proper path with the version + number. + * macros/pango.m4: Fix finding the proper path with the version + number. + + * Makefile.am: Add libamf and plugin to STD_DIRS. + * configure.ac: Call KDE_SET_PREFIX to set KDECONFIG. + * doc/C/Makefile.am: Change the invocation of db2_teximl for + version 0.8.5. Also change the file name the gets renmoved, so + make it part of the conditional test. + * macros/kde.m4: Fix KDE_SET_PREFIX to not trash the value of + $prefix. + * plugin/klash/Makefile.am: Fix how the moc file gets built and as + a dependancy. + * plugin/mozilla-sdk/Makefile.am: Add all the headers to + noinst_HEADERS so makedistcheck works. + +2006-03-30 Rob Savoye + + * plugin/Makefile.am: Pass in the prefix as a constant so we can + use it to find the Gnash executable from within the plugin. + * gnash.cpp: For now, ignore command line arguments with a equal + sign in them. + * plugin/plugin.cpp: Build the argv array correctly so we don't + core dump Firefox. Use a GNASH_PLAYER environment variable, or the + configured exec_prefix to find the gnash executable to fork. + * plugin/plugin.h: Also store the childpid and the process name. + * configure.ac: Add options to toggle between forking the + standalone player and using a thread. + +2006-03-30 Petter Reinholdtsen + + * libamf/Makefile.am: Remove -Wall, it's set in configure.ac now. + * libbase/triangulate_impl.h: Add const to some type casting. + * libbase/tu_file.cpp: Remove const from *_tell_func API. + * libbase/tu_file.h: Remove const from *_tell_func API. + * libbase/tu_file_SDL.cpp: Remove const from *_tell_func API. + * libbase/zlib_adapter.cpp: Remove const from *_tell_func API. + * libgeometry/geometry.h: Swap static and const, they're in the + wrong order. + * libgeometry/kd_tree_packed.cpp: Use unsigned interger to compare + to the result from size() for an STL container. + * server/Makefile.am: Remove -Wall, it's set in configure.ac now. + * server/action.cpp: Add const to definition of character + pointer. + * server/dlist.cpp: Add const when casting display_object_info. + * server/network.cpp: Return false for now if + Network::createClient is called with only the port number. + * server/shape.cpp: Use const when casting nmesh)_set. + * server/sound_handler_mp3.cpp: Use unsigned interger to compare + to the result from size() for an STL container. + * server/xml.cpp: Define the niodename before using it. + * server/xmlnode.cpp: Return NULL if we can't return an object + pointer. + * utilities/Makefile.am: Add MP3_LIB to the linker list. + +2006-03-29 Rob Savoye + + * plugin/Makefile.am: Include the backend directory in the include + paths. + * plugin/player.cpp: Nuke the SDL support and start replacing it + with GTK2. This file is currently unused as the standalone player + is used instead. + * plugin/plugin.cpp: Support GTK2 and GTKGLExt if they exist for + the plugin. Fork the plugin instead of using a thread. Enable + XEmbed. + * plugin/plugin.h: XSync after setting the context. + * plugin/klash/Makefile.am: Move klash_part.moc to _SOURCES. + * plugin/mozilla-sdk/Makefile.am: We don't need the FIREFOX_DEFS + now. + +2006-03-29 Rob Savoye + + * configure.ac: Add --enable-lotsa-warnings, to turn on many more + warning messages. By default only -Wall is used when using + GCC. Based on a patch by Petter Reinholdtsen + +2006-03-28 Rob Savoye + + * README: Add text from web site about the mailing lists, and + where to submit bug reports and patches. + * configure.ac: Use $glext instead of $plugin for GTK. + * backend/Makefile.am: Add new files gtksup.h and gtksup.cpp. + * backend/gtksup.{h,cpp}: New files for GTK menu and event support. + * backend/gnash.cpp: Use GTK2 and GtkGLExt if they exist. Use GTK + event handlers and menus. Default to SDL. + * libbase/Makefile.am: Don't both to build the demo. + * libbase/image_filters.cpp: Add debugging trace messages. + * libbase/log.{h,cpp}: Handle just a single char. + * libgeometry/Makefile.am: Add the library paths. + * macros/atk.m4: Define ac_cv_path_atk_lib correctly for when we + do find it in the list of paths. + * macros/cairo.m4: Don't do anything unless $glext is enabled. + * macros/firefox.m4: Don't do anything unless $plugin is enabled. + * macros/ghelp.m4: Move the conditional. + * macros/glib.m4: Define ac_cv_path_glib_lib correctly for when we + do find it in the list of paths. + * macros/gstreamer.m4: Add error message if only the older + gstreamer version is found. 0.10 is required. + * macros/gtk2.m4: Don't do anything unless $glext and $plugin are + enabled. Define the library names with the version or we get the + wrong one. + * macros/gtkglext.m4: Enable by default, but support --disable. + * macros/opengl.m4: Define ac_cv_path_opengl_lib correctly for when we + do find it in the list of paths. + * macros/pango.m4: Define ac_cv_path_pango_lib correctly for when we + do find it in the list of paths. + * server/shape.cpp: Reformat into GNU style. + * server/styles.cpp: Reformat into GNU style. + * utilities/Makefile.am: Add the graphics libraries. + +2006-03-20 Rob Savoye + + * doc/C/Makefile.am: Optionally use dblatex or pdfxmltex to build + PDFs if FOP doesn't exist. + * macros/docbook.m4: Also look for dblatex and pdfxmltex. + +2006-03-19 Rob Savoye + + * configure.ac, macros/gstreamer.m4: Look for Gstreamer. + +2006-03-18 Rob Savoye + + * server/Movie.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * server/Sprite.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * server/dlist.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * server/impl.h: Add GNASH_REPORT_FUNCTION to some functions. + * server/morph2.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * server/shape.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * server/text.cpp: Add GNASH_REPORT_FUNCTION to some functions. + * plugin/mozilla-sdk/include/{prcvar.h, prerr.h, prerror.h, + prinit.h, prinrval.h, prlock.h, prthread.h, prwin16.h}: New files + copied from Firefox so we can use NSPR without Firefox sources. + * backend/gnash.cpp: Add -w option to enable producing the disk + based log file, instead of enabling it by default as it can get + huge. This log is only useful to developers. This disk log *is* + produced by default when using the plugin. + * libbase/log.h: Add a log_trace() function that works like + GNASH_REPORT_FUNCTION, but also prints the pointer of the current + instance. Useful for debugging multi-threaded programs. Tracing + now always prints to the disk file, and only the terminal display + is controlled by the verbosity level. + * libbase/log.cpp: Add a log_trace() function that works like + GNASH_REPORT_FUNCTION, but also prints the pointer of the current + instance. Useful for debugging multi-threaded programs. Tracing + now always prints to the disk file, and only the terminal display + is controlled by the verbosity level. Strip the CR from messages + passed to the log_* wrapper and replace it with a endl so the + timestamps work for all the old messages too. + * server/types.cpp: Small fix to color matrix loading, /256.0 + instead of /255.0/ + * plugin/player.cpp: Use Mozilla NSPR API for mutexes, threads and + condition variables instead of SDL. For now, only play the movie + once. + * plugin/plugin.cpp: Use Mozilla NSPR API for mutexes, threads, + and condition variables instead of SDL. + * plugin/plugin.h: Use Mozilla NSPR API for mutexes, threads, and + condition variables instead of SDL. + +2006-03-18 Tomas Groth Christensen + + * backend/sound_handler_sdl.cpp: Make mp3-support depend on + HAVE_MAD_H instead of GAMESWF_MP3_SUPPORT. + * macros/docbook.m4: Include the J2REDIR enviroment variable + in the list of where java could be. + +2006-03-17 Rob Savoye + + * server/button.cpp: Clear() m_actions after resizing when + destructing a button. Bug #16105 + +2006-03-11 Rob Savoye + + * doc/C/Makefile.am: Add logging.xml. + * libbase/log.h: Only print TRACE messages at verbose level 2. Add + getVerbosity() accessor. + * server/impl.cpp: Add fixme_loader(), and set the unimplemented + tags to that so we know when we hit one. + * server/impl.h: Add prototype for fixme_loader(). + * server/text.cpp: Clean up warning message. + + * doc/C/internals.xml: Add section on the new debug logging + system. + * doc/C/logging.xml: New section on the new debug logging + system. + + * utilities/Makefile.am: Add libxml flags and libs. + * utilities/parser.cpp: Use getopt for processing command line + arguments. Reindent to project coding standards. Add GNU standard + options. Use new logging system, delete the old one. + * utilities/processor.cpp: Use getopt for processing command line + arguments. Reindent to project coding standards. Add GNU standard + options. Use new logging system, delete the old one. + * backend/gnash.cpp: Use getopt for processing command line + arguments. Add GNU standard options. Use new logging system, + delete the old one. + * libbase/tu_file.h: Reformat to be more readable. + * libbase/tu_file.cpp: Reformat to be more readable. + +2006-03-10 Rob Savoye + + * server/log.h: Moved to libbase. + * server/log.cpp: Moved to libbase. + * libbase/log.h: Add support for an STL streams based interface to + the C based API for debugging messsages. + * libbase/log.cpp: Add support for an STL streams based interface to + the C based API for debugging messsages. + * backend/gnash.cpp: Add support for new logging system, delete + old callback system. + * backend/render_handler_ogl.cpp: Cleanup some formating. + * libbase/Makefile.am: Add log.h and log.cpp. + * server/Makefile.am: Remove log.cpp and log.h. + * server/xml.cpp: Use the new debugging macros. + * utilities/Makefile.am: Add XML flags and libs. + * utilities/parser.cpp: Add support for new logging system, delete + old callback system. + * utilities/processor.cpp: Add support for new logging system, + delete old callback system. + +2006-03-08 Rob Savoye + + * configure.ac: Make using XML the default. + +2006-03-10 Rob Savoye + + * plugin/Makefile.am: Use DESTDIR when making directory. + * mkinstalldirs: Add so we have it when not using the install + utility (using libtool) to make directories. + * utilities/Makefile.am: Add ZLIB_LIBS to ldflags. + +2006-03-09 Michael Carlson + + * server/array.cpp: Add TODO to make sort constants static + * server/Date.h: Add functions convertTM, setFromTM, Normalize + (for internal use), improve comments on utility functions + * server/Date.cpp: Implement getTime, setUTC functions, fix + problem with regular Set functions, fix return values on + several functions, add comments, TODOs, asserts, and fix a typo + +2006-03-09 Rob Savoye + + * backend/Makefile.am: Add ZLIB_LIBS to LDFLAGS. + + * All GPL'd files: Updated the copyright message in all GPL'd + files with the new Mozilla exemption as crafted by the FSF. This + enables Gnash to be used in Mozilla without requiring all the + other plugins to be GPL'd. + +2006-03-09 Michael Carlson + + * server/Date.cpp: Implement all Date::getUTC functions, convert + to tab indenting, create convertUTC() for internal use, + implement a sane (but probably non-standard) Date::toString + * server/Date.h: Add Date::convertUTC function for internal use, + convert to tab indenting + +2006-03-08 Rob Savoye + + * configure.ac: Make using XML the default. + +2006-03-08 Michael Carlson + + * backend/gnash.cpp: Fix typo in and add newline to error message + Avoid infinite loop and make gnash still poll for SDL events when + libxml is not present + * server/Date.cpp: Implement Date::gettimezoneoffset, all the + basic "set" functions, cleanup messages to user a bit, rename + set() to setDate(), in accordance with two unofficial references + * server/Date.h: Add minutesEast variable to store timezone, + rename set() to setDate() + * server/array.cpp: Add some constants related to sorting + +2006-03-07 Rob Savoye + + * doc/C/plugin.xml: New file for internals on writing Mozilla + plugins. + * doc/C/internals.xml: Include new plugin section. + * doc/C/Makefile.in: Add plugin.xml to the list of doc chapters. + +2006-03-07 Rob Savoye + + * doc/C/plugin.xml: New file for internals on writing Mozilla + plugins. + * doc/C/internals.xml: Include new plugin section. + * doc/C/Makefile.in: Add plugin.xml to the list of doc chapters. + +2006-03-06 Rob Savoye + + * server/shm.cpp: Clear up ifdef mess... Both shm_open() and + shmget() use file descriptors. + +2006-03-05 Rob Savoye + + * server/Date.cpp: If we don't have gettimeofday, use + ftime instead. + * server/shm.h: Add support for win32 shared memory. + * server/shm.cpp: Add support for win32 shared memory. + * server/network.h: Add support to use winsock. + * server/network.cpp: Add support to use winsock. + * configure.ac: Add tests for sysconf(), shmget(), shmat(), + mmap(), gettimeofday(), socket(), CreateFileMapping(), and + winsock.h. This covers all the differences between mingw builds + and native unix builds. + * libbase/container.h: Don't use pthread hack for BSD whcn cross + compiling with mingw. + * libbase/utility.h: Don't define windows specific assert() + replacement when using mingw. + * libgeometry/kd_tree_dynamic.cp: Include wctype.h and wchar.h to + shut up mingw. + + * server/action.cpp (gnash): Replace isblank() with testing for + space and tab so it compiles with mingw32. + + * macros/kde.m4: Use our zlib tests, not the KDE one because the + Gnash test works when cross compiling. + +2006-03-04 Rob Savoye + + * Makefile.am: Always build the plugin now. + * configure.ac: Look for stdint, which is used by some old BSDs + that for the Mozilla header files. Arg. Don't use AC_CHECK_FUNCS + for finite and isfinite, try to compile code. On some systems + these are functions, and on some they're constants, so this covers + both cases to return a meaningful result. We always build the + plugin now, so having firefox-config isn't a failure anymore. + * libbase/dlmalloc.h: Move USE_DL_MALLOC ifdef up a few lines. + * macros/firefox.m4: Add new macro to replace the old one, which + is renamed. Turns out none of the flags from mozill-config are + needed, so only find the path to install the plugin. + * macros/kde.m4: Turn more errors into notices so the build + doesn't stop if KDE parts aren't installed. We only want to use + them if building klash. Optionally skip some tests if klash isn';t + installed. Otherwise they get set if they're installed even if + you aren't building klash. + * plugin/Makefile.am: Don't use the DEFS from firefox-config, + only MOZ_X11 is needed by the SDK. Add include path to our own + Mozilla headers. + * plugin/mozilla-sdk/Makefile.am: Add include path to our own + Mozilla headers. + * servers/Object.h: Reverse ifdef test for HAVE_FINITE so it works + even with configure errors. + * plugin/mozilla-sdk/include: Copy critical header files from + Firefox sources so you don't need the development packages + installed, nor do you need fierfox-config, which isn't included at + all in some distributions. + + * macros/docbook.m4: Patch from Pavekl Roskin , to + fix configure test error. + * macros/libXML.m4: Patch from Pavekl Roskin , to + correctly use xml2-config, instead of pkg-config. + + * plugin/player.cpp: Define NO_NSPR_10_SUPPORT so we don't have + header file typedef conflicts. We don't care about the older NSPR + 10 anyway... + +2006-03-03 Rob Savoye + + * plugin/klash: Build klash, a Gnash customized Konquerer plugin + that works similar to MozPlugger. Contributed by Koos Vriezen + . + * configure.ac: Add Klash support, which optionally invokes a + bunch of KDE tests. Add --enable-klash to build Konquerer plugin. + * macros/kde.m4: KDE config macros that seem to be a default + collection. These have been tweaked so the errors if QT or KDE + isn't found are removed. This is done later in configure.in, and + we want to build all the other code on systems without KDE. + * plugin/mozplugger: Add patch to add Gnash support to + MozPlugger. + * plugin/klash/README, klash.desktop, klash_part.cpp, + klash_part.desktop, klash_part.h, klashpartui.rc, + klashplayer.lsm, klashrc, pluginsinfo: New files from contributed + Konquer plugin (works similar to MozPlugger) + +2006-03-02 Rob Savoye + + * plugin/plugin.cpp: Always lock the display before locking X. Add + the locking to the function calls themselves, rather than wrapping + all the function calls. Add debug background thread for now. We + don't need SDL in the plugin now at all. Changes what gets setup + and when. Use a POSIX condition to signal the threads when they + have a movie to play. + * plugin.h: Add unsetGL() to unset the context. important for + threads. Add tons of silly debug messages. + * player.cpp: Extern the mutexes, and condition variables. Always + lock the display before locking X. + * macros/hashmap.m4: New configure test for hash_map extension. + * configure.as: Look for hash_map extension. Check for vsnprintf, + strcasecmp, and stricmp. + * libbase/container.h: Include config.h. Use configure support to + define template. + * libbase/container.cpp: Include config.h. Use ifdefs based on + configure tests for vsnprintf, strcasecmp, and stricmp. + * libbase/utility.cpp: Don't build anything if dmalloc isn't + enabled. + * libbase/config.h: Remove as it doesn't appear to be used, and + conflicts with the autoconf generated one. + * libbase/Makefile.am: Include files from the src server directory + too, and the top level where config.h is. Don't include the + removed config.h in the header list. + +2006-02-28 Jim Garrison + + * server/MovieClipLoader.cpp, server/Sprite.cpp, + server/action.cpp, server/array.cpp, server/text.cpp, + server/xml.cpp, server/xmlsocket.cpp: first step in migration to + std::string + +2006-02-28 Tomas Groth Christensen + + * testsuite/actionscript.all/gen-test.sh: made the test-generator + use case-sensitivity, since MM flashplayer is case sensitive. + +2006-02-28 Rob Savoye + + * configure.ac: Look for finite and isfinite. + * server/Object.h: Define finite to be isfinite if isfinite + doesn't exist. + * macros/docbook.m4: Make not needing the docbook2X tools the + default. + +2006-02-27 Jim Garrison + + * libbase/Makefile.am: removed unused files + * libbase/cschema.h: moved to Attic + * libbase/file_util.cpp: moved to Attic + * libbase/file_util.h: moved to Attic + * libbase/png_helper.cpp: moved to Attic + * libbase/png_helper.h: moved to Attic + +2006-02-27 Rob Savoye + + * plugin/player.cpp: Include Movie.h, which is where movie + definitions get defined now. Include gnash.h before other local + headers. + +2006-02-26 Jim Garrison + + * libbase/container.h: hash class is now implemented using + hash_map + * server/Movie.cpp: partial migration to hash_map API + * server/Movie.h: partial migration to hash_map API + * server/Object.cpp: partial migration to hash_map API + * server/Sprite.h: partial migration to hash_map API + * server/action.cpp: partial migration to hash_map API + * server/impl.h: partial migration to hash_map API + +2006-02-26 Sandro Santilli + + * server/action.cpp: fixed bug in doActionCallFunction making + samples/slider.swf play fine. + * server/: merged movie_definition_sub into + movie_definition. + * testsuite/actionscript.all/Makefile.am: provided + OUTPUT_VERSION define for *.swf and *.vswf rules + +2006-02-26 Rob Savoye + + * libbase/dlmalloc.h: Include stdlib.h instead of the depreciated + malloc.h. + * libbase/tu_swap.h: OpenBSD defines swap macros with the same + name as these functions, so use our implementation intead. + * macros/pthread.h: Reqwrite to handle weird NetBSD Pth versus + Pthread problem. + * macros/sdl.m4: Throw out compile test for something simpler and + more portable. + * utilities/Makefile.am: Add pthread header and library. + * server/Makefile.am: Add pthread header and library. + * backend/Makefile.am: Add pthread header and library. + * libbase/container.h: Add ugly NetBSD specific hack so it'll use + pthread, not Pth if both are installed. + * libgeometry/kd_tree_dynamic.cp: Include stdio so __sputc() is + defined on NetBSD. + +2006-02-25 Jim Garrison + + * backend/render_handler_d3d.cpp: substituted array<> with + std::vector<>. + * backend/render_handler_xbox.cpp: substituted array<> with + std::vector<>. + * libbase/container.cpp: substituted array<> with std::vector<> + * server/morph.cpp: substituted array<> with std::vector<> + * server/morph.h: substituted array<> with std::vector<> + +2006-02-25 Michael Carlson + + * server/sound_handler_mp3.cpp: Use std::vector<> instead of + array<> + +2006-02-24 Jim Garrison + + * backend/sound_handler_sdl.cpp: substituted array<> with + std::vector<> + * libbase/container.h: removed array<> definition + * libbase/grid_index.h: substituted array<> with std::vector<> + * libbase/image_filters.cpp: substituted array<> with std::vector<> + * libbase/triangulate.h: substituted array<> with std::vector<> + * libbase/triangulate_float.cpp: substituted array<> with + std::vector<> + * libbase/triangulate_impl.h: substituted array<> with + std::vector<> + * libbase/triangulate_sint32.cpp: substituted array<> with + std::vector<> + * libgeometry/kd_tree_dynamic.cpp: substituted array<> with + std::vector<> + * libgeometry/kd_tree_dynamic.h: substituted array<> with + std::vector<> + * libgeometry/tqt.h: substituted array<> with std::vector<> + * server/Function.cpp: substituted array<> with std::vector<> + * server/Function.h: substituted array<> with std::vector<> + * server/Movie.cpp: substituted array<> with std::vector<> + * server/Movie.h: substituted array<> with std::vector<> + * server/MovieClipLoader.cpp: substituted array<> with std::vector<> + * server/Sprite.cpp: substituted array<> with std::vector<> + * server/Sprite.h: substituted array<> with std::vector<> + * server/action.cpp: substituted array<> with std::vector<> + * server/action.h: substituted array<> with std::vector<> + * server/button.cpp: substituted array<> with std::vector<> + * server/button.h: substituted array<> with std::vector<> + * server/dlist.h: substituted array<> with std::vector<> + * server/font.cpp: substituted array<> with std::vector<> + * server/font.h: substituted array<> with std::vector<> + * server/fontlib.cpp: substituted array<> with std::vector<> + * server/fontlib.h: substituted array<> with std::vector<> + * server/impl.cpp: substituted array<> with std::vector<> + * server/impl.h: substituted array<> with std::vector<> + * server/shape.cpp: substituted array<> with std::vector<> + * server/shape.h: substituted array<> with std::vector<> + * server/stream.cpp: substituted array<> with std::vector<> + * server/stream.h: substituted array<> with std::vector<> + * server/styles.h: substituted array<> with std::vector<> + * server/tesselate.cpp: substituted array<> with std::vector<> + * server/text.cpp: substituted array<> with std::vector<> + * server/text.h: substituted array<> with std::vector<> + * server/textformat.cpp: substituted array<> with std::vector<> + * server/timers.cpp: substituted array<> with std::vector<> + * server/timers.h: substituted array<> with std::vector<> + * server/xml.cpp: substituted array<> with std::vector<> + * server/xmlsocket.cpp: substituted array<> with std::vector<> + * server/xmlsocket.h: substituted array<> with std::vector<> + * utilities/processor.cpp: substituted array<> with std::vector<> + +2006-02-24 Jim Garrison + + * backend/sound_handler_sdl.cpp: fixed int, unsigned int comparisions + * libbase/grid_index.h: fixed int, unsigned int comparisions + * libbase/image_filters.cpp: fixed int, unsigned int comparisions + * libbase/triangulate_impl.h: fixed int, unsigned int comparisions + * libgeometry/kd_tree_dynamic.cpp: fixed int, unsigned int comparisions + * libgeometry/tqt.cpp: fixed int, unsigned int comparisions + * plugin/plugin.cpp: fixed int, unsigned int comparisions + * server/Movie.cpp: fixed int, unsigned int comparisions + * server/Sprite.cpp: fixed int, unsigned int comparisions + * server/action.cpp: fixed int, unsigned int comparisions + * server/button.cpp: fixed int, unsigned int comparisions + * server/dlist.cpp: fixed int, unsigned int comparisions + * server/font.cpp: fixed int, unsigned int comparisions + * server/fontlib.cpp: fixed int, unsigned int comparisions + * server/impl.cpp: fixed int, unsigned int comparisions + * server/morph2.cpp: fixed int, unsigned int comparisions + * server/shape.cpp: fixed int, unsigned int comparisions + * server/styles.cpp: fixed int, unsigned int comparisions + * server/tesselate.cpp: fixed int, unsigned int comparisions + * server/text.cpp: fixed int, unsigned int comparisions + * server/xmlnode.cpp: fixed int, unsigned int comparisions + * server/xmlsocket.cpp: fixed int, unsigned int comparisions + +2006-02-23 Rob Savoye + + * plugin/Makefile.am: Add flags for GTKGLExt + dependancies. Remove ogl_sdl.cpp and ogl_sdl.h. Use -d instead of + -z to see if the directory exists. + * plugin/plugin.cpp: Don't use ogl_sdl, move the functionality + into the nsPluginInstance class. Add locking around all GL and X11 + calls. Add Doxygen style comments blocks. + * plugin/plugin.h: Don't use ogl_sdl, move the definitions + into the nsPluginInstance class. + * plugin/ogl_sdl.{h,cpp}: Move functionality into nsPluginInstance + class. Remove files. + + * doc/C/sources.html: Add section on cross compiling Gnash. + * libgeometry/kd_tree_packed.cpp: Comment out the two somewhat + bogus assertions so this file can be cross compiled. + * configure.ac: If the plugin is disabled, or glext is disabled, + don't spew errors messages, since we didn't bother to look for + those components anyway. Rename the macros where the prefix + changed. + * macros/firefox.m4: Don't try to configure if the plugin is + disabled. + * macros/jpeg.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/libXML.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. + * macros/mad.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/ming.m4: Rename to use GNASH_ instead of AM_ for the + prefix. + * macros/ogg.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/opengl.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/png.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/sdl.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/zlib.m4: Look in $prefix for headers and libraries, + useful for cross-compiling. Rename to use GNASH_ instead of AM_ + for the prefix. + * macros/gtkglext.m4: If --enable-glext is passed to configure, + enable configuring pango, cairo, atk, glib, and gtk2 macros. + * macros/atk.m4: New file to look for Gnome ATK, which is + unfortunately a dependancy of GtkGlext. + * macros/cairo.m4: New file to look for Cairo, which we wanted to + do eventually anyway, by GtkGlext needs it too. + * macros/glib.m4: New file to look for Glib, which is + unfortunately a dependancy of GtkGlext. + * macros/gtk2.m4: New file to look for GTK+ version 2.x, which is + a dependancy of GtkGlext, but Firefox uses it too. + * macros/pango.m4: New file to look for Gnome ATK, which is + unfortunately a dependancy of GtkGlext. + + * doc/C/gnash.xml: Add the -x command line option. + * doc/C/internals.xml: Add section under Plugin about using + Mozplugger to use the standalone player. + +2006-02-22 Rob Savoye + + * backend/gnash.cpp: Add -x option to pass in the X window ID from + mozplugger. If a window ID is passed in, use that to display + in. This lets the standalone player be embedded in the browser + window. + +2006-02-20 Rob Savoye + + * configure.ac: Add GNASH_PATH_GLEXT. + * macros/gtkglext.m4: New config file to find GtkGLext package. + + * packaging: New directory to hold config files to build packages + for distributions. + * packaging/debian: New directory for DEB building config files. + * packaging/redhat: New directory for RPM building config files. + * packaging/redhat/gnash.spec: Contributed spec file for building + RPMs. + + * macros/zlib.m4,sdl.m4,pthreads.m4,png.m4,opengl.m4, + ogg.m4,mad.m4,libtool.m4,libXML.m4,jpeg.m4,dmalloc.m4: + Look for /lib64 and /usr/lib64, and use those for search paths if + they exist. + * configure.ac: Blindly add -L/usr/lib64, so the autoconf library + checking functions get the right path. + +2006-02-17 Rob Savoye + + * server/shm.cpp (closeMem): Use shmctl(), not shm_unlink to + remove a shared memory segment on BSD machines. + +2006-02-15 Rob Savoye + + * config.guess: Updated to latest autoconf release. + * config.sub: Updated to latest autoconf release. + * ltmain.sh: Updated to latest libtool release. + * backend/render_handler_ogl.cpp: Migrate patch from GameSWF. + * server/action.h: Make set_local_frame_top multiline so it's + easier to read. + * server/gnash.h: Add prototype for cxform::clamp(). + * server/types.cpp: Add cxform::clamp(). + * server/shape.cpp: Fix a few warnings about comparison and sign. + * server/shm.cpp (attach): Use SVR4 styles shared memory segments + if there is no POSIX shared memory support, like NetBSD or + OpenBSD. + * server/shm.h: Add private data to store the SV4 shared memory + key, and the SVR4 shared memory ID. + * server/xml.cpp: Move a few methods outside + ENABLE_TESTING. Return NULL from a few unimplemented methods. + * server/xml.h: Move a few methods outside ENABLE_TESTING. + * server/xmlnode.h: Move a few methods outside ENABLE_TESTING. + * server/xmlnode.cpp: Move a few methods outside ENABLE_TESTING. + * testsuite/actionscript.all/XML.as: Make some tests unresolved + because I'm not clear what the proper behaviour is. + +2006-02-15 Sandro Santilli + + * testsuite/actionscript.all/Makefile.am: added online-tests rule. + * testsuite/actionscript.all/Function.as: avoided === test, not + available in versions < 6. + * testsuite/actionscript.all/gen-index.sh: utility script for + the online-tests rule: generates index.html and index.wiki. + * testsuite/actionscript.all/check.as: support for ONLINE define, + using XTRACE and only printing failures when that's defined. + * testsuite/actionscript.all/gen-test.as: changed to use the check + macro. + * testsuite/actionscript.all: Boolean.as, Camera.as, Color.as, + ContextMenu.as, CustomActions.as, Error.as, LoadVars.as, + Microphone.as, Mouse.as, NetStream.as, Selection.as, + SharedObject.as, Stage.as, System.as, TextSnapshot.as, Video.as: + regenerated. + * server/swf.h: added note about which action_buffer private + method implmements which ACTION_DELETE* block. + * testsuite/actionscript.all/Global.as: added test for + _global.escape. + +2006-02-14 Rob Savoye + + * configure.ac: Look for shm_open(). + * server/shm.cpp: If we don't have POSIX shared memory (like *BSD + systems), don't try to compile anything for now. + * server/shm.h: If we don't have POSIX shared memory (like *BSD + systems), don't try to compile anything for now. + +2006-02-14 Sandro Santilli + + * server/Object.{h,cpp}: new instanceOf(function_as_object*) method. + * server/action.{h,cpp}: ACTION_INSTANCEOF and ACTION_CASTOP + implemented. Fixed ACTION_DELETE. + * testsuite/actionscript.all/Inheritance.as: instanceOf tests. + * testsuite/actionscript.all/delete.as: delete tests. + * testsuite/actionscript.all/Date.as: changed to use the check() macro. + +2006-02-14 Michael Carlson + + * server/array.cpp: Make tostring() and join() not output any + enclosing parentheses, and handle empty array case better + * testsuite/actionscript.all/array.as: Change all tests to use + new check macro. Add tests for all implemented array functions, + as well as several tests for the unimplemented sort function. + * libbase/jpeg.cpp: don't ever crash by trying to read + headers of the same jpeg twice + +2006-02-13 Rob Savoye + + * macros/firefox.m4: Set FIREFOX_PLUGINS correctly at the proper + time. Add another pattern to the sed rule to munge the path. + * configure.ac: Print out where the plugin will get installed. + + * libamf/Makefile.am: DOn't link in the other libraries so libamf + can be standalone. + * libamf/amf.cpp: Default to not using log_msg(). + * libamf/amftest.cpp: Don't build unless you have dejagnu.h. + * configure.ac: Check for the dejagnu.h header for unit testing. + +2006-02-13 Sandro Santilli + + * testsuite/actionscript.all/xtrace.as: trace window enlarged. + * testsuite/actionscript.all/Inheritance.as: inheritance test + * server/Object.h: new header file for definitions from as_object + up to as_value (will split again at sometime). + gnash::as_object_interface class definition merged with + gnash::as_object, now directly derived from gnash::resource. + * server/action.cpp: doActionEquals and doActionStrictEquals private + action_buffer methods. Made as_value::to_object valid for AS_FUNCTION + value types + * server/Function.{cpp,h}: Made 'Function' an AS_FUNCTION to allow for + 'prototype' based inheritance. Implemented Function.call + + +2006-02-12 Michael Carlson + + * server/action.cpp: Fix silly '!' that breaks _global.isfinite + +2006-02-12 Rob Savoye + + * libamf/amf.h: New file for AMF encoder/decoder library. + * libamf/amfutf8.h: New file for AMF encoder/decoder library to + handle UTF8 strings. + * libamf/amf.cpp: New file for AMF encoder/decoder library. + * libamf/Makefile.am: New makefile for amf library. + * libamf/amftest.cpp: New test case for AMF library. + * Makefile.am: Add libamf directory. + * configure.ac: Add libamf directory. + +2006-02-11 Jim Garrison + + * libbase/container.h: changed array to derive from std::vector + instead of being custom implemented, renamed hash::is_empty() + to hash::empty() + * libbase/grid_index.h: changed to std::vector API + * libbase/triangulate_impl.h: changed to std::vector API + * server/Movie.cpp: changed to std::vector API + * server/MovieClipLoader.cpp: create explicit empty array instead + of passing the value 0 + * server/Sprite.h: set each element of std::vector to + false instead of using memset + * server/action.cpp: changed to std::vector API + * server/dlist.cpp: changed to std::vector API + * server/font.cpp: changed hash::is_empty() to hash::empty() + * server/fontlib.cpp: changed to std::vector API + * server/impl.cpp: changed to std::vector API + * server/shape.cpp: changed to std::vector API, typecast + std:vector::size() to an integer to fix an assertion + * server/tesselate.cpp: changed to std::vector API + * server/textformat.cpp: create explicit empty array instead + of passing the value 0 + * server/timers.cpp: create explicit empty array instead + of passing the value 0 + * server/xml.cpp: create explicit empty array instead + of passing the value 0 + * server/xmlsocket.h: changed to std::vector API + +2006-02-11 Rob Savoye + + * server/xmlnode.{h,cpp): Implement nodeType property. + * testsuite/actionscript.all/XMLNode.as: Add test for + XMLNode::nodeType property. + * doc/C/xmlnode.xml: New file for accidentally skipped class. + * doc/C/internals.xml: Update section on using as_value + objects. Include XMLNode section. + * macros/docbook.m4: Extract and save the version of the Docbook2X + tools, because there are two big differences in command line + options depending which version you have. + * configure.ac: Print the version of the Docbook2X tools, if + --enable-docbook is specified. + * doc/C/Makefile.am: Check the version of the Docbook2X tools when + running db2x_texixml. + * macros/sdl.m4: Define HAVE_SDL_MIXER_H if we have SDL Mixer + installed. + +2006-02-10 Rob Savoye + + * backend/render_handler_ogl.cpp (render_handler): Migrated patch + from GameSWF that fixed a problem that meant that bitmap fill + styles would not respect colour modulation (e.g. the use of Tint + in Flash). + * server/types.h: Define cxform::clamp. + * server/types.cpp: Implementation of cxform::clamp. + + * doc/C/internals.xml: Add section on adding properties to an + ActionScript class. Add section on using as_value objects. + + * testsuite/actionscript.all/dejagnu.as: Implement the DejaGnu + unit testing API for ActionScript. + * testsuite/actionscript.all/XML.as: Use new DejaGnu API for test + output. + * testsuite/actionscript.all/XMLNode.as: New test case for + XMLNode to test the methods and properties. + * server/xmlnode.h: Add prototypes for new methods. + * server/xmlnode.cpp: Implement appendChild() cloneNode() + methods, and nodeName, nodeValue, firstChild, lastChild, + previousSibling, nextSibling, parentNode properties. + * server/xml.h: Define properties correctly. + * server/xml.cpp: Add properties to a node as other operations + on the node are done. + * configure.ac: Disable the XMLReader by default. + * libbase/membuf.cpp: Free, don't delete the pointer in the + destructor. + * server/action.cpp: Define virtual destructor for + as_property_interface. + * server/gnash.h: Define virtual destructor for import_visitor. + * server/shape.{h,cpp}: Define destructor for tesselating_shape. + * server/styles.h: Define destructors for base_fill_style and + base_line_style. + * server/tesselate.{h,cpp}: Define destructor for + trapezoid_accepter. + +2006-02-10 Sandro Santilli + + * server/action.{cpp,h}: added doActionCallMethod, + doActionCallFunction, doActionDefineFunction, + doActionGetMember and doActionDefineFunction2 private + methods to action_buffer. Changed text representation + of generic objects from [object Object] to a more + interesing value, fixed + * testsuite/actionscript.all/Function.as: more tests. + * server/Object.cpp: reworked get_member/set_member to map + "__proto__" to m_prototype. + * server/Function.{h,cpp}: mapped m_properties to + "prototype". Set prototype.constructor at properties + initialization time. + +2006-02-09 Rob Savoye + + * macros/ghelp.m4: Disable ghelp support by default. Use + --enable-ghelp to turn it back on. + * doc/omf.make: Don't try to install anything if GHELP isn't + defined. + +2006-02-09 Sandro Santilli + + * doc/C/Makefile.am: spaces => tab + * doc/C/internals.xml: about writing tests + * testsuite/actionscript.all/Global.as: added two more tests, + fixed existing test to bypass preprocessor mangling. + * testsuite/actionscript.all/Function.as: added some tests + for prototype, prototype.constructor and __proto__ (inheritance) + * server/action.{cpp,h}: moved ACTION_NEW and ACTION_INSTANCEOF + handling code in action_buffer private doActionNew and + doActionInstanceOf (the latter being under development). + +2006-02-09 Michael Carlson + + * server/action.cpp: Implement _global.parseInt for all cases. + Also implement _global.parseFloat, and _global.isNan, + _global.isFinite, _global.unescape + * server/action.h: add as_value::is_finite(), set_nan for + ease of use + * testsuite/actionscript.all: add and fix up parseInt test cases + also add some parseFloat test cases + +2006-02-08 Rob Savoye + + * server/shm.cpp (exists): Move to be within the ENABLE_TESTING + block. + +2006-02-08 Rob Savoye + + * Makefile.am: Rearrange directories for SUBDIRS and + DIST_SUBDIRS. + * autogen.sh: Remove hardcoded path to /usr/bin. + * doc/C/appendix.xml: Add section to "Coding Style" about Doxygen + style somments. + * doc/C/internals.xml: Metion code generation scripts in + CVS. Expand "Adding ActionScript" section Add sectioj on + parameter passing for callbacks. Add section on testing Gnash. + * server/Makefile.am: Add xmlattrs and xmlnodes to the list of + headers and source files. + * server/xml.h: Move XMLAttrs and XMLNode to their own source + files to reduce clutter. Use std::vector instead of "tu + array". Add new accessors to use for testing. Move a few method + definitions to the source file. + * server/xml.cpp: Move XMLAttrs and XMLNode to their own source + files to reduce clutter. Use std::vector instead of "tu array". + Add new accessors to use for testing. Move a few method + definitions from the header file. Implement XML::appendChild(), + XMLNode::appendChild(), XML::createElement(), XML::cloneNode(), + and XML::createTextNode(). + * testsuite/actionscript/XML.as: Add tests for the new methods. + + * server/xmlattrs.{h,cpp}: New file for XMLAttr class moved out of + xml.h. + * server/xmlnode.{h,cpp}: New file for XMLAttr class moved out of + xml.h. + +2006-02-06 Patrice Dumas + + * macros/docbook.m4: enable by default. Add an AM_CONDITIONNAL for + each of the formats. + * macros/ghelp.m4: enable by default. Correct AC_PATH_PROG 3rd arg. + Don't check for the user is root (the user needs to be root only + for make install, in case he wants to run scrollkeeper-update). + * doc/omf.make: don't use $(GHELP) it is never set. Test for the + user being root only when running scrollkeeper-update, any user + may install the files. Use $(omffile) instead of $(srcdir)/*.omf. + Add $(DESTDIR). + * doc/xmldocs.make: move general stuff to doc/C/Makefile.am + (EXTRA_DIST, CLEANFILES, xml_files). Similarly, define all-local + and not all. Add amissing $(DESTDIR). Take dist-hook and + install-data-hook from doc/C/Makefile.am. + * doc/C/Makefile.am: use the GHELP automake conditionnal to + conditionnally include scrollkeeper stuff. Remove XML_FILES, as + xml_files from the scrollkeeper code is the same. Distribute + info and texi files. Simplify rules to build docs and + conditionnalize on automake conditionnals. If the tools aren't + there, touch the files. As the doc files requires specific + tools to build, flag them as MAINTAINERCLEANFILES. + * doc/C/gnash.omf: rename to gnash-C.omf and minor changes. + +2006-02-08 Sandro Santilli + + * testsuite/actionscript.all/Global.as: _global functions tests + * testsuite/actionscript.all/Function.as: modified to use check.as + * testsuite/actionscript.all/Object.as: modified to use check.as + * testsuite/actionscript.all/check.as: framework for dejagnu testing + +2006-02-08 Michael Carlson + + * server/action.cpp: implement _global.parseInt's simplest case + +2006-02-06 Sandro Santilli + + * server/action.h: Added as_environment::dump_stack(), more dox + * server/action.cpp: Fixed , cleanups + * server/swf.h: Added dox for ACTION_CALLMETHOD + * libbase/container.h: Doxygen comments for smart_ptr class + * testsuite/actionscript.all/Function.as: more tests for + Function.apply() + * testsuite/actionscript.all/Makefile.am: rule to build + 'visual tracing' version of tests (.vswf) + * server/Function.cpp: implemented Function.apply() + +2006-02-05 Sandro Santilli + + * server/action.cpp used symbolic names in s_instruction_table. + +2006-02-05 Rob Savoye + + * testsuite/actionscript.all/testin.xml: XML test file to test the + parser. + + * plugin/plugin.cpp (NewStream): Add support to parse the options + passed in when the plugin is invoked to play a stream. Add special + debug flags so we can attach GDB at leisure and not have to screw + with loading shared libraries. + * server/xml.{h,cpp}: Fix capitalization errors in + names. Implement getBytesTotal(), getBytesLoaded(), + and hasChildNodes(). + * testsuite/actionscript.all/XML.as: Add tests for + getBytesTotal(), getBytesLoaded(), and hasChildNodes(). + + * server/xml.h: Add stubs for the missing methods and + properties. Fix bit rot with get_member() so it actually works + again. + * server/xml.cpp: Add stubs for the missing methods and + propeties. + * testsuite/actionscript.all/XML.as: New file to test XML class. + +2006-02-05 Sandro Santilli + + * server/swf.h: added SWF::ACTION_DEFINEFUNCTION2 (0x8e) + * server/action.cpp: added support for Object copy construction + obj = new Object(otherobj). + * server/: renamed as_as_function to as_function_object, moved + it's definition in Function.{h,cpp}. Moved as_object methods + from action.cpp to Object.cpp (new file). Fixed definition + of prototipal ::apply and ::call members for Function object. + +2006-02-05 Michael Carlson + + * server/Sprite.cpp: goto_frame now uses mutator to stop instead + of directly changing state (so now it resets dt counter too) + +2006-02-04 Rob Savoye + + * server/shm.{h,cpp}: New support code for using POSIX named + shared memory segments. + * server/LocalConnection.h: Alternatively use shared memory + instead of a socket connection. + * server/LocalConnection.cpp: Alternatively use shared memory + instead of a socket connection. + * testsuite/actionscript.all/LocalConnection.as: Add addiotnal + tests for when using a shared memory subsystem. + * server/Makefile.am: Add shm.h, shm.cpp, network.cpp, network.h. + * configure.ac: Add --enable flag to switch using shared memory to + networking for local connections. + + * server/LocalConnection.h: Change API for connect(), and + domain(). + * server/LocalConnection.cpp: Change API for connect(), and + domain(). Initial implementations of domain(), connect(), and + close(). + + * server/network.cpp: Replace code with networking code from one + of my other GPL'd projects, PowerGuru. That code is much more + fully functional in a generic sense, and pretty solid too. Add + more accessors to use for testing LocalConnection. + * server/network.h: Add more accessors to use for testing + LocalConnection. + * testsuite/actionscript.all/LocalConnection.as: Test the newly + implemented methods. + + * server/network.{h,cpp}: New files to hold base networking class + for use by other ActionScript objects. This base class contains + the code for custom methods that implement accessors to the data + to enable unit testing derived classes like NetConnection and + LocalConnection. + * server/NetConnection.h: Move all testing code to network.h. + * server/NetConnection.cpp: Move all testing code to + network.cpp. Setup callbacks for our custom methods using the + Network, instead of NetConnection class. + + * Makefile.am: Rearrange variable definitions so the dist and + distcheck Makefile targets actually work. Add DIST directories so + everything makes it into the tarball. + * doc/C/Makefile.am: Define XML_FILES for all the other xml doc + files. Add DESTDIR to the install path. Rearrange variable + definitions so the distcheck Makefile target actually works. + +2006-02-04 John Gilmore + + * backend/gnash.cpp: Set window title to "gnash: " and movie name. + Correct help/usage string. + +2006-02-04 Sandro Santilli + + * libbase/container.h: Doxygen-compatible comments for hash + struct. Const-correct size() method. + * server/action.cpp: opcode 0x43 (Declare Object / INITOBJECT) + implemented. + +2006-02-04 Rob Savoye + + * doc/C/netconnection.xml: Update with more detailed data on this + class. + + * server/NetConnection.cpp: Implement part of the connect() + method. Add C++ accessor methods as AS methods, and we can call + our custom methods from testing code to examine the internal state + of a class. + * server/NetConnection.h: Add C++ accessor methods as AS methods, + * testsuite/actionscript.all/NetConnection.as: Test the connect() + method to make sure the URL gets parsed correctly, if specified. + * configure.ac: Add --disble-testing option to not build + additional code used for testing. + +2006-02-04 Michael Carlson + + * server/Date.cpp: Clean up Date, and implement getDate() + * server/action.cpp: Fix SetTargetDynamic opcode and further fix + SetTarget opcode + +2006-02-03 Rob Savoye + + * macros/docbook.m4: Fix improper use of 3rd parameter to + AC_PATH_PROG. + + * configure.ac: Add --enable-sdk-install to install headers for + those who want to use Gnash as a development library. + * plugin/ogl_sdl.cpp: Drop old demo code. + * libbase/Makefile.am: Rename libbase to libgnashbase to + reduce the chance of name collision. + * libgeometry/Makefile.am: Rename libgeometry to libgnashgeo to + reduce the chance of name collision. + * server/Makefile.am: Rename libserver to libgnashserver, and + libasobjs to libgnashasobjs to reduce the chance of name + collision. + * backend/Makefile.am: Rename libgbackend to libgnashbackend to + reduce the chance of name collision. Use the new library names to + link. + * utilities/Makefile.am: Use the new library names to link. + * plugin/Makefile.am: Rename libgnash to be libgnashplugin to + reduce the chance of name collision. Use the new library names to + link. + + * server/action.cpp: Add missing opcodes to disassembler table,a + and rename the unsupported ones to have a "_fixme" attached when + printing debug information. + * backend/Makefile.am (AM_LDFLAGS): Add $(X_LIBS) so we can link + with libraries in /usr/X11R6/lib. + + * Makefile.am (ACLOCAL_AMFLAGS): Add so autoreconf works. + +2006-02-03 Michael Carlson + + * server/action.cpp: SetTarget is now implemented for targets + other than "" + * backend/render_handler_ogl.cpp: use TWIPS_TO_PIXELS macro + instead of hardcoded 20 value + +2006-02-03 Sandro Santilli + + * testsuite/actionscript.all/Function.as: tests for user-defined + class definition + * server/swf.h: moved SWF namespace definition in it's own header, + added action_type enum, added ACTION_EXTENDS, ACTION_CASTOBJECT, + ACTION_IMPLEMENTS tag_types, added dox on some action_types. + * server/action.cpp: used symbolic names for SWF action tag ids + * testsuite/actionscript.all/Object.as: test for Object class + * testsuite/actionscript.all/Makefile.am: added support for + user-defined flags to ``makeswf'' invocation + (for -DUSE_XTRACE, mainly) + * libbase/: image.h, jpeg.h: Doxygen-compatible comments + +2006-02-03 Michael Carlson + + * server/textformat.cpp: fix typo in textformat_new log message + * server/action.cpp: modulus operand in actionscript now returns + NaN on division by zero + * server/Date.h: Setup basic time storage variables + * server/Date.cpp: Implement default constructor, basic time + reading operations + +2006-02-02 Rob Savoye + + * testsuite/actionscript.all/Makefile.am: Use the standard + automake way to build the test cases. + + * Makefile.am (STD_DIRS): Remove testsuite. Nothing actually needs + to be done at "make all" time anyway. So now the testuites can + only be run from the testsuite subdirctory. + * macros/png.m4: Fix various typos and other stupid errors that + kept the --with-png-incl and --with-png-lib options from working + correctly. + * configure.ac: Tweak test for PNG support. + +2006-02-01 Rob Savoye + + * testsuite/actionscript.all/gen-test.sh: Developer utility script + that uses the NOTES file to generate a Ming style "as" source file, + which can be used to test an ActionScript class. + * server/gen-files.sh: Developer utility script that uses the + NOTES file to generate header and source file templates for an + ActionScript class. + * doc/C/gen-doc.sh: Developer utility script that uses the NOTES + file to generate a documentation template for an ActionScript + class. + * doc/C/NOTES: Data file for file generation scripts. This is only + of interest to other developers. If you change this file, you may + break the other developer gen-* scripts. + * testsuite/Makefile.am: Add dejagnu to AUTOMAKE_OPTIONS. Reset + RUNTESTDEFAULTFLAGS to not use the --tool option. + * testsuite/actionscript.all/Makefile.am: Add dejagnu to + AUTOMAKE_OPTIONS. Reset RUNTESTDEFAULTFLAGS to not use the --tool + option. + * testsuite/actionscript.all/swf_exists.exp: Test driver for + DejaGnu to run the new test cases. + * testsuite/actionscript.all/Boolean.as, Date.as, Microphone.as, + SharedObject.as, Camera.as, Error.as, Mouse.as, Stage.as, + Color.as, server/Makefile.am, backend/Makefile.am, + Function.as, NetConnection.as, System.as, ContextMenu.as, + LoadVars.as, NetStream.as, TextSnapshot.as, CustomActions.as, + LocalConnection.as, Selection.as, Video.as: New Ming based test + cases for ActionScript classes. Currently all these do is test for + the existance of a class, and all of it's methods. + * server/Boolean.cpp, Date.cpp, Microphone.cpp, SharedObject.cpp, + Camera.cpp, Error.cpp, Mouse.cpp, Stage.cpp, Color.cpp, + Function.cpp, NetConnection.cpp, System.cpp, ContextMenu.cpp, + LoadVars.cpp, NetStream.cpp, TextSnapshot.cpp, CustomActions.cpp, + LocalConnection.cpp, Selection.cpp, Video.cpp: New stubs for + missing ActionScript classes. All they do for now is print + "unimplemented", but as all the hard code to tie a class and it's + methods into Gnash is done, it'll be much easier to fill in + functionality. + +2006-01-30 Michael Carlson + + * backend/render_handler_ogl.cpp: tentative implementation + of line_style_width with appropriate TODO message + +2006-01-30 Rob Savoye + + * doc/C/accessibility.xml, button.xml, camera.xml, + contextmenu.xml, customactions.xml, date.xml, + error.xml, internals.xml, key.xml, + loadvars.xml, localconnection.xml, + microphone.xml, mouse.xml, netstream.xml, + selection.xml, sharedobject.xml, sound.xml, + stage.xml, textsnapshot.xml, video.xml, + xml.xml, xmlsocket.xml: Add content. + * doc/C/accessibility.xml camera.xml, color.xml, contextmenu.xml, + customactions.xml, date.xml, error.xml, function.xml, key.xml, + loadvars.xml, localconnection.xml, microphone.xml, mouse.xml, + movieclip.xml, moviecliploader.xml, netstream.xml, object.xml, + selection.xml, sharedobject.xml, sound.xml, stage.xml, system.xml, + textfield.xml, textformat.xml,textsnapshot.xml. video.xml, + xml.xml, xmlsocket.xml: New machine generated templates for + ActionScript class documentaion. + + * doc/C/array.xml, boolean.xml, button.xml, math.xml, + netconnection.xml, number.xml, string.xml: New docs, one for each + ActionScript class. + +2006-01-29 Rob Savoye + + * doc/C/internals.xml: Add a table of what ActionScript classes + are implemented, and to what degree. + * doc/C/sources.xml: Add section on PNG and JPEG dependancies. Add + section on using Doxygen. + + * doc/Doxyfile.in (INPUT): Change to using @top_srcdir@, so the + doxygen usage supports building the docs when configuring with a + separate build tree from the sources. + +2006-01-28 Rob Savoye + + * doc/C/internals.xml: Add section on adding new ActionScript + classes with reasonable detail. + + * doc/C/sources.xml: New file extracted from gnash.xml, and made a + standalone file since it's grown in size. + * doc/C/appendix.xml: New file for Appendix content. + * doc/C/gnash.xml: Move some sections to separete files. Include + the new files. + + * doc/C/Makefile.am: Add pdf and info to SUFFIXES so the rules + actually work. + + * doc/omf.make (install-data-hook-omf): Only install if you are + root, as this requires writing to system directories. + * configure.ac: Link the doc/C/images directory to the build + directory so we can find images when producing output files. Check + state of DocBook when it's enabled. + * macros/docbook.m4: Add path to stylesheets for Ubuntu. Look for + fop.sh, and the DocBook2X conversion tools. Make DocBook optional, + use --enable-docbook to enable. When disableed, you can't build + any of the docs. + * macros/ghelp.m4: Check for Scrollkeeper tools. Using GNOME Help + is disabled by default. Use --enable-ghelp to enable. + * doc/C/Makefile.am: Use variables defined by configure for all + the conversion tools. + +2006-01-27 Rob Savoye + + * plugin/player.cpp: Use GLinitialized instead of + surface_activated, which turns out to be a system definition on + some Unixes. Make main_loop take a nsPluginInstance as an argument + so we have all the data we need. Setup a thread to run the + player. + * server/Makefile.am, backend/Makefile.am, + plugin/Makefile.am, utility/Makefile.am, + plugin/mozilla-sdk/Makefile.am: Don't use VORBIS variables + anymore. + * macros/libXML.m4: Use xml2-config instead of pkg-config. + * maxros/mad.m4: Add BSD path prefix, /usr/pkg. + * libbase/triangulate_impl.h: Drop the long modifier when printing + a size. + * libbase/Makefile.am: Make dmalloc build conditionally when + --enable-dmalloc is passed to configure. + * backend/sound_handler_sdl.cpp: Only compile if SDL_Mixer is + installed. + * backend/gnash.cpp: xml_fd should always be defined. Make using + SDL_Mixer for sound be conditional, since a machine may have SDL + installed, but not SDL_Mixer, but we still want the player to + build. + * server/xmlsocket.h, xmlsocket.cpp: Include config.h as generated + by configue if it exists. + * server/xml.h, xml.cpp: Include config.h as generated + by configue if it exists. + * configure.ac: Enable test for pthread.h and libpthread. Don't + look for Vorbis, the Ogg tests are enough. + * server/Movie.cpp, Sprite.cpp, impl.cpp, array.cpp: Include + pthread.h to get around a data type definition problem on + NetBSD. This seems to be required when using STL containers on + NetBSD. + * macros/opengl.m4: Use mad.m4 as a template and rewrite to be + more portable. + * macros/png.m4: Use mad.m4 as a template and rewrite to be + more portable. + * macros/jpeg.m4: Use mad.m4 as a template and rewrite to be + more portable. + * macros/sdl.m4: Look for SDL specific directory before and after + the include or lib since some platforms install these differently. + * macros/pthreads.m4: Look for POSIX Thread support. This turns + out to be very messy with NetBSD, as the old version is also + installed, and we have to link with the right one for any + executable to work. + +2006-01-26 Rob Savoye + + * plugin/Makefile.am: Link in shared libraries. Install the plugin + in the users home directory for mozilla or firefox plugins. + * server/Makefile.am, backend/Makefile.am, + plugin/Makefile.am, plugin/mozilla-sdk/Makefile.am: Sigh, back to + building and installing shared libraries because AMD64-linux + doesn't support linking the plugin with static libraries. + + * configure.ac: Don't complain about missing libxml2 libraries if + --disable-xml was specified. + * backend/gnash.cpp: Always define gofast and goslow, even if XML + support is disabled. + * libbase/tu_types.h: If the Mozilla obsolete Prototypes file has + been included, don't redefine the 64 bit data types. + + * testsuite/movies.all/elvis.swf: Remove URL ping to spyware + server. + + * libbase/triangulate_impl.h: Change %ld to %d in print statement. + * libbase/tu_types.h: Use SDL typedefs always. + +2006-01-24 Rob Savoye + + * macros/opengl.m4: Update based on mad.m4 template. + * macros/mad.m4: Fix typo, -I should be a -L. + +2006-01-24 Michael Carlson + + * server/array.h: as_array_object now uses deque instead of vector + * server/array.cpp: Implement array::unshift, shift, reverse, + concat, slice, toString, join - also make push return the new + length as it should have done before + +2006-01-23 Rob Savoye + + * plugin/player.cpp, player.h: Neew file for Flash player within + plugin code. + * plugin/ogl_sdl.cpp, ogl_sdl.h: New files for OpenGL and SDL + specific code. + * plugin/Makefile.am: Build a static archive library instead of a + shared one. Link to the static libraries. + * server/Makefile.am: Build a static archive library instead of a + shared one. Link to the static libraries. + * backend/Makefile.am: Build a static archive library instead of a + shared one. Link to the static libraries. + * plugin/Makefile.am: Build a static archive library instead of a + shared one. + * plugin/mozilla-sdk/Makefile.am: Build a static archive library + instead of a shared one. + + * server/Makefile.am: Don't install the libraries. + * backend/Makefile.am: Don't install the libraries. + * plugin/Makefile.am: Don't install the + libraries. Pass-no-undefined to libtool so all symbols are + resolved in the final shared library. + * plugin/mozilla-sdk/Makefile.am: Don't install the libraries. + + * configure.ac: Use new DMALLOC test. + * macros/dmalloc.m4: New macro for dmalloc support. + * utilities/Makefile.am: Add support for dmalloc. + * server/Makefile.am: Add support for dmalloc. + * backend/Makefile.am: Add support for dmalloc. + * plugin/Makefile.am: Add support for dmalloc. + * libbase/utility.cpp: Only build if we have mallinfo. + +2006-01-23 Michael Carlson + + * server/action.h: Create utility funcs as_value::is_inf, is_nan + * server/action.cpp: Let as_value String<->Number conversions + use NaN, +Infinity, -Infinity where appropriate + * server/string.cpp: Make charCodeAt() return a NaN value when + appropriate + * server/array.cpp: Array now checks for NaN after converting + index string to_number(), instead of the old hacked-up way + +2006-01-23 Rob Savoye + + * server/styles.cpp: Fix condition for gradient test. + + * configure.ac: Remove AM_MKINSTALLDIRS macro, it's now unneeded. + +2006-01-23 Michael Carlson + + * server/array.h: Move new array code into array.cpp, array.h + * server/array.cpp: Move new array code into array.cpp, array.h + * server/action.cpp: Move new array code into array.cpp, array.h + * server/Makefile.am: Move new array code into array.cpp, array.h + * server/font.cpp: Report an error and continue when we get two + of the same kerning pairs for a font, instead of crashing + +2006-01-22 Rob Savoye + + * configure.ac: Make text at end of configure more detailed about + dependency errors. + * macros/mad.m4: New macro to find libmad for mp3 support. + * utilities/Makefile.am: Make MP3 support truly optional. + * server/Makefile.am: Make MP3 support truly optional. + * backend/Makefile.am: Make MP3 support truly optional. + * plugin/Makefile.am: Make MP3 support truly optional. + +2006-01-21 Rob Savoye + + * configure.ac: Add tests for Ogg and Vorbis. + * backend/Makefile.am: Add flags and libs for Ogg and Vorbis as + separete flags. + * utilities/Makefile.am: Add flags and libs for Ogg and Vorbis as + separete flags. + * plugin/Makefile.am: Add flags and libs for Ogg and Vorbis as + separete flags. + + * server/styles.cpp: Don't abort if we read a bad gradient. + + * macros/sdl.m4: Store the compilation flags so the compilation + tests works on ppc-linux. + +2006-01-21 Michael Carlson + + * server/action.cpp: Initial implementation of as_array_object + ( get_member, set_member, push, pop, and length ) + +2006-01-20 Rob Savoye + + * backend/Makefile.am: Make the OGL and SDL support a library so + it can also be used by the plugin. + * libbase/Makefile.am: Add SDL_MIXER_CFLAGS to the include paths. + * macros/sdl.m4: Correct typo so --with-sdl_mixer-lib actually + works. Add /usr/bin/X11 to the default search path for + sdl-config. + * server/styles.cpp: Print a better error message wh.en a bad + gradient value is read before aborting. + +2006-01-19 Rob Savoye + + * utilities/Makefile.am: Link with AM_LDFLAGS. + * utilities/parser.cpp: Include config.h. Define gofast, goslow, + and nodelay. + * utilities/processor.cpp: Include config.h. Define gofast, + goslow, and nodelay. + * configure.ac: Look for mkinstalldirs. Remove test for GLUT, it's + not used anymore. + * doc/C/gnash.xml: Update copyright year. + * backend/gnash.cpp: Include config.h. Give default values to + gofast and goslow. + * backend/Makefile.am: Don't install compatibility_include.h. + * libbase/Makefile.am: Remove unused install hook. + * libgeometry/Makefile.am: Remove unused install hook. + * server/Makefile.am: Remove unused install hook. + * config.mk.in: Remove GLUT variable. + * All GPL'd Files: Update copyright year. + * macros/firefox.m4: Get the java and plugin flags from + $mconfig. Don't look for GLUT, it'sm not needed. + * plugin/Makefile.am: Add include paths for all the Gnash + directories and libxml2. + +2006-01-08 Rob Savoye + + * configure.ac: Print out an error message if any of the critical + development packages aren't installed. + + * testsuite/movies.all: New sub directory for whole movies used + for demos and testing. + * testsuite/movies.all/ORIGIN: List where all these movies came + from originally. + * testsuite/movies.all/elvis.swf: Dancing figures movie. Makes a + decent performance test. + + * testsuite/actionscript.all/movieclip_test.swf, + moviecliploader_test.swf, text_formatting.swf, text_sizes.swf, + visible_and_transparency.swf: New test cases. + * testsuite/actionscript.all/green.jpg,lynch.jpg,offspring.jpg: + New image files for the MovieClip and MovieClipLoader test cases. + + * testsuite: New directory for DejaGnu test suite. + * testsuite/config: New directory for DejaGnu config files. + * testsuite/lib: New directory for DejaGnu library files. + * testsuite/actionscript.all: New directory for ActionScript test + cases. + +2006-01-07 Rob Savoye + + * server/impl.cpp (gnash): Use unsigned int for for loops so we + don't have problems with comparing integers. + +2006-01-07 Rob Savoye + + * plugin/plugin.cpp (eventThread): Add background thread for + processing flash movies. Merge in OpenGL/SDL support from the + standalone player. Start a thread for each new stream. + +2006-01-06 Rob Savoye + + * server/sound_handler_mp3.cpp: Build if libmad exists. + * configure.ac: Rearrange the final display lines, and the order + some of the tests are done in. Look for libmad. + * backend/Makefile.am: Add OpenGL flags so Darwin is happy. + * libgeometry/Makefile.am: Add OpenGL flags so Darwin is happy. + * server/Makefile.am: Add sound_handler_mp3.cpp. + + * macros/opengl.m4: Rewrite completely. Add --with-opengl optins + for the paths, and also make --disable-opengl work correctly. + + * libgeometry/geometry.h(math): Rename _X, _Y, or _Z because on + Darwin they conflict with system header definitions. + + * configure.in, config.h.in, all Makefiles.in: Remove generated + files from CVS. Running autogen.sh will regenerate them. + +2006-01-05 Rob Savoye + + * server/action.cpp: Cast to void * to print the pointer address. + + * libbase/triangulate.h: Migrate patch from GameSWF. + * libbase/triangulate_impl.h: Migrate patch from GameSWF. + * libbase/triangulate_float.cpp: Migrate patch from GameSWF. + * libbase/triangulate_sint32.cpp: Migrate patch from GameSWF. + +2005-12-27 Rob Savoye + + * doc/C/gnash.xml: Add sections on software dependancies, + configuring, installing, and running Gnash. + + * server/Makefile.am: Don't install the libraries in a package + subdirectory of $libdir. + * libbase/Makefile.am: Don't install the libraries in a package + subdirectory of $libdir. + * libgeometry/Makefile.am: Don't install the libraries in a + package subdirectory of $libdir. + + * autogen.sh: If any command arguments are supplied, don't run + automake, as nothing has changed but the configure script. This is + to reduce clutter in the checkin messages when only a configure + change has been made. + + * macros/libXML.m4: Don't look for XML libraries in the prefix + directory. + * macros/firefox.m4: Don't look for Firefox libraries in the + prefix directory. + +2005-12-26 Rob Savoye + + * Makefile.am: Add doc subdirectory to DIST_SUBDIRS so it gets + included in the tarball, but isn't part of the SUBDIRS, since we + don't always want to build the docs. + + * macros/libXML.m4: Make the --with-libxml-include and + --with-libxml-libraries add the library to the path. Test if + pk-config exists. Use it if it does, but if it doesn't, do a brute + force check of standard install locations for the XML2 headers and + library. + + * backend/gnash.cpp: Define gofast and goslow here instead of + xmlsocket.cpp. + * server/xmlsocket.cpp: Reference gofast and goslow as externs so + gnash actually builds with --disable-xml. + +2005-12-25 Rob Savoye + + * plugin/plugin.cpp: Fix plugin name so it's recognized correctly + to play flash movies looking for the proprietary Flash + player. Instead of rendering the flash movie, copy the byte stream + to /tmp instead so we can collect more test cases. + + * configure.ac: Fix the --disable-xml option so it actually + works. + +2005-12-21 Rob Savoye + + * macros/firefox.m4: Move enable test to here. If firefox-config + doesn't exist, look for mozilla-config. If neither exists, the + plugin won't be built as the mozilla development headers and + libraries aren't installed. + * Makefile.am: Don't try to build the plugin if the mozilla + development SDK isn't installed. + + * config.h.in: Checkin header file produced by autoheader so Gnash + builds on machines without the Autotools installed. + * doc/C/images/car_crash.txt: Add file for alt text so conversion + to info works correctly. + + * doc/C/gnash.xml: Update legal notices. + * doc/C/fdl-appendix.xml: Add FDL in DocBook format. + +2005-12-20 Rob Savoye + + * libbase/Makefile.am, libgeometry/Makefile.am, + server/Makefile.am: Don't install the headers. + * plugin/mozilla-sdk/Makefile.am: Install the SDK library. + + * doc/C/gnash.xml: Add more content beyond just the command line + arguments. Add a screenshot of the car crash test case. + * configure.ac: Drop the plugin/test directory, it's unused for + now. + +2005-12-11 Rob Savoye + + * server/xml.cpp, xml.h: Update copyright notice. + * server/xmlsocket.cpp, xmlsocket.h: Update copyright notice. + +2005-12-10 Rob Savoye + + * AUTHORS, README, NEWS: Add content. + From MAILER-DAEMON Wed Jun 13 12:52:11 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyW4p-0005Bd-Ml for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 12:52:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyW4n-0005BY-Hg for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:52:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyW4m-0005BM-Vu for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:52:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyW4m-0005BJ-Pv for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:52:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyW4m-0008BH-EV for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:52:08 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyW4f-0004WS-5F for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:52:01 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyW4e-0004WN-Nx for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:52:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 16:52:00 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 16:52:10 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 16:52:00 Modified files: . : ChangeLog server : edit_text_character.cpp Log message: * server/edit_text_character.cpp (format_text): implement no word wra CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3528&r2=1.3529 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.66&r2=1.67 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3528 retrieving revision 1.3529 diff -u -b -r1.3528 -r1.3529 --- ChangeLog 13 Jun 2007 16:40:44 -0000 1.3528 +++ ChangeLog 13 Jun 2007 16:52:00 -0000 1.3529 @@ -1,5 +1,6 @@ 2007-06-13 Sandro Santilli + * server/edit_text_character.cpp (format_text): implement no word wra * server/FreetypeGlyphsProvider.{cpp,h}: document coordinate space of getGlyph output values and implement proper scaling between freetype glyph EM units and our 1024 EM square. Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.66 retrieving revision 1.67 diff -u -b -r1.66 -r1.67 --- server/edit_text_character.cpp 12 Jun 2007 12:33:21 -0000 1.66 +++ server/edit_text_character.cpp 13 Jun 2007 16:52:00 -0000 1.67 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.66 2007/06/12 12:33:21 strk Exp $ */ +/* $Id: edit_text_character.cpp,v 1.67 2007/06/13 16:52:00 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -858,8 +858,8 @@ //assert(extra_space >= 0.0f); if (extra_space <= 0.0f) { - log_error(_("TextField text doesn't fit in its boundaries: " - "width %g, margin %d"), + log_debug(_("TextField text doesn't fit in its boundaries: " + "width %g, margin %d - nothing to align"), m_def->width(), m_def->get_right_margin()); return 0.0f; } @@ -1153,12 +1153,17 @@ if ( ! m_def->do_word_wrap() ) { - static bool warned=false; - if ( ! warned ) + // TODO: scan more glyphs till newline and continue + bool newlinefound = false; + while (code = utf8::decode_next_unicode_character(&text)) { - log_unimpl("edit_text_character: no word wrap"); - warned=true; + if (code == 13 || code == 10) + { + newlinefound = true; + break; + } } + if ( ! newlinefound ) break; } // Insert newline. From MAILER-DAEMON Wed Jun 13 12:53:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyW6R-00066n-F6 for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 12:53:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyW6Q-00066e-GK for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:53:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyW6P-00066R-Pf for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:53:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyW6P-00066A-Hr for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:53:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyW6P-0008VS-29 for gnash-commit@gnu.org; Wed, 13 Jun 2007 12:53:49 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyW6O-0004fS-G6 for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:53:48 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyW6O-0004fO-92 for gnash-commit@gnu.org; Wed, 13 Jun 2007 16:53:48 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 16:53:48 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 16:53:50 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 16:53:48 Modified files: . : ChangeLog testsuite/misc-ming.all: DefineEditTextTest.c Log message: * testsuite/misc-ming.all/DefineEditTextTest.c: put reduced margins back, to verify no word wrap works. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3529&r2=1.3530 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextTest.c?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3529 retrieving revision 1.3530 diff -u -b -r1.3529 -r1.3530 --- ChangeLog 13 Jun 2007 16:52:00 -0000 1.3529 +++ ChangeLog 13 Jun 2007 16:53:47 -0000 1.3530 @@ -1,5 +1,7 @@ 2007-06-13 Sandro Santilli + * testsuite/misc-ming.all/DefineEditTextTest.c: put reduced margins + back, to verify no word wrap works. * server/edit_text_character.cpp (format_text): implement no word wra * server/FreetypeGlyphsProvider.{cpp,h}: document coordinate space of getGlyph output values and implement proper scaling between freetype Index: testsuite/misc-ming.all/DefineEditTextTest.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextTest.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- testsuite/misc-ming.all/DefineEditTextTest.c 13 Jun 2007 09:59:43 -0000 1.7 +++ testsuite/misc-ming.all/DefineEditTextTest.c 13 Jun 2007 16:53:48 -0000 1.8 @@ -57,8 +57,8 @@ * * Ref: https://savannah.gnu.org/bugs/?func=detailitem&item_id=16637. */ - //SWFTextField_setBounds(tf, 160, 338); - SWFTextField_setBounds(tf, 60000, 338); + SWFTextField_setBounds(tf, 260, 338); + //SWFTextField_setBounds(tf, 60000, 338); /* * The following settings (found in the reported SWF) From MAILER-DAEMON Wed Jun 13 13:44:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyWt2-0008JP-W4 for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 13:44:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyWt1-0008J0-Gy for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:44:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyWt0-0008Io-Qg for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:44:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyWt0-0008Il-Nt for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:44:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyWt0-0008RG-FJ for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:44:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyWsz-00012D-V8 for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:44:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyWsz-00012A-QB for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:44:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 17:44:01 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog macros/agg.m4 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 17:44:03 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 17:44:01 Modified files: . : ChangeLog macros : agg.m4 Log message: Patch by Andrew Guertin: * macros/agg.m4: print the missing "checking for AGG headers" line. (patch #5933) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3530&r2=1.3531 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/agg.m4?cvsroot=gnash&r1=1.27&r2=1.28 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3530 retrieving revision 1.3531 diff -u -b -r1.3530 -r1.3531 --- ChangeLog 13 Jun 2007 16:53:47 -0000 1.3530 +++ ChangeLog 13 Jun 2007 17:44:00 -0000 1.3531 @@ -1,3 +1,8 @@ +2007-06-13 Andrew Guertin + + * macros/agg.m4: print the missing "checking for AGG headers" line. + (patch #5933) + 2007-06-13 Sandro Santilli * testsuite/misc-ming.all/DefineEditTextTest.c: put reduced margins Index: macros/agg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/agg.m4,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- macros/agg.m4 28 Apr 2007 00:04:26 -0000 1.27 +++ macros/agg.m4 13 Jun 2007 17:44:01 -0000 1.28 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: agg.m4,v 1.27 2007/04/28 00:04:26 rsavoye Exp $ +dnl $Id: agg.m4,v 1.28 2007/06/13 17:44:01 strk Exp $ dnl agg_rasterizer_compound_aa.h is a new file included in AGG 2.4, dnl but not in AGG 2.3. As we need AGG 2.4, we use this as @@ -22,6 +22,7 @@ [ dnl Lool for the header AC_ARG_WITH(agg_incl, AC_HELP_STRING([--with-agg-incl], [directory where AGG headers are]), with_agg_incl=${withval}) + AC_MSG_CHECKING([for AGG headers]) AC_CACHE_VAL(ac_cv_path_agg_incl, [ if test x"${with_agg_incl}" != x ; then if test -f ${with_agg_incl}/agg_rasterizer_compound_aa.h ; then @@ -51,7 +52,6 @@ fi if test x"${ac_cv_path_agg_incl}" = x; then - AC_MSG_CHECKING([for AGG headers]) for i in $incllist; do if test -f $i/agg2/agg_gradient_lut.h; then ac_cv_path_agg_incl="-I$i/agg2" From MAILER-DAEMON Wed Jun 13 13:51:28 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyX0C-0003ha-PQ for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 13:51:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyX0A-0003f6-Qg for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:51:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyX0A-0003eQ-Dq for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:51:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyX0A-0003eI-50 for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:51:26 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyX09-00010C-RO for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:51:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyX09-0001Tg-95 for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:51:25 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyX09-0001Td-5d for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:51:25 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 17:51:25 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 17:51:27 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 17:51:25 Modified files: . : ChangeLog configure.ac Log message: Another patch from andrew (#5934) * configure.ac: removes the duplicate "Checking" and adds the missing newline while checking for archiver type. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3531&r2=1.3532 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.340&r2=1.341 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3531 retrieving revision 1.3532 diff -u -b -r1.3531 -r1.3532 --- ChangeLog 13 Jun 2007 17:44:00 -0000 1.3531 +++ ChangeLog 13 Jun 2007 17:51:24 -0000 1.3532 @@ -1,5 +1,7 @@ 2007-06-13 Andrew Guertin + * configure.ac: removes the duplicate "Checking" and adds the missing + newline while checking for archiver type. * macros/agg.m4: print the missing "checking for AGG headers" line. (patch #5933) Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.340 retrieving revision 1.341 diff -u -b -r1.340 -r1.341 --- configure.ac 13 Jun 2007 09:59:42 -0000 1.340 +++ configure.ac 13 Jun 2007 17:51:24 -0000 1.341 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.340 2007/06/13 09:59:42 strk Exp $ +dnl $Id: configure.ac,v 1.341 2007/06/13 17:51:24 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -441,11 +441,13 @@ dnl we have here now. For some reason on Darwin, we don't get the dnl count from grep via stdin correctly. Writing a temp file does the dnl trick, so although it's ugly, that's what we gotta do... -AC_MSG_CHECKING([Checking which type of library archiver we have]) +AC_MSG_CHECKING([which type of library archiver we have]) rm -f .tmp libtool > .tmp 2>&1 archiver=`grep -c dynamic .tmp 2>&1` rm -f .tmp +dnl is there any good way to report what we found here? +AC_MSG_RESULT() if test $archiver -eq 1; then dnl if test "$enable_shared" = no; then dnl AR="libtool -static" From MAILER-DAEMON Wed Jun 13 13:56:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyX4w-0004ME-OJ for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 13:56:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyX4v-0004Li-S3 for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:56:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyX4v-0004LI-0P for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:56:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyX4u-0004LC-R0 for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:56:20 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyX4u-0001dH-AP for gnash-commit@gnu.org; Wed, 13 Jun 2007 13:56:20 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyX4t-0001tM-5u for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:56:19 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyX4s-0001tI-S5 for gnash-commit@gnu.org; Wed, 13 Jun 2007 17:56:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 17:56:18 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/gtk.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 17:56:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 17:56:18 Modified files: . : ChangeLog gui : gtk.cpp Log message: By petr.pisar@atlas.cz: * gui/gtk.cpp: internationalize menus. (patch #6006). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3532&r2=1.3533 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.93&r2=1.94 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3532 retrieving revision 1.3533 diff -u -b -r1.3532 -r1.3533 --- ChangeLog 13 Jun 2007 17:51:24 -0000 1.3532 +++ ChangeLog 13 Jun 2007 17:56:17 -0000 1.3533 @@ -1,3 +1,7 @@ +2007-06-13 petr.pisar@atlas.cz + + * gui/gtk.cpp: internationalize menus. (patch #6006). + 2007-06-13 Andrew Guertin * configure.ac: removes the duplicate "Checking" and adds the missing Index: gui/gtk.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.93 retrieving revision 1.94 diff -u -b -r1.93 -r1.94 --- gui/gtk.cpp 13 Jun 2007 02:49:32 -0000 1.93 +++ gui/gtk.cpp 13 Jun 2007 17:56:18 -0000 1.94 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.93 2007/06/13 02:49:32 strk Exp $ */ +/* $Id: gtk.cpp,v 1.94 2007/06/13 17:56:18 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1264,7 +1264,7 @@ GtkGui::createFileMenu(GtkWidget *obj) { // GNASH_REPORT_FUNCTION; - GtkWidget *menuitem = gtk_menu_item_new_with_mnemonic ("File"); + GtkWidget *menuitem = gtk_menu_item_new_with_mnemonic (_("File")); gtk_widget_show (menuitem); gtk_container_add (GTK_CONTAINER (obj), menuitem); @@ -1308,14 +1308,14 @@ { // GNASH_REPORT_FUNCTION; - GtkWidget *menuitem = gtk_menu_item_new_with_label ("Edit"); + GtkWidget *menuitem = gtk_menu_item_new_with_label (_("Edit")); gtk_widget_show (menuitem); gtk_container_add (GTK_CONTAINER (obj), menuitem); GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu); - GtkWidget *preferences1 = gtk_menu_item_new_with_label ("Preferences"); + GtkWidget *preferences1 = gtk_menu_item_new_with_label (_("Preferences")); gtk_widget_show (preferences1); gtk_container_add (GTK_CONTAINER (menu), preferences1); @@ -1329,14 +1329,14 @@ GtkGui::createHelpMenu(GtkWidget *obj) { // GNASH_REPORT_FUNCTION; - GtkWidget *menuitem = gtk_menu_item_new_with_label ("Help"); + GtkWidget *menuitem = gtk_menu_item_new_with_label (_("Help")); gtk_widget_show (menuitem); gtk_container_add (GTK_CONTAINER (obj), menuitem); GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu); - GtkWidget *about = gtk_menu_item_new_with_label ("About"); + GtkWidget *about = gtk_menu_item_new_with_label (_("About")); gtk_widget_show (about); gtk_container_add (GTK_CONTAINER (menu), about); @@ -1350,7 +1350,7 @@ GtkGui::createControlMenu(GtkWidget *obj) { // GNASH_REPORT_FUNCTION; - GtkWidget *menuitem_control = gtk_menu_item_new_with_label ("Movie Control"); + GtkWidget *menuitem_control = gtk_menu_item_new_with_label (_("Movie Control")); gtk_widget_show (menuitem_control); gtk_container_add (GTK_CONTAINER (obj), menuitem_control); @@ -1358,51 +1358,51 @@ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem_control), menu); GtkMenuItem *menuitem_play = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Play Movie")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Play Movie"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_play)); gtk_widget_show(GTK_WIDGET(menuitem_play)); g_signal_connect ((gpointer) menuitem_play, "activate", G_CALLBACK (&menuitem_play_callback), this); GtkMenuItem *menuitem_pause = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Pause Movie")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Pause Movie"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_pause)); gtk_widget_show(GTK_WIDGET(menuitem_pause)); g_signal_connect ((gpointer) menuitem_pause, "activate", G_CALLBACK (&menuitem_pause_callback), this); GtkMenuItem *menuitem_stop = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Stop Movie")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Stop Movie"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_stop)); gtk_widget_show(GTK_WIDGET(menuitem_stop)); g_signal_connect ((gpointer) menuitem_stop, "activate", G_CALLBACK (&menuitem_stop_callback), this); GtkMenuItem *menuitem_restart = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Restart Movie")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Restart Movie"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_restart)); gtk_widget_show(GTK_WIDGET(menuitem_restart)); g_signal_connect ((gpointer) menuitem_restart, "activate", G_CALLBACK (&menuitem_restart_callback), this); GtkMenuItem *menuitem_step_forward = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Step Forward Frame")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Step Forward Frame"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_step_forward)); gtk_widget_show(GTK_WIDGET(menuitem_step_forward)); // gtk_widget_add_accelerator (GTK_WIDGET(menuitem_step_forward), "activate", accel_group, // GDK_bracketleft, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); GtkMenuItem *menuitem_step_backward = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Step Backward Frame")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Step Backward Frame"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_step_backward)); gtk_widget_show(GTK_WIDGET(menuitem_step_backward)); // gtk_widget_add_accelerator (GTK_WIDGET(menuitem_step_forward), "activate", accel_group, // GDK_bracketright, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); GtkMenuItem *menuitem_jump_forward = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Jump Forward 10 Frames")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Jump Forward 10 Frames"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_jump_forward)); gtk_widget_show(GTK_WIDGET(menuitem_jump_forward)); GtkMenuItem *menuitem_jump_backward = - GTK_MENU_ITEM(gtk_menu_item_new_with_label("Jump Backward 10 Frames")); + GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Jump Backward 10 Frames"))); gtk_menu_append(menu, GTK_WIDGET(menuitem_jump_backward)); gtk_widget_show(GTK_WIDGET(menuitem_jump_backward)); } From MAILER-DAEMON Wed Jun 13 15:17:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyYLn-0007mw-4p for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyYLl-0007m7-Nn for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyYLj-0007l8-Pb for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyYLj-0007l0-KR for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:47 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyYLj-0002hr-9s for gnash-commit@gnu.org; Wed, 13 Jun 2007 15:17:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyYLh-0001km-N4 for gnash-commit@gnu.org; Wed, 13 Jun 2007 19:17:45 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyYLh-0001ki-Dl for gnash-commit@gnu.org; Wed, 13 Jun 2007 19:17:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 13 Jun 2007 19:17:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 19:17:50 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/13 19:17:45 Modified files: . : ChangeLog Log message: updated contributor name CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3533&r2=1.3534 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3533 retrieving revision 1.3534 diff -u -b -r1.3533 -r1.3534 --- ChangeLog 13 Jun 2007 17:56:17 -0000 1.3533 +++ ChangeLog 13 Jun 2007 19:17:44 -0000 1.3534 @@ -1,4 +1,4 @@ -2007-06-13 petr.pisar@atlas.cz +2007-06-13 Petr Pisar * gui/gtk.cpp: internationalize menus. (patch #6006). From MAILER-DAEMON Wed Jun 13 22:03:24 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyegG-0006Ou-Cv for mharc-gnash-commit@gnu.org; Wed, 13 Jun 2007 22:03:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyegE-0006Oe-So for gnash-commit@gnu.org; Wed, 13 Jun 2007 22:03:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyegE-0006OE-3x for gnash-commit@gnu.org; Wed, 13 Jun 2007 22:03:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyegD-0006OB-RZ for gnash-commit@gnu.org; Wed, 13 Jun 2007 22:03:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyegD-0001jU-AH for gnash-commit@gnu.org; Wed, 13 Jun 2007 22:03:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyegC-0000so-Ix for gnash-commit@gnu.org; Thu, 14 Jun 2007 02:03:20 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyegC-0000sj-0e for gnash-commit@gnu.org; Thu, 14 Jun 2007 02:03:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 14 Jun 2007 02:03:20 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/character.h server/dlist... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 02:03:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/14 02:03:19 Modified files: . : ChangeLog server : character.h dlist.h dlist.cpp sprite_instance.h sprite_instance.cpp server/parser : morph2_character_def.cpp server/swf : PlaceObject2Tag.h PlaceObject2Tag.cpp server/vm : action.cpp testsuite/server: DisplayListTest.cpp Log message: change type of ratio from float to integer, don't re-interpret the definition CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3534&r2=1.3535 http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.h?cvsroot=gnash&r1=1.81&r2=1.82 http://cvs.savannah.gnu.org/viewcvs/gnash/server/dlist.h?cvsroot=gnash&r1=1.42&r2=1.43 http://cvs.savannah.gnu.org/viewcvs/gnash/server/dlist.cpp?cvsroot=gnash&r1=1.69&r2=1.70 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.117&r2=1.118 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.285&r2=1.286 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/morph2_character_def.cpp?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/PlaceObject2Tag.h?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/PlaceObject2Tag.cpp?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/action.cpp?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/DisplayListTest.cpp?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3534 retrieving revision 1.3535 diff -u -b -r1.3534 -r1.3535 --- ChangeLog 13 Jun 2007 19:17:44 -0000 1.3534 +++ ChangeLog 14 Jun 2007 02:03:17 -0000 1.3535 @@ -1,3 +1,17 @@ +2007-06-14 Zou Lunkai + + * server/character.h, + server/dlist.h, + server/dlist.cpp, + server/sprite_instance.h, + server/sprite_instance.cpp, + server/parser/morph2_character_def.cpp, + server/swf/PlaceObject2Tag.h, + server/swf/PlaceObject2Tag.cpp, + server/vm/action.cpp, + testsuite/server/DisplayListTest.cpp, + change type of "ratio" from float to integer, don't re-interpret the definition. + 2007-06-13 Petr Pisar * gui/gtk.cpp: internationalize menus. (patch #6006). Index: server/character.h =================================================================== RCS file: /sources/gnash/gnash/server/character.h,v retrieving revision 1.81 retrieving revision 1.82 diff -u -b -r1.81 -r1.82 --- server/character.h 8 Jun 2007 12:11:50 -0000 1.81 +++ server/character.h 14 Jun 2007 02:03:17 -0000 1.82 @@ -19,7 +19,7 @@ // // -/* $Id: character.h,v 1.81 2007/06/08 12:11:50 zoulunkai Exp $ */ +/* $Id: character.h,v 1.82 2007/06/14 02:03:17 zoulunkai Exp $ */ #ifndef GNASH_CHARACTER_H #define GNASH_CHARACTER_H @@ -131,7 +131,7 @@ int m_depth; cxform m_color_transform; matrix m_matrix; - float m_ratio; + int m_ratio; int m_clip_depth; Events _event_handlers; void (*m_display_callback)(void*); @@ -325,7 +325,7 @@ : m_id(id), m_depth(0), - m_ratio(0.0f), + m_ratio(0), m_clip_depth(noClipDepthValue), m_display_callback(NULL), m_display_callback_user_ptr(NULL), @@ -405,10 +405,10 @@ } void concatenate_cxform(const cxform& cx) { m_color_transform.concatenate(cx); } void concatenate_matrix(const matrix& m) { m_matrix.concatenate(m); } - float get_ratio() const { return m_ratio; } - void set_ratio(float f) { - if (f!=m_ratio) set_invalidated(__FILE__, __LINE__); - m_ratio = f; + int get_ratio() const { return m_ratio; } + void set_ratio(int r) { + if (r!=m_ratio) set_invalidated(__FILE__, __LINE__); + m_ratio = r; } /// Returns the clipping depth (if any) of this character. The parameter is Index: server/dlist.h =================================================================== RCS file: /sources/gnash/gnash/server/dlist.h,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- server/dlist.h 24 May 2007 18:09:57 -0000 1.42 +++ server/dlist.h 14 Jun 2007 02:03:18 -0000 1.43 @@ -91,7 +91,7 @@ int depth, const cxform& color_xform, const matrix& mat, - float ratio, + int ratio, int clip_depth); /// \brief @@ -115,7 +115,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth); /// \brief @@ -161,7 +161,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth); /// Removes the object at the specified depth. Index: server/dlist.cpp =================================================================== RCS file: /sources/gnash/gnash/server/dlist.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -u -b -r1.69 -r1.70 --- server/dlist.cpp 24 May 2007 18:09:57 -0000 1.69 +++ server/dlist.cpp 14 Jun 2007 02:03:18 -0000 1.70 @@ -171,7 +171,7 @@ int depth, const cxform& color_xform, const matrix& mat, - float ratio, + int ratio, int clip_depth) { // GNASH_REPORT_FUNCTION; @@ -254,7 +254,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth) { //GNASH_REPORT_FUNCTION; @@ -333,7 +333,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int /* clip_depth */) { //GNASH_REPORT_FUNCTION; Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.117 retrieving revision 1.118 diff -u -b -r1.117 -r1.118 --- server/sprite_instance.h 28 May 2007 15:41:07 -0000 1.117 +++ server/sprite_instance.h 14 Jun 2007 02:03:18 -0000 1.118 @@ -371,7 +371,7 @@ bool replace_if_depth_is_occupied, const cxform& color_transform, const matrix& matrix, - float ratio, + int ratio, int clip_depth); /// Attach the given character instance to current display list @@ -422,7 +422,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth) { m_display_list.move_display_object(depth, color_xform, mat, ratio, clip_depth); @@ -444,7 +444,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth); @@ -463,7 +463,7 @@ int depth, const cxform* color_xform, const matrix* mat, - float ratio, + int ratio, int clip_depth); @@ -934,7 +934,7 @@ void place_character(character* ch, int depth, const cxform& color_transform, const matrix& mat, - float ratio, int clip_depth) + int ratio, int clip_depth) { m_display_list.place_character(ch, depth, color_transform, mat, ratio, clip_depth); } Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.285 retrieving revision 1.286 diff -u -b -r1.285 -r1.286 --- server/sprite_instance.cpp 8 Jun 2007 12:11:50 -0000 1.285 +++ server/sprite_instance.cpp 14 Jun 2007 02:03:18 -0000 1.286 @@ -2022,7 +2022,7 @@ depth, color_transform, matrix, - 0.0f, + 0, character::noClipDepthValue); return sprite; @@ -2056,7 +2056,7 @@ depth, cxform(), txt_matrix, - 0.0f, + 0, character::noClipDepthValue); static bool warned = false; @@ -3026,7 +3026,7 @@ depth, cxform(), matrix(), - 1.0, + 65535, character::noClipDepthValue); return true; // FIXME: check return from place_character above ? @@ -3040,7 +3040,7 @@ int depth, bool replace_if_depth_is_occupied, const cxform& color_transform, const matrix& mat, - float ratio, int clip_depth) + int ratio, int clip_depth) { // GNASH_REPORT_FUNCTION; assert(m_def != NULL); @@ -3189,7 +3189,7 @@ int depth, const cxform* color_transform, const matrix* mat, - float ratio, + int ratio, int clip_depth) { assert(m_def != NULL); @@ -3263,7 +3263,7 @@ int depth, const cxform* color_transform, const matrix* mat, - float ratio, + int ratio, int clip_depth) { //printf("%s: character %s, id is %d\n", __FUNCTION__, name, ch->get_id()); // FIXME: @@ -3788,7 +3788,7 @@ cxform color_transform = get_cxform(); bool use_matrix = false; matrix mat = get_matrix(); - float ratio = get_ratio(); + int ratio = get_ratio(); int clip_depth = get_clip_depth(); //character* new_movie = extern_movie->get_root_movie(); Index: server/parser/morph2_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/morph2_character_def.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/parser/morph2_character_def.cpp 15 May 2007 13:54:59 -0000 1.8 +++ server/parser/morph2_character_def.cpp 14 Jun 2007 02:03:18 -0000 1.9 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: morph2_character_def.cpp,v 1.8 2007/05/15 13:54:59 strk Exp $ */ +/* $Id: morph2_character_def.cpp,v 1.9 2007/06/14 02:03:18 zoulunkai Exp $ */ // Based on the public domain morph2.cpp of: // Thatcher Ulrich , Mike Shaver 2003, @@ -117,7 +117,7 @@ // GNASH_REPORT_FUNCTION; unsigned int i; - float ratio = inst->get_ratio(); //m_ratio; + float ratio = inst->get_ratio() / 65535.0; // bounds rect new_bound; Index: server/swf/PlaceObject2Tag.h =================================================================== RCS file: /sources/gnash/gnash/server/swf/PlaceObject2Tag.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/swf/PlaceObject2Tag.h 28 May 2007 15:41:09 -0000 1.9 +++ server/swf/PlaceObject2Tag.h 14 Jun 2007 02:03:19 -0000 1.10 @@ -19,7 +19,7 @@ // // -/* $Id: PlaceObject2Tag.h,v 1.9 2007/05/28 15:41:09 ann Exp $ */ +/* $Id: PlaceObject2Tag.h,v 1.10 2007/06/14 02:03:19 zoulunkai Exp $ */ #ifndef GNASH_SWF_PLACEOBJECT2TAG_H #define GNASH_SWF_PLACEOBJECT2TAG_H @@ -103,7 +103,7 @@ int m_tag_type; char* m_name; - float m_ratio; + int m_ratio; cxform m_color_transform; matrix m_matrix; bool m_has_matrix; Index: server/swf/PlaceObject2Tag.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/PlaceObject2Tag.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- server/swf/PlaceObject2Tag.cpp 24 May 2007 18:09:58 -0000 1.13 +++ server/swf/PlaceObject2Tag.cpp 14 Jun 2007 02:03:19 -0000 1.14 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: PlaceObject2Tag.cpp,v 1.13 2007/05/24 18:09:58 strk Exp $ */ +/* $Id: PlaceObject2Tag.cpp,v 1.14 2007/06/14 02:03:19 zoulunkai Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -239,7 +239,7 @@ m_color_transform.read_rgba(in); } - if (has_ratio) m_ratio = (float)in->read_u16() / (float)65535; + if (has_ratio) m_ratio = in->read_u16(); if (has_name) m_name = in->read_string(); @@ -283,7 +283,7 @@ log_parse(_(" cxform:")); m_color_transform.print(); } - if ( has_ratio ) log_parse(_(" ratio: %f"), m_ratio); + if ( has_ratio ) log_parse(_(" ratio: %d"), m_ratio); if ( has_name ) log_parse(_(" name = %s"), m_name ? m_name : ""); if ( has_clip_bracket ) log_parse(_(" clip_depth = %d (%d)"), m_clip_depth, m_clip_depth-character::staticDepthOffset); log_parse(_(" m_place_type: %d"), m_place_type); Index: server/vm/action.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/action.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- server/vm/action.cpp 24 May 2007 18:09:58 -0000 1.20 +++ server/vm/action.cpp 14 Jun 2007 02:03:19 -0000 1.21 @@ -175,7 +175,7 @@ const character* tar = (const character*)target; const char* name = tar->get_name().c_str(); uint16_t depth = tar->get_depth(); - float ratio = tar->get_ratio(); + int ratio = tar->get_ratio(); uint16_t clip_depth = tar->get_clip_depth(); character* parent = tar->get_parent(); Index: testsuite/server/DisplayListTest.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/server/DisplayListTest.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- testsuite/server/DisplayListTest.cpp 28 May 2007 15:41:13 -0000 1.4 +++ testsuite/server/DisplayListTest.cpp 14 Jun 2007 02:03:19 -0000 1.5 @@ -65,13 +65,13 @@ boost::intrusive_ptr ch1 ( new DummyCharacter() ); boost::intrusive_ptr ch2 ( new DummyCharacter() ); - dlist1.place_character( ch1.get(), 1, color, mat, 0.0f, 0); - dlist1.place_character( ch2.get(), 2, color, mat, 0.0f, 0); + dlist1.place_character( ch1.get(), 1, color, mat, 0, 0); + dlist1.place_character( ch2.get(), 2, color, mat, 0, 0); check(dlist1 != dlist2); - dlist2.place_character( ch2.get(), 1, color, mat, 0.0f, 0); - dlist2.place_character( ch1.get(), 2, color, mat, 0.0f, 0); + dlist2.place_character( ch2.get(), 1, color, mat, 0, 0); + dlist2.place_character( ch1.get(), 2, color, mat, 0, 0); // Resort dlist1 as depth of it's chars has been changed // by place_character calls above :/ From MAILER-DAEMON Thu Jun 14 03:17:18 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hyja2-0005ev-1t for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 03:17:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyjZz-0005eJ-S2 for gnash-commit@gnu.org; Thu, 14 Jun 2007 03:17:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyjZy-0005dz-F6 for gnash-commit@gnu.org; Thu, 14 Jun 2007 03:17:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyjZy-0005dw-B1 for gnash-commit@gnu.org; Thu, 14 Jun 2007 03:17:14 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyjZx-00049I-Sp for gnash-commit@gnu.org; Thu, 14 Jun 2007 03:17:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyjZw-0002BS-SH for gnash-commit@gnu.org; Thu, 14 Jun 2007 07:17:13 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyjZw-0002BO-Kk for gnash-commit@gnu.org; Thu, 14 Jun 2007 07:17:12 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 07:17:12 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog Makefile.am configure.ac server... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 07:17:16 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 07:17:12 Modified files: . : ChangeLog Makefile.am configure.ac server : FreetypeGlyphsProvider.cpp Makefile.am server/parser : Makefile.am Log message: * Makefile.am, configure.ac: look for freetype2, not freetype (for pkg-config to be effective). Rename _CFLAGS and _LIBS to be FREETYPE2, not FREETYPE * server/Makefile.am, server/parser/Makefile.am: Use FREETYPE2_{CFLAGS,LIBS} * server/FreetypeGlyphsProvider.cpp: use an FT_CONST macro to switch between constness of Outline walker func between freetype 2.1 (wants non-const) and 2.2 (wants const). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3535&r2=1.3536 http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&r1=1.77&r2=1.78 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.341&r2=1.342 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.cpp?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Makefile.am?cvsroot=gnash&r1=1.118&r2=1.119 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/Makefile.am?cvsroot=gnash&r1=1.35&r2=1.36 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3535 retrieving revision 1.3536 diff -u -b -r1.3535 -r1.3536 --- ChangeLog 14 Jun 2007 02:03:17 -0000 1.3535 +++ ChangeLog 14 Jun 2007 07:17:10 -0000 1.3536 @@ -1,3 +1,14 @@ +2007-06-14 Hubert Figuiere + + * Makefile.am, configure.ac: look for freetype2, not freetype + (for pkg-config to be effective). Rename _CFLAGS and _LIBS + to be FREETYPE2, not FREETYPE + * server/Makefile.am, server/parser/Makefile.am: + Use FREETYPE2_{CFLAGS,LIBS} + * server/FreetypeGlyphsProvider.cpp: use an FT_CONST macro + to switch between constness of Outline walker func between + freetype 2.1 (wants non-const) and 2.2 (wants const). + 2007-06-14 Zou Lunkai * server/character.h, Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.77 retrieving revision 1.78 diff -u -b -r1.77 -r1.78 --- Makefile.am 13 Jun 2007 09:59:42 -0000 1.77 +++ Makefile.am 14 Jun 2007 07:17:10 -0000 1.78 @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# $Id: Makefile.am,v 1.77 2007/06/13 09:59:42 strk Exp $ +# $Id: Makefile.am,v 1.78 2007/06/14 07:17:10 strk Exp $ ## Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = 1.6.0 @@ -193,8 +193,8 @@ @echo " Z_LIBS is $(Z_LIBS)" @echo " LIBXML_CFLAGS is $(LIBXML_CFLAGS)" @echo " LIBXML_LIBS is $(LIBXML_LIBS)" - @echo " FREETYPE_CFLAGS is $(FREETYPE_CFLAGS)" - @echo " FREETYPE_LIBS is $(FREETYPE_LIBS)" + @echo " FREETYPE2_CFLAGS is $(FREETYPE2_CFLAGS)" + @echo " FREETYPE2_LIBS is $(FREETYPE2_LIBS)" @echo " FONTCONFIG_CFLAGS is $(FONTCONFIG_CFLAGS)" @echo " FONTCONFIG_LIBS is $(FONTCONFIG_LIBS)" if HAVE_DMALLOC Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.341 retrieving revision 1.342 diff -u -b -r1.341 -r1.342 --- configure.ac 13 Jun 2007 17:51:24 -0000 1.341 +++ configure.ac 14 Jun 2007 07:17:11 -0000 1.342 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.341 2007/06/13 17:51:24 strk Exp $ +dnl $Id: configure.ac,v 1.342 2007/06/14 07:17:11 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -708,7 +708,7 @@ GNASH_PKG_INCLUDES([dejagnu], [dejagnu.h]) dnl Find freetype and fontconfig -GNASH_PKG_FIND(freetype, [freetype/freetype.h], [freetype2 font library], FT_Load_Char) +GNASH_PKG_FIND(freetype2, [freetype/freetype.h], [freetype2 font library], FT_Load_Char) GNASH_PKG_FIND(fontconfig, [fontconfig/fontconfig.h], [fontconfig library], FcFontMatch) AC_PATH_MING Index: server/FreetypeGlyphsProvider.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeGlyphsProvider.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- server/FreetypeGlyphsProvider.cpp 13 Jun 2007 16:30:52 -0000 1.2 +++ server/FreetypeGlyphsProvider.cpp 14 Jun 2007 07:17:11 -0000 1.3 @@ -32,6 +32,14 @@ # include # include FT_OUTLINE_H # include FT_BBOX_H +// Methods of FT_Outline_Funcs take a 'const FT_Vector*' in 2.2 +// and a non-const one in 2.1, so we use an FT_CONST macro to +// support both +# if FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 2 +# define FT_CONST +# else +# define FT_CONST const +# endif #endif #ifdef HAVE_FONTCONFIG_FONTCONFIG_H @@ -82,7 +90,7 @@ /// Callback function for the move_to member of FT_Outline_Funcs static int - walkMoveTo(FT_Vector* to, void* ptr) + walkMoveTo(FT_CONST FT_Vector* to, void* ptr) { OutlineWalker* walker = static_cast(ptr); return walker->moveTo(to); @@ -90,7 +98,7 @@ /// Callback function for the line_to member of FT_Outline_Funcs static int - walkLineTo(FT_Vector* to, void* ptr) + walkLineTo(FT_CONST FT_Vector* to, void* ptr) { OutlineWalker* walker = static_cast(ptr); return walker->lineTo(to); @@ -98,7 +106,7 @@ /// Callback function for the conic_to member of FT_Outline_Funcs static int - walkConicTo(FT_Vector* ctrl, FT_Vector* to, void* ptr) + walkConicTo(FT_CONST FT_Vector* ctrl, FT_CONST FT_Vector* to, void* ptr) { OutlineWalker* walker = static_cast(ptr); return walker->conicTo(ctrl, to); @@ -110,7 +118,7 @@ /// falling in the middle of the two control points. /// static int - walkCubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to, void* ptr) + walkCubicTo(FT_CONST FT_Vector* ctrl1, FT_CONST FT_Vector* ctrl2, FT_CONST FT_Vector* to, void* ptr) { OutlineWalker* walker = static_cast(ptr); return walker->cubicTo(ctrl1, ctrl2, to); @@ -122,7 +130,7 @@ float _scale; - int moveTo(FT_Vector* to) + int moveTo(const FT_Vector* to) { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("moveTo: %ld,%ld", to->x, to->y); @@ -132,7 +140,7 @@ } int - lineTo(FT_Vector* to) + lineTo(const FT_Vector* to) { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("lineTo: %ld,%ld", to->x, to->y); @@ -142,7 +150,7 @@ } int - conicTo(FT_Vector* ctrl, FT_Vector* to) + conicTo(const FT_Vector* ctrl, const FT_Vector* to) { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("conicTo: %ld,%ld %ld,%ld", ctrl->x, ctrl->y, to->x, to->y); @@ -152,7 +160,7 @@ } int - cubicTo(FT_Vector* ctrl1, FT_Vector* ctrl2, FT_Vector* to) + cubicTo(const FT_Vector* ctrl1, const FT_Vector* ctrl2, const FT_Vector* to) { #ifdef DEBUG_OUTLINE_DECOMPOSITION log_debug("cubicTo: %ld,%ld %ld,%ld %ld,%ld", ctrl1->x, ctrl1->y, ctrl2->x, ctrl2->y, to->x, to->y); Index: server/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/Makefile.am,v retrieving revision 1.118 retrieving revision 1.119 diff -u -b -r1.118 -r1.119 --- server/Makefile.am 13 Jun 2007 15:17:30 -0000 1.118 +++ server/Makefile.am 14 Jun 2007 07:17:11 -0000 1.119 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.118 2007/06/13 15:17:30 strk Exp $ +# $Id: Makefile.am,v 1.119 2007/06/14 07:17:11 strk Exp $ AUTOMAKE_OPTIONS = @@ -48,7 +48,7 @@ $(GSTREAMER_CFLAGS) \ $(BOOST_CFLAGS) \ $(LIBXML_CFLAGS) \ - $(FREETYPE_CFLAGS) \ + $(FREETYPE2_CFLAGS) \ $(FONTCONFIG_CFLAGS) \ $(NULL) @@ -172,7 +172,7 @@ $(LIBXML_LIBS) \ $(BOOST_LIBS) \ $(PTHREAD_LIBS) \ - $(FREETYPE_LIBS) \ + $(FREETYPE2_LIBS) \ $(FONTCONFIG_LIBS) \ $(NULL) Index: server/parser/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/server/parser/Makefile.am,v retrieving revision 1.35 retrieving revision 1.36 diff -u -b -r1.35 -r1.36 --- server/parser/Makefile.am 12 Jun 2007 12:33:22 -0000 1.35 +++ server/parser/Makefile.am 14 Jun 2007 07:17:12 -0000 1.36 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.35 2007/06/12 12:33:22 strk Exp $ +# $Id: Makefile.am,v 1.36 2007/06/14 07:17:12 strk Exp $ AUTOMAKE_OPTIONS = @@ -41,7 +41,7 @@ $(PTHREAD_CFLAGS) \ $(DMALLOC_CFLAGS) \ $(BOOST_CFLAGS) \ - $(FREETYPE_CFLAGS) \ + $(FREETYPE2_CFLAGS) \ $(NULL) libgnashparser_la_SOURCES = \ From MAILER-DAEMON Thu Jun 14 04:23:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hykbu-0002sX-Ur for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 04:23:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hykbt-0002sS-U6 for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:23:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hykbs-0002sG-EE for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:23:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hykbs-0002sD-8K for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:23:16 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hykbr-0006LN-UU for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:23:16 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hykbr-0008Ab-DX for gnash-commit@gnu.org; Thu, 14 Jun 2007 08:23:15 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hykbr-0008AY-8E for gnash-commit@gnu.org; Thu, 14 Jun 2007 08:23:15 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 14 Jun 2007 08:23:15 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/morph2_character_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 08:23:18 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/14 08:23:15 Modified files: . : ChangeLog server/parser : morph2_character_def.h Log message: implement get_bound() for morphs CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3536&r2=1.3537 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/morph2_character_def.h?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3536 retrieving revision 1.3537 diff -u -b -r1.3536 -r1.3537 --- ChangeLog 14 Jun 2007 07:17:10 -0000 1.3536 +++ ChangeLog 14 Jun 2007 08:23:14 -0000 1.3537 @@ -1,3 +1,8 @@ +2007-06-14 Zou Lunkai + + * server/parser/morph2_character_def.h: implement a get_bound() for + morphs, should fix an old displaying problem of morphs. + 2007-06-14 Hubert Figuiere * Makefile.am, configure.ac: look for freetype2, not freetype Index: server/parser/morph2_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/morph2_character_def.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- server/parser/morph2_character_def.h 26 Aug 2006 10:14:51 -0000 1.1 +++ server/parser/morph2_character_def.h 14 Jun 2007 08:23:14 -0000 1.2 @@ -23,6 +23,16 @@ virtual void display(character* inst); void lerp_matrix(matrix& t, const matrix& m1, const matrix& m2, const float ratio); + // Question: What is the bound of a morph? Is this conceptually correct? + /// TODO: optimize this by take ratio into consideration, to decrease some + /// invalidated area when rendering morphs + virtual const rect& get_bound() const + { + m_bound.expand_to_rect(m_shape1->m_bound); + m_bound.expand_to_rect(m_shape2->m_bound); + return m_bound; + } + private: shape_character_def* m_shape1; shape_character_def* m_shape2; @@ -31,6 +41,7 @@ int line_style_count; float m_last_ratio; mesh_set* m_mesh; + mutable rect m_bound; }; } From MAILER-DAEMON Thu Jun 14 04:35:54 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hyko6-0000fv-CD for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 04:35:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hyko4-0000fg-G3 for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:35:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hyko1-0000fG-Ao for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:35:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyko1-0000fD-6I for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:35:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hyknz-0008KH-Kn for gnash-commit@gnu.org; Thu, 14 Jun 2007 04:35:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hyknv-0001OG-UF for gnash-commit@gnu.org; Thu, 14 Jun 2007 08:35:44 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hyknv-0001O7-KA for gnash-commit@gnu.org; Thu, 14 Jun 2007 08:35:43 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 08:35:43 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog po/Makefile.am po/it.po X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 08:35:52 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 08:35:43 Modified files: . : ChangeLog po : Makefile.am Added files: po : it.po Log message: * po/: Makefile.am, it.po: initial work on an italian translation (funny for a few minutes, but too boring after a while ;) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3537&r2=1.3538 http://cvs.savannah.gnu.org/viewcvs/gnash/po/Makefile.am?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/po/it.po?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3537 retrieving revision 1.3538 diff -u -b -r1.3537 -r1.3538 --- ChangeLog 14 Jun 2007 08:23:14 -0000 1.3537 +++ ChangeLog 14 Jun 2007 08:35:41 -0000 1.3538 @@ -1,3 +1,9 @@ +2007-06-14 Sandro Santilli + + * po/: Makefile.am, it.po: initial work on an italian + translation (funny for a few minutes, but too boring + after a while ;) + 2007-06-14 Zou Lunkai * server/parser/morph2_character_def.h: implement a get_bound() for Index: po/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/po/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- po/Makefile.am 17 May 2007 16:30:57 -0000 1.9 +++ po/Makefile.am 14 Jun 2007 08:35:42 -0000 1.10 @@ -7,7 +7,7 @@ POTFILES \ update-po -translations = es fr de +translations = es fr de it pofiles := $(patsubst %,%.po,$(translations)) gmofiles := $(patsubst %,%.gmo,$(translations)) Index: po/it.po =================================================================== RCS file: po/it.po diff -N po/it.po --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ po/it.po 14 Jun 2007 08:35:43 -0000 1.1 @@ -0,0 +1,4489 @@ +# ITalian message translation template for GNU Gnash +# Copyright (C) YEAR Free Software Foundation, Inc. +# Sandro Santilli , 2007 +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: bug-gnash@gnu.org\n" +"POT-Creation-Date: 2007-04-20 00:11-0700\n" +"PO-Revision-Date: 2007-06-14 09:46+0200\n" +"Last-Translator: Sandro Santilli \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: backend/sound_handler_sdl.cpp:76 +msgid "could not allocate memory for sound data" +msgstr "Impossibile allocare memoria per i dati audio" + +#: backend/sound_handler_sdl.cpp:99 +msgid "Some kind of error occurred with raw sound data" +msgstr "Si e' verificato qualche tipo di errore con i dati audio grezzi" + +#: backend/sound_handler_sdl.cpp:112 +msgid "Some kind of error occurred with adpcm sound data" +msgstr "Si e' verificato qualche tipo di errore con i dati audio adpcm" + +#: backend/sound_handler_sdl.cpp:123 +msgid "gnash has not been compiled to handle mp3 audio" +msgstr "Gnash e' stato compilato senza con il supporto audio mp3" + +#: backend/sound_handler_sdl.cpp:129 +msgid "could not allocate space for data in sound handler" +msgstr "Impossibile allocare spazio per i dati del gestore audio" + +#: backend/sound_handler_sdl.cpp:138 +#, c-format +msgid "unknown sound format %d requested; gnash does not handle it" +msgstr "Formato audio %d sconosciuto/non supportato" + +#: backend/sound_handler_sdl.cpp:170 +msgid "Some kind of error with resampling sound data" +msgstr "Si e' verificato qualche tipo di errore con il resampling thei dati audio" + +#: backend/sound_handler_sdl.cpp:215 +#, c-format +msgid "" +"Behavior for this audio codec %d is unknown. Please send this SWF to the " +"developers" +msgstr "Gli effetti del codec audio %s sono sconosciuto, Per favore manda questo SWF agli sviluppatori di Gnash." + +#: backend/sound_handler_sdl.cpp:276 +msgid "Your FFMPEG can't decode MP3?!" +msgstr "La tua libreria FFMPEG non puo' decodificare gli MP3 ?!" + +#: backend/sound_handler_sdl.cpp:304 +#, c-format +msgid "Unable to start SDL sound: %s" +msgstr "Impossibile far partire l'audio SDL: %s" + +#: backend/sound_handler_sdl.cpp:496 +#, c-format +msgid "Unable to start aux SDL sound: %s" +msgstr "Impossibile far partire l'audio ausiliario SDL: %s" + +#: backend/sound_handler_sdl.cpp:717 +#, c-format +msgid "Negative buffer length in sdl_audio_callback (%d)" +msgstr "Lunghezza del buffer negativa (%d) in sdl_audio_callback" + +#: backend/sound_handler_sdl.cpp:834 +msgid "" +"Error while decoding MP3-stream. Upgrading ffmpeg/libavcodec might fix this " +"issue." +msgstr "Si e' verificato un errore decodificando uno stream MP3. Aggiornare ffmpeg/libavcodec potrebbe risolvere il problema." + +#: backend/sound_handler_sdl.cpp:864 +#, c-format +msgid "Recoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Si e' verificato un errore non fatale decodificando uno stream MP3, errore MAD: %s" + +#: backend/sound_handler_sdl.cpp:872 +#, c-format +msgid "Unrecoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Si e' verificato un errore fatale decodificando uno stream MP3, errore MAD: %s" + +#: backend/sound_handler_sdl.cpp:929 +msgid "Error in sound sample conversion" +msgstr "Errore nella conversione di un campione audio" + +#: extensions/mysql/mysql_db.cpp:186 +msgid "Couldn't initialize database" +msgstr "Non sono riuscito ad initializare il database" + +#: extensions/mysql/mysql_db.cpp:191 +msgid "Couldn't connect to database" +msgstr "Non ho potuto collegarmi al database" + +#: extensions/mysql/mysql_db.cpp:217 extensions/mysql/mysql_db.cpp:244 +#, c-format +msgid "MySQL connection error: %s" +msgstr "Errore nella connessione MySQL: %s" + +#: extensions/mysql/mysql_db.cpp:224 extensions/mysql/mysql_db.cpp:251 +#, c-format +msgid "" +"MySQL error on query for:\n" +"\t%s\n" +"Query was: %s" +msgstr "Errore durante una query verso: %s. La query era: %s" + +#: extensions/mysql/mysql_db.cpp:265 +#, c-format +msgid "Field name is: %s: " +msgstr "Nome del campo: %s" + +#: gui/gnash.cpp:73 +msgid "" +"usage: gnash [options] movie_file.swf\n" +"\n" +"Plays a SWF (Shockwave Flash) movie\n" +"options:\n" +"\n" +msgstr "Uso: gnash [options] filamto.swf\n" +"\n" +"Mostra un filmato SWF (Shockwave Flash)\n" +"opzioni:\n" +"\n" + +#: gui/gnash.cpp:78 +msgid "" +" -h, --help Print this info.\n" +" -s Scale the movie up/down by the specified factor\n" +" -c Produce a core file instead of letting SDL trap it\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Be verbose; i.e. print log messages to stdout\n" +msgstr "" +" -h, --help Mostra queste informazioni.\n" +" -s Aumenta/riduci la scala di visualizzazione del filmato usando il factor specificato\n" +" -c Produci un core file anziche' lasciare che SDL intercetti\n" +" -d num Numero di millisecondi da lasciar correre tra un'iterazione ell'altra nel loop principale\n" +" -v Sii verboso; ovvero scrivi i messaggi di log su stdout\n" + +#: gui/gnash.cpp:85 +msgid " -va Be verbose about movie Actions\n" +msgstr " -va Sii verboso riguardo le Azioni del filmato (ActionScript)\n" + +#: gui/gnash.cpp:90 +msgid " -vp Be verbose about parsing the movie\n" +msgstr " -vp Sii verboso riguardo l'interpretazione del filmato (parsing)\n" + +#: gui/gnash.cpp:95 +msgid "" +" -m Specify the texture LOD bias (float, default is -1.0)\n" +" -x X11 Window ID for display\n" +" -w Produce the disk based debug log\n" +" -j Set window width\n" +" -k Set window height\n" +" -1 Play once; exit when/if movie reaches the last frame\n" +msgstr "" +" -m Specifica il LOD bias (?) per le texture (float, -1.0 per default)\n" +" -x X11 Window ID per il display\n" +" -w Produci un file su disco con i messaggi log\n" +" -j Specifica la larghezza della finestra\n" +" -k Specifica l'altezza della finestra\n" +" -1 Riproduci una volta sola; esci quando/se il filmato raggiunge l'ultimo frame\n" + +#: gui/gnash.cpp:102 +msgid "" +" -g Turn on the Flash debugger\n" +" -r <0|1|2|3>\n" +" 0 disables both rendering & sound (good for batch tests)\n" +" 1 enables rendering & disables sound\n" +" 2 enables sound & disables rendering\n" +" 3 enables both rendering & sound (default)\n" +msgstr "" +" -g Abilita il debugger Flash\n" +" -r <0|1|2|3>\n" +" 0 disabilita sia il rendering che l'audio (utile per i test non interattivi)\n" +" 1 abilita il rendering e disabilita l'audio\n" +" 2 abilita l'audio e disabilita il rendering\n" +" 3 abilita sia il rendering che l'audio (default)\n" + +#: gui/gnash.cpp:109 +msgid "" +" -t Timeout and exit after the specified number of seconds\n" +" -b Bit depth of output window (16 or 32, default is 16)\n" +" -u Set \"real\" url of the movie\n" +" (useful for downloaded movies)\n" +" -U Set \"base\" url for this run\n" +" (used to resolve relative urls, defaults to movie url)\n" +" -P Set parameter (ie. \"FlashVars=A=1&b=2\")\n" +" --version Print gnash's version number and exit\n" +msgstr "" +" -t Esci dopo il numero di secondi specificato\n" +" -b Profondita' di colore della la finestra di output (16 o 32 - 16 di default)\n" +" -u Specifica la \"vera\" url del filmato\n" +" (utile per i filmati scaricati)\n" +" -U Specifica la url di \"base\" per questa riproduzione\n" +" (usata per risolvere le url relative, la url del filmato e' usata come default)\n" +" -P Specifica parametri (ad esempio: \"FlashVars=A=1&b=2\")\n" +" --version Mostra la versione di gnash edl esci\n" + +#: gui/gnash.cpp:118 +msgid "" +"\n" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Quit/Exit\n" +" CTRL-P Toggle Pause\n" +" CTRL-R Restart the movie\n" +" CTRL-[ or kp- Step back one frame\n" +" CTRL-] or kp+ Step forward one frame\n" +" CTRL-B Toggle background color\n" +" CTRL-A Toggle antialiasing (doesn't work)\n" +" CTRL-T Debug. Test the set_variable() function\n" +" CTRL-G Debug. Test the get_variable() function\n" +" CTRL-M Debug. Test the call_method() function\n" +msgstr "" +"\n" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Esci\n" +" CTRL-P Passa tra pausa e riproduzione del filmato\n" +" CTRL-R Fari ripartire il filmato\n" +" CTRL-[ or kp- Vai al frame precedente (non funziona)\n" +" CTRL-] or kp+ Vai al frame successivo (non funziona)\n" +" CTRL-B Cambia il colore di sfondo (non credo funzioni)\n" +" CTRL-A Cambia la configurazione di antialiasing (non funziona)\n" +" CTRL-T Debug. Test the set_variable() function (mai provato)\n" +" CTRL-G Debug. Test the get_variable() function (mai provato)\n" +" CTRL-M Debug. Test the call_method() function (mai provato)\n" + +#: gui/gnash.cpp:138 plugin/klash/klash.cpp:660 +#, c-format +msgid "Gnash " +msgstr "Gnash" + +#: gui/gnash.cpp:138 +#, c-format +msgid "" +"\n" +"Copyright (C) 2005-2007 Free Software Foundation, Inc.\n" +"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" +"You may redistribute copies of Gnash under the terms of the GNU General\n" +"Public License. For more information, see the file named COPYING.\n" +msgstr "" + +#: gui/gnash.cpp:149 +#, c-format +msgid "" +"Build options %s\n" +" Target: %s\n" +" Renderer: %s GUI: %s Media handler: %s\n" +msgstr "" +"Opzioni di compilazione %s\n" +" Target: %s\n" +" Renderer: %s GUI: %s Media handler: %s\n" + +#: gui/gnash.cpp:190 plugin/klash/klash.cpp:319 +msgid "Verbose output turned on" +msgstr "Acceso output verboso" + +#: gui/gnash.cpp:194 +msgid "Logging to disk enabled" +msgstr "Abilitato il logging su disco" + +#: gui/gnash.cpp:200 +msgid "No verbose actions; disabled at compile time" +msgstr "Azioni silenziose; disabilitate a compile time" + +#: gui/gnash.cpp:207 +msgid "No verbose parsing; disabled at compile time" +msgstr "Parsing silenzioso; disabilitato a compile time" + +#: gui/gnash.cpp:218 +#, c-format +msgid "Setting root URL to %s" +msgstr "" + +#: gui/gnash.cpp:224 +#, c-format +msgid "Setting base URL to %s" +msgstr "" + +#: gui/gnash.cpp:229 +#, c-format +msgid "Setting width to %d" +msgstr "Larghezza della finestra: %d" + +#: gui/gnash.cpp:233 +msgid "Setting debugger ON" +msgstr "Debugger attivato" + +#: gui/gnash.cpp:238 +msgid "No debugger; disabled at compile time" +msgstr "Debugger non disponibile; disabilitato a copile time" + +#: gui/gnash.cpp:243 +#, c-format +msgid "Setting height to %d" +msgstr "Altezza della finestra: %d" + +#: gui/gnash.cpp:279 +#, c-format +msgid "-r must be followed by 0, 1, 2 or 3 (%ld is invalid)" +msgstr "-r deve essere seguito da 0, 1, 2 o 4 (%ld non e' valido)" + +#: gui/gnash.cpp:314 +msgid "No rendering flags specified, using rcfile" +msgstr "Non sono state specificate opzioni di rendering (-r), uso il file rc..." + +#: gui/gnash.cpp:328 +#, c-format +msgid "Got variable option (%s) on command line" +msgstr "" + +#: gui/gui.cpp:460 +#, c-format +msgid "Frame %d" +msgstr "" + +#: gui/Player.cpp:187 +msgid "Sound requested but no sound support compiled in" +msgstr "Richiesto audio, ma supporto non attivato a compile time" + +#: gui/Player.cpp:364 +#, c-format +msgid "fs_callback(%p): %s %s" +msgstr "" + +#: libamf/amf.cpp:179 +#, c-format +msgid "Type is %s" +msgstr "Tipo: %s" + +#: libamf/amf.cpp:185 +msgid "Number is " +msgstr "Numero: " + +#: libamf/amf.cpp:189 +#, c-format +msgid "Boolean is %d" +msgstr "Booleano: %d" + +#: libamf/amf.cpp:202 libamf/amf.cpp:241 +#, c-format +msgid "String is %s" +msgstr "Stringa: %s" + +#: libamf/amf.cpp:218 +msgid "Undefined element" +msgstr "Elemento non definito" + +#: libamf/amf.cpp:234 +msgid "Date is " +msgstr "Data: " + +#: libamf/amf.cpp:234 +msgid " nanoseconds" +msgstr " nanosecondi" + +#: libamf/amf.cpp:884 +#, c-format +msgid "AMF Header size bits (0x%X) out of range" +msgstr "" + +#: libamf/amf.cpp:901 +#, c-format +msgid "AMF header byte is: 0x%X" +msgstr "" + +#: libamf/amf.cpp:904 +#, c-format +msgid "The AMF channel index is %d" +msgstr "" + +#: libamf/amf.cpp:907 +#, c-format +msgid "The header size is %d" +msgstr "" + +#: libamf/amf.cpp:911 +#, c-format +msgid "The packet head is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:918 +#, c-format +msgid "The mystery word is: %d or 0x%s" +msgstr "" + +#: libamf/amf.cpp:927 +#, c-format +msgid "The body size is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:937 +#, c-format +msgid "The type is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:956 +#, c-format +msgid "ERROR: Unidentified AMF header data type %d" +msgstr "" + +#: libamf/amf.cpp:964 +#, c-format +msgid "The source/destination is: %d, or 0x%s" +msgstr "" + +#: libamf/amf.cpp:1007 +msgid "AMF body input data is NULL" +msgstr "" + +#: libamf/amf.cpp:1017 +#, c-format +msgid "The packet body is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1046 +#, c-format +msgid "AMF String length is: %d" +msgstr "" + +#: libamf/amf.cpp:1052 +#, c-format +msgid "AMF String is: %s" +msgstr "" + +#: libamf/amf.cpp:1108 libamf/amf.cpp:1193 +msgid "End of Object definition" +msgstr "" + +#: libamf/amf.cpp:1119 +#, c-format +msgid "The element is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1124 +#, c-format +msgid "AMF element length is: %d" +msgstr "" + +#: libamf/amf.cpp:1134 +#, c-format +msgid "AMF type is: %s" +msgstr "" + +#: libamf/amf.cpp:1151 +#, c-format +msgid "Number \"%s\" is: 0x%s" +msgstr "" + +#: libamf/amf.cpp:1162 +#, c-format +msgid "Boolean \"%s\" is: %s" +msgstr "" + +#: libamf/amf.cpp:1171 libamf/amf.cpp:1184 +#, c-format +msgid "Variable \"%s\" is: %s" +msgstr "" + +#: libamf/amf.cpp:1181 +msgid "Undefined type" +msgstr "" + +#: libamf/amf.cpp:1207 +#, c-format +msgid "astype_e of value: %d" +msgstr "" + +#: libbase/curl_adapter.cpp:277 libbase/curl_adapter.cpp:529 +#, c-format +msgid "404 response from url %s" +msgstr "Ricevuto un responso 404 dalla url %s" + +#: libbase/extension.cpp:124 +#, c-format +msgid "Loading module: %s" +msgstr "Caricamento modulo %s in corso" + +#: libbase/extension.cpp:140 +#, c-format +msgid "Initializing module: \"%s\"" +msgstr "Inizializzazione del modulo '%s' in corso" + +#: libbase/extension.cpp:157 +msgid "Couldn't get class_init symbol" +msgstr "" + +#: libbase/extension.cpp:192 +#, c-format +msgid "Scanning directory \"%s\" for plugins" +msgstr "" + +#: libbase/extension.cpp:196 +#, c-format +msgid "Can't open directory %s" +msgstr "" + +#: libbase/extension.cpp:218 +#, c-format +msgid "Gnash Plugin name: %s" +msgstr "" + +#: libbase/log.cpp:188 +msgid "TRACE: " +msgstr "" + +#: libbase/log.cpp:210 libbase/log.cpp:625 +msgid "DEBUG: " +msgstr "" + +#: libbase/log.cpp:276 +msgid "ERROR: " +msgstr "ERRORE: " + +#: libbase/log.cpp:293 +msgid "ERROR: Unimplemented: " +msgstr "NON IMPLEMENTATO: " + +#: libbase/log.cpp:310 +msgid "SECURITY: " +msgstr "SICUREZZA: " + +#: libbase/log.cpp:327 +msgid "MALFORMED SWF: " +msgstr "SWF CORROTTO: " + +#: libbase/log.cpp:344 +msgid "ACTIONSCRIPT ERROR: " +msgstr "ERRORE ACTIONSCRIPT: " + +#: libbase/network.cpp:85 +msgid "Could not find a usable WinSock DLL" +msgstr "" + +#: libbase/network.cpp:127 +#, c-format +msgid "Can't connect to privileged port #%d" +msgstr "" + +#: libbase/network.cpp:149 +#, c-format +msgid "unable to get protocol entry for %s" +msgstr "" + +#: libbase/network.cpp:166 +#, c-format +msgid "unable to create socket: %s" +msgstr "" + +#: libbase/network.cpp:173 +msgid "setsockopt SO_REUSEADDR failed" +msgstr "" + +#: libbase/network.cpp:183 +#, c-format +msgid "unable to bind to port %hd: %s" +msgstr "" + +#: libbase/network.cpp:192 +#, c-format +msgid "Server bound to service on %s, port %hd, using fd %d" +msgstr "" + +#: libbase/network.cpp:198 +#, c-format +msgid "unable to listen on port: %hd: %s " +msgstr "" + +#: libbase/network.cpp:235 +#, c-format +msgid "Trying to accept net traffic on fd %d" +msgstr "" + +#: libbase/network.cpp:264 +msgid "There is data at the console for stdin" +msgstr "" + +#: libbase/network.cpp:270 +#, c-format +msgid "The accept() socket for fd %d was interupted by a system call" +msgstr "" + +#: libbase/network.cpp:274 +#, c-format +msgid "The accept() socket for fd %d never was available for writing" +msgstr "" + +#: libbase/network.cpp:281 +#, c-format +msgid "The accept() socket for fd %d timed out waiting to write" +msgstr "" + +#: libbase/network.cpp:293 +#, c-format +msgid "unable to accept: %s" +msgstr "" + +#: libbase/network.cpp:298 +#, c-format +msgid "Accepting tcp/ip connection on fd %d" +msgstr "" + +#: libbase/network.cpp:344 +#, c-format +msgid "Can't connect to privileged port %hd" +msgstr "" + +#: libbase/network.cpp:349 +#, c-format +msgid "%s: to host %s at port %d" +msgstr "" + +#: libbase/network.cpp:355 +#, c-format +msgid "The hostname for this machine is %s" +msgstr "" + +#: libbase/network.cpp:357 +msgid "Couldn't get the hostname for this machine" +msgstr "" + +#: libbase/network.cpp:371 +#, c-format +msgid "The IP address for this client socket is %s" +msgstr "" + +#: libbase/network.cpp:379 +#, c-format +msgid "unable to create socket : %s" +msgstr "" + +#: libbase/network.cpp:401 +#, c-format +msgid "The connect() socket for fd %d was interupted by a system call" +msgstr "" + +#: libbase/network.cpp:408 libbase/network.cpp:436 +#, c-format +msgid "The connect() socket for fd %d never was available for writing" +msgstr "" + +#: libbase/network.cpp:419 +#, c-format +msgid "The connect() socket for fd %d timed out waiting to write" +msgstr "" + +#: libbase/network.cpp:429 +#, c-format +msgid "\tport %d at IP %s for fd %d" +msgstr "" + +#: libbase/network.cpp:505 +#, c-format +msgid "Unable to close the socket for fd %d: %s" +msgstr "" + +#: libbase/network.cpp:512 +#, c-format +msgid "Closed the socket on fd %d" +msgstr "" + +#: plugin/klash/klash.cpp:101 +msgid "Play Movie" +msgstr "Riproduci" + +#: plugin/klash/klash.cpp:102 +msgid "Pause Movie" +msgstr "Pausa" + +#: plugin/klash/klash.cpp:103 +msgid "Stop Movie" +msgstr "Interrompi riproduzione" + +#: plugin/klash/klash.cpp:104 +msgid "Restart Movie" +msgstr "Riproduci dall'inizio" + +#: plugin/klash/klash.cpp:105 +msgid "Step Forward" +msgstr "" + +#: plugin/klash/klash.cpp:106 +msgid "Step Backward" +msgstr "" + +#: plugin/klash/klash.cpp:107 +msgid "Jump Forward" +msgstr "" + +#: plugin/klash/klash.cpp:108 +msgid "Jump Backward" +msgstr "" + +#: plugin/klash/klash.cpp:109 +msgid "Quit Gnash" +msgstr "Esci" + +#: plugin/klash/klash.cpp:147 +msgid "Klash" +msgstr "" + +#: plugin/klash/klash.cpp:148 +msgid "The Gnash Flash player for KDE.\n" +msgstr "" + +#: plugin/klash/klash.cpp:309 +#, c-format +msgid "Timer delay set to %d milliseconds" +msgstr "" + +#: plugin/klash/klash.cpp:323 +msgid "Logging to disk enabled." +msgstr "" + +#: plugin/klash/klash.cpp:342 +#, c-format +msgid "Setting root URL to: %s" +msgstr "" + +#: plugin/klash/klash.cpp:346 +#, c-format +msgid "Setting width to: %d" +msgstr "" + +#: plugin/klash/klash.cpp:350 +#, c-format +msgid "Setting height to: %d" +msgstr "" + +#: plugin/klash/klash.cpp:381 +#, c-format +msgid "-r must be followed by 0, 1 or 2 (%d is invalid)" +msgstr "" + +#: plugin/klash/klash.cpp:399 +msgid "Got variable option on command line!" +msgstr "" + +#: plugin/klash/klash.cpp:414 +#, c-format +msgid "No input files" +msgstr "" + +#: plugin/klash/klash.cpp:448 +#, c-format +msgid "error: can't get info about %s\n" +msgstr "" + +#: plugin/klash/klash.cpp:508 +#, c-format +msgid "error: can't create a movie from '%s'\n" +msgstr "" + +#: plugin/klash/klash.cpp:513 +#, c-format +msgid "error: can't create movie instance\n" +msgstr "" + +#: plugin/klash/klash.cpp:660 +#, c-format +msgid "" +"\n" +"Copyright (C) 2006, 2007 Free Software Foundation, Inc.\n" +"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" +"You may redistribute copies of Gnash under the terms of the GNU General\n" +"Public License. For more information, see the file named COPYING.\n" +msgstr "" + +#: plugin/klash/klash.cpp:673 +msgid "" +"usage: gnash [options] movie_file.swf\n" +"\n" +"Plays a SWF (Shockwave Flash) movie\n" +"options:\n" +"\n" +" -h, --help Print this info.\n" +" -s Scale the movie up/down by the specified factor\n" +" -c Produce a core file instead of letting SDL trap it\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Be verbose; i.e. print log messages to stdout\n" +" -va Be verbose about movie Actions\n" +" -vp Be verbose about parsing the movie\n" +msgstr "" + +#: plugin/klash/klash.cpp:685 +msgid "" +" -m Specify the texture LOD bias (float, default is -1)\n" +" -x X11 Window ID for display\n" +" -w Produce the disk based debug log\n" +" -1 Play once; exit when/if movie reaches the last frame\n" +" -r <0|1|2> 0 disables rendering & sound (good for batch tests)\n" +" 1 enables rendering & sound (default setting)\n" +" 2 enables rendering & disables sound\n" +" -t Timeout and exit after the specified number of seconds\n" +" -b Bit depth of output window (16 or 32, default is 16)\n" +" --version Print gnash's version number and exit\n" +"\n" +msgstr "" + +#: plugin/klash/klash.cpp:696 +msgid "" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Quit/Exit\n" +" CTRL-P Toggle Pause\n" +" CTRL-R Restart the movie\n" +" CTRL-[ or kp- Step back one frame\n" +" CTRL-] or kp+ Step forward one frame\n" +" CTRL-B Toggle background color\n" +msgstr "" + +#: plugin/win32/plugin.cpp:259 +#, c-format +msgid "can't get info about %s" +msgstr "" + +#: plugin/win32/plugin.cpp:262 +#, c-format +msgid "Movie %s: width is %d, height is %d, version is %d\n" +msgstr "" + +#: plugin/win32/plugin.cpp:272 +#, c-format +msgid "can't create a movie from %s" +msgstr "" + +#: plugin/win32/plugin.cpp:280 +msgid "can't create movie instance" +msgstr "" + +#: plugin/win32/plugin.cpp:348 +msgid "player: Shutting down as requested..." +msgstr "" + +#: server/array.cpp:203 +msgid "tried to pop element from back of empty array, returning undef" +msgstr "" + +#: server/array.cpp:219 +msgid "tried to shift element from front of empty array, returning undef" +msgstr "" + +#: server/array.cpp:313 +#, c-format +msgid "Array.slice(%u, %u) called" +msgstr "" + +#: server/array.cpp:343 +#, c-format +msgid "Current array is %s" +msgstr "" + +#: server/array.cpp:476 +#, c-format +msgid "Unhandled sort flags: %d (0x%X)" +msgstr "" + +#: server/array.cpp:486 +msgid "array.sort with unique flag" +msgstr "" + +#: server/array.cpp:512 +#, c-format +msgid "Array(%s).splice(%s) called" +msgstr "" + +#: server/array.cpp:518 +msgid "Array.splice() needs at least 1 argument, call ignored" +msgstr "" + +#: server/array.cpp:534 +#, c-format +msgid "Array.splice: start:%d became %u" +msgstr "" + +#: server/array.cpp:547 +#, c-format +msgid "Array.splice(%d,%d): negative length given, call ignored" +msgstr "" + +#: server/array.cpp:614 +#, c-format +msgid "calling array push, pushing %d values onto back of array" +msgstr "" + +#: server/array.cpp:630 +#, c-format +msgid "calling array unshift, pushing %d values onto front of array" +msgstr "" + +#: server/array.cpp:649 +#, c-format +msgid "calling array pop, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:665 +#, c-format +msgid "calling array shift, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:682 +#, c-format +msgid "called array reverse, result:%s, new array size:%d" +msgstr "" + +#: server/array.cpp:723 +#, c-format +msgid "array_to_string called, nargs = %d, this_ptr = %p" +msgstr "" + +#: server/array.cpp:726 +#, c-format +msgid "to_string result is: %s" +msgstr "" + +#: server/array.cpp:775 +msgid "" +"More than 2 arguments to Array.slice, and I don't know what to do with " +"them. Ignoring them" +msgstr "" + +#: server/array.cpp:845 +#, c-format +msgid "array_new called, nargs = %d" +msgstr "" + +#: server/array.cpp:878 +#, c-format +msgid "array_new setting object %p in result" +msgstr "" + +#: server/as_environment.cpp:68 +#, c-format +msgid "find_object%s(\"%s\") [ varname = '%s' - current target = '%s' ] failed" +msgstr "" + +#: server/as_environment.cpp:80 +#, c-format +msgid "...but get_variable_raw(%s, ) succeeded!" +msgstr "" + +#: server/as_environment.cpp:157 +#, c-format +msgid "get_variable_raw(\"%s\") failed, returning UNDEFINED" +msgstr "" + +#: server/as_environment.cpp:247 +#, c-format +msgid "Path target '%s' not found while setting %s=%s" +msgstr "" + +#: server/as_environment.cpp:455 +#, c-format +msgid "" +"as_environment::find_target: '%s': invalid path; neither string nor object" +msgstr "" + +#: server/as_environment.cpp:511 +#, c-format +msgid "find_target(%s) called" +msgstr "" + +#: server/as_environment.cpp:516 server/as_environment.cpp:593 +#: server/as_environment.cpp:703 +msgid "Returning m_target (empty path)" +msgstr "" + +#: server/as_environment.cpp:533 server/as_environment.cpp:721 +#, c-format +msgid "Absolute path, start at the root (%p)" +msgstr "" + +#: server/as_environment.cpp:540 server/as_environment.cpp:606 +#: server/as_environment.cpp:728 +msgid "Null path, returning m_target" +msgstr "" + +#: server/as_environment.cpp:551 server/as_environment.cpp:619 +#: server/as_environment.cpp:740 +#, c-format +msgid "invalid path '%s'" +msgstr "" + +#: server/as_environment.cpp:564 server/as_environment.cpp:636 +#: server/as_environment.cpp:757 +#, c-format +msgid "No more subparts, env is %p" +msgstr "" + +#: server/as_environment.cpp:570 +#, c-format +msgid "Invoking get_relative_target(%s) on object %p (%s)" +msgstr "" + +#: server/as_environment.cpp:588 +#, c-format +msgid "find_object_dotsyntax(%s) called" +msgstr "" + +#: server/as_environment.cpp:629 server/as_environment.cpp:750 +#, c-format +msgid "Subpart == %s" +msgstr "" + +#: server/as_environment.cpp:642 server/as_environment.cpp:787 +#, c-format +msgid "Invoking get_member(%s) on object %p" +msgstr "" + +#: server/as_environment.cpp:652 +#, c-format +msgid "Member %s for object %p not found (dotsyntax). Path was %s" +msgstr "" + +#: server/as_environment.cpp:661 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(dotsyntax)" +msgstr "" + +#: server/as_environment.cpp:671 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (dotsyntax)" +msgstr "" + +#: server/as_environment.cpp:698 +#, c-format +msgid "find_object_slashsyntax(%s) called" +msgstr "" + +#: server/as_environment.cpp:767 +#, c-format +msgid "'..' element in path '%s' follows a non-character object %p" +msgstr "" + +#: server/as_environment.cpp:776 +#, c-format +msgid "" +"'..' in path '%s' follows a character with no parent (%s : %p) (root is %p)" +msgstr "" + +#: server/as_environment.cpp:797 +#, c-format +msgid "Member %s for object %p not found (slashsyntax). Path was %s" +msgstr "" + +#: server/as_environment.cpp:806 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(slashsyntax)" +msgstr "" + +#: server/as_environment.cpp:816 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (slashsyntax)" +msgstr "" + +#: server/as_environment.cpp:1041 +#, c-format +msgid "Max stack count reached (%u) - should abort execution" +msgstr "" + +#: server/as_function.cpp:148 +#, c-format +msgid "Exported interface of function %p has been overwritten (from %p to %p)" +msgstr "" + +#: server/as_function.cpp:197 +msgid "Function.apply() called with no args" +msgstr "" + +#: server/as_function.cpp:217 +#, c-format +msgid "" +"Function.apply() got %d args, expected at most 2 -- discarding the ones in " +"excess" +msgstr "" + +#: server/as_function.cpp:229 +#, c-format +msgid "" +"Second arg of Function.apply is %s (expected array) - considering as call " +"with no args" +msgstr "" + +#: server/as_function.cpp:243 +#, c-format +msgid "" +"Second arg of Function.apply is of type %s, with value %s (expected array) - " +"considering as call with no args" +msgstr "" + +#: server/as_function.cpp:331 +msgid "it's a built-in class" +msgstr "" + +#: server/as_function.cpp:364 +#, c-format +msgid "constructor prototype is %s" +msgstr "" + +#: server/asobj/Date.cpp:416 +msgid "Date constructor called with more than 7 arguments" +msgstr "" + +#: server/asobj/Date.cpp:443 +msgid "Date() failed to initialise from arguments" +msgstr "" + +#: server/asobj/Date.cpp:648 +msgid "Date.setTime needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:655 +msgid "Date.setTime was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:705 +msgid "Failed to set a date." +msgstr "" + +#: server/asobj/Date.cpp:742 +msgid "utc_tm_msec_to_date failed to convert a date" +msgstr "" + +#: server/asobj/Date.cpp:816 +msgid "Date.setFullYear needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:832 +msgid "Date.setFullYear was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:861 +msgid "Date.setYear needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:881 +msgid "Date.setYear was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:909 +msgid "Date.setMonth needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:938 +msgid "Date.setMonth was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:957 +msgid "Date.setDate needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:971 +msgid "Date.setDate was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:995 +msgid "Date.setHours needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1013 +msgid "Date.setHours was called with more than four arguments" +msgstr "" + +#: server/asobj/Date.cpp:1035 +msgid "Date.setMinutes needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1052 server/asobj/Date.cpp:1090 +msgid "Date.setMinutes was called with more than three arguments" +msgstr "" + +#: server/asobj/Date.cpp:1072 +msgid "Date.setSeconds needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1106 +msgid "Date.setMilliseconds needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1116 +msgid "Date.setMilliseconds was called with more than one argument" +msgstr "" + +#: server/asobj/Date.cpp:1240 +msgid "Date.UTC needs one argument" +msgstr "" + +#: server/asobj/Date.cpp:1260 +msgid "Date.UTC was called with more than 7 arguments" +msgstr "" + +#: server/as_object.cpp:121 +#, c-format +msgid "Caught exception: %s" +msgstr "" + +#: server/as_object.cpp:205 +#, c-format +msgid "Attempt to set read-only property '%s'" +msgstr "" + +#: server/as_object.cpp:216 +#, c-format +msgid "%s: Exception %s. Will create a new member" +msgstr "" + +#: server/as_object.cpp:226 +#, c-format +msgid "Attempt to set read-only property ``%s'' on object ``%p''" +msgstr "" + +#: server/as_object.cpp:249 +#, c-format +msgid "Attempt to initialize read-only property ``%s'' (%s) on object ``%p''" +msgstr "" + +#: server/as_object.cpp:263 +#, c-format +msgid "Attempt to initialize read-only property ``%s'' on object ``%p''" +msgstr "" + +#: server/as_object.cpp:362 +msgid "Circular inheritance chain detected during instanceOf call" +msgstr "" + +#: server/as_object.cpp:383 +msgid "Circular inheritance chain detected during isPrototypeOf call" +msgstr "" + +#: server/as_object.cpp:392 +#, c-format +msgid " members of object %p follow" +msgstr "" + +#: server/as_object.cpp:420 +#, c-format +msgid "" +"Can't set propflags on object property %s (either not found or protected)" +msgstr "" + +#: server/asobj/Global.cpp:80 server/asobj/string.cpp:39 +#, c-format +msgid "%s needs one argument" +msgstr "" + +#: server/asobj/Global.cpp:86 server/asobj/string.cpp:45 +#, c-format +msgid "%s has more than one argument" +msgstr "" + +#: server/asobj/Global.cpp:193 +#, c-format +msgid "%s needs at least one argument" +msgstr "" + +#: server/asobj/Global.cpp:199 +#, c-format +msgid "%s has more than two arguments" +msgstr "" + +#: server/asobj/Global.cpp:311 +#, c-format +msgid "%s needs at least three arguments" +msgstr "" + +#: server/asobj/Global.cpp:317 +#, c-format +msgid "%s has more than four arguments" +msgstr "" + +#: server/asobj/Global.cpp:319 +#, c-format +msgid "%s has four arguments in a SWF version 5 movie" +msgstr "" + +#: server/asobj/Global.cpp:328 +#, c-format +msgid "Invalid call to ASSetPropFlags: object argument is not an object: %s" +msgstr "" + +#: server/asobj/Key.cpp:231 +msgid "key_add_listener needs one argument (the listener object)" +msgstr "" + +#: server/asobj/Key.cpp:238 +msgid "key_add_listener passed a NULL object; ignored" +msgstr "" + +#: server/asobj/Key.cpp:279 +msgid "key_is_down needs one argument (the key code)" +msgstr "" + +#: server/asobj/Key.cpp:303 +msgid "key_remove_listener needs one argument (the listener object)" +msgstr "" + +#: server/asobj/Key.cpp:310 +msgid "key_remove_listener passed a NULL object; ignored" +msgstr "" + +#: server/asobj/LoadVars.cpp:528 +msgid "LoadVars.load() requires at least one argument" +msgstr "" + +#: server/asobj/LoadVars.cpp:537 +msgid "LoadVars.load(): invalid empty url" +msgstr "" + +#: server/asobj/LoadVars.cpp:564 +msgid "LoadVars.sendAndLoad() requires at least two arguments" +msgstr "" + +#: server/asobj/LoadVars.cpp:573 +msgid "LoadVars.sendAndLoad(): invalid empty url" +msgstr "" + +#: server/asobj/LoadVars.cpp:582 +msgid "LoadVars.sendAndLoad(): invalid target (must be a LoadVars object)" +msgstr "" + +#: server/asobj/LocalConnection.cpp:143 +msgid "No connection name specified to LocalConnection.connect()" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:182 +#, c-format +msgid " resolved url: %s" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:221 +msgid "" +"FIXME: MovieClipLoader calling onLoadComplete *before* movie has actually " +"been fully loaded (cheating)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:261 +#, c-format +msgid "Dispatching %s event to " +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:261 +msgid " listeners" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:274 +#, c-format +msgid "Listener %p doesn't have an %s event to listen for, skipped" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:283 +#, c-format +msgid "Testing call to listener's %s function" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:308 +#, c-format +msgid "MovieClipLoader.loadClip() first argument is not a string (%s)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:318 +#, c-format +msgid "Could not find target %s" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:324 +#, c-format +msgid "Target is not a sprite instance (%s)" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:330 +#, c-format +msgid "load clip: %s, target is: %p\n" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:344 +#, c-format +msgid "%s: %s" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:388 +msgid "Listener given to MovieClipLoader.addListener() is not an object" +msgstr "" + +#: server/asobj/MovieClipLoader.cpp:406 +msgid "Listener given to MovieClipLoader.removeListener() is not an object" +msgstr "" + +#: server/asobj/NetConnection.cpp:97 +#, c-format +msgid "Gnash is not allowed to open this url: %s" +msgstr "" + +#: server/asobj/NetConnection.cpp:104 +#, c-format +msgid "Gnash could not open this url: %s" +msgstr "" + +#: server/asobj/NetConnection.cpp:110 +#, c-format +msgid "Connection etablished to movie: %s" +msgstr "" + +#: server/asobj/NetStream.cpp:85 +#, c-format +msgid "" +"First argument to NetStream constructor doesn't cast to a NetConnection (%s)" +msgstr "" + +#: server/asobj/NetStream.cpp:124 +msgid "NetStream play needs args" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:230 server/asobj/NetStreamGst.cpp:170 +msgid "No NetConnection associated with this NetStream, won't play" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:261 +msgid "libavcodec couldn't find decoder" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:267 +msgid "libavcodec couldn't allocate context" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:274 +msgid "libavcodec failed to initialize codec" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:311 server/asobj/NetStreamGst.cpp:491 +#, c-format +msgid "Unsupported video codec %d" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:342 server/asobj/NetStreamGst.cpp:530 +#, c-format +msgid "Unsupported audio codec %d" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:367 +msgid "Gnash could not read from movie url" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:384 server/asobj/NetStreamGst.cpp:346 +#: server/asobj/NetStreamGst.cpp:363 +#, c-format +msgid "Gnash could not open movie: %s" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:403 +#, c-format +msgid "Gnash could not open FLV movie: %s" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:414 +msgid "Failed to initialize FLV video codec" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:420 +msgid "Failed to initialize FLV audio codec" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:450 +#, c-format +msgid "Couldn't determine stream input format from URL %s" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:466 server/asobj/SoundFfmpeg.cpp:136 +#, c-format +msgid "Couldn't open file '%s' for decoding" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:476 server/asobj/SoundFfmpeg.cpp:146 +#, c-format +msgid "Couldn't find stream information from '%s', error code: %d" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:515 +#, c-format +msgid "Didn't find a video stream from '%s'" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:527 +#, c-format +msgid "Video decoder %d not found" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:535 +#, c-format +msgid "Could not open codec %d" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:561 +#, c-format +msgid "No available audio decoder %d to process MPEG file: '%s'" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:569 server/asobj/SoundFfmpeg.cpp:201 +#, c-format +msgid "Could not open audio codec %d for %s" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:744 +msgid "read_frame: not audio & video stream" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:944 +msgid "Problems decoding frame" +msgstr "" + +#: server/asobj/NetStreamFfmpeg.cpp:988 +#, c-format +msgid "%s: seeking failed" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:380 +msgid "The gstreamer pipeline element could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:399 +msgid "The gstreamer audiosink element could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:413 +msgid "Gstreamer audio element(s) for movie handling could not be created" +msgstr "" + +#: server/asobj/NetStreamGst.cpp:458 +msgid "" +"A gstreamer flashvideo (h.263) decoder element could not be created. You " +"probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:472 +msgid "" +"A gstreamer flashvideo (VP6) decoder element could not be created! You " +"probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:486 +msgid "" +"A gstreamer flashvideo (ScreenVideo) decoder element could not be created! " +"You probably need to install gst-ffmpeg." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:509 +msgid "" +"This version of Fluendo's mp3 plugin does not support flash streaming " +"sounds, please upgrade to version 0.10.4 or higher." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:516 +msgid "" +"A gstreamer mp3-decoder element could not be created! You probably need to " +"install a mp3-decoder plugin like gstreamer0.10-mad or gstreamer0.10-fluendo-" +"mp3." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:566 +msgid "" +"Gstreamer source element(s) for video movie handling could not be created, " +"you probably need to install gstreamer0.10-core for fakesrc and capsfilter " +"support." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:571 +msgid "" +"Gstreamer element(s) for video movie handling could not be created, you " +"probably need to install gstreamer0.10-base for decodebin support." +msgstr "" + +#: server/asobj/NetStreamGst.cpp:577 +msgid "" +"Gstreamer element(s) for video movie handling could not be created, you " +"probably need to install gstreamer0.10-base for ffmpegcolorspace and " +"videorate support." +msgstr "" + +#: server/asobj/Number.cpp:221 +#, c-format +msgid "Internal error: Cannot find \".0\" in %s for %.15g" +msgstr "" + +#: server/asobj/Object.cpp:125 +msgid "Too many args to Object constructor" +msgstr "" + +#: server/asobj/Object.cpp:171 +#, c-format +msgid "" +"Invalid call to Object.addProperty(%s) - expected 3 arguments (, " +", )" +msgstr "" + +#: server/asobj/Object.cpp:188 +msgid "Invalid call to Object.addProperty() - empty property name" +msgstr "" + +#: server/asobj/Object.cpp:198 +msgid "Invalid call to Object.addProperty() - getter is not an AS function" +msgstr "" + +#: server/asobj/Object.cpp:208 +msgid "Invalid call to Object.addProperty() - setter is not an AS function" +msgstr "" + +#: server/asobj/Object.cpp:235 +#, c-format +msgid "" +"Invalid call to Object.registerClass(%s) - expected 2 arguments (, " +")" +msgstr "" + +#: server/asobj/Object.cpp:252 +msgid "Invalid call to Object.registerClass() - empty symbol id" +msgstr "" + +#: server/asobj/Object.cpp:262 +msgid "Invalid call to Object.registerClass() - class is not a function" +msgstr "" + +#: server/asobj/Object.cpp:277 +#, c-format +msgid "Object.registerClass(%s, %s): can't find exported symbol" +msgstr "" + +#: server/asobj/Object.cpp:295 +#, c-format +msgid "" +"Object.registerClass(%s, %s): exported symbol is not a MovieClip symbol " +"(sprite_definition), but a %s" +msgstr "" + +#: server/asobj/Object.cpp:316 +msgid "Object.hasOwnProperty() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:325 +#, c-format +msgid "Invalid call to Object.hasOwnProperty('%s')" +msgstr "" + +#: server/asobj/Object.cpp:339 +msgid "Object.isPropertyEnumerable() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:348 +#, c-format +msgid "Invalid call to Object.isPropertyEnumerable('%s')" +msgstr "" + +#: server/asobj/Object.cpp:369 +msgid "Object.isPrototypeOf() requires one arg" +msgstr "" + +#: server/asobj/Object.cpp:378 +#, c-format +msgid "First arg to Object.isPrototypeOf(%s) is not an object" +msgstr "" + +#: server/asobj/Sound.cpp:140 +#, c-format +msgid "%s is still testing!" +msgstr "" + +#: server/asobj/Sound.cpp:143 server/asobj/SoundGst.cpp:229 +#, c-format +msgid "" +"%s: This sound already has a connection? (We try to handle this by deleting " +"the old one...)" +msgstr "" + +#: server/asobj/Sound.cpp:217 server/asobj/Sound.cpp:229 +#, c-format +msgid "%s: only works when ffmpeg, gstreamer or libmad is enabled" +msgstr "" + +#: server/asobj/Sound.cpp:257 +msgid "-- start sound" +msgstr "" + +#: server/asobj/Sound.cpp:282 +msgid "-- stop sound " +msgstr "" + +#: server/asobj/Sound.cpp:298 server/asobj/Sound.cpp:352 +#, c-format +msgid "import error: resource '%s' is not exported" +msgstr "" + +#: server/asobj/Sound.cpp:312 server/asobj/Sound.cpp:366 +msgid "sound sample is NULL (doesn't cast to sound_sample)" +msgstr "" + +#: server/asobj/Sound.cpp:325 +msgid "-- attach sound" +msgstr "" + +#: server/asobj/Sound.cpp:330 +msgid "attach sound needs one argument" +msgstr "" + +#: server/asobj/Sound.cpp:340 +msgid "attachSound needs a non-empty string" +msgstr "" + +#: server/asobj/Sound.cpp:441 +msgid "loadSound needs 2 arguments" +msgstr "" + +#: server/asobj/Sound.cpp:482 +msgid "set volume of sound needs one argument" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:92 +#, c-format +msgid "%s could not open audio url: %s" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:115 +#, c-format +msgid "%s: could not read from audio url: %s" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:172 +#, c-format +msgid "Non-audio data (type %d) found in file %s" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:181 +#, c-format +msgid "Didn't find a audio stream from '%s'" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:192 +#, c-format +msgid "No available audio decoder %d to process file: '%s'" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:320 +msgid "seeking to start of file (for looping) failed" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:372 +msgid "" +"This sound already has a connection. (We try to handle this by deleting the " +"old one...)" +msgstr "" + +#: server/asobj/SoundFfmpeg.cpp:402 server/asobj/SoundGst.cpp:257 +#, c-format +msgid "%s: seeking to offset failed" +msgstr "" + +#: server/asobj/SoundGst.cpp:108 +#, c-format +msgid "%s: new pad found" +msgstr "" + +#: server/asobj/SoundGst.cpp:122 +#, c-format +msgid "%s: new pad connected" +msgstr "" + +#: server/asobj/SoundGst.cpp:125 +#, c-format +msgid "%s: Non-audio data found in file %s" +msgstr "" + +#: server/asobj/SoundGst.cpp:142 +#, c-format +msgid "could not open audio url: %s" +msgstr "" + +#: server/asobj/SoundGst.cpp:171 +msgid "Could not create gstreamer pipeline element" +msgstr "" + +#: server/asobj/SoundGst.cpp:175 +msgid "Could not create gstreamer audiosink element" +msgstr "" + +#: server/asobj/SoundGst.cpp:198 +msgid "Could not create Gstreamer element(s) for movie handling" +msgstr "" + +#: server/asobj/SoundMad.cpp:83 +#, c-format +msgid "Gnash could not open audio url: %s" +msgstr "" + +#: server/asobj/SoundMad.cpp:120 server/asobj/SoundMad.cpp:207 +#, c-format +msgid "Recoverable error while decoding MP3, MAD error: %s" +msgstr "" + +#: server/asobj/SoundMad.cpp:215 +#, c-format +msgid "Unrecoverable error while decoding MP3, MAD error: %s" +msgstr "" + +#: server/asobj/SoundMad.cpp:272 +msgid "Error in sound sample convertion" +msgstr "" + +#: server/asobj/SoundMad.cpp:351 +msgid "" +"This sound already has a connection? (We try to handle this by deleting the " +"old one...)" +msgstr "" + +#: server/asobj/Stage.cpp:161 +msgid "Stage.addListener() needs one argument" +msgstr "" + +#: server/asobj/Stage.cpp:172 +#, c-format +msgid "" +"Invalid call to Stage.addListener(%s) : first arg doesn't cast to an object" +msgstr "" + +#: server/asobj/Stage.cpp:189 +msgid "Stage.removeListener() needs one argument" +msgstr "" + +#: server/asobj/Stage.cpp:200 +#, c-format +msgid "" +"Invalid call to Stage.removeListener(%s) : first arg doesn't cast to an " +"object" +msgstr "" + +#: server/asobj/string.cpp:364 +msgid "string.slice() called with end < start" +msgstr "" + +#: server/asobj/string.cpp:427 +msgid "string.charCodeAt needs one argument" +msgstr "" + +#: server/asobj/string.cpp:436 +msgid "string.charCodeAt has more than one argument" +msgstr "" + +#: server/asobj/xml.cpp:97 server/asobj/xml.cpp:115 +#, c-format +msgid "Creating XML data at %p" +msgstr "" + +#: server/asobj/xml.cpp:130 +#, c-format +msgid "\tCreating XML data at %p" +msgstr "" + +#: server/asobj/xml.cpp:164 +#, c-format +msgid "set_member 'loaded' (%s) became boolean %d" +msgstr "" + +#: server/asobj/xml.cpp:178 +#, c-format +msgid "\tDeleting XML top level node at %p" +msgstr "" + +#: server/asobj/xml.cpp:311 +msgid "Can't load XML file" +msgstr "" + +#: server/asobj/xml.cpp:338 +msgid "XML data is empty" +msgstr "" + +#: server/asobj/xml.cpp:353 +msgid "Can't parse XML data" +msgstr "" + +#: server/asobj/xml.cpp:381 +#, c-format +msgid "Can't load XML file: %s (security?)" +msgstr "" + +#: server/asobj/xml.cpp:386 +#, c-format +msgid "Loading XML file from url: '%s'" +msgstr "" + +#: server/asobj/xml.cpp:397 +#, c-format +msgid "Can't read XML file %s (stream error %d)" +msgstr "" + +#: server/asobj/xml.cpp:408 +#, c-format +msgid "Can't read XML file %s (%s)" +msgstr "" + +#: server/asobj/xml.cpp:431 +#, c-format +msgid "%s: FIXME: onLoad Default event handler" +msgstr "" + +#: server/asobj/xml.cpp:569 +#, c-format +msgid "\tCloned the XML object at %p" +msgstr "" + +#: server/asobj/xml.cpp:578 +#, c-format +msgid "First arg given to XML constructor (%s) evaluates to the empty string" +msgstr "" + +#: server/asobj/xml.cpp:603 +#, c-format +msgid "%s: %d args" +msgstr "" + +#: server/asobj/xml.cpp:636 +msgid "no text for element creation" +msgstr "" + +#: server/asobj/xml.cpp:665 +msgid "no text for text node creation" +msgstr "" + +#: server/asobj/xml.cpp:791 +#, c-format +msgid "XML parser: %s" +msgstr "" + +#: server/asobj/xmlnode.cpp:83 server/asobj/xmlnode.cpp:95 +#, c-format +msgid "\tCreating XMLNode data at %p" +msgstr "" + +#: server/asobj/xmlnode.cpp:123 +#, c-format +msgid "\tDeleting XMLNode data %s at %p" +msgstr "" + +#: server/asobj/xmlnode.cpp:151 +#, c-format +msgid "XMLNode %p has no children" +msgstr "" + +#: server/asobj/xmlnode.cpp:192 +msgid "" +"XMLNode.insertBefore(): positional parameter is not a child of this node" +msgstr "" + +#: server/asobj/xmlnode.cpp:295 +#, c-format +msgid "" +"Stringifying node %p with name %s, value %s, %u attributes and %u children" +msgstr "" + +#: server/asobj/xmlnode.cpp:443 +msgid "XMLNode::appendChild() needs at least one argument" +msgstr "" + +#: server/asobj/xmlnode.cpp:452 +msgid "First argument to XMLNode::appendChild() is not an XMLNode" +msgstr "" + +#: server/asobj/xmlnode.cpp:486 +#, c-format +msgid "XMLNode.insertBefore(%s) needs at least two argument" +msgstr "" + +#: server/asobj/xmlnode.cpp:496 +#, c-format +msgid "First argument to XMLNode.insertBefore(%s) is not an XMLNode" +msgstr "" + +#: server/asobj/xmlnode.cpp:507 +#, c-format +msgid "Second argument to XMLNode.insertBefore(%s) is not an XMLNode" +msgstr "" + +#: server/asobj/xmlsocket.cpp:207 +#, c-format +msgid "" +"%s: fd <= 0, returning false (timer not unregistered while socket " +"disconnected?" +msgstr "" + +#: server/asobj/xmlsocket.cpp:222 +#, c-format +msgid "The socket for fd #%d was interupted by a system call" +msgstr "" + +#: server/asobj/xmlsocket.cpp:227 server/asobj/xmlsocket.cpp:403 +#, c-format +msgid "%s: The socket for fd #%d never was available" +msgstr "" + +#: server/asobj/xmlsocket.cpp:243 +#, c-format +msgid "%s: read %d bytes, first msg terminates at %d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:251 +#, c-format +msgid "Packet size is %d at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:259 +#, c-format +msgid "%d: Pushing Packet of size " +msgstr "" + +#: server/asobj/xmlsocket.cpp:259 +#, c-format +msgid " at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:302 +#, c-format +msgid "Throwing out partial packet %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:317 +#, c-format +msgid "%s: Returning %d messages" +msgstr "" + +#: server/asobj/xmlsocket.cpp:332 +#, c-format +msgid "%s: socket not initialized" +msgstr "" + +#: server/asobj/xmlsocket.cpp:339 +#, c-format +msgid "%s: sent %d bytes, data was %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:399 +#, c-format +msgid "" +"%s: The socket for fd #%d was interupted by a system call in this thread" +msgstr "" + +#: server/asobj/xmlsocket.cpp:407 +#, c-format +msgid "%s: There is no data in the socket for fd #%d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:411 +#, c-format +msgid "%s: There is data in the socket for fd #%d" +msgstr "" + +#: server/asobj/xmlsocket.cpp:429 +#, c-format +msgid "XMLSocket.connect(%s) called" +msgstr "" + +#: server/asobj/xmlsocket.cpp:436 +msgid "XMLSocket.connect() called while already connected, ignored" +msgstr "" + +#: server/asobj/xmlsocket.cpp:455 +msgid "XMLSocket.connect(): calling onConnect" +msgstr "" + +#: server/asobj/xmlsocket.cpp:463 +msgid "Setting up timer for calling XMLSocket.onData()" +msgstr "" + +#: server/asobj/xmlsocket.cpp:471 +msgid "Timer set" +msgstr "" + +#: server/asobj/xmlsocket.cpp:512 +#, c-format +msgid "new XMLSocket(%s) called - created object at %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:532 +#, c-format +msgid "%s: not connected" +msgstr "" + +#: server/asobj/xmlsocket.cpp:554 +#, c-format +msgid "" +"Builtin XMLSocket.onData doing nothing as no onXML event is defined on " +"XMLSocket %p" +msgstr "" + +#: server/asobj/xmlsocket.cpp:563 +msgid "Builtin XMLSocket.onData() needs an argument" +msgstr "" + +#: server/asobj/xmlsocket.cpp:573 +#, c-format +msgid "" +"Builtin XMLSocket.onData() called with an argument that resolves to the " +"empty string: %s" +msgstr "" + +#: server/asobj/xmlsocket.cpp:654 +msgid "Still processing data" +msgstr "" + +#: server/asobj/xmlsocket.cpp:664 +msgid "Got " +msgstr "" + +#: server/asobj/xmlsocket.cpp:664 +msgid " messages: " +msgstr "" + +#: server/asobj/xmlsocket.cpp:667 +msgid " Message " +msgstr "" + +#: server/asobj/xmlsocket.cpp:667 +#, c-format +msgid " : %s " +msgstr "" + +#: server/asobj/xmlsocket.cpp:695 +#, c-format +msgid "%s: Couldn't find onData" +msgstr "" + +#: server/as_value.cpp:172 +#, c-format +msgid "[object %p].%s() did not return a string: %s" +msgstr "" + +#: server/as_value.cpp:179 server/as_value.cpp:339 +#, c-format +msgid "get_member(%s) returned false" +msgstr "" + +#: server/as_value.cpp:324 +#, c-format +msgid "[object %p].%s() did not return a number: %s" +msgstr "" + +#: server/as_value.cpp:504 +#, c-format +msgid "" +"MovieClip value is a dangling reference: target '%s' not found (should set " +"to NULL?)" +msgstr "" + +#: server/button_character_instance.cpp:328 +#, c-format +msgid "Unsupported event for button instance: %s" +msgstr "" + +#: server/button_character_instance.cpp:533 +#, c-format +msgid "Unhandled button event %s" +msgstr "" + +#: server/button_character_instance.cpp:623 +#, c-format +msgid "Executing actions for button condition %d" +msgstr "" + +#: server/character.cpp:99 +msgid "Relative drag" +msgstr "" + +#: server/character.cpp:163 +msgid "" +"ActionScript code trying to reference a nonexistent parent with '..' (a " +"nonexistent parent probably only occurs in the root MovieClip). Returning a " +"reference to top parent (probably the root clip)." +msgstr "" + +#: server/character.cpp:305 +#, c-format +msgid "Attempt to set _xscale to %g, refused" +msgstr "" + +#: server/character.cpp:313 +#, c-format +msgid "Attempt to set _xscale to %g, use 0" +msgstr "" + +#: server/character.cpp:349 +#, c-format +msgid "Attempt to set _yscale to %g, refused" +msgstr "" + +#: server/character.cpp:357 +#, c-format +msgid "Attempt to set _yscale to %g, use 0" +msgstr "" + +#: server/character.cpp:475 +msgid "FIXME: can't set _width on character with null or world bounds" +msgstr "" + +#: server/character.cpp:486 +#, c-format +msgid "Setting _width=%g" +msgstr "" + +#: server/character.cpp:520 +msgid "FIXME: can't set _height on character with null or world bounds" +msgstr "" + +#: server/character.cpp:531 +#, c-format +msgid "Setting _height=%g" +msgstr "" + +#: server/dlist.cpp:332 +#, c-format +msgid "move_display_object() -- can't find object at depth %d" +msgstr "" + +#: server/dlist.cpp:688 +#, c-format +msgid "Item %d at depth %d (char id %d, name %s, type %s" +msgstr "" + +#: server/edit_text_character.cpp:850 +#, c-format +msgid "TextField text doesn't fit in its boundaries: width %g, margin %d" +msgstr "" + +#: server/edit_text_character.cpp:909 +#, c-format +msgid "No font for edit_text_character! [%s:%d]" +msgstr "" + +#: server/edit_text_character.cpp:937 +#, c-format +msgid "substituting font! font '%s' has no glyphs, using font '%s'" +msgstr "" + +#: server/edit_text_character.cpp:947 +msgid "" +"Current font has no glyphs and I couldn't find another font with glyphs... :(" +msgstr "" + +#: server/edit_text_character.cpp:1072 +#, c-format +msgid "" +"%s -- missing glyph for space char (needed for TAB). Make sure character " +"shapes for font %s are being exported into your SWF file." +msgstr "" + +#: server/edit_text_character.cpp:1111 +#, c-format +msgid "" +"%s -- missing glyph for char %d. Make sure character shapes for font %s are " +"being exported into your SWF file" +msgstr "" + +#: server/edit_text_character.cpp:1230 +msgid "registerTextVariable() no-op call (already registered)" +msgstr "" + +#: server/edit_text_character.cpp:1238 +msgid "string is empty, consider as registered" +msgstr "" + +#: server/edit_text_character.cpp:1254 +#, c-format +msgid "VariableName: %s" +msgstr "" + +#: server/edit_text_character.cpp:1269 +#, c-format +msgid "Variable text Path: %s, Var: %s" +msgstr "" + +#: server/edit_text_character.cpp:1282 +#, c-format +msgid "" +"VariableName associated to text field refer to an unknown target (%s). It is " +"possible that the character will be instantiated later in the SWF stream. " +"Gnash will try to register again on next access." +msgstr "" + +#: server/edit_text_character.cpp:1297 +#, c-format +msgid "target sprite (%p) does have a member named %s" +msgstr "" + +#: server/edit_text_character.cpp:1304 +#, c-format +msgid "" +"target sprite (%p) does NOT have a member named %s (no problem, we'll add it)" +msgstr "" + +#: server/fill_style.cpp:132 +msgid "num gradients 0" +msgstr "" + +#: server/fill_style.cpp:141 +#, c-format +msgid "Unexpected num gradients (%d), expected 1 to 8" +msgstr "" + +#: server/fill_style.cpp:190 +#, c-format +msgid "" +"Bitmap fill specifies '%d' as associated bitmap character id, but that " +"character is not found in the Characters Dictionary. It seems common to find " +"such malformed SWF, so we'll only warn once about this." +msgstr "" + +#: server/fill_style.cpp:246 +#, c-format +msgid "Unknown fill style %d" +msgstr "" + +#: server/fill_style.cpp:282 +#, c-format +msgid "" +"First gradient in a fill_style have position==%d (expected 0). This seems to " +"be common, so will warn only once." +msgstr "" + +#: server/fill_style.cpp:318 +#, c-format +msgid "two gradients in a fill_style have the same position/ratio: %d" +msgstr "" + +#: server/font.cpp:139 +msgid "reading DefineFont" +msgstr "" + +#: server/font.cpp:189 +msgid "reading DefineFont2 or DefineFont3" +msgstr "" + +#: server/font.cpp:224 server/font.cpp:239 +#, c-format +msgid "Glyph %d at offset %u" +msgstr "" + +#: server/font.cpp:275 +msgid "Bad offset in DefineFont2" +msgstr "" + +#: server/font.cpp:342 +msgid "Repeated kerning pair found - ignoring" +msgstr "" + +#: server/font.cpp:364 +msgid "DefineFontInfo2 partially implemented" +msgstr "" + +#: server/font.cpp:395 +#, c-format +msgid "reading code table at offset %lu" +msgstr "" + +#: server/font.cpp:429 +#, c-format +msgid "get_glyph_index(%u) returning %d" +msgstr "" + +#: server/font.cpp:436 +#, c-format +msgid "get_glyph_index(%u) returning -1" +msgstr "" + +#: server/font.cpp:456 +#, c-format +msgid "empty advance table in font %s" +msgstr "" + +#: server/font.cpp:523 +msgid "" +"error reading cache file in font::input_cached_data(): glyph count mismatch" +msgstr "" + +#: server/impl.cpp:89 +#, c-format +msgid "Base url set to: %s" +msgstr "" + +#: server/impl.cpp:254 +#, c-format +msgid "get_movie_info(): can't open '%s'" +msgstr "" + +#: server/impl.cpp:269 +#, c-format +msgid "get_movie_info(): file '%s' does not start with a SWF header" +msgstr "" + +#: server/impl.cpp:279 +msgid "" +"get_movie_info(): can't read zipped SWF data; TU_CONFIG_LINK_TO_ZLIB is 0" +msgstr "" + +#: server/impl.cpp:339 +msgid "Can't read jpeg" +msgstr "" + +#: server/impl.cpp:364 +msgid "Can't read file header" +msgstr "" + +#: server/impl.cpp:441 +msgid "" +"Requested to keep from completely loading a movie, but the movie in question " +"is a jpeg, for which we don't yet have the concept of a 'loading thread'" +msgstr "" + +#: server/impl.cpp:450 +#, c-format +msgid "unknown file type (%s)" +msgstr "" + +#: server/impl.cpp:466 +#, c-format +msgid "failed to open '%s'; can't create movie" +msgstr "" + +#: server/impl.cpp:471 +#, c-format +msgid "streamProvider opener can't open '%s'" +msgstr "" + +#: server/impl.cpp:490 +#, c-format +msgid "note: couldn't open cache file '%s'" +msgstr "" + +#: server/impl.cpp:499 +#, c-format +msgid "Loading cache file %s" +msgstr "" + +#: server/impl.cpp:627 +msgid "extern movie deleted" +msgstr "" + +#: server/impl.cpp:677 +#, c-format +msgid "Movie %s already in library" +msgstr "" + +#: server/impl.cpp:693 +#, c-format +msgid "Couldn't load library movie '%s'" +msgstr "" + +#: server/impl.cpp:700 +#, c-format +msgid "Movie %s (SWF%d) added to library" +msgstr "" + +#: server/impl.cpp:739 +#, c-format +msgid "%s: couldn't create instance" +msgstr "" + +#: server/impl.cpp:791 +msgid "precompute_cached_data can't create instance of movie" +msgstr "" + +#: server/impl.cpp:840 +msgid "loop back; jumping to frame " +msgstr "" + +#: server/parser/action_buffer.cpp:105 +msgid "process_decl_dict(" +msgstr "" + +#: server/parser/action_buffer.cpp:105 +msgid ", " +msgstr "" + +#: server/parser/action_buffer.cpp:105 +#, c-format +msgid "" +"): decl_dict was already processed at %d. Skipping (or maybe we should " +"append, or replace?)." +msgstr "" + +#: server/parser/action_buffer.cpp:133 +msgid "action buffer dict length exceeded" +msgstr "" + +#: server/parser/BitmapMovieDefinition.cpp:64 +#, c-format +msgid "Creating a shape_definition wrapping a %g x %g bitmap" +msgstr "" + +#: server/parser/button_character_def.cpp:58 +msgid "-- actions in button\n" +msgstr "" + +#: server/parser/button_character_def.cpp:99 +#, c-format +msgid "" +"button record refer to character with id %d, which is not found in the chars " +"dictionary" +msgstr "" + +#: server/parser/button_character_def.cpp:225 +msgid "button sound options: " +msgstr "" + +#: server/parser/button_character_def.cpp:275 +#, c-format +msgid "Next Button2 actionOffset (%u) points past the end of tag" +msgstr "" + +#: server/parser/button_character_def.cpp:301 +#, c-format +msgid "" +"Next action offset (%u) in Button2ActionConditions points past the end of tag" +msgstr "" + +#: server/parser/edit_text_character_def.cpp:120 +#, c-format +msgid "error: text style with undefined font; font_id = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:243 +#, c-format +msgid "morph fill style type = 0x%X" +msgstr "" + +#: server/parser/morph2_character_def.cpp:253 +msgid "morph fill style begin color: " +msgstr "" + +#: server/parser/morph2_character_def.cpp:255 +msgid "morph fill style end color: " +msgstr "" + +#: server/parser/morph2_character_def.cpp:303 +#, c-format +msgid "morph fsr: num_gradients = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:319 +#, c-format +msgid "morph fsr bitmap_char = %d" +msgstr "" + +#: server/parser/morph2_character_def.cpp:387 +msgid "Different number of paths in start (" +msgstr "" + +#: server/parser/morph2_character_def.cpp:388 +msgid ") and end (" +msgstr "" + +#: server/parser/morph2_character_def.cpp:389 +msgid ") shapes of a morph" +msgstr "" + +#: server/parser/morph2_character_def.cpp:395 +#, c-format +msgid "Different number of edges in start (%u) and end (%u) shapes of a morph" +msgstr "" + +#: server/parser/movie_def_impl.cpp:280 +#, c-format +msgid "import error: resource '%s' is not exported from movie '%s'" +msgstr "" + +#: server/parser/movie_def_impl.cpp:297 server/swf/tag_loaders.cpp:1081 +#, c-format +msgid "import error: resource '%s' from movie '%s' has unknown type" +msgstr "" + +#: server/parser/movie_def_impl.cpp:326 +#, c-format +msgid "get_character_def(): character_id %d is still waiting to be imported" +msgstr "" + +#: server/parser/movie_def_impl.cpp:348 +#, c-format +msgid "get_font(): font_id %d is still waiting to be imported" +msgstr "" + +#: server/parser/movie_def_impl.cpp:395 +#, c-format +msgid "Add sound sample %d" +msgstr "" + +#: server/parser/movie_def_impl.cpp:423 +msgid "gnash::movie_def_impl::read() -- file does not start with a SWF header" +msgstr "" + +#: server/parser/movie_def_impl.cpp:430 +#, c-format +msgid "version = %d, file_length = %d" +msgstr "" + +#: server/parser/movie_def_impl.cpp:436 +#, c-format +msgid "SWF%d is not fully supported, trying anyway but don't expect it to work" +msgstr "" + +#: server/parser/movie_def_impl.cpp:443 +msgid "" +"movie_def_impl::read(): unable to read zipped SWF data; " +"TU_CONFIG_LINK_TO_ZLIB is 0" +msgstr "" + +#: server/parser/movie_def_impl.cpp:449 +msgid "file is compressed" +msgstr "" + +#: server/parser/movie_def_impl.cpp:477 +#, c-format +msgid "frame rate = %f, frames = " +msgstr "" + +#: server/parser/movie_def_impl.cpp:505 +msgid "Could not start loading thread" +msgstr "" + +#: server/parser/movie_def_impl.cpp:657 +msgid "cache file does not have the correct format; skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:663 +#, c-format +msgid "cached data is version %d, but we require version %d; skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:678 +msgid "error reading cache file (characters); skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:683 +msgid "unexpected eof reading cache file (characters); skipping" +msgstr "" + +#: server/parser/movie_def_impl.cpp:698 +msgid "" +"sync error in cache file (reading characters). Skipping rest of cache data." +msgstr "" + +#: server/parser/movie_def_impl.cpp:732 +#, c-format +msgid "Character %d @ %p" +msgstr "" + +#: server/parser/movie_def_impl.cpp:744 +#, c-format +msgid "Could not find char %d, dump is:" +msgstr "" + +#: server/parser/movie_def_impl.cpp:782 +#, c-format +msgid "Ensure load of frame %u/%u (last loaded is: %u)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:787 +msgid "Could not advance to frame " +msgstr "" + +#: server/parser/movie_def_impl.cpp:796 +#, c-format +msgid "" +"No more frames to load. Framecount: %u, Lastloaded: %u, next to load: %u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:852 +#, c-format +msgid "" +"last expected SHOWFRAME in SWF stream '%s' isn't followed by an END (%d)." +msgstr "" + +#: server/parser/movie_def_impl.cpp:871 +#, c-format +msgid "*** no tag loader for type %d (movie)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:889 +msgid "" +"Hit stream-end tag, but not at the advertised SWF end; stopping for safety." +msgstr "" + +#: server/parser/movie_def_impl.cpp:905 +#, c-format +msgid "Parsing exception: %s" +msgstr "" + +#: server/parser/movie_def_impl.cpp:911 +msgid " action blocks and " +msgstr "" + +#: server/parser/movie_def_impl.cpp:911 +msgid " init action blocks are NOT followed by a SHOWFRAME tag" +msgstr "" + +#: server/parser/movie_def_impl.cpp:921 +msgid " frames advertised in header, but only " +msgstr "" + +#: server/parser/movie_def_impl.cpp:921 +msgid " SHOWFRAME tags found in stream. Updating total frames count" +msgstr "" + +#: server/parser/movie_def_impl.cpp:947 +#, c-format +msgid "number of SHOWFRAME tags in SWF stream '%s' (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:949 +msgid ") exceeds the advertised number in header (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:951 +msgid ")." +msgstr "" + +#: server/parser/movie_def_impl.cpp:960 +#, c-format +msgid "Loaded frame %u/%u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:990 +#, c-format +msgid "get_exported_resource called, frame count=%u" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1026 +msgid "frame load advancement (from " +msgstr "" + +#: server/parser/movie_def_impl.cpp:1027 +msgid " to " +msgstr "" + +#: server/parser/movie_def_impl.cpp:1027 server/parser/sprite_definition.h:314 +msgid ")" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1036 +#, c-format +msgid "" +"No frame progress in movie %s after %lu milliseconds (%lu microseconds = %lu " +"iterations), giving up on get_exported_resource(%s): circular IMPORTS?" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1050 +#, c-format +msgid "no frame progress at iteration %lu" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1057 +#, c-format +msgid "At end of stream, still no '%s' symbol found in m_exports (" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1058 +msgid " entries in it, follow)" +msgstr "" + +#: server/parser/movie_def_impl.cpp:1064 +#, c-format +msgid "" +"We haven't finished loading (loading frame %u), and m_exports.get returned " +"no entries, sleeping a bit and trying again" +msgstr "" + +#: server/parser/shape_character_def.cpp:85 +#, c-format +msgid " read_fill_styles: count = %u" +msgstr "" + +#: server/parser/shape_character_def.cpp:120 +#, c-format +msgid " read_line_styles: count = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:130 +#, c-format +msgid " read_line_styles: count2 = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:180 +#, c-format +msgid " bound rect: %s" +msgstr "" + +#: server/parser/shape_character_def.cpp:192 +#, c-format +msgid " shape_character_def read: nfillbits = %d, nlinebits = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:249 +#, c-format +msgid " shape_character read: moveto %4g %4g" +msgstr "" + +#: server/parser/shape_character_def.cpp:268 +#, c-format +msgid " shape_character read: fill0 (left) = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:288 +#, c-format +msgid " shape_character read: fill1 (right) = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:308 +#, c-format +msgid " shape_character_read: line = %d" +msgstr "" + +#: server/parser/shape_character_def.cpp:319 +msgid " shape_character read: more fill styles" +msgstr "" + +#: server/parser/shape_character_def.cpp:355 +#, c-format +msgid " shape_character read: curved edge = %4g %4g - %4g %4g - %4g %4g" +msgstr "" + +#: server/parser/shape_character_def.cpp:386 +#, c-format +msgid " shape_character_read: straight edge = %4g %4g - %4g %4g" +msgstr "" + +#: server/parser/sprite_definition.cpp:42 +#, c-format +msgid "Instantiating sprite_def %p" +msgstr "" + +#: server/parser/sprite_definition.cpp:81 +msgid " frames = " +msgstr "" + +#: server/parser/sprite_definition.cpp:95 +msgid "DefineSprite tag inside sprite definition" +msgstr "" + +#: server/parser/sprite_definition.cpp:106 +msgid " show_frame " +msgstr "" + +#: server/parser/sprite_definition.cpp:107 +#: server/parser/sprite_definition.h:314 server/sprite_instance.cpp:1665 +#: server/sprite_instance.cpp:2293 server/sprite_instance.cpp:2317 +#: server/vm/ActionExec.cpp:429 +msgid "/" +msgstr "" + +#: server/parser/sprite_definition.cpp:108 +msgid " (sprite)" +msgstr "" + +#: server/parser/sprite_definition.cpp:121 +msgid "" +"last SHOWFRAME of a DEFINESPRITE tag isn't followed by an END. Seeking to " +"next END tag." +msgstr "" + +#: server/parser/sprite_definition.cpp:142 +#, c-format +msgid "*** no tag loader for type %d (sprite)" +msgstr "" + +#: server/parser/sprite_definition.cpp:150 +msgid " -- sprite END --" +msgstr "" + +#: server/parser/sprite_definition.cpp:208 +#, c-format +msgid "Registered class %p for sprite_def %p" +msgstr "" + +#: server/parser/sprite_definition.cpp:210 +msgid " Exported interface: " +msgstr "" + +#: server/parser/sprite_definition.h:159 +msgid "add_font tag appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:180 +msgid "add_bitmap_character_def appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:194 +msgid "add sam appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:217 +msgid "Can't export from sprite" +msgstr "" + +#: server/parser/sprite_definition.h:246 +msgid "add_character tag appears in sprite tags" +msgstr "" + +#: server/parser/sprite_definition.h:276 +msgid "sprite_definition::add_init_action called! Ignored" +msgstr "" + +#: server/parser/sprite_definition.h:312 +msgid "sprite_definition: loading of frame " +msgstr "" + +#: server/parser/sprite_definition.h:313 +msgid " requested (we are at " +msgstr "" + +#: server/parser/text_character_def.cpp:29 +msgid "begin text records" +msgstr "" + +#: server/parser/text_character_def.cpp:43 +msgid "end text records" +msgstr "" + +#: server/parser/text_character_def.cpp:62 +msgid " text style change" +msgstr "" + +#: server/parser/text_character_def.cpp:71 +#, c-format +msgid " has_font: font id = %d" +msgstr "" + +#: server/parser/text_character_def.cpp:86 +msgid " has_color" +msgstr "" + +#: server/parser/text_character_def.cpp:94 +#, c-format +msgid " has_x_offset = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:107 +#, c-format +msgid " has_y_offset = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:119 +#, c-format +msgid " text_height = %g" +msgstr "" + +#: server/parser/text_character_def.cpp:142 +#, c-format +msgid " glyph_records: count = %d" +msgstr "" + +#: server/PropertyList.cpp:93 +#, c-format +msgid "Property %s is read-only, not setting it to %s" +msgstr "" + +#: server/sprite_instance.cpp:138 +#, c-format +msgid "" +"attachMovie called with wrong number of arguments expected 3 to 4, got (%d) " +"- returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:152 +#, c-format +msgid "attachMovie: '%s': no such exported resource - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:162 +#, c-format +msgid "" +"attachMovie: exported resource '%s' is not a movie definition (%s) -- " +"returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:186 +#, c-format +msgid "Could not attach character at depth %d" +msgstr "" + +#: server/sprite_instance.cpp:205 +#, c-format +msgid "Fourth argument of attachMovie doesn't cast to an object (%s)" +msgstr "" + +#: server/sprite_instance.cpp:240 +#, c-format +msgid "createEmptyMovieClip needs 2 args, but %d given, returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:250 +#, c-format +msgid "createEmptyMovieClip takes 2 args, but %d given, discarding the excess" +msgstr "" + +#: server/sprite_instance.cpp:288 +#, c-format +msgid "%s.swapDepths() needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:297 +#, c-format +msgid "%s.swapDepths(%s): won't swap a clip below depth %d (%d)" +msgstr "" + +#: server/sprite_instance.cpp:309 +#, c-format +msgid "%s.swapDepths(%s): this sprite has no parent, swapping depth of root?" +msgstr "" + +#: server/sprite_instance.cpp:327 +#, c-format +msgid "%s.swapDepths(%s): invalid call, swapping to self?" +msgstr "" + +#: server/sprite_instance.cpp:337 +#, c-format +msgid "" +"%s.swapDepths(%s): invalid call, the two characters don't have the same " +"parent" +msgstr "" + +#: server/sprite_instance.cpp:354 +#, c-format +msgid "" +"%s.swapDepths(%s): first argument invalid (neither a sprite nor a number)" +msgstr "" + +#: server/sprite_instance.cpp:389 +msgid "MovieClip.duplicateMovieClip() needs 2 or 3 args" +msgstr "" + +#: server/sprite_instance.cpp:420 +msgid "sprite_goto_and_play needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:439 +msgid "sprite_goto_and_stop needs one arg" +msgstr "" + +#: server/sprite_instance.cpp:503 +#, c-format +msgid "" +"MovieClip.loadMovie() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:515 +#, c-format +msgid "" +"First argument of MovieClip.loadMovie(%s) evaluates to an empty string - " +"returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:528 +#, c-format +msgid "" +"second argument of MovieClip.loadMovie(%s, ) will be discarded" +msgstr "" + +#: server/sprite_instance.cpp:551 +#, c-format +msgid "" +"MovieClip.loadVariables() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:563 +#, c-format +msgid "" +"First argument passed to MovieClip.loadVariables(%s) evaluates to an empty " +"string - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:627 +#, c-format +msgid "Can't find hitTest target %s" +msgstr "" + +#: server/sprite_instance.cpp:665 +#, c-format +msgid "hitTest() called with %u args" +msgstr "" + +#: server/sprite_instance.cpp:684 +#, c-format +msgid "createTextField called with %d args, expected 6 - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:693 +msgid "First argument of createTextField is not a string - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:703 +msgid "" +"Second argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:713 +msgid "Third argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:723 +msgid "" +"Fourth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:733 server/sprite_instance.cpp:743 +msgid "Fifth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: server/sprite_instance.cpp:798 +#, c-format +msgid "MovieClip.getBounds(%s): invalid call, first arg must be a sprite" +msgstr "" + +#: server/sprite_instance.cpp:879 +msgid "MovieClip.lineTo() takes two args" +msgstr "" + +#: server/sprite_instance.cpp:900 +msgid "MovieClip.moveTo() takes two args" +msgstr "" + +#: server/sprite_instance.cpp:963 +msgid "MovieClip.curveTo() takes four args" +msgstr "" + +#: server/sprite_instance.cpp:1624 +#, c-format +msgid "" +"A sprite member (%s) clashes with the name of an existing character in its " +"display list. The member will hide the character" +msgstr "" + +#: server/sprite_instance.cpp:1664 server/sprite_instance.cpp:2291 +#: server/sprite_instance.cpp:2316 +msgid "Executing " +msgstr "" + +#: server/sprite_instance.cpp:1664 +msgid " actions in frame " +msgstr "" + +#: server/sprite_instance.cpp:1665 server/sprite_instance.cpp:2293 +#: server/sprite_instance.cpp:2317 +#, c-format +msgid " of sprite %s" +msgstr "" + +#: server/sprite_instance.cpp:1714 +#, c-format +msgid "call_frame('%s') -- invalid frame" +msgstr "" + +#: server/sprite_instance.cpp:1828 +msgid "Can't clone root of the movie" +msgstr "" + +#: server/sprite_instance.cpp:1834 +#, c-format +msgid "%s parent is not a sprite, can't clone" +msgstr "" + +#: server/sprite_instance.cpp:1890 +#, c-format +msgid "" +"clone_display_object(%s, %s, %d): could not find a character named %s to " +"clone" +msgstr "" + +#: server/sprite_instance.cpp:1986 +#, c-format +msgid "sprite[%p]::set_member(%s, %s)" +msgstr "" + +#: server/sprite_instance.cpp:2007 +msgid "it's a Text Variable" +msgstr "" + +#: server/sprite_instance.cpp:2015 +msgid "it's NOT a Text Variable" +msgstr "" + +#: server/sprite_instance.cpp:2029 server/sprite_instance.cpp:2055 +msgid "NULL path_to_var passed to set_variable()" +msgstr "" + +#: server/sprite_instance.cpp:2034 server/sprite_instance.cpp:2060 +#, c-format +msgid "NULL passed to set_variable('%s', NULL)" +msgstr "" + +#: server/sprite_instance.cpp:2088 +#, c-format +msgid "" +"sprite '%s' ::advance_sprite is at frame %u/%u - onload called: %d - " +"oldDIsplayList has %d elements" +msgstr "" + +#: server/sprite_instance.cpp:2098 +msgid "sprite_instance::advance_sprite we're in PLAY mode" +msgstr "" + +#: server/sprite_instance.cpp:2106 +msgid "on_event_load called, incrementing" +msgstr "" + +#: server/sprite_instance.cpp:2110 +#, c-format +msgid "after increment we are at frame %u/%u" +msgstr "" + +#: server/sprite_instance.cpp:2124 +msgid "sprite_instance::advance_sprite we're in STOP mode" +msgstr "" + +#: server/sprite_instance.cpp:2191 +msgid "Calling ONLOAD event" +msgstr "" + +#: server/sprite_instance.cpp:2292 +msgid " *init* tags in frame " +msgstr "" + +#: server/sprite_instance.cpp:2316 +msgid " tags in frame " +msgstr "" + +#: server/sprite_instance.cpp:2400 +#, c-format +msgid "sprite %s ::goto_frame(" +msgstr "" + +#: server/sprite_instance.cpp:2400 +msgid ") - current frame is " +msgstr "" + +#: server/sprite_instance.cpp:2440 +msgid "GotoFrame(" +msgstr "" + +#: server/sprite_instance.cpp:2440 +msgid ") targets a yet to be loaded frame (" +msgstr "" + +#: server/sprite_instance.cpp:2441 +msgid "" +") loaded). We'll wait for it but a more correct form is explicitly using " +"WaitForFrame instead" +msgstr "" + +#: server/sprite_instance.cpp:2531 +#, c-format +msgid "sprite_instance::goto_labeled_frame('%s') unknown label" +msgstr "" + +#: server/sprite_instance.cpp:2620 +#, c-format +msgid "sprite_instance::add_display_object(): unknown cid = %d" +msgstr "" + +#: server/sprite_instance.cpp:2706 +#, c-format +msgid "sprite::replace_display_object(): unknown cid = %d" +msgstr "" + +#: server/sprite_instance.cpp:2780 +#, c-format +msgid "Frame %u/%u, bytes %u/%u" +msgstr "" + +#: server/sprite_instance.cpp:3014 +#, c-format +msgid "%s doesn't even check for a char" +msgstr "" + +#: server/sprite_instance.cpp:3155 +#, c-format +msgid "Constructing sprite '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3205 +#, c-format +msgid "Unloading sprite '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3227 server/vm/action.cpp:140 +#, c-format +msgid "can't create movie_definition for %s" +msgstr "" + +#: server/sprite_instance.cpp:3236 +#, c-format +msgid "can't create extern movie_instance for %s" +msgstr "" + +#: server/sprite_instance.cpp:3306 +msgid "MovieClip.loadVariables() with GET/POST won't append vars for now" +msgstr "" + +#: server/sprite_instance.cpp:3331 +#, c-format +msgid "Setting variable '%s' to value '%s'" +msgstr "" + +#: server/sprite_instance.cpp:3374 +#, c-format +msgid "" +"removeMovieClip(%s): sprite depth (%d) out of the 'dynamic' zone " +"[0..1048575], won't remove" +msgstr "" + +#: server/sprite_instance.cpp:3391 +#, c-format +msgid "Can't remove sprite %s as it has no parent" +msgstr "" + +#: server/StreamProvider.cpp:91 server/StreamProvider.cpp:132 +#, c-format +msgid "Unsupported network connection %s" +msgstr "" + +#: server/StreamProvider.cpp:105 +msgid "POST data discarded while getting a stream from file: uri" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:53 +#, c-format +msgid "DefineFontAlignZones tag references an undefined font %d" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:67 +#, c-format +msgid " DefinFontAlignZones: font=%d, flags=%d" +msgstr "" + +#: server/swf/DefineFontAlignZonesTag.cpp:71 +msgid "FIXME: DefineFontAlignZoneTag unfinished" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:47 +#, c-format +msgid " char_id = %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:48 +#, c-format +msgid " depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:58 server/swf/PlaceObject2Tag.cpp:272 +msgid " cxform:" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:80 +#, c-format +msgid " actions: flags = 0x%X" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:101 +#, c-format +msgid "" +"swf_event::read(), even_length = %u, but only %lu bytes left to the end of " +"current tag. Breaking for safety." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:126 server/swf/PlaceObject2Tag.cpp:138 +#, c-format +msgid "swf_event::read(), event_length = %d, but read " +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:129 +msgid ". Breaking for safety." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:141 +msgid ". Skipping excessive bytes." +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:177 +#, c-format +msgid "" +"swf_event::read() -- unknown / unhandled event type received, flags = 0x%x" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:263 +#, c-format +msgid " PLACEOBJECT2: depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:264 +#, c-format +msgid " char id = %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:267 +msgid " mat:" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:275 +#, c-format +msgid " ratio: %f" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:276 +#, c-format +msgid " name = %s" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:277 +#, c-format +msgid " clip_depth = %d (%d)" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:278 +#, c-format +msgid " m_place_type: %d" +msgstr "" + +#: server/swf/PlaceObject2Tag.cpp:383 +#, c-format +msgid "reverse REPLACE can't find previous replace or add tag(%d, %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:142 +msgid "anchor-labeled frame not supported" +msgstr "" + +#: server/swf/tag_loaders.cpp:147 +msgid "frame_label_loader end position " +msgstr "" + +#: server/swf/tag_loaders.cpp:147 +msgid ", read up to " +msgstr "" + +#: server/swf/tag_loaders.cpp:182 +#, c-format +msgid " set_background_color: (%d %d %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:211 +msgid " jpeg_tables_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:249 server/swf/tag_loaders.cpp:297 +msgid "gnash is not linked to jpeglib -- can't load jpeg image data" +msgstr "" + +#: server/swf/tag_loaders.cpp:261 +#, c-format +msgid "DEFINEBITS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:281 +#, c-format +msgid " define_bits_jpeg2_loader: charid = %d pos = %lx" +msgstr "" + +#: server/swf/tag_loaders.cpp:306 +#, c-format +msgid "DEFINEBITSJPEG2: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:342 +#, c-format +msgid "inflate_wrapper() inflateInit() returned %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:358 +#, c-format +msgid "inflate_wrapper() inflate() returned %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:365 +#, c-format +msgid "inflate_wrapper() inflateEnd() return %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:382 +#, c-format +msgid " define_bits_jpeg3_loader: charid = %d pos = %lx" +msgstr "" + +#: server/swf/tag_loaders.cpp:393 +msgid "" +"gnash is not linked to jpeglib/zlib -- can't load jpeg/zipped image data" +msgstr "" + +#: server/swf/tag_loaders.cpp:440 +#, c-format +msgid " defbitslossless2: tag = %d, id = %d, fmt = %d, w = %d, h = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:449 +msgid "gnash is not linked to zlib -- can't load zipped image data" +msgstr "" + +#: server/swf/tag_loaders.cpp:555 +#, c-format +msgid "" +"DEFINEBITSLOSSLESS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: server/swf/tag_loaders.cpp:685 +#, c-format +msgid " FIXME: tagtype = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:697 +#, c-format +msgid " shape_loader: id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:713 +#, c-format +msgid " shape_morph_loader: id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:762 +#, c-format +msgid "define_font_info_loader: can't find font w/ id %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:775 +msgid " place_object_2" +msgstr "" + +#: server/swf/tag_loaders.cpp:795 +#, c-format +msgid " sprite: char id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:803 +msgid "nested DEFINESPRITE tags" +msgstr "" + +#: server/swf/tag_loaders.cpp:870 +#, c-format +msgid "reverse REMOVE can't find previous replace or add tag(%d, %d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:889 +#, c-format +msgid " remove_object_2(%d)" +msgstr "" + +#: server/swf/tag_loaders.cpp:920 +#, c-format +msgid " button character loader: char_id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:944 +#, c-format +msgid " export: count = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:954 +#, c-format +msgid " export: id = %d, name = %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:973 +#, c-format +msgid "don't know how to export resource '%s' with id %d (can't find that id)" +msgstr "" + +#: server/swf/tag_loaders.cpp:1010 +#, c-format +msgid " import: version = %u, source_url = %s (%s), count = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1022 +#, c-format +msgid "Exception: %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1028 +#, c-format +msgid "can't import movie from url %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1037 +msgid "Movie attempts to import symbols from itself." +msgstr "" + +#: server/swf/tag_loaders.cpp:1050 +#, c-format +msgid " import: id = %d, name = %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1066 +#, c-format +msgid "import error: could not find resource '%s' in movie '%s'" +msgstr "" + +#: server/swf/tag_loaders.cpp:1102 +#, c-format +msgid "edit_text_char, id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1120 +#, c-format +msgid "text_character, id = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1141 +#, c-format +msgid "tag %d: do_action_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:1142 +msgid "-- actions in frame " +msgstr "" + +#: server/swf/tag_loaders.cpp:1165 +#, c-format +msgid " tag %d: do_init_action_loader" +msgstr "" + +#: server/swf/tag_loaders.cpp:1166 +#, c-format +msgid " -- init actions for sprite %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1199 +#, c-format +msgid "define sound: ch=%d, format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1215 server/swf/tag_loaders.cpp:1361 +#, c-format +msgid "Bad sound sample rate %d read from SWF header" +msgstr "" + +#: server/swf/tag_loaders.cpp:1274 +#, c-format +msgid "" +"There is no sound handler currently active, so character with id %d will NOT " +"be added to the dictionary" +msgstr "" + +#: server/swf/tag_loaders.cpp:1300 +#, c-format +msgid "start_sound tag: id=%d, stop = %d, loop ct = %d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1309 +#, c-format +msgid "start_sound_loader: sound_id %d is not defined" +msgstr "" + +#: server/swf/tag_loaders.cpp:1351 +#, c-format +msgid "sound stream head: format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: server/swf/tag_loaders.cpp:1516 +#, c-format +msgid " file attributes: has_metadata=%s use_network=%s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 +msgid "true" +msgstr "" + +#: server/swf/tag_loaders.cpp:1517 server/swf/tag_loaders.cpp:1518 +msgid "false" +msgstr "" + +#: server/swf/tag_loaders.cpp:1523 +msgid "" +"FileAttributes tag in the SWF requests that network access is not granted to " +"this movie (or application?). Anyway Gnash won't care; use white/black " +"listing in your .gnashrc instead" +msgstr "" + +#: server/swf/tag_loaders.cpp:1541 +#, c-format +msgid "" +" metadata = [[\n" +"%s\n" +"]]" +msgstr "" + +#: server/swf/tag_loaders.cpp:1544 +#, c-format +msgid "METADATA tag unused: %s" +msgstr "" + +#: server/swf/tag_loaders.cpp:1562 +#, c-format +msgid "" +" serialnumber = [[\n" +"%s\n" +"]]" +msgstr "" + +#: server/swf/tag_loaders.cpp:1565 +#, c-format +msgid "SERIALNUMBER: %s" +msgstr "" + +#: server/text.cpp:50 +#, c-format +msgid "text style references unknown font (id = %d)" +msgstr "" + +#: server/text.cpp:154 +msgid "invalid glyph, render as an empty box" +msgstr "" + +#: server/text.cpp:181 +msgid "render glyph using draw_glyph" +msgstr "" + +#: server/text.cpp:192 +msgid "render glyph using filled outline (?) actually draw_glyph()" +msgstr "" + +#: server/textformat.cpp:124 +#, c-format +msgid "Created New TextFormat object at %p. Not fully implemented yet" +msgstr "" + +#: server/textformat.cpp:150 +msgid "TextFormat.setFormat() needs at least 3 arguments - ...me thinks" +msgstr "" + +#: server/textformat.cpp:159 +msgid "" +"Argument 3 given to TextFormat.setFormat() is not a TextFormat object - ... " +"should it be?" +msgstr "" + +#: server/textformat.cpp:237 +#, c-format +msgid "%s: args=%d unfinished implementation" +msgstr "" + +#: server/video_stream_instance.cpp:43 +msgid "attachVideo needs 1 arg" +msgstr "" + +#: server/video_stream_instance.cpp:56 +#, c-format +msgid "attachVideo(%s) first arg is not a NetStream instance" +msgstr "" + +#: server/video_stream_instance.cpp:116 +msgid "An error occured while decoding video frame" +msgstr "" + +#: server/vm/action.cpp:152 +#, c-format +msgid "can't create extern root sprite for %s" +msgstr "" + +#: server/vm/action.cpp:169 +#, c-format +msgid "can't create extern sprite for %s" +msgstr "" + +#: server/vm/action.cpp:238 +msgid "" +"Attempt to call a value which is neither a C nor an ActionScript function" +msgstr "" + +#: server/vm/action.cpp:270 +#, c-format +msgid "FIXME(%d): %s" +msgstr "" + +#: server/vm/action.cpp:389 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%l%c'" +msgstr "" + +#: server/vm/action.cpp:398 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%%c'" +msgstr "" + +#: server/vm/action.cpp:414 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid char '%c'" +msgstr "" + +#: server/vm/action.cpp:450 +msgid "-- start movie" +msgstr "" + +#: server/vm/action.cpp:461 +#, c-format +msgid "FIXME: %s" +msgstr "" + +#: server/vm/ActionExec.cpp:136 +msgid "at ActionExec operator() start, pc=" +msgstr "" + +#: server/vm/ActionExec.cpp:137 +msgid ", stop_pc=" +msgstr "" + +#: server/vm/ActionExec.cpp:137 +msgid ", code.size=" +msgstr "" + +#: server/vm/ActionExec.cpp:138 server/vm/ActionExec.cpp:211 +msgid "." +msgstr "" + +#: server/vm/ActionExec.cpp:178 +#, c-format +msgid "Length %u (%d) of action tag id %u at pc " +msgstr "" + +#: server/vm/ActionExec.cpp:180 +msgid " overflows actions buffer size " +msgstr "" + +#: server/vm/ActionExec.cpp:211 +msgid " After execution, PC is " +msgstr "" + +#: server/vm/ActionExec.cpp:249 +msgid "Call stack non-empty at end of ExecutableCode run (limits hit?)" +msgstr "" + +#: server/vm/ActionExec.cpp:255 +msgid "" +"Stack smashed (ActionScript compiler bug?).Fixing by pushing undefined " +"values to the missing slots, but don't expect things to work afterwards" +msgstr "" + +#: server/vm/ActionExec.cpp:265 +msgid " elements left on the stack after block execution. Cleaning up" +msgstr "" + +#: server/vm/ActionExec.cpp:283 +msgid "End of DoAction block hit while skipping " +msgstr "" + +#: server/vm/ActionExec.cpp:284 +msgid " action tags (pc:" +msgstr "" + +#: server/vm/ActionExec.cpp:285 +msgid ", stop_pc:" +msgstr "" + +#: server/vm/ActionExec.cpp:285 +msgid ") (WaitForFrame, probably)" +msgstr "" + +#: server/vm/ActionExec.cpp:319 +msgid "'With' stack depth (" +msgstr "" + +#: server/vm/ActionExec.cpp:319 +msgid ") exceeds the allowed limit for current SWF target version (" +msgstr "" + +#: server/vm/ActionExec.cpp:321 +#, c-format +msgid " for version %d). Don't expect this movie to work with all players." +msgstr "" + +#: server/vm/ActionExec.cpp:428 +msgid "Stack underrun: " +msgstr "" + +#: server/vm/ActionExec.cpp:428 +msgid " elements required, " +msgstr "" + +#: server/vm/ActionExec.cpp:429 +msgid " available. Fixing by inserting " +msgstr "" + +#: server/vm/ActionExec.cpp:430 +msgid " undefined values on the missing slots." +msgstr "" + +#: server/vm/ASHandlers.cpp:101 +#, c-format +msgid "Unsupported action handler invoked, code at pc is %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:182 +msgid "" +"FIXME: VM not initialized at SWFHandlers construction time, can't set action " +"handlers based on SWF version" +msgstr "" + +#: server/vm/ASHandlers.cpp:466 +#, c-format +msgid "%s: CHECKME: was broken" +msgstr "" + +#: server/vm/ASHandlers.cpp:609 +#, c-format +msgid "GetUrl: target=%s url=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:630 +#, c-format +msgid "ActionWaitForFrame (0x%X) tag length == " +msgstr "" + +#: server/vm/ASHandlers.cpp:631 +msgid " (expected 3)" +msgstr "" + +#: server/vm/ASHandlers.cpp:645 server/vm/ASHandlers.cpp:696 +#: server/vm/ASHandlers.cpp:1487 +#, c-format +msgid "%s: environment target is not a sprite_instance" +msgstr "" + +#: server/vm/ASHandlers.cpp:861 +msgid "Undefined or null string passed to ActionSubString, returning undefined" +msgstr "" + +#: server/vm/ASHandlers.cpp:876 +msgid "Negative size passed to ActionSubString, taking as whole length" +msgstr "" + +#: server/vm/ASHandlers.cpp:887 +msgid "Base is less then 1 in ActionSubString, setting to 1." +msgstr "" + +#: server/vm/ASHandlers.cpp:896 +msgid "" +"base goes beyond input string in ActionSubString, returning the empty string." +msgstr "" + +#: server/vm/ASHandlers.cpp:910 +msgid "base+size goes beyond input string in ActionSubString, adjusting size" +msgstr "" + +#: server/vm/ASHandlers.cpp:978 +#, c-format +msgid "-- get var: %s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:982 +#, c-format +msgid "-- get var: %s=%s at %p" +msgstr "" + +#: server/vm/ASHandlers.cpp:1007 +#, c-format +msgid "-- set var: %s = %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1069 +msgid "" +"ActionGetProperty() called, but current target is not a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1092 +#, c-format +msgid "invalid property query, property number %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:1101 +#, c-format +msgid "Could not find GetProperty target (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1133 +#, c-format +msgid "invalid set_property, property number %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:1157 +#, c-format +msgid "Path given to duplicateMovieClip(%s) doesn't point to a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1168 +#, c-format +msgid "Path given to duplicateMovieClip(%s) is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1193 +#, c-format +msgid "Path given to removeMovieClip(%s) doesn't point to a character" +msgstr "" + +#: server/vm/ASHandlers.cpp:1203 +#, c-format +msgid "Path given to removeMovieClip(%s) is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1242 +#, c-format +msgid "start_drag of invalid target '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:1266 +msgid "Y values in ActionStartDrag swapped, fixing" +msgstr "" + +#: server/vm/ASHandlers.cpp:1274 +msgid "X values in ActionStartDrag swapped, fixing" +msgstr "" + +#: server/vm/ASHandlers.cpp:1340 +#, c-format +msgid "-- %s cast_to %s (invalid args?)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1360 +msgid "ActionCastOp TESTING" +msgstr "" + +#: server/vm/ASHandlers.cpp:1496 +#, c-format +msgid "" +"Frame spec found on stack at ActionWaitForFrame doesn't evaluate to a valid " +"frame: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1561 +#, c-format +msgid "[push length=%d]" +msgstr "" + +#: server/vm/ASHandlers.cpp:1580 +#, c-format +msgid "" +"Unknown push type %d. Execution will continue but it is likely to fail due " +"to lost sync." +msgstr "" + +#: server/vm/ASHandlers.cpp:1630 +#, c-format +msgid "register %d out of bounds" +msgstr "" + +#: server/vm/ASHandlers.cpp:1676 server/vm/ASHandlers.cpp:1695 +#, c-format +msgid "dict_lookup %d is out of bounds" +msgstr "" + +#: server/vm/ASHandlers.cpp:1707 server/vm/ASHandlers.cpp:1711 +msgid "\t" +msgstr "" + +#: server/vm/ASHandlers.cpp:1707 +#, c-format +msgid ") type=%s (%d), value=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1711 +#, c-format +msgid ") type=%s, value=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1762 +msgid "Bogus empty GetUrl url in SWF file, skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:1777 +msgid "" +"Bogus GetUrl2 send vars method in SWF file (both GET and POST requested), " +"set to 0" +msgstr "" + +#: server/vm/ASHandlers.cpp:1830 +#, c-format +msgid "get url: target=%s, url=%s (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:1838 +#, c-format +msgid "get url: target %s not found" +msgstr "" + +#: server/vm/ASHandlers.cpp:1846 +#, c-format +msgid "get url: target %s is not a sprite" +msgstr "" + +#: server/vm/ASHandlers.cpp:1853 +msgid "getURL2 loadVariable" +msgstr "" + +#: server/vm/ASHandlers.cpp:1860 +msgid "getURL2 target load" +msgstr "" + +#: server/vm/ASHandlers.cpp:1871 +#, c-format +msgid "" +"Unhandled GetUrl2 sendVariableMethod (%d) with loadTargetFlag and ! " +"loadVariablesFlag" +msgstr "" + +#: server/vm/ASHandlers.cpp:1884 +#, c-format +msgid "Unhandled GetUrl2 sendVariableMethod (%d) with no loadTargetFlag" +msgstr "" + +#: server/vm/ASHandlers.cpp:1898 +#, c-format +msgid "Launching URL... %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:1923 +#, c-format +msgid "" +"Couldn't find movie \"%s\" to set target to! Not setting target at all..." +msgstr "" + +#: server/vm/ASHandlers.cpp:1951 +msgid "Undefined GetUrl2 url on stack, skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:1988 +msgid "branch to offset " +msgstr "" + +#: server/vm/ASHandlers.cpp:1988 +msgid " -- this section only runs to " +msgstr "" + +#: server/vm/ASHandlers.cpp:2028 +#, c-format +msgid "" +"Couldn't find target_sprite \"%s\" in ActionCallFrame! target frame actions " +"will not be called..." +msgstr "" + +#: server/vm/ASHandlers.cpp:2090 +#, c-format +msgid "" +"Frame spec found on stack at ActionGotoExpression doesn't evaluate to a " +"valid frame: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2104 +#, c-format +msgid "" +"Couldn't find target sprite \"%s\" in ActionGotoExpression. Will not go to " +"target frame..." +msgstr "" + +#: server/vm/ASHandlers.cpp:2125 +msgid "No elements on the stack at ActionDelete (0x3A). Returning FALSE." +msgstr "" + +#: server/vm/ASHandlers.cpp:2164 +#, c-format +msgid "-- set local var: %s = %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2196 +#, c-format +msgid "ActionCallFunction: %s is not an object" +msgstr "" + +#: server/vm/ASHandlers.cpp:2205 +msgid "Object doensn't have a constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2216 +#, c-format +msgid "" +"Attempt to call a function with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2307 +#, c-format +msgid "---new object: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2320 +#, c-format +msgid "ActionNew: '%s' is not a constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2360 +msgid "The 'var whatever' syntax in timeline context is a no-op." +msgstr "" + +#: server/vm/ASHandlers.cpp:2476 +#, c-format +msgid "Argument to TargetPath(%s) doesn't cast to a MovieClip" +msgstr "" + +#: server/vm/ASHandlers.cpp:2514 +#, c-format +msgid "Top of stack not an object (%s) at ActionEnumerate execution" +msgstr "" + +#: server/vm/ASHandlers.cpp:2672 +#, c-format +msgid " ActionGetMember: target: %s (object %p)" +msgstr "" + +#: server/vm/ASHandlers.cpp:2688 +#, c-format +msgid "-- get_member %s.%s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2714 +#, c-format +msgid "-- set_member %s.%s=%s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2726 +#, c-format +msgid "-- set_member %s.%s=%s on invalid object!" +msgstr "" + +#: server/vm/ASHandlers.cpp:2781 +#, c-format +msgid "" +"Attempt to call a method with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2790 +#, c-format +msgid " method name: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2791 +#, c-format +msgid " method object/func: %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2792 +#, c-format +msgid " method nargs: %d" +msgstr "" + +#: server/vm/ASHandlers.cpp:2807 +msgid "" +"ActionCallMethod invoked with undefined method_name and non-object object/" +"func" +msgstr "" + +#: server/vm/ASHandlers.cpp:2816 +msgid "" +"Function object given to ActionCallMethod is not a function, will try to use " +"its 'constructor' member" +msgstr "" + +#: server/vm/ASHandlers.cpp:2826 +msgid "ActionCallMethod: object has no constructor" +msgstr "" + +#: server/vm/ASHandlers.cpp:2835 +msgid "ActionCallMethod: object constructor is not a function" +msgstr "" + +#: server/vm/ASHandlers.cpp:2851 +#, c-format +msgid "ActionCallMethod: Tried to invoke method '%s' on non-object value %s." +msgstr "" + +#: server/vm/ASHandlers.cpp:2864 +#, c-format +msgid "ActionCallMethod: Can't find method %s of object %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2887 +msgid "FIXME: debugger doesn't deal with anonymous function calls" +msgstr "" + +#: server/vm/ASHandlers.cpp:2924 +#, c-format +msgid "" +"Attempt to call a constructor with %u arguments while only %u are available " +"on the stack." +msgstr "" + +#: server/vm/ASHandlers.cpp:2936 +msgid "On ActionNewMethod: no object found on stack on ActionMethod" +msgstr "" + +#: server/vm/ASHandlers.cpp:2954 +#, c-format +msgid "ActionNewMethod: can't find method %s of object %s" +msgstr "" + +#: server/vm/ASHandlers.cpp:2968 +msgid "ActionNewMethod: method name is undefined, and object is not a function" +msgstr "" + +#: server/vm/ASHandlers.cpp:3007 +#, c-format +msgid "-- %s instanceof %s (invalid args?)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3041 +#, c-format +msgid "Top of stack not an object %s at ActionEnum2 execution" +msgstr "" + +#: server/vm/ASHandlers.cpp:3218 +#, c-format +msgid "ActionExtends: Super is not an as_function (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3223 +#, c-format +msgid "ActionExtends: Sub is not an as_function (%s)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3312 +#, c-format +msgid "" +"function2 code len (%u) overflows DOACTION tag boundaries (DOACTION tag len=" +msgstr "" + +#: server/vm/ASHandlers.cpp:3315 +msgid ", function2 code offset=" +msgstr "" + +#: server/vm/ASHandlers.cpp:3315 +msgid "). Forcing code len to eat the whole buffer (would this work?)." +msgstr "" + +#: server/vm/ASHandlers.cpp:3379 +msgid "-------------- with block start: stack size is " +msgstr "" + +#: server/vm/ASHandlers.cpp:3389 +msgid "ActionWith tag length != 2; skipping" +msgstr "" + +#: server/vm/ASHandlers.cpp:3399 +msgid "Empty with() block..." +msgstr "" + +#: server/vm/ASHandlers.cpp:3415 +msgid "With-block skipped (with stack size exceeds limit of " +msgstr "" + +#: server/vm/ASHandlers.cpp:3417 +msgid " elements)" +msgstr "" + +#: server/vm/ASHandlers.cpp:3533 +#, c-format +msgid "-------------- local register[%d] = '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:3542 +#, c-format +msgid "-------------- global register[%d] = '%s'" +msgstr "" + +#: server/vm/ASHandlers.cpp:3550 +#, c-format +msgid "store_register[%d] -- register out of bounds!" +msgstr "" + +#: server/vm/ASHandlers.cpp:3561 +#, c-format +msgid "at SWFHandlers::action_name(%d) call time, _handlers size is " +msgstr "" + +#: utilities/dumpshm.cpp:206 +msgid "" +"Sorry, we can only list the files on systems with disk based shared memory" +msgstr "" + +#: utilities/dumpshm.cpp:215 +msgid "No name specified, nuking everything..." +msgstr "" + +#: utilities/dumpshm.cpp:222 +msgid "Removing segment: " +msgstr "" + +#: utilities/dumpshm.cpp:230 +msgid "Nuking the shared memory segment " +msgstr "" + +#: utilities/dumpshm.cpp:256 +msgid "ERROR: couldn't read!" +msgstr "" + +#: utilities/dumpshm.cpp:287 +msgid "This program dumps the internal data of a shared memory segment" +msgstr "" + +#: utilities/dumpshm.cpp:289 +msgid "Usage: dumpmem [hdsanlif] filename" +msgstr "" + +#: utilities/dumpshm.cpp:290 +msgid "-h\tHelp" +msgstr "" + +#: utilities/dumpshm.cpp:291 +msgid "-d\tDump data" +msgstr "" + +#: utilities/dumpshm.cpp:292 +msgid "-n [optional name]\tNuke everything" +msgstr "" + +#: utilities/dumpshm.cpp:293 +msgid "-l\tLength of segment" +msgstr "" + +#: utilities/dumpshm.cpp:294 +msgid "-i\tList segments" +msgstr "" + +#: utilities/dumpshm.cpp:295 +msgid "-f\tForce to use builtin names for nuke" +msgstr "" + +#: utilities/dumpshm.cpp:307 +msgid "\tBase address of this segment: " +msgstr "" + +#: utilities/dumpshm.cpp:309 +msgid "\tFilespec: " +msgstr "" + +#: utilities/dumpshm.cpp:310 +msgid "\t# Bytes allocated: " +msgstr "" + +#: utilities/dumpshm.cpp:311 +msgid "\tTotal # of bytes: " +msgstr "" + +#: utilities/parser.cpp:138 +#, c-format +msgid "has_scale = %d, has_rotate = %d\n" +msgstr "" + +#: utilities/parser.cpp:163 +#, c-format +msgid "x_min: %i, x_max: %i,\twidth: %i twips, %4.0f pixels\n" +msgstr "" + +#: utilities/parser.cpp:164 +#, c-format +msgid "y_min: %i, y_max: %i, height: %i twips, %4.0f pixels\n" +msgstr "" + +#: utilities/parser.cpp:185 +#, c-format +msgid "rgb: %d %d %d \n" +msgstr "" + +#: utilities/parser.cpp:206 +#, c-format +msgid "rgba: %d %d %d %d\n" +msgstr "" + +#: utilities/parser.cpp:279 +msgid "cxform:\n" +msgstr "" + +#: utilities/parser.cpp:280 +#, c-format +msgid "has_add = %d, has_mult = %d\n" +msgstr "" + +#: utilities/parser.cpp:298 +msgid "" +"Movie ended\n" +"\n" +msgstr "" From MAILER-DAEMON Thu Jun 14 05:16:45 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HylRd-0005ST-6W for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 05:16:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HylRZ-0005RD-FG for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:16:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HylRY-0005QN-03 for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:16:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HylRW-0005Q5-3I for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:16:38 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HylRV-0005WP-TO for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:16:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HylRU-00057a-SZ for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:16:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HylRU-00057X-KM for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:16:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 09:16:36 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-mtasc.all/Makefi... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 09:16:43 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 09:16:36 Modified files: . : ChangeLog testsuite/misc-mtasc.all: Makefile.am Log message: * testsuite/misc-mtasc.all/Makefile.am: skip all tests if prebuilt clip are not supported by the detected ming version. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3538&r2=1.3539 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/Makefile.am?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3538 retrieving revision 1.3539 diff -u -b -r1.3538 -r1.3539 --- ChangeLog 14 Jun 2007 08:35:41 -0000 1.3538 +++ ChangeLog 14 Jun 2007 09:16:35 -0000 1.3539 @@ -1,5 +1,7 @@ 2007-06-14 Sandro Santilli + * testsuite/misc-mtasc.all/Makefile.am: skip all tests if + prebuilt clip are not supported by the detected ming version. * po/: Makefile.am, it.po: initial work on an italian translation (funny for a few minutes, but too boring after a while ;) Index: testsuite/misc-mtasc.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- testsuite/misc-mtasc.all/Makefile.am 27 Apr 2007 17:36:09 -0000 1.8 +++ testsuite/misc-mtasc.all/Makefile.am 14 Jun 2007 09:16:36 -0000 1.9 @@ -20,8 +20,9 @@ if ENABLE_MTASC -# NOTE: 0.4.0.beta3 is required for prebuilt-clip to work !! +# NOTE: 0.4.0.beta3 is required for prebuilt-clip to work (PREBUILT_CLIPS) !! if ENABLE_MING +if MAKESWF_SUPPORTS_PREBUILT_CLIPS DEJAGNU_SO_PATH = ../Dejagnu.swf DEJAGNU_SO_FINI = $(srcdir)/../actionscript.all/dejagnu_so_fini.as @@ -81,3 +82,4 @@ endif endif +endif From MAILER-DAEMON Thu Jun 14 05:43:23 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HylrP-0008SY-86 for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 05:43:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HylrN-0008SR-DA for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:43:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HylrL-0008SF-Qc for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:43:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HylrL-0008SC-JO for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:43:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HylrL-0000lZ-8y for gnash-commit@gnu.org; Thu, 14 Jun 2007 05:43:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HylrK-0008NI-Fl for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:43:18 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HylrK-0008NF-87 for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:43:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 09:43:18 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog configure.ac X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 09:43:22 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 09:43:18 Modified files: . : ChangeLog configure.ac Log message: * configure.ac: FREETYPE_{CFLAGS,LIBS} => FREETYPE2_{CFLAGS,LIBS) in final reports/checks. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3539&r2=1.3540 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.342&r2=1.343 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3539 retrieving revision 1.3540 diff -u -b -r1.3539 -r1.3540 --- ChangeLog 14 Jun 2007 09:16:35 -0000 1.3539 +++ ChangeLog 14 Jun 2007 09:43:17 -0000 1.3540 @@ -1,5 +1,7 @@ 2007-06-14 Sandro Santilli + * configure.ac: FREETYPE_{CFLAGS,LIBS} => FREETYPE2_{CFLAGS,LIBS) + in final reports/checks. * testsuite/misc-mtasc.all/Makefile.am: skip all tests if prebuilt clip are not supported by the detected ming version. * po/: Makefile.am, it.po: initial work on an italian Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.342 retrieving revision 1.343 diff -u -b -r1.342 -r1.343 --- configure.ac 14 Jun 2007 07:17:11 -0000 1.342 +++ configure.ac 14 Jun 2007 09:43:17 -0000 1.343 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.342 2007/06/14 07:17:11 strk Exp $ +dnl $Id: configure.ac,v 1.343 2007/06/14 09:43:17 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -1770,13 +1770,13 @@ echo " It may still be possible to configure without zlib." fi -if test x"$FREETYPE_LIBS" != x; then - if test x"$FREETYPE_CFLAGS" != x; then - echo " FreeType flags are: $FREETYPE_CFLAGS" +if test x"$FREETYPE2_LIBS" != x; then + if test x"$FREETYPE2_CFLAGS" != x; then + echo " FreeType flags are: $FREETYPE2_CFLAGS" else echo " FreeType flags are: default include path" fi - echo " FreeType libs are: $FREETYPE_LIBS" + echo " FreeType libs are: $FREETYPE2_LIBS" else echo " WARNING: You need to have the freetype development packages installed" echo " to use device fonts." From MAILER-DAEMON Thu Jun 14 06:57:12 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hyn0q-0003Ce-4z for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 06:57:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hyn0o-0003CF-Kw for gnash-commit@gnu.org; Thu, 14 Jun 2007 06:57:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hyn0m-0003Bz-Ou for gnash-commit@gnu.org; Thu, 14 Jun 2007 06:57:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyn0m-0003Bw-Ll for gnash-commit@gnu.org; Thu, 14 Jun 2007 06:57:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hyn0m-0003Wa-AX for gnash-commit@gnu.org; Thu, 14 Jun 2007 06:57:08 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hyn0l-0006kt-Qi for gnash-commit@gnu.org; Thu, 14 Jun 2007 10:57:07 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hyn0l-0006kq-LY for gnash-commit@gnu.org; Thu, 14 Jun 2007 10:57:07 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 10:57:07 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/ref_counted.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 10:57:10 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 10:57:07 Modified files: . : ChangeLog libbase : ref_counted.h Log message: * libbase/ref_counted.h: made destructor protected, to ensure no user is explicitly deleting a ref_counted object (propedeutic to GC) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3540&r2=1.3541 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/ref_counted.h?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3540 retrieving revision 1.3541 diff -u -b -r1.3540 -r1.3541 --- ChangeLog 14 Jun 2007 09:43:17 -0000 1.3540 +++ ChangeLog 14 Jun 2007 10:57:06 -0000 1.3541 @@ -1,5 +1,8 @@ 2007-06-14 Sandro Santilli + * libbase/ref_counted.h: made destructor protected, to ensure no + user is explicitly deleting a ref_counted object (propedeutic + to GC) * configure.ac: FREETYPE_{CFLAGS,LIBS} => FREETYPE2_{CFLAGS,LIBS) in final reports/checks. * testsuite/misc-mtasc.all/Makefile.am: skip all tests if Index: libbase/ref_counted.h =================================================================== RCS file: /sources/gnash/gnash/libbase/ref_counted.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- libbase/ref_counted.h 28 May 2007 15:41:02 -0000 1.5 +++ libbase/ref_counted.h 14 Jun 2007 10:57:07 -0000 1.6 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: ref_counted.h,v 1.5 2007/05/28 15:41:02 ann Exp $ */ +/* $Id: ref_counted.h,v 1.6 2007/06/14 10:57:07 strk Exp $ */ #ifndef GNASH_REF_COUNTED_H #define GNASH_REF_COUNTED_H @@ -41,6 +41,16 @@ { private: mutable int m_ref_count; + +protected: + + // A ref-counted object only deletes self, + // must never be explicitly deleted ! + virtual ~ref_counted() + { + assert(m_ref_count == 0); + } + public: ref_counted() : @@ -48,17 +58,14 @@ { } - virtual ~ref_counted() - { - assert(m_ref_count == 0); - } - void add_ref() const { assert(m_ref_count >= 0); m_ref_count++; } - void drop_ref() const { + + void drop_ref() const + { assert(m_ref_count > 0); m_ref_count--; if (m_ref_count <= 0){ From MAILER-DAEMON Thu Jun 14 09:58:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HypqL-0004of-Jl for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 09:58:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HypqJ-0004lN-RQ for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:58:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HypqJ-0004km-1S for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:58:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HypqI-0004kj-Vm for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:58:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HypqI-0003sN-KV for gnash-commit@gnu.org; Thu, 14 Jun 2007 09:58:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HypqH-0008PM-H4 for gnash-commit@gnu.org; Thu, 14 Jun 2007 13:58:29 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HypqH-0008PJ-Aj for gnash-commit@gnu.org; Thu, 14 Jun 2007 13:58:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 13:58:29 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 13:58:32 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 13:58:29 Modified files: . : ChangeLog testsuite/actionscript.all: Function.as Log message: * testsuite/actionscript.all/Function.as: test local vars scope of outer function to be kept alive by inner functions. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3541&r2=1.3542 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.49&r2=1.50 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3541 retrieving revision 1.3542 diff -u -b -r1.3541 -r1.3542 --- ChangeLog 14 Jun 2007 10:57:06 -0000 1.3541 +++ ChangeLog 14 Jun 2007 13:58:28 -0000 1.3542 @@ -1,5 +1,7 @@ 2007-06-14 Sandro Santilli + * testsuite/actionscript.all/Function.as: test local vars scope of + outer function to be kept alive by inner functions. * libbase/ref_counted.h: made destructor protected, to ensure no user is explicitly deleting a ref_counted object (propedeutic to GC) Index: testsuite/actionscript.all/Function.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v retrieving revision 1.49 retrieving revision 1.50 diff -u -b -r1.49 -r1.50 --- testsuite/actionscript.all/Function.as 28 Apr 2007 07:22:43 -0000 1.49 +++ testsuite/actionscript.all/Function.as 14 Jun 2007 13:58:29 -0000 1.50 @@ -20,7 +20,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: Function.as,v 1.49 2007/04/28 07:22:43 strk Exp $"; +rcsid="$Id: Function.as,v 1.50 2007/06/14 13:58:29 strk Exp $"; #include "check.as" @@ -678,3 +678,21 @@ o.valueOf = function() { return _root; }; check_equals(_root, o); check_equals(o, _root); + +//----------------------------------------------------------------------------- +// Test local vars scope of outer function to be kept alive by inner functions +//----------------------------------------------------------------------------- + +foo = function () { + var x = 42; + return function () { return x; }; +}; + +f = foo(); +delete foo; +#if OUTPUT_VERSION > 5 +check_equals(f(), 42); +#else +check_equals(typeof(f()), 'undefined'); +#endif + From MAILER-DAEMON Thu Jun 14 11:55:26 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyrfR-0005cy-Ul for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 11:55:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyrfP-0005YY-44 for gnash-commit@gnu.org; Thu, 14 Jun 2007 11:55:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyrfO-0005XR-B6 for gnash-commit@gnu.org; Thu, 14 Jun 2007 11:55:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyrfO-0005XG-0U for gnash-commit@gnu.org; Thu, 14 Jun 2007 11:55:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyrfN-00060h-Nw for gnash-commit@gnu.org; Thu, 14 Jun 2007 11:55:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HyrfM-0002Qz-MJ for gnash-commit@gnu.org; Thu, 14 Jun 2007 15:55:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HyrfM-0002Qw-Fq for gnash-commit@gnu.org; Thu, 14 Jun 2007 15:55:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 15:55:20 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg_bitm... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 15:55:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 15:55:20 Modified files: . : ChangeLog backend : render_handler_agg_bitmap.h render_handler_agg_style.h libgeometry : snappingrange.h cygnal : http.h Log message: * backend/render_handler_agg_bitmap.h, backend/render_handler_agg_style.h, libgeometry/snappingrange.h, cygnal/http.h: don't use 'using namespace' directive in headers ! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3542&r2=1.3543 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg_bitmap.h?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg_style.h?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/libgeometry/snappingrange.h?cvsroot=gnash&r1=1.22&r2=1.23 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/http.h?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3542 retrieving revision 1.3543 diff -u -b -r1.3542 -r1.3543 --- ChangeLog 14 Jun 2007 13:58:28 -0000 1.3542 +++ ChangeLog 14 Jun 2007 15:55:19 -0000 1.3543 @@ -1,5 +1,13 @@ 2007-06-14 Sandro Santilli + * backend/render_handler_agg_bitmap.h, + backend/render_handler_agg_style.h, + libgeometry/snappingrange.h, + cygnal/http.h: don't use 'using namespace' + directive in headers ! + +2007-06-14 Sandro Santilli + * testsuite/actionscript.all/Function.as: test local vars scope of outer function to be kept alive by inner functions. * libbase/ref_counted.h: made destructor protected, to ensure no Index: backend/render_handler_agg_bitmap.h =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_agg_bitmap.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- backend/render_handler_agg_bitmap.h 28 May 2007 15:40:57 -0000 1.4 +++ backend/render_handler_agg_bitmap.h 14 Jun 2007 15:55:19 -0000 1.5 @@ -24,8 +24,6 @@ // This include file used only to make render_handler_agg more readable. -using namespace gnash; - namespace gnash { /// Bitmap class used internally by the AGG renderer. There's no reason to Index: backend/render_handler_agg_style.h =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_agg_style.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- backend/render_handler_agg_style.h 28 May 2007 15:40:57 -0000 1.17 +++ backend/render_handler_agg_style.h 14 Jun 2007 15:55:19 -0000 1.18 @@ -34,8 +34,6 @@ //#define DEBUG_LIMIT_COLOR_ALPHA -using namespace gnash; - namespace gnash { /// Internal style class that represents a fill style. Roughly speaking, AGG Index: libgeometry/snappingrange.h =================================================================== RCS file: /sources/gnash/gnash/libgeometry/snappingrange.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- libgeometry/snappingrange.h 7 Jun 2007 12:24:34 -0000 1.22 +++ libgeometry/snappingrange.h 14 Jun 2007 15:55:19 -0000 1.23 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: snappingrange.h,v 1.22 2007/06/07 12:24:34 strk Exp $ +// $Id: snappingrange.h,v 1.23 2007/06/14 15:55:19 strk Exp $ #ifndef GNASH_SNAPPINGRANGE_H #define GNASH_SNAPPINGRANGE_H @@ -29,8 +29,6 @@ #include #include "Range2d.h" -using namespace gnash; - namespace gnash { namespace geometry { Index: cygnal/http.h =================================================================== RCS file: /sources/gnash/gnash/cygnal/http.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- cygnal/http.h 28 May 2007 15:40:58 -0000 1.4 +++ cygnal/http.h 14 Jun 2007 15:55:20 -0000 1.5 @@ -29,8 +29,8 @@ #include #include "network.h" +// FIXME: don't use 'using namespace' in headers ! using namespace std; -using namespace gnash; namespace cygnal { From MAILER-DAEMON Thu Jun 14 12:08:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hyrrx-0003i8-4t for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 12:08:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hyrrv-0003hb-Uo for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:08:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hyrrv-0003h8-5k for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:08:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyrru-0003h3-Vz for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:08:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hyrru-0008IS-PP for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:08:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hyrrt-0003Me-Bu for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:08:17 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hyrrt-0003MS-3s for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:08:17 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 16:08:17 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/gnash.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 16:08:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 16:08:16 Modified files: . : ChangeLog gui : gnash.cpp Log message: * gui/gnash.cpp: add using namespace gnash here, since we're out of the gnash namespace. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3543&r2=1.3544 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gnash.cpp?cvsroot=gnash&r1=1.71&r2=1.72 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3543 retrieving revision 1.3544 diff -u -b -r1.3543 -r1.3544 --- ChangeLog 14 Jun 2007 15:55:19 -0000 1.3543 +++ ChangeLog 14 Jun 2007 16:08:15 -0000 1.3544 @@ -1,5 +1,7 @@ 2007-06-14 Sandro Santilli + * gui/gnash.cpp: add using namespace gnash here, since we're + out of the gnash namespace. * backend/render_handler_agg_bitmap.h, backend/render_handler_agg_style.h, libgeometry/snappingrange.h, Index: gui/gnash.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gnash.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -b -r1.71 -r1.72 --- gui/gnash.cpp 26 May 2007 16:23:20 -0000 1.71 +++ gui/gnash.cpp 14 Jun 2007 16:08:16 -0000 1.72 @@ -49,7 +49,7 @@ #include #endif -//using namespace gnash; // for dbglogfile +using namespace gnash; // for log_* using namespace std; From MAILER-DAEMON Thu Jun 14 12:34:06 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HysGs-0001Zk-9I for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 12:34:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HysGr-0001Zd-7x for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:34:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HysGq-0001ZO-OM for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:34:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HysGq-0001ZL-JP for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:34:04 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HysGq-0004wu-A3 for gnash-commit@gnu.org; Thu, 14 Jun 2007 12:34:04 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HysGo-0005ty-LH for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:34:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HysGo-0005tt-HE for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:34:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 16:34:02 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog cygnal/http.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 16:34:05 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 16:34:02 Modified files: . : ChangeLog cygnal : http.h Log message: * gui/gnash.cpp: add using namespace gnash here, since we're out of the gnash namespace. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3544&r2=1.3545 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/http.h?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3544 retrieving revision 1.3545 diff -u -b -r1.3544 -r1.3545 --- ChangeLog 14 Jun 2007 16:08:15 -0000 1.3544 +++ ChangeLog 14 Jun 2007 16:34:01 -0000 1.3545 @@ -1,5 +1,10 @@ 2007-06-14 Sandro Santilli + * cyngal/http.h: fix gnash::Network referencing, drop + 'using namespace std' + +2007-06-14 Sandro Santilli + * gui/gnash.cpp: add using namespace gnash here, since we're out of the gnash namespace. * backend/render_handler_agg_bitmap.h, Index: cygnal/http.h =================================================================== RCS file: /sources/gnash/gnash/cygnal/http.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- cygnal/http.h 14 Jun 2007 15:55:20 -0000 1.5 +++ cygnal/http.h 14 Jun 2007 16:34:02 -0000 1.6 @@ -23,19 +23,17 @@ #include "config.h" #endif +#include "network.h" + #include //include all types plus i/o #include #include -#include "network.h" - -// FIXME: don't use 'using namespace' in headers ! -using namespace std; namespace cygnal { -class HTTP : public Network +class HTTP : public gnash::Network { public: typedef enum { From MAILER-DAEMON Thu Jun 14 16:28:59 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyvwB-0006cB-1i for mharc-gnash-commit@gnu.org; Thu, 14 Jun 2007 16:28:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hyvw9-0006bN-Ev for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:28:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hyvw7-0006b4-T1 for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:28:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hyvw7-0006b0-LB for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:28:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hyvw7-0004gt-AB for gnash-commit@gnu.org; Thu, 14 Jun 2007 16:28:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hyvw5-0002KF-Rd for gnash-commit@gnu.org; Thu, 14 Jun 2007 20:28:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hyvw4-0002K7-LE for gnash-commit@gnu.org; Thu, 14 Jun 2007 20:28:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 14 Jun 2007 20:28:52 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/Makefile.am libbase/GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 20:28:57 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/14 20:28:52 Modified files: . : ChangeLog libbase : Makefile.am Added files: libbase : GC.h Log message: * libbase/: Makefile.am, GC.h: First draft at a garbage collector class. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3545&r2=1.3546 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Makefile.am?cvsroot=gnash&r1=1.72&r2=1.73 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3545 retrieving revision 1.3546 diff -u -b -r1.3545 -r1.3546 --- ChangeLog 14 Jun 2007 16:34:01 -0000 1.3545 +++ ChangeLog 14 Jun 2007 20:28:50 -0000 1.3546 @@ -1,6 +1,7 @@ 2007-06-14 Sandro Santilli - * cyngal/http.h: fix gnash::Network referencing, drop + * libbase/: Makefile.am, GC.h: First draft at a garbage collector class. + * cygnal/http.h: fix gnash::Network referencing, drop 'using namespace std' 2007-06-14 Sandro Santilli Index: libbase/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/libbase/Makefile.am,v retrieving revision 1.72 retrieving revision 1.73 diff -u -b -r1.72 -r1.73 --- libbase/Makefile.am 21 May 2007 15:46:48 -0000 1.72 +++ libbase/Makefile.am 14 Jun 2007 20:28:51 -0000 1.73 @@ -146,7 +146,9 @@ zlib_adapter.h \ URL.h \ LoadThread.h \ - FLVParser.h + FLVParser.h \ + GC.h \ + $(NULL) Index: libbase/GC.h =================================================================== RCS file: libbase/GC.h diff -N libbase/GC.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ libbase/GC.h 14 Jun 2007 20:28:51 -0000 1.1 @@ -0,0 +1,333 @@ +// GC.h: Garbage Collector, for Gnash +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +#ifndef GNASH_GC_H +#define GNASH_GC_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +// Define the following macro to enable GC verbosity +#define GNASH_GC_DEBUG 1 + +#ifdef GNASH_GC_DEBUG +# include "log.h" +# include +#endif + +namespace gnash { + +class GC; + +/// Abstract class to allow the GC to store "roots" into a container +// +/// Any class expected to act as a "root" for the garbage collection +/// should derive from this class, and implement the markReachableResources() +/// method. +/// +/// +class GcRoot +{ + +public: + + /// Scan all GC resources reachable by this instance. + // + /// This function is invoked on roots registered to + /// the collector. + /// + /// Use setReachable() on the resources stored in this + /// container. + /// + virtual void markReachableResources() const=0; + + virtual ~GcRoot() {} +}; + +/// Collectable resource +// +/// Instances of this class can be managed by a GC object. +/// +class GcResource +{ + +public: + + friend class GC; + + /// Create a Garbage-collected resource. + // + /// The resource will be automatically registered with + /// the garbage collector singleton. + /// + GcResource(); + + /// \brief + /// Mark this resource as being reachable, possibly triggering + /// further marking of all resources reachable by this object. + // + /// If the object wasn't reachable before, this call triggers + /// scan of all contained objects too... + /// + void setReachable() const + { + + if ( _reachable ) + { +#ifdef GNASH_GC_DEBUG + log_debug("Instance %p of class %s already reachable, setReachable doing nothing", + (void*)this, typeid(*this).name()); +#endif + return; + } + +#ifdef GNASH_GC_DEBUG + log_debug("Instance %p of class %s set to reachable, scanning reachable resources from it", + (void*)this, typeid(*this).name()); +#endif + + _reachable = true; + markReachableResources(); + } + + /// Return true if this object is marked as reachable + bool isReachable() const { return _reachable; } + + /// Clear the reachable flag + void clearReachable() const { _reachable = false; } + +protected: + + /// Scan all GC resources reachable by this instance. + // + /// This function is invoked everytime this object + /// switches from unreachable to reachable, and is + /// used to recursively mark all contained resources + /// as reachable. + /// + /// See setReachable(), which is the function to invoke + /// against all reachable methods. + /// + /// Feel free to assert(_reachable) in your implementation. + /// + /// The default implementation doesn't mark anything. + /// + virtual void markReachableResources() const + { + assert(_reachable); +#ifdef GNASH_GC_DEBUG + log_debug("Class %s didn't override the markReachableResources() method", typeid(*this).name()); +#endif + } + + /// Delete this resource. + // + /// This is protected to allow subclassing, but ideally it + /// sould be private, so only the GC is allowed to delete us. + /// + virtual ~GcResource() + { + } + +private: + + mutable bool _reachable; + +}; + +/// Garbage collector singleton +// +/// Instances of this class ( you' only use one, the singleton ) +/// manage a list of heap pointers (collectables) deleting them +/// when no more needed/reachable. +/// +/// Reachability of them is detected starting from a list +/// of "root" containers each one expected to provide a +/// function to return all reachable object. +/// +/// Each "collectable" objects is also expected to be a container +/// itself. +/// +/// +class GC +{ + +public: + + friend class GcResource; + + /// Get the singleton instance of the Garbage Collector + static GC& getInstance() + { + static GC singleton; + return singleton; + } + + /// Add a root resource to use for mark scanning + // + /// @param root + /// A GcResource to use as a root item to scan + /// during the mark phase. + /// + void addRoot(GcRoot* root) + { + assert(root); + _roots.push_back(root); +#ifdef GNASH_GC_DEBUG + log_debug("GC %p: root %p added, num roots: " SIZET_FMT, (void*)this, (void*)root, _roots.size()); +#endif + } + + + /// Run the collector + // + /// Find all reachable collectables, destroy all the others. + /// + void collect() + { +#ifdef GNASH_GC_DEBUG + log_debug("Starting collector: " SIZET_FMT " roots, " SIZET_FMT " collectables", _roots.size(), _resList.size()); +#endif // GNASH_GC_DEBUG + + // Mark all resources as reachable + markReachable(); + + // clean unreachable resources, and mark them others as reachable again + cleanUnreachable(); + + } + +private: + + /// List of collectables + typedef std::list ResList; + + /// List of roots + typedef std::list RootList; + + /// Create a garbage collector + GC() + { +#ifdef GNASH_GC_DEBUG + log_debug("GC %p created", (void*)this); +#endif + } + + /// Destroy the collector, releasing all collectables. + ~GC() + { +#ifdef GNASH_GC_DEBUG + log_debug("GC %p deleted, cleaning up all managed resources", (void*)this); +#endif + for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ++i) + { + delete *i; + } + } + + /// Add an heap object to the list of managed collectables + // + /// The given object is expected not to be already in the + /// list. Failing to do so would just decrease performances + /// but might not be a problem. Anyway, an assertion will fail + /// if adding an object twice. + /// + /// PRECONDITIONS: + /// - the object isn't already in this GC list. + /// - the object isn't marked as reachable. + /// - the object isn't managed by another GC (UNCHECKED) + /// + /// @param item + /// The item to be managed by this collector. + /// Can't be NULL. The caller gives up ownerhip + /// of it, which will only be deleted by this GC. + /// + void addCollectable(const GcResource* item) + { + assert(item); + assert(! item->isReachable()); + assert(std::find(_resList.begin(), _resList.end(), item) == _resList.end()); + + _resList.push_back(item); +#ifdef GNASH_GC_DEBUG + log_debug("GC %p: collectable %p added, num collectables: " SIZET_FMT, (void*)this, (void*)item, _resList.size()); +#endif + } + + /// Mark all reachable resources + void markReachable() + { + /// By marking the roots as reachable, a chain effect should be + /// engaged so that every reachable resource is marked + for (RootList::iterator i=_roots.begin(), e=_roots.end(); i!=e; ++i) + { + const GcRoot* root = *i; + root->markReachableResources(); + } + } + + /// Delete all unreachable objects, and mark the others unreachable again + void cleanUnreachable() + { +#ifdef GNASH_GC_DEBUG + size_t deleted = 0; +#endif + for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ) + { + const GcResource* res = *i; + if ( ! res->isReachable() ) + { +#ifdef GNASH_GC_DEBUG + ++deleted; +#endif + delete res; + i = _resList.erase(i); + } + else + { + res->clearReachable(); + ++i; + } + } +#ifdef GNASH_GC_DEBUG + log_debug("GC %p: cleanUnreachable deleted " SIZET_FMT + " resources marked as unreachable", + (void*)this, deleted); +#endif + } + + ResList _resList; + + RootList _roots; + +}; + + +inline GcResource::GcResource() + : + _reachable(false) +{ + GC::getInstance().addCollectable(this); +} + +} // namespace gnash + +#endif // GNASH_GC_H From MAILER-DAEMON Fri Jun 15 11:00:44 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzDI3-0004Tu-PW for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 11:00:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzDHz-0004SR-CV for gnash-commit@gnu.org; Fri, 15 Jun 2007 11:00:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzDHx-0004Rb-4Y for gnash-commit@gnu.org; Fri, 15 Jun 2007 11:00:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzDHw-0004RO-AG for gnash-commit@gnu.org; Fri, 15 Jun 2007 11:00:36 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzDHu-0002Kj-GQ for gnash-commit@gnu.org; Fri, 15 Jun 2007 11:00:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzDHs-000216-Rk for gnash-commit@gnu.org; Fri, 15 Jun 2007 15:00:32 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzDHs-000210-Lm for gnash-commit@gnu.org; Fri, 15 Jun 2007 15:00:32 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 15:00:32 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/Player.cpp libbase/GC.h lib... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 15:00:39 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 15:00:32 Modified files: . : ChangeLog gui : Player.cpp libbase : GC.h Makefile.am ref_counted.h smart_ptr.h plugin/klash : klash.cpp plugin/win32 : plugin.cpp server : GetterSetter.cpp GetterSetter.h Property.h PropertyList.cpp PropertyList.h as_environment.cpp as_environment.h as_function.cpp as_function.h as_object.cpp as_object.h as_value.cpp as_value.h character.cpp character.h debugger.cpp debugger.h dlist.cpp dlist.h edit_text_character.cpp edit_text_character.h font.cpp font.h fontlib.cpp gnash.h impl.cpp impl.h mouse_button_state.h movie_root.cpp movie_root.h sprite_instance.cpp sprite_instance.h swf_function.cpp swf_function.h server/asobj : Key.h Mouse.cpp Stage.cpp xmlnode.cpp server/parser : BitmapMovieDefinition.cpp BitmapMovieDefinition.h movie_def_impl.cpp movie_def_impl.h sprite_definition.cpp sprite_definition.h server/vm : ASHandlers.cpp VM.cpp VM.h utilities : processor.cpp Log message: ( A LOT OF FILES !) First big pass on Garbage Collection. We can now use a compile-time define (GNASH_USE_GC) to select wheter GC or RF (ref-counting) is used. By default RC is used as GC is still bogus. Next step would be improving the GC mark functions to ensure needed resources aren't prematurely deleted by the GC. See in GC.h the GcResource class documentation for informations about how to do taht. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3546&r2=1.3547 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.54&r2=1.55 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Makefile.am?cvsroot=gnash&r1=1.73&r2=1.74 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/ref_counted.h?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/smart_ptr.h?cvsroot=gnash&r1=1.19&r2=1.20 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/klash.cpp?cvsroot=gnash&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/win32/plugin.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/server/GetterSetter.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/server/GetterSetter.h?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/server/Property.h?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/server/PropertyList.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/PropertyList.h?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.cpp?cvsroot=gnash&r1=1.78&r2=1.79 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.h?cvsroot=gnash&r1=1.51&r2=1.52 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_function.cpp?cvsroot=gnash&r1=1.32&r2=1.33 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_function.h?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.cpp?cvsroot=gnash&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.h?cvsroot=gnash&r1=1.58&r2=1.59 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.cpp?cvsroot=gnash&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.h?cvsroot=gnash&r1=1.53&r2=1.54 http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.cpp?cvsroot=gnash&r1=1.42&r2=1.43 http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.h?cvsroot=gnash&r1=1.82&r2=1.83 http://cvs.savannah.gnu.org/viewcvs/gnash/server/debugger.cpp?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/server/debugger.h?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/dlist.cpp?cvsroot=gnash&r1=1.70&r2=1.71 http://cvs.savannah.gnu.org/viewcvs/gnash/server/dlist.h?cvsroot=gnash&r1=1.43&r2=1.44 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.67&r2=1.68 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.h?cvsroot=gnash&r1=1.31&r2=1.32 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.38&r2=1.39 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.h?cvsroot=gnash&r1=1.23&r2=1.24 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fontlib.cpp?cvsroot=gnash&r1=1.28&r2=1.29 http://cvs.savannah.gnu.org/viewcvs/gnash/server/gnash.h?cvsroot=gnash&r1=1.97&r2=1.98 http://cvs.savannah.gnu.org/viewcvs/gnash/server/impl.cpp?cvsroot=gnash&r1=1.108&r2=1.109 http://cvs.savannah.gnu.org/viewcvs/gnash/server/impl.h?cvsroot=gnash&r1=1.45&r2=1.46 http://cvs.savannah.gnu.org/viewcvs/gnash/server/mouse_button_state.h?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.65&r2=1.66 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.h?cvsroot=gnash&r1=1.56&r2=1.57 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.286&r2=1.287 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.118&r2=1.119 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf_function.cpp?cvsroot=gnash&r1=1.30&r2=1.31 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf_function.h?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Key.h?cvsroot=gnash&r1=1.19&r2=1.20 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Mouse.cpp?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Stage.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xmlnode.cpp?cvsroot=gnash&r1=1.35&r2=1.36 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/BitmapMovieDefinition.cpp?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/BitmapMovieDefinition.h?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.cpp?cvsroot=gnash&r1=1.71&r2=1.72 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.h?cvsroot=gnash&r1=1.43&r2=1.44 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/sprite_definition.cpp?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/sprite_definition.h?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ASHandlers.cpp?cvsroot=gnash&r1=1.107&r2=1.108 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/VM.cpp?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/VM.h?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/processor.cpp?cvsroot=gnash&r1=1.58&r2=1.59 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3546 retrieving revision 1.3547 diff -u -b -r1.3546 -r1.3547 --- ChangeLog 14 Jun 2007 20:28:50 -0000 1.3546 +++ ChangeLog 15 Jun 2007 15:00:25 -0000 1.3547 @@ -1,3 +1,37 @@ + * gui/Player.cpp, libbase/GC.h, libbase/Makefile.am, + libbase/ref_counted.h, libbase/smart_ptr.h, + plugin/klash/klash.cpp, plugin/win32/plugin.cpp, + server/GetterSetter.cpp, server/GetterSetter.h, + server/Property.h, server/PropertyList.cpp, + server/PropertyList.h, server/as_environment.cpp, + server/as_environment.h, server/as_function.cpp, + server/as_function.h, server/as_object.cpp, + server/as_object.h, server/as_value.cpp, + server/as_value.h, server/character.cpp, server/character.h, + server/debugger.cpp, server/debugger.h, server/dlist.cpp, + server/dlist.h, server/edit_text_character.cpp, + server/edit_text_character.h, server/font.cpp, server/font.h, + server/fontlib.cpp, server/gnash.h, server/impl.cpp, + server/impl.h, server/mouse_button_state.h, + server/movie_root.cpp, server/movie_root.h, + server/sprite_instance.cpp, server/sprite_instance.h, + server/swf_function.cpp, server/swf_function.h, + server/asobj/Key.h, server/asobj/Mouse.cpp, + server/asobj/Stage.cpp, server/asobj/xmlnode.cpp, + server/parser/BitmapMovieDefinition.cpp, + server/parser/BitmapMovieDefinition.h, + server/parser/movie_def_impl.cpp, + server/parser/movie_def_impl.h, + server/parser/sprite_definition.cpp, + server/parser/sprite_definition.h, server/vm/ASHandlers.cpp, + server/vm/VM.cpp, server/vm/VM.h, utilities/processor.cpp: + First big pass on Garbage Collection. We can now use a compile-time + define (GNASH_USE_GC) to select wheter GC or RF (ref-counting) is + used. By default RC is used as GC is still bogus. Next step would + be improving the GC mark functions to ensure needed resources aren't + prematurely deleted by the GC. See in GC.h the GcResource class + documentation for informations about how to do taht. + 2007-06-14 Sandro Santilli * libbase/: Makefile.am, GC.h: First draft at a garbage collector class. Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.54 retrieving revision 1.55 diff -u -b -r1.54 -r1.55 --- gui/Player.cpp 1 Jun 2007 15:01:55 -0000 1.54 +++ gui/Player.cpp 15 Jun 2007 15:00:26 -0000 1.55 @@ -126,6 +126,9 @@ void Player::init() { + /// Initialize gnash core library + gnashInit(); + set_use_cache_files(false); gnash::register_fscommand_callback(fs_callback); Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- libbase/GC.h 14 Jun 2007 20:28:51 -0000 1.1 +++ libbase/GC.h 15 Jun 2007 15:00:26 -0000 1.2 @@ -26,6 +26,7 @@ #include // Define the following macro to enable GC verbosity +// Define to > 1 to have info printed about scan of already reachable objects #define GNASH_GC_DEBUG 1 #ifdef GNASH_GC_DEBUG @@ -92,15 +93,15 @@ if ( _reachable ) { -#ifdef GNASH_GC_DEBUG - log_debug("Instance %p of class %s already reachable, setReachable doing nothing", +#if GNASH_GC_DEBUG > 1 + log_debug(_("Instance %p of class %s already reachable, setReachable doing nothing"), (void*)this, typeid(*this).name()); #endif return; } #ifdef GNASH_GC_DEBUG - log_debug("Instance %p of class %s set to reachable, scanning reachable resources from it", + log_debug(_("Instance %p of class %s set to reachable, scanning reachable resources from it"), (void*)this, typeid(*this).name()); #endif @@ -134,7 +135,7 @@ { assert(_reachable); #ifdef GNASH_GC_DEBUG - log_debug("Class %s didn't override the markReachableResources() method", typeid(*this).name()); + log_debug(_("Class %s didn't override the markReachableResources() method"), typeid(*this).name()); #endif } @@ -172,27 +173,50 @@ public: - friend class GcResource; + /// Init the singleton instance using the given GcRoot + // + static GC& init(GcRoot& r); - /// Get the singleton instance of the Garbage Collector - static GC& getInstance() - { - static GC singleton; - return singleton; - } + /// Delete the singleton. You'll need to call init() again + /// after this call, if you want to use the singleton. + // + /// See init(GcRoot&) + /// + static void cleanup(); + + /// Get the singleton + // + /// An assertion will fail if the GC has not been initialized yet. + /// See init(GcRoot&). + /// + static GC& get(); - /// Add a root resource to use for mark scanning + /// Add an heap object to the list of managed collectables // - /// @param root - /// A GcResource to use as a root item to scan - /// during the mark phase. + /// The given object is expected not to be already in the + /// list. Failing to do so would just decrease performances + /// but might not be a problem. Anyway, an assertion will fail + /// if adding an object twice. + /// + /// PRECONDITIONS: + /// - the object isn't already in this GC list. + /// - the object isn't marked as reachable. + /// - the object isn't managed by another GC (UNCHECKED) /// - void addRoot(GcRoot* root) + /// @param item + /// The item to be managed by this collector. + /// Can't be NULL. The caller gives up ownerhip + /// of it, which will only be deleted by this GC. + /// + void addCollectable(const GcResource* item) { - assert(root); - _roots.push_back(root); + assert(item); + assert(! item->isReachable()); + assert(std::find(_resList.begin(), _resList.end(), item) == _resList.end()); + + _resList.push_back(item); #ifdef GNASH_GC_DEBUG - log_debug("GC %p: root %p added, num roots: " SIZET_FMT, (void*)this, (void*)root, _roots.size()); + log_debug(_("GC %p: collectable %p added, num collectables: " SIZET_FMT), (void*)this, (void*)item, _resList.size()); #endif } @@ -204,7 +228,7 @@ void collect() { #ifdef GNASH_GC_DEBUG - log_debug("Starting collector: " SIZET_FMT " roots, " SIZET_FMT " collectables", _roots.size(), _resList.size()); + log_debug(_("Starting collector: " SIZET_FMT " collectables"), _resList.size()); #endif // GNASH_GC_DEBUG // Mark all resources as reachable @@ -217,17 +241,13 @@ private: - /// List of collectables - typedef std::list ResList; - - /// List of roots - typedef std::list RootList; - - /// Create a garbage collector - GC() + /// Create a garbage collector, using the given root + GC(GcRoot& root) + : + _root(root) { #ifdef GNASH_GC_DEBUG - log_debug("GC %p created", (void*)this); + log_debug(_("GC %p created"), (void*)this); #endif } @@ -235,53 +255,29 @@ ~GC() { #ifdef GNASH_GC_DEBUG - log_debug("GC %p deleted, cleaning up all managed resources", (void*)this); + log_debug(_("GC %p deleted, NOT collecting again all managed resources"), (void*)this); #endif + +#if 0 for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ++i) { delete *i; } +#endif } - /// Add an heap object to the list of managed collectables - // - /// The given object is expected not to be already in the - /// list. Failing to do so would just decrease performances - /// but might not be a problem. Anyway, an assertion will fail - /// if adding an object twice. - /// - /// PRECONDITIONS: - /// - the object isn't already in this GC list. - /// - the object isn't marked as reachable. - /// - the object isn't managed by another GC (UNCHECKED) - /// - /// @param item - /// The item to be managed by this collector. - /// Can't be NULL. The caller gives up ownerhip - /// of it, which will only be deleted by this GC. - /// - void addCollectable(const GcResource* item) - { - assert(item); - assert(! item->isReachable()); - assert(std::find(_resList.begin(), _resList.end(), item) == _resList.end()); - _resList.push_back(item); -#ifdef GNASH_GC_DEBUG - log_debug("GC %p: collectable %p added, num collectables: " SIZET_FMT, (void*)this, (void*)item, _resList.size()); -#endif - } + /// List of collectables + typedef std::list ResList; + + /// List of roots + typedef std::list RootList; /// Mark all reachable resources void markReachable() { - /// By marking the roots as reachable, a chain effect should be - /// engaged so that every reachable resource is marked - for (RootList::iterator i=_roots.begin(), e=_roots.end(); i!=e; ++i) - { - const GcRoot* root = *i; - root->markReachableResources(); - } + log_debug(_("GC %p: MARK SCAN"), (void*)this); + _root.markReachableResources(); } /// Delete all unreachable objects, and mark the others unreachable again @@ -289,6 +285,7 @@ { #ifdef GNASH_GC_DEBUG size_t deleted = 0; + log_debug(_("GC %p: SWEEP SCAN"), (void*)this); #endif for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ) { @@ -296,6 +293,8 @@ if ( ! res->isReachable() ) { #ifdef GNASH_GC_DEBUG + log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), + (void*)this, (void*)res, typeid(*res).name()); ++deleted; #endif delete res; @@ -308,16 +307,17 @@ } } #ifdef GNASH_GC_DEBUG - log_debug("GC %p: cleanUnreachable deleted " SIZET_FMT - " resources marked as unreachable", + log_debug(_("GC %p: cleanUnreachable deleted " SIZET_FMT + " resources marked as unreachable"), (void*)this, deleted); #endif } ResList _resList; - RootList _roots; + GcRoot& _root; + static GC* _singleton; }; @@ -325,7 +325,7 @@ : _reachable(false) { - GC::getInstance().addCollectable(this); + GC::get().addCollectable(this); } } // namespace gnash Index: libbase/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/libbase/Makefile.am,v retrieving revision 1.73 retrieving revision 1.74 diff -u -b -r1.73 -r1.74 --- libbase/Makefile.am 14 Jun 2007 20:28:51 -0000 1.73 +++ libbase/Makefile.am 15 Jun 2007 15:00:26 -0000 1.74 @@ -105,7 +105,9 @@ zlib_adapter.cpp \ URL.cpp \ LoadThread.cpp \ - FLVParser.cpp + FLVParser.cpp \ + GC.cpp \ + $(NULL) noinst_HEADERS = \ $(LIBLTDLHEAD) \ Index: libbase/ref_counted.h =================================================================== RCS file: /sources/gnash/gnash/libbase/ref_counted.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- libbase/ref_counted.h 14 Jun 2007 10:57:07 -0000 1.6 +++ libbase/ref_counted.h 15 Jun 2007 15:00:26 -0000 1.7 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: ref_counted.h,v 1.6 2007/06/14 10:57:07 strk Exp $ */ +/* $Id: ref_counted.h,v 1.7 2007/06/15 15:00:26 strk Exp $ */ #ifndef GNASH_REF_COUNTED_H #define GNASH_REF_COUNTED_H @@ -27,20 +27,36 @@ #include "container.h" #include "smart_ptr.h" +// Define the following macro to enable GC verbosity +#define GNASH_GC_DEBUG 1 + +#ifdef GNASH_USE_GC +# include "GC.h" +# ifdef GNASH_GC_DEBUG +# include "log.h" +# include +# endif // GNASH_GC_DEBUG +#endif // GNASH_USE_GC + namespace gnash { /// \brief /// For stuff that's tricky to keep track of w/r/t ownership & cleanup. /// The only use for this class seems to be for putting derived /// classes in smart_ptr -/// TODO: remove use of this base class in favor of using -/// boost::shared_ptr<> ???? boost::intrusive_ptr(?) /// - +#ifdef GNASH_USE_GC +class DSOEXPORT ref_counted : public GcResource +#else class DSOEXPORT ref_counted +#endif { + private: + +#ifndef GNASH_USE_GC mutable int m_ref_count; +#endif // ndef GNASH_USE_GC protected: @@ -48,16 +64,21 @@ // must never be explicitly deleted ! virtual ~ref_counted() { +#ifndef GNASH_USE_GC assert(m_ref_count == 0); +#endif // ndef GNASH_USE_GC } public: ref_counted() +#ifndef GNASH_USE_GC : m_ref_count(0) +#endif // ndef GNASH_USE_GC { } +#ifndef GNASH_USE_GC void add_ref() const { assert(m_ref_count >= 0); @@ -68,13 +89,15 @@ { assert(m_ref_count > 0); m_ref_count--; - if (m_ref_count <= 0){ + if (m_ref_count <= 0) + { // Delete me! delete this; } } int get_ref_count() const { return m_ref_count; } +#endif // ndef GNASH_USE_GC }; } // namespace gnash Index: libbase/smart_ptr.h =================================================================== RCS file: /sources/gnash/gnash/libbase/smart_ptr.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -b -r1.19 -r1.20 --- libbase/smart_ptr.h 28 May 2007 15:41:02 -0000 1.19 +++ libbase/smart_ptr.h 15 Jun 2007 15:00:26 -0000 1.20 @@ -24,7 +24,7 @@ // although the nice thing about templates is that no particular // ref-counted class is mandated. -/* $Id: smart_ptr.h,v 1.19 2007/05/28 15:41:02 ann Exp $ */ +/* $Id: smart_ptr.h,v 1.20 2007/06/15 15:00:26 strk Exp $ */ #ifndef SMART_PTR_H #define SMART_PTR_H @@ -32,6 +32,19 @@ #include "tu_config.h" #include "utility.h" +// Define the following macro to use garbage collecting rather +// then ref-counting. Currenlty this would make ref_counted +// derive from GcResource and intrusive_ptr never really messing +// with the stored pointer (not calling add_ref/drop_ref, which would +// be not defined for ref_counted. +// Is is a temporary hack to allow quick switch between GC and REFCOUNT +// mechanism till the GC is stable +// +//#define GNASH_USE_GC 1 + +// TODO: if GNASH_USE_GC is defined have smart_ptr map to intrusive_ptr +// else have it map to gc_ptr (yet to be defined) + #include #define COMPILER_SUPPORTS_ARGUMENT_DEPENDENT_LOOKUP 1 @@ -45,14 +58,22 @@ void intrusive_ptr_add_ref(T* o) { +#ifndef GNASH_USE_GC o->add_ref(); +#else + UNUSED(o); +#endif // ndef GNASH_USE_GC } template void intrusive_ptr_release(T* o) { +#ifndef GNASH_USE_GC o->drop_ref(); +#else + UNUSED(o); +#endif // ndef GNASH_USE_GC } } Index: plugin/klash/klash.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/klash/klash.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- plugin/klash/klash.cpp 18 Apr 2007 09:35:41 -0000 1.27 +++ plugin/klash/klash.cpp 15 Jun 2007 15:00:26 -0000 1.28 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: klash.cpp,v 1.27 2007/04/18 09:35:41 jgilmore Exp $ */ +/* $Id: klash.cpp,v 1.28 2007/06/15 15:00:26 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -597,7 +597,6 @@ break; }; m = gnash::get_current_root(); - gnash::delete_unused_root(); movie_root* root = dynamic_cast(m); assert(root); Index: plugin/win32/plugin.cpp =================================================================== RCS file: /sources/gnash/gnash/plugin/win32/plugin.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- plugin/win32/plugin.cpp 18 Apr 2007 09:35:42 -0000 1.7 +++ plugin/win32/plugin.cpp 15 Jun 2007 15:00:27 -0000 1.8 @@ -298,7 +298,6 @@ wglMakeCurrent(mhDC, mhRC); gnash::set_current_root(m); - gnash::delete_unused_root(); uint64_t ticks; ticks = tu_timer::get_ticks(); Index: server/GetterSetter.cpp =================================================================== RCS file: /sources/gnash/gnash/server/GetterSetter.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- server/GetterSetter.cpp 28 May 2007 15:41:04 -0000 1.7 +++ server/GetterSetter.cpp 15 Jun 2007 15:00:27 -0000 1.8 @@ -59,15 +59,23 @@ { if ( s._getter != _getter ) { +#ifndef GNASH_USE_GC _getter->drop_ref(); +#endif // ndef GNASH_USE_GC _getter = s._getter; +#ifndef GNASH_USE_GC _getter->add_ref(); +#endif // ndef GNASH_USE_GC } if ( s._setter != _setter ) { +#ifndef GNASH_USE_GC _setter->drop_ref(); +#endif // ndef GNASH_USE_GC _setter = s._setter; +#ifndef GNASH_USE_GC _setter->add_ref(); +#endif // ndef GNASH_USE_GC } return *this; } @@ -77,8 +85,10 @@ _getter(s._getter), _setter(s._setter) { +#ifndef GNASH_USE_GC _getter->add_ref(); _setter->add_ref(); +#endif // ndef GNASH_USE_GC } GetterSetter:: @@ -87,16 +97,28 @@ _getter(&getter), _setter(&setter) { +#ifndef GNASH_USE_GC _getter->add_ref(); _setter->add_ref(); +#endif // ndef GNASH_USE_GC } GetterSetter::~GetterSetter() { +#ifndef GNASH_USE_GC _getter->drop_ref(); _setter->drop_ref(); +#endif // ndef GNASH_USE_GC } +void +GetterSetter::setReachable() const +{ +#ifdef GNASH_USE_GC + _getter->setReachable(); + _setter->setReachable(); +#endif +} } // end of gnash namespace Index: server/GetterSetter.h =================================================================== RCS file: /sources/gnash/gnash/server/GetterSetter.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- server/GetterSetter.h 28 May 2007 15:41:04 -0000 1.7 +++ server/GetterSetter.h 15 Jun 2007 15:00:27 -0000 1.8 @@ -77,6 +77,9 @@ /// invoke the setter function void setValue(as_object* this_ptr, const as_value& val) const; + + /// Mark both getter and setter as being reachable (for GC) + void setReachable() const; }; Index: server/Property.h =================================================================== RCS file: /sources/gnash/gnash/server/Property.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- server/Property.h 28 May 2007 15:41:04 -0000 1.6 +++ server/Property.h 15 Jun 2007 15:00:27 -0000 1.7 @@ -117,6 +117,9 @@ /// is this a Getter/Setter property ? virtual bool isGetterSetter() const { return false; } + + /// Mark this property as being reachable (for the GC) + virtual void setReachable() const=0; }; /// A simple property, consisting only of an as_value @@ -164,6 +167,8 @@ void setValue(as_object&, const as_value &value) { _value = value; } + void setReachable() const { _value.setReachable(); } + }; /// A Getter/Setter property @@ -219,6 +224,12 @@ /// This *is* a Getter/Setter property ! virtual bool isGetterSetter() const { return true; } + + /// Set GetterSetter as reachable (for GC) + void setReachable() const + { + _getset.setReachable(); + } }; Index: server/PropertyList.cpp =================================================================== RCS file: /sources/gnash/gnash/server/PropertyList.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/PropertyList.cpp 18 Apr 2007 09:35:42 -0000 1.14 +++ server/PropertyList.cpp 15 Jun 2007 15:00:27 -0000 1.15 @@ -260,5 +260,14 @@ delete it->second; } +void +PropertyList::setReachable() const +{ + for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) + { + it->second->setReachable(); + } +} + } // end of gnash namespace Index: server/PropertyList.h =================================================================== RCS file: /sources/gnash/gnash/server/PropertyList.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/PropertyList.h 28 May 2007 15:41:04 -0000 1.14 +++ server/PropertyList.h 15 Jun 2007 15:00:27 -0000 1.15 @@ -36,8 +36,6 @@ class as_object; class as_environment; class as_function; - //class as_value; - //class Property; } namespace gnash { @@ -354,6 +352,10 @@ /// so this method too is non-const. /// void dump(as_object& this_ptr); + + /// Mark all simple properties, getters and setters + /// as being reachable (for the GC) + void setReachable() const; }; Index: server/as_environment.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_environment.cpp,v retrieving revision 1.78 retrieving revision 1.79 diff -u -b -r1.78 -r1.79 --- server/as_environment.cpp 25 May 2007 13:25:47 -0000 1.78 +++ server/as_environment.cpp 15 Jun 2007 15:00:27 -0000 1.79 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: as_environment.cpp,v 1.78 2007/05/25 13:25:47 strk Exp $ */ +/* $Id: as_environment.cpp,v 1.79 2007/06/15 15:00:27 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -447,7 +447,9 @@ boost::intrusive_ptr obj = val.to_object(); assert (obj); character* s=dynamic_cast(obj.get()); +#ifndef GNASH_USE_GC assert(s->get_ref_count() > 1); // or the intrusive_ptr above going out-of-scope will kill it +#endif // ndef GNASH_USE_GC //log_msg(_("find_target is a character, returning it")); return s; // might be NULL } @@ -686,7 +688,9 @@ } env = tmp.to_object().get(); +#ifndef GNASH_USE_GC assert(env->get_ref_count() > 0); // still alive... +#endif // ndef GNASH_USE_GC //@@ _level0 --> root, .. --> parent, . --> this, other == character @@ -831,7 +835,9 @@ } env = tmp.to_object().get(); +#ifndef GNASH_USE_GC assert(env->get_ref_count() > 0); +#endif // ndef GNASH_USE_GC } //@@ _level0 --> root, .. --> parent, . --> this, other == character @@ -1028,6 +1034,51 @@ { } +#ifdef GNASH_USE_GC +/// Mark all reachable resources +// +/// Reachable resources would be registers and +/// locals (expected to be empty?) and function. +void +as_environment::CallFrame::markReachableResources() const +{ + if ( func ) func->setReachable(); + for (Registers::const_iterator i=registers.begin(), e=registers.end(); i!=e; ++i) + { + i->setReachable(); + } + locals->setReachable(); +} + +void +as_environment::markReachableResources() const +{ + for (size_t i=0, s=4; i<4; ++i) + { + m_global_register[i].setReachable(); + } + + if ( m_target ) m_target->setReachable(); + if ( _original_target ) _original_target->setReachable(); + + assert ( _localFrames.empty() ); +#if 1 // I think we expect the stack to be empty ! + for (CallStack::const_iterator i=_localFrames.begin(), e=_localFrames.end(); i!=e; ++i) + { + i->markReachableResources(); + } +#endif + + assert ( m_stack.empty() ); +#if 1 // I think we expect the stack to be empty ! + for (std::vector::const_iterator i=m_stack.begin(), e=m_stack.end(); i!=e; ++i) + { + i->setReachable(); + } +#endif +} +#endif // GNASH_USE_GC + } // end of gnash namespace Index: server/as_environment.h =================================================================== RCS file: /sources/gnash/gnash/server/as_environment.h,v retrieving revision 1.51 retrieving revision 1.52 diff -u -b -r1.51 -r1.52 --- server/as_environment.h 28 May 2007 15:41:05 -0000 1.51 +++ server/as_environment.h 15 Jun 2007 15:00:27 -0000 1.52 @@ -313,6 +313,16 @@ } } +#ifdef GNASH_USE_GC + /// Mark all reachable resources. + // + /// Reachable resources from an as_environment + /// would be global registers, stack (expected to be empty + /// actually), stack frames and targets (original and current). + /// + void markReachableResources() const; +#endif + /// Find the sprite/movie referenced by the given path. // /// Supports both /slash/syntax and dot.syntax @@ -430,6 +440,14 @@ Registers registers; as_function* func; + +#ifdef GNASH_USE_GC + /// Mark all reachable resources + // + /// Reachable resources would be registers and + /// locals (expected to be empty?) and function. + void markReachableResources() const; +#endif // GNASH_USE_GC }; /// Push a frame on the calls stack. Index: server/as_function.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_function.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- server/as_function.cpp 14 May 2007 09:44:22 -0000 1.32 +++ server/as_function.cpp 15 Jun 2007 15:00:27 -0000 1.33 @@ -312,7 +312,9 @@ { // GNASH_REPORT_FUNCTION; +#ifndef GNASH_USE_GC assert(get_ref_count() > 0); +#endif // GNASH_USE_GC int swfversion = VM::get().getSWFVersion(); Index: server/as_function.h =================================================================== RCS file: /sources/gnash/gnash/server/as_function.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- server/as_function.h 28 May 2007 15:41:05 -0000 1.15 +++ server/as_function.h 15 Jun 2007 15:00:28 -0000 1.16 @@ -125,8 +125,39 @@ /// Return the built-in Function constructor static boost::intrusive_ptr getFunctionConstructor(); +#ifdef GNASH_USE_GC + /// Mark reachable resources. Override from GcResource + // + /// Reachable resources from this object is its prototype + /// and the default as_object reachables (properties and parent). + /// + /// The default implementation only marks that. If you + /// override this function from a derived class remember + /// to call markAsFunctionReachableResources() as a final step. + /// + virtual void markReachableResources() const + { + markAsFunctionReachable(); + } +#endif // GNASH_USE_GC + protected: +#ifdef GNASH_USE_GC + /// Mark prototype (properties) as being reachable and invoke + /// the as_object class marker. + // + /// Call this function from an override of markReachableResources + /// in a derived class + /// + void markAsFunctionReachable() const + { + _properties->setReachable(); + + markAsObjectReachable(); + } +#endif // GNASH_USE_GC + /// Construct a function with given interface // /// If the given interface is NULL a default one Index: server/as_object.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_object.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- server/as_object.cpp 8 Jun 2007 12:11:49 -0000 1.52 +++ server/as_object.cpp 15 Jun 2007 15:00:28 -0000 1.53 @@ -549,7 +549,11 @@ as_object::as_object(const as_object& other) : +#ifndef GNASH_USE_GC ref_counted(), +#else + GcResource(), +#endif _members(other._members), _vm(VM::get()), m_prototype(other.m_prototype) Index: server/as_object.h =================================================================== RCS file: /sources/gnash/gnash/server/as_object.h,v retrieving revision 1.58 retrieving revision 1.59 diff -u -b -r1.58 -r1.59 --- server/as_object.h 8 Jun 2007 12:11:49 -0000 1.58 +++ server/as_object.h 15 Jun 2007 15:00:28 -0000 1.59 @@ -25,7 +25,8 @@ #include "tu_config.h" #include "container.h" -#include "ref_counted.h" // for inheritance +#include "ref_counted.h" // for inheritance (to drop) +#include "GC.h" // for inheritance from GcResource (to complete) #include "PropertyList.h" #include "as_value.h" // for return of get_primitive_value #include "smart_ptr.h" @@ -60,8 +61,13 @@ /// Base-class for ActionScript script-defined objects. /// This would likely be ActionScript's 'Object' class. /// -//class as_object : public resource -class DSOEXPORT as_object : public ref_counted +class DSOEXPORT as_object + : +#ifdef GNASH_USE_GC + public GcResource +#else + public ref_counted +#endif { /// Properties of this objects PropertyList _members; @@ -121,12 +127,6 @@ /// as_object(const as_object& other); - /// Default destructor for ActionScript objects. - // - /// Drops reference on prototype member, if any. - /// - virtual ~as_object() {} - /// Return a text representation for this object virtual std::string get_text_value() const { return "[object Object]"; } @@ -479,6 +479,29 @@ /// void set_member_default(const std::string& name, const as_value& val); +#ifdef GNASH_USE_GC + /// Mark all reachable resources, override from GcResource. + // + /// The default implementation marks all properties + /// as being reachable, calling markAsObjectReachable(). + /// + /// If a derived class provides access to more GC-managed + /// resources, it should override this method and call + /// markAsObjectReachable() as the last step. + /// + virtual void markReachableResources() const + { + markAsObjectReachable(); + } + + /// Mark properties and __proto__ as reachable (for the GC) + void markAsObjectReachable() const + { + _members.setReachable(); + if ( m_prototype.get() ) m_prototype->setReachable(); + } +#endif // GNASH_USE_GC + /// The Virtual Machine used to create this object VM& _vm; Index: server/as_value.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_value.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- server/as_value.cpp 10 May 2007 08:18:48 -0000 1.52 +++ server/as_value.cpp 15 Jun 2007 15:00:28 -0000 1.53 @@ -65,7 +65,9 @@ m_object_value(func) { if (m_object_value) { +#ifndef GNASH_USE_GC m_object_value->add_ref(); +#endif // GNASH_USE_GC } else { m_type = NULLTYPE; } @@ -605,10 +607,12 @@ drop_refs(); m_type = OBJECT; m_object_value = obj; +#ifndef GNASH_USE_GC if (m_object_value) { m_object_value->add_ref(); } +#endif // GNASH_USE_GC } } @@ -626,7 +630,9 @@ m_type = AS_FUNCTION; m_object_value = func; if (m_object_value) { +#ifndef GNASH_USE_GC m_object_value->add_ref(); +#endif // GNASH_USE_GC } else { m_type = NULLTYPE; } @@ -707,6 +713,7 @@ void as_value::drop_refs() { +#ifndef GNASH_USE_GC if (m_type == AS_FUNCTION || m_type == OBJECT ) { if (m_object_value) // should assert here ? @@ -714,6 +721,7 @@ m_object_value->drop_ref(); } } +#endif // GNASH_USE_GC } const char* @@ -1026,6 +1034,16 @@ return std::string(_str); } +void +as_value::setReachable() const +{ +#ifdef GNASH_USE_GC + if ( m_type == OBJECT || m_type == AS_FUNCTION ) + { + m_object_value->setReachable(); + } +#endif // GNASH_USE_GC +} } // namespace gnash Index: server/as_value.h =================================================================== RCS file: /sources/gnash/gnash/server/as_value.h,v retrieving revision 1.53 retrieving revision 1.54 diff -u -b -r1.53 -r1.54 --- server/as_value.h 28 May 2007 15:41:05 -0000 1.53 +++ server/as_value.h 15 Jun 2007 15:00:28 -0000 1.54 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: as_value.h,v 1.53 2007/05/28 15:41:05 ann Exp $ */ +/* $Id: as_value.h,v 1.54 2007/06/15 15:00:28 strk Exp $ */ #ifndef GNASH_AS_VALUE_H #define GNASH_AS_VALUE_H @@ -529,6 +529,12 @@ /// Sets this value to this string plus the given string. void string_concat(const std::string& str); + /// Set any object value as reachable (for the GC) + // + /// Object values are values stored by pointer (objects and functions) + /// + void setReachable() const; + private: static sprite_instance* find_sprite_by_target(const std::string& target); Index: server/character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/character.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- server/character.cpp 22 May 2007 14:23:51 -0000 1.42 +++ server/character.cpp 15 Jun 2007 15:00:28 -0000 1.43 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: character.cpp,v 1.42 2007/05/22 14:23:51 udog Exp $ */ +/* $Id: character.cpp,v 1.43 2007/06/15 15:00:28 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -135,7 +135,9 @@ character::get_root_movie() { assert(m_parent != NULL); +#ifndef GNASH_USE_GC assert(m_parent->get_ref_count() > 0); +#endif // GNASH_USE_GC return m_parent->get_root_movie(); } @@ -143,7 +145,9 @@ character::get_mouse_state(int& x, int& y, int& buttons) { assert(m_parent != NULL); +#ifndef GNASH_USE_GC assert(m_parent->get_ref_count() > 0); +#endif // GNASH_USE_GC get_parent()->get_mouse_state(x, y, buttons); } @@ -651,7 +655,9 @@ Events::const_iterator it = _event_handlers.find(id); if ( it == _event_handlers.end() ) return handler; +#ifndef GNASH_USE_GC assert(get_ref_count() > 0); +#endif // GNASH_USE_GC boost::intrusive_ptr this_ptr = const_cast(this); handler.reset( new EventCode(this_ptr, it->second) ); Index: server/character.h =================================================================== RCS file: /sources/gnash/gnash/server/character.h,v retrieving revision 1.82 retrieving revision 1.83 diff -u -b -r1.82 -r1.83 --- server/character.h 14 Jun 2007 02:03:17 -0000 1.82 +++ server/character.h 15 Jun 2007 15:00:28 -0000 1.83 @@ -19,7 +19,7 @@ // // -/* $Id: character.h,v 1.82 2007/06/14 02:03:17 zoulunkai Exp $ */ +/* $Id: character.h,v 1.83 2007/06/15 15:00:28 strk Exp $ */ #ifndef GNASH_CHARACTER_H #define GNASH_CHARACTER_H @@ -154,6 +154,31 @@ protected: +#ifdef GNASH_USE_GC + /// Mark all reachable resources, override from as_object. + // + /// The default implementation calls markCharacterReachableResources(). + /// + /// If a derived class provides access to more GC-managed + /// resources, it should override this method and call + /// markCharacterReachableResources() as the last step. + /// + virtual void markReachableResources() const + { + markCharacterReachable(); + } + + /// Mark character-specific reachable resources + // + /// These are: the character's parent and the defualt + /// as_object reachable stuff. + void markCharacterReachable() const + { + if ( m_parent ) m_parent->setReachable(); + markAsObjectReachable(); + } +#endif // GNASH_USE_GC + const Events& get_event_handlers() const { return _event_handlers; Index: server/debugger.cpp =================================================================== RCS file: /sources/gnash/gnash/server/debugger.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- server/debugger.cpp 28 May 2007 15:41:05 -0000 1.20 +++ server/debugger.cpp 15 Jun 2007 15:00:28 -0000 1.21 @@ -587,7 +587,9 @@ if (name.size()) { cerr << " \"" << name << "\""; } +#ifndef GNASH_USE_GC cerr << " has #" << o->get_ref_count() << " references"; +#endif } cerr << endl; } Index: server/debugger.h =================================================================== RCS file: /sources/gnash/gnash/server/debugger.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/debugger.h 28 May 2007 15:41:05 -0000 1.14 +++ server/debugger.h 15 Jun 2007 15:00:28 -0000 1.15 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: debugger.h,v 1.14 2007/05/28 15:41:05 ann Exp $ */ +/* $Id: debugger.h,v 1.15 2007/06/15 15:00:28 strk Exp $ */ #ifndef __DEBUGGER_H__ #define __DEBUGGER_H__ @@ -136,6 +136,7 @@ std::string &callStackFrame() { return _callstack.back(); }; debug_state_e state() { return _state; }; + private: bool _enabled; bool _tracing; Index: server/dlist.cpp =================================================================== RCS file: /sources/gnash/gnash/server/dlist.cpp,v retrieving revision 1.70 retrieving revision 1.71 diff -u -b -r1.70 -r1.71 --- server/dlist.cpp 14 Jun 2007 02:03:18 -0000 1.70 +++ server/dlist.cpp 15 Jun 2007 15:00:28 -0000 1.71 @@ -856,7 +856,9 @@ it != endIt; ++it) { DisplayItem& dobj = *it; +#ifndef GNASH_USE_GC assert(dobj->get_ref_count() > 0); +#endif // ndef GNASH_USE_GC dobj->add_invalidated_bounds(ranges, force); } Index: server/dlist.h =================================================================== RCS file: /sources/gnash/gnash/server/dlist.h,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- server/dlist.h 14 Jun 2007 02:03:18 -0000 1.43 +++ server/dlist.h 15 Jun 2007 15:00:29 -0000 1.44 @@ -352,6 +352,9 @@ template inline void visitAll(V& visitor); + template + inline void visitAll(V& visitor) const; + /// dump list to logfile/stderr void dump() const; @@ -448,6 +451,18 @@ } } +template +void +DisplayList::visitAll(V& visitor) const +{ + for (const_iterator it = _characters.begin(), + itEnd = _characters.end(); + it != itEnd; ++it) + { + visitor(it->get()); + } +} + std::ostream& operator<< (std::ostream&, const DisplayList&); } // namespace gnash Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.67 retrieving revision 1.68 diff -u -b -r1.67 -r1.68 --- server/edit_text_character.cpp 13 Jun 2007 16:52:00 -0000 1.67 +++ server/edit_text_character.cpp 15 Jun 2007 15:00:29 -0000 1.68 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.67 2007/06/13 16:52:00 strk Exp $ */ +/* $Id: edit_text_character.cpp,v 1.68 2007/06/15 15:00:29 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1155,7 +1155,7 @@ { // TODO: scan more glyphs till newline and continue bool newlinefound = false; - while (code = utf8::decode_next_unicode_character(&text)) + while ( (code = utf8::decode_next_unicode_character(&text)) ) { if (code == 13 || code == 10) { Index: server/edit_text_character.h =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -b -r1.31 -r1.32 --- server/edit_text_character.h 28 May 2007 15:41:06 -0000 1.31 +++ server/edit_text_character.h 15 Jun 2007 15:00:29 -0000 1.32 @@ -185,6 +185,22 @@ /// 'TextFields.variable' std::string _variable_name; +protected: + +#ifdef GNASH_USE_GC + /// Mark reachable reosurces (for GC) + // + /// Reachable resource is currenlty just our definition, + /// plus common character resources + /// + void markReachableResources() const + { + if ( m_def.get() ) m_def->setReachable(); + + // recurse to parent... + markCharacterReachable(); + } +#endif }; /// Initialize the global TextField class Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -u -b -r1.38 -r1.39 --- server/font.cpp 13 Jun 2007 15:17:30 -0000 1.38 +++ server/font.cpp 15 Jun 2007 15:00:29 -0000 1.39 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.38 2007/06/13 15:17:30 strk Exp $ */ +/* $Id: font.cpp,v 1.39 2007/06/15 15:00:29 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -618,6 +618,30 @@ return true; } +#ifdef GNASH_USE_GC +/// Mark reachable resources (for the GC) +// +/// Reachable resources are: +/// - texture_glyphs +/// - shape_character_defs (vector glyphs) +void +font::markReachableResources() const +{ + // Mark textured glyphs + for (TextureGlyphVect::const_iterator i=m_texture_glyphs.begin(), e=m_texture_glyphs.end(); i!=e; ++i) + { + i->setReachable(); + } + + // Mark vector glyphs + for (GlyphVect::const_iterator i=m_glyphs.begin(), e=m_glyphs.end(); i!=e; ++i) + { + (*i)->setReachable(); + } + +} +#endif // GNASH_USE_GC + } // end namespace gnash Index: server/font.h =================================================================== RCS file: /sources/gnash/gnash/server/font.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- server/font.h 13 Jun 2007 15:17:30 -0000 1.23 +++ server/font.h 15 Jun 2007 15:00:29 -0000 1.24 @@ -19,6 +19,9 @@ #include "bitmap_info.h" // for dtor visibility by smart pointer #include "FreetypeGlyphsProvider.h" // for device fonts support #include "log.h" +#ifdef GNASH_USE_GC +# include "GC.h" +#endif #include @@ -64,6 +67,15 @@ // the origin of the glyph box, in uv coords point m_uv_origin; + protected: + +#ifdef GNASH_USE_GC + /// Mark the contained bitmap info as being reachable + void markReachableResources() const + { + if ( m_bitmap_info.get() ) m_bitmap_info->setReachable(); + } +#endif }; @@ -243,9 +255,11 @@ /// Return true on success, false on error bool initDeviceFontProvider(); - std::vector< boost::intrusive_ptr > m_glyphs; + typedef std::vector< boost::intrusive_ptr > GlyphVect; + GlyphVect m_glyphs; - std::vector< texture_glyph > m_texture_glyphs; // cached info, built by gnash_fontlib. + typedef std::vector< texture_glyph > TextureGlyphVect; + TextureGlyphVect m_texture_glyphs; // cached info, built by gnash_fontlib. int m_texture_glyph_nominal_size; @@ -274,6 +288,18 @@ kernings_table m_kerning_pairs; std::auto_ptr _ftProvider; + + protected: + +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// Reachable resources are: + /// - texture_glyphs + /// - shape_character_defs (vector glyphs) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC }; Index: server/fontlib.cpp =================================================================== RCS file: /sources/gnash/gnash/server/fontlib.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- server/fontlib.cpp 13 Jun 2007 02:49:32 -0000 1.28 +++ server/fontlib.cpp 15 Jun 2007 15:00:29 -0000 1.29 @@ -5,7 +5,7 @@ // A module to take care of all of gnash's loaded fonts. -/* $Id: fontlib.cpp,v 1.28 2007/06/13 02:49:32 strk Exp $ */ +/* $Id: fontlib.cpp,v 1.29 2007/06/15 15:00:29 strk Exp $ */ #include "container.h" #include "tu_file.h" @@ -1129,7 +1129,9 @@ h, s_current_cache_image); owner->add_bitmap_info(bi.get()); +#ifndef GNASH_USE_GC assert(bi->get_ref_count() == 2); // one ref for bi, one for the owner. +#endif // ndef GNASH_USE_GC } else { // Skip image data bytes. in->set_position(in->get_position() + w * h); Index: server/gnash.h =================================================================== RCS file: /sources/gnash/gnash/server/gnash.h,v retrieving revision 1.97 retrieving revision 1.98 diff -u -b -r1.97 -r1.98 --- server/gnash.h 28 May 2007 15:41:06 -0000 1.97 +++ server/gnash.h 15 Jun 2007 15:00:29 -0000 1.98 @@ -330,6 +330,10 @@ /// the halting problem). void precompute_cached_data(movie_definition* movie_def); +/// Initialize gnash core library +// +DSOEXPORT void gnashInit(); + /// Maximum release of resources. // /// Calls clear_library() and @@ -339,18 +343,13 @@ /// heap, with the exception of any objects that are still /// referenced by the host program and haven't had drop_ref() /// called on them. +/// DSOEXPORT void clear(); // // Library management // -/// Release any library movies we've cached. -// -/// Do this when you want maximum cleanup. -void clear_library(); - -// // Font library control. gnash is able to substitute fonts // from the font library, in case a movie lacks glyphs for a // declared font. This would come into play since in recent Index: server/impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/impl.cpp,v retrieving revision 1.108 retrieving revision 1.109 diff -u -b -r1.108 -r1.109 --- server/impl.cpp 1 Jun 2007 11:02:18 -0000 1.108 +++ server/impl.cpp 15 Jun 2007 15:00:29 -0000 1.109 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: impl.cpp,v 1.108 2007/06/01 11:02:18 strk Exp $ */ +/* $Id: impl.cpp,v 1.109 2007/06/15 15:00:29 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -53,6 +53,9 @@ #include "RemoveObjectTag.h" #include "DoActionTag.h" #include "sound_handler.h" // for get_sound_handler +#ifdef GNASH_USE_GC +#include "GC.h" +#endif #include #include @@ -61,6 +64,7 @@ namespace gnash { +static void clear_library(); /// Namespace for global data (will likely turn into a class) namespace globals { // gnash::globals @@ -538,8 +542,6 @@ s_no_recurse_while_loading = false; - //m->add_ref(); - / return m; } #endif @@ -578,8 +580,10 @@ // after it's been de-referenced set_sound_handler(NULL); -} + GC::get().collect(); + GC::cleanup(); +} // // library stuff, for sharing resources among different movies. @@ -621,6 +625,17 @@ } } +#ifdef GNASH_USE_GC + /// Mark all library elements as reachable (for GC) + void markReachableResources() const + { + for ( container::const_iterator i=_map.begin(), e=_map.end(); i!=e; ++i) + { + i->second->setReachable(); + } + } +#endif + void add(const std::string& key, movie_definition* mov) { _map[key] = mov; @@ -641,25 +656,6 @@ s_extern_sprites.push_back(m); } -//#if 0 -void delete_unused_root() -{ - for (unsigned int i = 0; i < s_extern_sprites.size(); i++) - { - sprite_instance* root_m = s_extern_sprites[i]; - sprite_instance* m = root_m->get_root_movie(); - - if (m->get_ref_count() < 2) - { - log_action(_("extern movie deleted")); - s_extern_sprites.erase(s_extern_sprites.begin() + i); - i--; - root_m->drop_ref(); - } - } -} -//#endif // 0 - movie_root* get_current_root() { @@ -677,7 +673,7 @@ s_workdir = dir; } -void clear_library() +static void clear_library() // Drop all library references to movie_definitions, so they // can be cleaned up. { @@ -702,8 +698,6 @@ if ( s_movie_library.get(cache_label, &m) ) { log_msg(_("Movie %s already in library"), cache_label.c_str()); - // Return cached movie. - // m->add_ref(); let caller add the ref, if needed return m.get(); } } @@ -753,7 +747,6 @@ if (m != NULL) { // Return cached movie instance. - // m->add_ref(); // let caller increment refcount return m.get(); } } @@ -772,7 +765,6 @@ s_movie_library_inst.add(md, mov); } - // mov->add_ref(); // let caller increment refcount return mov; } @@ -873,10 +865,43 @@ } } +#ifndef GNASH_USE_GC m->drop_ref(); +#endif //ndef GNASH_USE_GC +} + +#ifdef GNASH_USE_GC +/// A GC root used to mark all reachable collectable pointers +class GnashGcRoot : public GcRoot +{ + +public: + + GnashGcRoot() + { + } + + void markReachableResources() const + { + VM::get().markReachableResources(); + + // Mark library movies (TODO: redesign this part) + s_movie_library.markReachableResources(); + } +}; +#endif + +void gnashInit() +{ +#ifdef GNASH_USE_GC + static GnashGcRoot gcRoot; + GC::init(gcRoot); +#endif } + + } // namespace gnash // Local Variables: Index: server/impl.h =================================================================== RCS file: /sources/gnash/gnash/server/impl.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -b -r1.45 -r1.46 --- server/impl.h 28 May 2007 15:41:06 -0000 1.45 +++ server/impl.h 15 Jun 2007 15:00:29 -0000 1.46 @@ -19,7 +19,7 @@ // // -/* $Id: impl.h,v 1.45 2007/05/28 15:41:06 ann Exp $ */ +/* $Id: impl.h,v 1.46 2007/06/15 15:00:29 strk Exp $ */ #ifndef GNASH_IMPL_H #define GNASH_IMPL_H @@ -67,7 +67,6 @@ DSOEXPORT movie_root* get_current_root(); DSOEXPORT const char* get_workdir(); DSOEXPORT void set_workdir(const char* dir); -DSOEXPORT void delete_unused_root(); // Information about how to display a character. class display_info Index: server/mouse_button_state.h =================================================================== RCS file: /sources/gnash/gnash/server/mouse_button_state.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/mouse_button_state.h 27 Feb 2007 09:10:20 -0000 1.8 +++ server/mouse_button_state.h 15 Jun 2007 15:00:29 -0000 1.9 @@ -59,6 +59,14 @@ { } +#ifdef GNASH_USE_GC + /// Mark reachable objects (active and topmost entities) + void markReachableResources() const + { + if ( m_active_entity.get() ) m_active_entity->setReachable(); + if ( m_topmost_entity.get() ) m_topmost_entity->setReachable(); + } +#endif // GNASH_USE_GC }; } // end namespace gnash Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.65 retrieving revision 1.66 diff -u -b -r1.65 -r1.66 --- server/movie_root.cpp 13 Jun 2007 02:49:33 -0000 1.65 +++ server/movie_root.cpp 15 Jun 2007 15:00:30 -0000 1.66 @@ -318,7 +318,9 @@ // onDragOut if (active_entity != NULL) { +#ifndef GNASH_USE_GC assert(active_entity->get_ref_count() > 1); // we are NOT the only object holder ! +#endif // GNASH_USE_GC active_entity->on_button_event(event_id::DRAG_OUT); // TODO: have on_button_event return // wheter the action must trigger @@ -615,6 +617,11 @@ _movie->get_play_state() == sprite_instance::STOP ? " - now in STOP mode" : ""); #endif +#ifdef GNASH_USE_GC + // Run the garbage collector (step back !!) + GC::get().collect(); +#endif + assert(testInvariant()); } @@ -1009,5 +1016,19 @@ _actionQueue.push_back(new FunctionCode(func, target)); } +#ifdef GNASH_USE_GC +void +movie_root::markReachableResources() const +{ + // Mark root movie as reachable + // TODO: mark all levels !! + _movie->setReachable(); + + // Mark mouse entities + m_mouse_button_state.markReachableResources(); + +} +#endif // GNASH_USE_GC + } // namespace gnash Index: server/movie_root.h =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.h,v retrieving revision 1.56 retrieving revision 1.57 diff -u -b -r1.56 -r1.57 --- server/movie_root.h 8 Jun 2007 12:11:50 -0000 1.56 +++ server/movie_root.h 15 Jun 2007 15:00:30 -0000 1.57 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: movie_root.h,v 1.56 2007/06/08 12:11:50 zoulunkai Exp $ */ +/* $Id: movie_root.h,v 1.57 2007/06/15 15:00:30 strk Exp $ */ /// \page events_handling Handling of user events /// @@ -113,7 +113,7 @@ }; #endif -/// The absolute top level movie +/// The movie stage (absolute top level node in the characters hierarchy) // /// This is a wrapper around the top-level movie_instance that is being played. /// There is a *single* instance of this class for each run; @@ -439,6 +439,11 @@ /// Push a function code to the ActionQueue void pushAction(boost::intrusive_ptr func, boost::intrusive_ptr target); +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + void markReachableResources() const; +#endif // GNASH_USE_GC + private: /// Forbid copy Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.286 retrieving revision 1.287 diff -u -b -r1.286 -r1.287 --- server/sprite_instance.cpp 14 Jun 2007 02:03:18 -0000 1.286 +++ server/sprite_instance.cpp 15 Jun 2007 15:00:30 -0000 1.287 @@ -192,7 +192,9 @@ boost::intrusive_ptr newch = exported_movie->create_character_instance(sprite.get(), depth_val); assert( dynamic_cast(newch.get()) ); assert( newch.get() > (void*)0xFFFF ); +#ifndef GNASH_USE_GC assert(newch->get_ref_count() > 0); +#endif // ndef GNASH_USE_GC newch->set_name(newname.c_str()); @@ -3178,7 +3180,9 @@ ratio, clip_depth); +#ifndef GNASH_USE_GC assert(ch == NULL || ch->get_ref_count() > 1); +#endif // ndef GNASH_USE_GC return ch.get(); } @@ -3812,8 +3816,10 @@ else { movie_root& root = _vm.getRoot(); +#ifndef GNASH_USE_GC // Make sure we won't kill ourself ! assert(get_ref_count() > 1); +#endif // ndef GNASH_USE_GC root.setRootMovie(extern_movie.get()); } @@ -3980,4 +3986,32 @@ return enabled.to_bool(); } +#ifdef GNASH_USE_GC +struct ReachableMarker { + void operator() (character *ch) + { + ch->setReachable(); + } +}; +void +sprite_instance::markReachableResources() const +{ + ReachableMarker marker; + + m_display_list.visitAll(marker); + + oldDisplayList.visitAll(marker); + + _drawable_inst->setReachable(); + + m_as_environment.markReachableResources(); + + // Mark our own definition + if ( m_def.get() ) m_def->setReachable(); + + markCharacterReachable(); + +} +#endif // GNASH_USE_GC + } // namespace gnash Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.118 retrieving revision 1.119 diff -u -b -r1.118 -r1.119 --- server/sprite_instance.h 14 Jun 2007 02:03:18 -0000 1.118 +++ server/sprite_instance.h 15 Jun 2007 15:00:30 -0000 1.119 @@ -657,8 +657,10 @@ void testInvariant() const { assert(m_play_state == PLAY || m_play_state == STOP); assert(m_current_frame < m_def->get_frame_count()); +#ifndef GNASH_USE_GC assert(get_ref_count() > 0); // or we're constructed but // not stored in a boost::intrusive_ptr +#endif } /// Set the current m_sound_stream_id @@ -980,6 +982,18 @@ /// Process a completed loadVariables request void processCompletedLoadVariableRequest(LoadVariablesThread& request); + +#ifdef GNASH_USE_GC + /// Mark sprite-specific reachable resources and invoke + /// the parent's class version (markCharacterReachableResources) + // + /// sprite-specific reachable resources are: + /// - DisplayList items (both current and backup one) + /// - Drawable instance + /// - sprite environment + /// + virtual void markReachableResources() const; +#endif // GNASH_USE_GC }; /// Initialize the global MovieClip class Index: server/swf_function.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf_function.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -b -r1.30 -r1.31 --- server/swf_function.cpp 28 May 2007 15:41:07 -0000 1.30 +++ server/swf_function.cpp 15 Jun 2007 15:00:30 -0000 1.31 @@ -41,7 +41,9 @@ swf_function::~swf_function() { +#ifndef GNASH_USE_GC if ( _properties ) _properties->drop_ref(); +#endif //ndef GNASH_USE_GC } swf_function::swf_function(const action_buffer* ab, @@ -62,16 +64,6 @@ assert(m_action_buffer); assert( m_start_pc < m_action_buffer->size() ); - // Define the 'prototype' member as a new object with - // only the 'constructor' element defined. - //_properties = new as_object(); - //as_object* proto = _properties; - //proto->add_ref(); - - //proto->init_member("constructor", this); - - //init_member("prototype", as_value(proto)); - init_member("constructor", as_value(as_function::getFunctionConstructor().get())); } @@ -147,10 +139,12 @@ as_array_object* swf_function::getArguments(swf_function& callee, const fn_call& fn) { +#ifndef GNASH_USE_GC // We'll be storing the callee as_object into an as_value // so you must make sure you have a reference on it before // callign this function. assert(callee.get_ref_count() > 0); +#endif // ndef GNASH_USE_GC // Super class prototype is : obj.__proto__.constructor.prototype as_array_object* arguments = new as_array_object(); @@ -344,5 +338,22 @@ m_length = len; } +#ifdef GNASH_USE_GC +void +swf_function::markReachableResources() const +{ + // Mark scope stack objects + for (ScopeStack::const_iterator i=_scopeStack.begin(), e=_scopeStack.end(); i!=e; ++i) + { + (*i)->setReachable(); + } + + if ( m_env ) m_env->markReachableResources(); + + // Invoke parent class marker + markAsFunctionReachable(); +} +#endif // GNASH_USE_GC + } // end of gnash namespace Index: server/swf_function.h =================================================================== RCS file: /sources/gnash/gnash/server/swf_function.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/swf_function.h 28 May 2007 15:41:07 -0000 1.14 +++ server/swf_function.h 15 Jun 2007 15:00:30 -0000 1.15 @@ -227,6 +227,15 @@ as_value operator()(const fn_call& fn); //void lazy_create_properties(); + +#ifdef GNASH_USE_GC + /// Mark reachable resources. Override from as_function. + // + /// Reachable resources from this object is it's scope stack + /// and the prototype. + /// + virtual void markReachableResources() const; +#endif // GNASH_USE_GC }; Index: server/asobj/Key.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Key.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -b -r1.19 -r1.20 --- server/asobj/Key.h 8 Jun 2007 12:11:50 -0000 1.19 +++ server/asobj/Key.h 15 Jun 2007 15:00:30 -0000 1.20 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: Key.h,v 1.19 2007/06/08 12:11:50 zoulunkai Exp $ */ +/* $Id: Key.h,v 1.20 2007/06/15 15:00:30 strk Exp $ */ #ifndef __KEY_H__ #define __KEY_H__ @@ -128,6 +128,7 @@ #endif int get_last_key_pressed() const; + }; void key_class_init(as_object& global); Index: server/asobj/Mouse.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Mouse.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/asobj/Mouse.cpp 26 Apr 2007 07:00:29 -0000 1.9 +++ server/asobj/Mouse.cpp 15 Jun 2007 15:00:30 -0000 1.10 @@ -72,6 +72,7 @@ // override from as_object ? //double get_numeric_value() const { return 0; } + }; as_value mouse_addlistener(const fn_call& fn) Index: server/asobj/Stage.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Stage.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/asobj/Stage.cpp 1 May 2007 18:47:48 -0000 1.14 +++ server/asobj/Stage.cpp 15 Jun 2007 15:00:30 -0000 1.15 @@ -81,8 +81,14 @@ itEnd=_listeners.end(); it != itEnd; ++it) { +#ifndef GNASH_USE_GC if ( (*it)->get_ref_count() == 1 ) it=_listeners.erase(it); - else notifyResize(*it, env); + else +#endif // ndef GNASH_USE_GC + notifyResize(*it, env); + // TODO: make sure objects deregister themselve from being listeners + // when deleted by the GC ! (btw, how to ensure the GC didn't + // delete the Stage first ? ...) } } @@ -138,12 +144,15 @@ void Stage::dropDanglingListeners() { + // TODO: find a way to find dangling listeners +#ifndef GNASH_USE_GC for (ListenersList::iterator it=_listeners.begin(), itEnd=_listeners.end(); it != itEnd; ++it) { if ( (*it)->get_ref_count() == 1 ) it=_listeners.erase(it); } +#endif } const char* Index: server/asobj/xmlnode.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/xmlnode.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -u -b -r1.35 -r1.36 --- server/asobj/xmlnode.cpp 28 May 2007 15:41:08 -0000 1.35 +++ server/asobj/xmlnode.cpp 15 Jun 2007 15:00:30 -0000 1.36 @@ -16,7 +16,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: xmlnode.cpp,v 1.35 2007/05/28 15:41:08 ann Exp $ */ +/* $Id: xmlnode.cpp,v 1.36 2007/06/15 15:00:30 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -209,14 +209,18 @@ void XMLNode::removeNode() { +#ifndef GNASH_USE_GC assert(get_ref_count() > 1); +#endif boost::intrusive_ptr oldparent = getParent(); if ( oldparent ) { oldparent->_children.remove(this); } _parent = NULL; +#ifndef GNASH_USE_GC assert(get_ref_count() > 0); +#endif } XMLNode * Index: server/parser/BitmapMovieDefinition.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/BitmapMovieDefinition.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/parser/BitmapMovieDefinition.cpp 18 Apr 2007 14:07:32 -0000 1.9 +++ server/parser/BitmapMovieDefinition.cpp 15 Jun 2007 15:00:31 -0000 1.10 @@ -92,4 +92,13 @@ // Do not create shape_character_def now (why?) } +#ifdef GNASH_USE_GC +void +BitmapMovieDefinition::markReachableResources() const +{ + if ( _shapedef.get() ) _shapedef->setReachable(); + if ( _bitmap.get() ) _bitmap->setReachable(); +} +#endif // GNASH_USE_GC + } // namespace gnash Index: server/parser/BitmapMovieDefinition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/BitmapMovieDefinition.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- server/parser/BitmapMovieDefinition.h 28 May 2007 15:41:09 -0000 1.6 +++ server/parser/BitmapMovieDefinition.h 15 Jun 2007 15:00:31 -0000 1.7 @@ -64,6 +64,18 @@ /// shape_character_def* getShapeDef(); +protected: + +#ifdef GNASH_USE_GC + /// Mark reachable resources of a BitmapMovieDefinition + // + /// Reachable resources are: + /// - dynamic shape (_shapedef) + /// - bitmap (_bitmap) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC + public: Index: server/parser/movie_def_impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -b -r1.71 -r1.72 --- server/parser/movie_def_impl.cpp 21 May 2007 11:11:39 -0000 1.71 +++ server/parser/movie_def_impl.cpp 15 Jun 2007 15:00:31 -0000 1.72 @@ -329,7 +329,9 @@ #endif // not NDEBUG boost::intrusive_ptr ch = _dictionary.get_character(character_id); +#ifndef GNASH_USE_GC assert(ch == NULL || ch->get_ref_count() > 1); +#endif // ndef GNASH_USE_GC return ch.get(); // mm... why don't we return the boost::intrusive_ptr? } @@ -353,7 +355,9 @@ FontMap::iterator it = m_fonts.find(font_id); if ( it == m_fonts.end() ) return NULL; boost::intrusive_ptr f = it->second; +#ifndef GNASH_USE_GC assert(f->get_ref_count() > 1); +#endif // ndef GNASH_USE_GC return f.get(); } @@ -384,7 +388,9 @@ if ( it == m_sound_samples.end() ) return NULL; boost::intrusive_ptr ch = it->second; +#ifndef GNASH_USE_GC assert(ch->get_ref_count() > 1); +#endif // ndef GNASH_USE_GC return ch.get(); } @@ -1102,4 +1108,40 @@ return true; } +#ifdef GNASH_USE_GC +void +movie_def_impl::markReachableResources() const +{ + for (FontMap::const_iterator i=m_fonts.begin(), e=m_fonts.end(); i!=e; ++i) + { + i->second->setReachable(); + } + + for (BitmapMap::const_iterator i=m_bitmap_characters.begin(), e=m_bitmap_characters.end(); i!=e; ++i) + { + i->second->setReachable(); + } + + for (BitmapVect::const_iterator i=m_bitmap_list.begin(), e=m_bitmap_list.end(); i!=e; ++i) + { + (*i)->setReachable(); + } + + for (SoundSampleMap::const_iterator i=m_sound_samples.begin(), e=m_sound_samples.end(); i!=e; ++i) + { + i->second->setReachable(); + } + + for (ExportMap::const_iterator i=m_exports.begin(), e=m_exports.end(); i!=e; ++i) + { + i->second->setReachable(); + } + + for (ImportVect::const_iterator i=m_import_source_movies.begin(), e=m_import_source_movies.end(); i!=e; ++i) + { + (*i)->setReachable(); + } +} +#endif // GNASH_USE_GC + } // namespace gnash Index: server/parser/movie_def_impl.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.h,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- server/parser/movie_def_impl.h 28 May 2007 15:41:09 -0000 1.43 +++ server/parser/movie_def_impl.h 15 Jun 2007 15:00:31 -0000 1.44 @@ -215,11 +215,13 @@ /// Movies we import from; hold a ref on these, /// to keep them alive - std::vector > m_import_source_movies; + typedef std::vector > ImportVect; + ImportVect m_import_source_movies; /// Bitmaps used in this movie; collected in one place to make /// it possible for the host to manage them as textures. - std::vector > m_bitmap_list; + typedef std::vector > BitmapVect; + BitmapVect m_bitmap_list; create_bitmaps_flag m_create_bitmaps; create_font_shapes_flag m_create_font_shapes; @@ -625,6 +627,24 @@ _timeline.getFrameDepths(frameno, depths); } +protected: + +#ifdef GNASH_USE_GC + /// Mark reachable resources of a movie_def_impl + // + /// Reachable resources are: + /// - fonts (m_fonts) + /// - bitmap characters (m_bitmap_characters) + /// - bitmaps (m_bitmap_list) [ what's the difference with bitmap chracters ?? ] + /// - sound samples (m_sound_samples) + /// - exports (m_exports) + /// - imported movies (m_import_source_movies) + /// + /// TODO: do we really need all this stuff to be a GcResource ?? + /// + void markReachableResources() const; +#endif // GNASH_USE_GC + }; } // namespace gnash Index: server/parser/sprite_definition.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/sprite_definition.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- server/parser/sprite_definition.cpp 21 May 2007 11:11:39 -0000 1.15 +++ server/parser/sprite_definition.cpp 15 Jun 2007 15:00:31 -0000 1.16 @@ -215,4 +215,12 @@ #endif } +#ifdef GNASH_USE_GC +void +sprite_definition::markReachableResources() const +{ + if ( registeredClass.get() ) registeredClass->setReachable(); +} +#endif // GNASH_USE_GC + } // namespace gnash Index: server/parser/sprite_definition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/sprite_definition.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- server/parser/sprite_definition.h 24 May 2007 10:29:28 -0000 1.20 +++ server/parser/sprite_definition.h 15 Jun 2007 15:00:31 -0000 1.21 @@ -385,6 +385,17 @@ /// Timeline _timeline; +protected: + + +#ifdef GNASH_USE_GC + /// Mark reachable resources of a sprite_definition + // + /// Reachable resources are: + /// - registered class (registeredClass) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC }; Index: server/vm/ASHandlers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ASHandlers.cpp,v retrieving revision 1.107 retrieving revision 1.108 diff -u -b -r1.107 -r1.108 --- server/vm/ASHandlers.cpp 2 Jun 2007 06:50:07 -0000 1.107 +++ server/vm/ASHandlers.cpp 15 Jun 2007 15:00:31 -0000 1.108 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ASHandlers.cpp,v 1.107 2007/06/02 06:50:07 strk Exp $ */ +/* $Id: ASHandlers.cpp,v 1.108 2007/06/15 15:00:31 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -2341,12 +2341,14 @@ env, nargs, env.get_top_index()); #ifdef USE_DEBUGGER +#ifndef GNASH_USE_GC // WARNING: new_obj.to_object() can return a newly allocated // thing into the intrusive_ptr, so the debugger // will be left with a deleted object !! // Rob: we don't want to use void pointers here.. newobj->add_ref(); // this will leak, but at least debugger won't end up // with a dandling reference... +#endif //ndef GNASH_USE_GC debugger.addSymbol(newobj.get(), classname); #endif @@ -3358,8 +3360,10 @@ // will be left with a deleted object !! // Rob: we don't want to use void pointers here.. boost::intrusive_ptr o = function_value.to_object(); +#ifndef GNASH_USE_GC o->add_ref(); // this will leak, but at least debugger won't end up // with a dandling reference... +#endif //ndef GNASH_USE_GC debugger.addSymbol(o.get(), name); #endif } @@ -3508,8 +3512,10 @@ // will be left with a deleted object !! // Rob: we don't want to use void pointers here.. boost::intrusive_ptr o = function_value.to_object(); +#ifndef GNASH_USE_GC o->add_ref(); // this will leak, but at least debugger won't end up // with a dandling reference... +#endif //ndef GNASH_USE_GC debugger.addSymbol(o.get(), name); #endif } Index: server/vm/VM.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/VM.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/vm/VM.cpp 28 May 2007 15:41:10 -0000 1.9 +++ server/vm/VM.cpp 15 Jun 2007 15:00:31 -0000 1.10 @@ -1,3 +1,4 @@ +// VM.cpp: the Virtual Machine class, for Gnash // // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. // @@ -15,7 +16,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: VM.cpp,v 1.9 2007/05/28 15:41:10 ann Exp $ */ +/* $Id: VM.cpp,v 1.10 2007/06/15 15:00:31 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -147,6 +148,21 @@ return (tu_timer::get_ticks() - _start_time); } +void +VM::markReachableResources() const +{ +#ifdef GNASH_USE_GC + _root_movie->markReachableResources(); + _global->setReachable(); +#endif +} + +void +VmGcRoot::markReachableResources() const +{ + _vm.markReachableResources(); +} + } // end of namespace gnash Index: server/vm/VM.h =================================================================== RCS file: /sources/gnash/gnash/server/vm/VM.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- server/vm/VM.h 28 May 2007 15:41:10 -0000 1.10 +++ server/vm/VM.h 15 Jun 2007 15:00:31 -0000 1.11 @@ -1,3 +1,4 @@ +// VM.h: the Virtual Machine class, for Gnash // // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. // @@ -25,6 +26,7 @@ #include "smart_ptr.h" // for boost::intrusive_ptr #include "movie_root.h" // for composition #include "tu_types.h" // for uint64_t +#include "GC.h" // for ineritance of VmGcRoot #include // for auto_ptr #include @@ -37,6 +39,22 @@ namespace gnash { +/// A GC root used to mark all reachable collectable pointers +class VmGcRoot : public GcRoot +{ + VM& _vm; + +public: + + VmGcRoot(VM& vm) + : + _vm(vm) + { + } + + virtual void markReachableResources() const; +}; + /// The virtual machine // /// This is the machine that executes all actions in the @@ -59,7 +77,12 @@ /// class DSOEXPORT VM { + friend class VmGcRoot; + /// Use VM::get() to access the singleton + // + /// Initializes the GC singleton + /// VM(movie_definition& movie); /// Don't copy @@ -68,6 +91,8 @@ /// Don't assign VM& operator=(const VM&); + /// Should deinitialize the GC singleton + /// If it doesn't is just because it corrupts memory :) ~VM(); // We use an auto_ptr here to allow constructing @@ -161,6 +186,9 @@ /// Get the SWF locale to use std::locale& getLocale() const; + /// Mark all reachable resources (for GC) + void markReachableResources() const; + }; } // namespace gnash Index: utilities/processor.cpp =================================================================== RCS file: /sources/gnash/gnash/utilities/processor.cpp,v retrieving revision 1.58 retrieving revision 1.59 diff -u -b -r1.58 -r1.59 --- utilities/processor.cpp 1 Jun 2007 11:02:18 -0000 1.58 +++ utilities/processor.cpp 15 Jun 2007 15:00:31 -0000 1.59 @@ -135,6 +135,9 @@ { assert(tu_types_validate()); + /// Initialize gnash core library + gnashInit(); + // Enable native language support, i.e. internationalization setlocale (LC_MESSAGES, ""); bindtextdomain (PACKAGE, LOCALEDIR); From MAILER-DAEMON Fri Jun 15 14:16:45 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGLl-00029m-B3 for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 14:16:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGLj-000294-Fs for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:16:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGLh-00028s-KW for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:16:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGLh-00028p-EE for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:16:41 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzGLh-0003Pz-3p for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:16:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzGLY-00078Z-PN for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:16:32 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzGLY-00078V-Ir for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:16:32 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 18:16:32 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/GC.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:16:44 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 18:16:32 Modified files: . : ChangeLog Added files: libbase : GC.cpp Log message: Forgot to commit this one CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3547&r2=1.3548 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.cpp?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3547 retrieving revision 1.3548 diff -u -b -r1.3547 -r1.3548 --- ChangeLog 15 Jun 2007 15:00:25 -0000 1.3547 +++ ChangeLog 15 Jun 2007 18:16:31 -0000 1.3548 @@ -1,4 +1,6 @@ - * gui/Player.cpp, libbase/GC.h, libbase/Makefile.am, +2007-06-14 Sandro Santilli + + * gui/Player.cpp, libbase/GC.{h,cpp}, libbase/Makefile.am, libbase/ref_counted.h, libbase/smart_ptr.h, plugin/klash/klash.cpp, plugin/win32/plugin.cpp, server/GetterSetter.cpp, server/GetterSetter.h, Index: libbase/GC.cpp =================================================================== RCS file: libbase/GC.cpp diff -N libbase/GC.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ libbase/GC.cpp 15 Jun 2007 18:16:32 -0000 1.1 @@ -0,0 +1,57 @@ +// GC.h: Garbage Collector, for Gnash +// +// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +/* $Id: GC.cpp,v 1.1 2007/06/15 18:16:32 strk Exp $ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "GC.h" + + +namespace gnash { + +GC* GC::_singleton = NULL; + +GC& +GC::init(GcRoot& root) +{ + assert(!_singleton); + _singleton = new GC(root); + return *_singleton; +} + +GC& +GC::get() +{ + assert(_singleton); + return *_singleton; +} + +void +GC::cleanup() +{ + assert(_singleton); + delete _singleton; + _singleton = NULL; +} + +} // end of namespace gnash + + From MAILER-DAEMON Fri Jun 15 14:26:32 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGVE-0005KF-4s for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 14:26:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGVB-0005K6-JF for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:26:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGVA-0005Ju-5s for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:26:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGV9-0005Jr-TN for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:26:28 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzGV9-0004dx-Lc for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:26:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzGV8-000848-DR for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:26:27 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzGV8-000844-2H for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:26:26 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 18:26:26 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/triangulate_impl.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:26:30 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 18:26:25 Modified files: . : ChangeLog libbase : triangulate_impl.h Log message: * libbase/triangulate_impl.h (poly_env<>::init): don't use backslash to break strings (unneeded). See bug #20138. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3548&r2=1.3549 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/triangulate_impl.h?cvsroot=gnash&r1=1.23&r2=1.24 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3548 retrieving revision 1.3549 diff -u -b -r1.3548 -r1.3549 --- ChangeLog 15 Jun 2007 18:16:31 -0000 1.3548 +++ ChangeLog 15 Jun 2007 18:26:25 -0000 1.3549 @@ -1,5 +1,10 @@ 2007-06-14 Sandro Santilli + * libbase/triangulate_impl.h (poly_env<>::init): don't use + backslash to break strings (unneeded). See bug #20138. + +2007-06-14 Sandro Santilli + * gui/Player.cpp, libbase/GC.{h,cpp}, libbase/Makefile.am, libbase/ref_counted.h, libbase/smart_ptr.h, plugin/klash/klash.cpp, plugin/win32/plugin.cpp, Index: libbase/triangulate_impl.h =================================================================== RCS file: /sources/gnash/gnash/libbase/triangulate_impl.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- libbase/triangulate_impl.h 27 Apr 2007 07:51:33 -0000 1.23 +++ libbase/triangulate_impl.h 15 Jun 2007 18:26:25 -0000 1.24 @@ -24,7 +24,7 @@ // code, see the FIST web page at: // http://www.cosy.sbg.ac.at/~held/projects/triang/triang.html -/* $Id: triangulate_impl.h,v 1.23 2007/04/27 07:51:33 strk Exp $ */ +/* $Id: triangulate_impl.h,v 1.24 2007/06/15 18:26:25 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1878,7 +1878,7 @@ { // Bad input, odd number of coords. assert(0); - fprintf(stderr, "path[%d] has odd number of coords (" SIZET_FMT \ + fprintf(stderr, "path[%d] has odd number of coords (" SIZET_FMT "), dropping last value\n", i, path.size());//xxxx path_size--; } From MAILER-DAEMON Fri Jun 15 14:47:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGp9-0004HN-6a for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 14:47:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGp8-0004HI-7O for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:47:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGp4-0004H6-Gq for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:47:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGp4-0004H3-D3 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:47:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzGp3-0007JL-U3 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:47:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzGp2-0002aA-RX for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:47:00 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzGp2-0002a6-MH for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:47:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 18:47:00 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/Player.cpp gui/gnash.cpp se... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:47:06 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 18:47:00 Modified files: . : ChangeLog gui : Player.cpp gnash.cpp server : as_environment.cpp as_function.cpp as_value.cpp server/asobj : NetStream.cpp xml.cpp server/parser : shape_character_def.cpp server/vm : ActionExec.cpp Log message: Applied patch #5927. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3549&r2=1.3550 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Player.cpp?cvsroot=gnash&r1=1.55&r2=1.56 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gnash.cpp?cvsroot=gnash&r1=1.72&r2=1.73 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.cpp?cvsroot=gnash&r1=1.79&r2=1.80 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_function.cpp?cvsroot=gnash&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.cpp?cvsroot=gnash&r1=1.53&r2=1.54 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.63&r2=1.64 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xml.cpp?cvsroot=gnash&r1=1.42&r2=1.43 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.cpp?cvsroot=gnash&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ActionExec.cpp?cvsroot=gnash&r1=1.37&r2=1.38 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3549 retrieving revision 1.3550 diff -u -b -r1.3549 -r1.3550 --- ChangeLog 15 Jun 2007 18:26:25 -0000 1.3549 +++ ChangeLog 15 Jun 2007 18:46:58 -0000 1.3550 @@ -1,5 +1,13 @@ 2007-06-14 Sandro Santilli + * gui/Player.cpp, gui/gnash.cpp, server/as_environment.cpp, + server/as_function.cpp, server/as_value.cpp, + server/asobj/NetStream.cpp, server/asobj/xml.cpp, + server/parser/shape_character_def.cpp, server/vm/ActionExec.cpp: + Applied patch #5927. + +2007-06-14 Sandro Santilli + * libbase/triangulate_impl.h (poly_env<>::init): don't use backslash to break strings (unneeded). See bug #20138. Index: gui/Player.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/Player.cpp,v retrieving revision 1.55 retrieving revision 1.56 diff -u -b -r1.55 -r1.56 --- gui/Player.cpp 15 Jun 2007 15:00:26 -0000 1.55 +++ gui/Player.cpp 15 Jun 2007 18:46:59 -0000 1.56 @@ -311,15 +311,15 @@ float movie_fps = _movie_def->get_frame_rate(); if (!width) { - width = int(movie_width * scale); + width = size_t(movie_width * scale); } if (!height) { - height = int(movie_height * scale); + height = size_t(movie_height * scale); } if ( ! width || ! height ) { - log_error(_("Input movie has collapsed dimensions %d/%d. Giving up."), width, height); + log_error(_("Input movie has collapsed dimensions " SIZET_FMT "/" SIZET_FMT ". Giving up."), width, height); return EXIT_FAILURE; } Index: gui/gnash.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gnash.cpp,v retrieving revision 1.72 retrieving revision 1.73 diff -u -b -r1.72 -r1.73 --- gui/gnash.cpp 14 Jun 2007 16:08:16 -0000 1.72 +++ gui/gnash.cpp 15 Jun 2007 18:46:59 -0000 1.73 @@ -123,12 +123,12 @@ " CTRL-[ or kp- Step back one frame\n" " CTRL-] or kp+ Step forward one frame\n" " CTRL-B Toggle background color\n" -#if 0 +/* " CTRL-A Toggle antialiasing (doesn't work)\n" " CTRL-T Debug. Test the set_variable() function\n" " CTRL-G Debug. Test the get_variable() function\n" " CTRL-M Debug. Test the call_method() function\n" -#endif +*/ )); } Index: server/as_environment.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_environment.cpp,v retrieving revision 1.79 retrieving revision 1.80 diff -u -b -r1.79 -r1.80 --- server/as_environment.cpp 15 Jun 2007 15:00:27 -0000 1.79 +++ server/as_environment.cpp 15 Jun 2007 18:46:59 -0000 1.80 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: as_environment.cpp,v 1.79 2007/06/15 15:00:27 strk Exp $ */ +/* $Id: as_environment.cpp,v 1.80 2007/06/15 18:46:59 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -662,7 +662,7 @@ { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Member %s for object %p not found (dotsyntax). Path was %s"), - subpart.c_str(), env, path.c_str()); + subpart.c_str(), (void *)env, path.c_str()); ); return NULL; } @@ -671,7 +671,7 @@ { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Element '%s' of variable '%s' not found in object %p nor in _global (dotsyntax)"), - subpart.c_str(), path.c_str(), env); + subpart.c_str(), path.c_str(), (void *)env); ); return NULL; } @@ -682,7 +682,7 @@ IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Member %s of object %p doesn't cast to an Object (%s) " "evaluating target path %s (dotsyntax)"), - subpart.c_str(), env, tmp.to_debug_string().c_str(), path.c_str()); + subpart.c_str(), (void *)env, tmp.to_debug_string().c_str(), path.c_str()); ); return NULL; } @@ -779,7 +779,7 @@ if ( ! ch ) { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("'..' element in path '%s' follows a non-character object %p"), - path.c_str(), env); + path.c_str(), (void *)env); ); return NULL; } @@ -788,7 +788,7 @@ { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("'..' in path '%s' follows a character with no parent (%s : %p) (root is %p)"), - path.c_str(), ch->get_text_value().c_str(), ch, VM::get().getRoot().get_root_movie()); + path.c_str(), ch->get_text_value().c_str(), (void *)ch, (void *)VM::get().getRoot().get_root_movie()); ); // if we override env, getvariable.as fails [line 57] //env = ch; @@ -809,7 +809,7 @@ { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Member %s for object %p not found (slashsyntax). Path was %s"), - subpart.c_str(), env, path.c_str()); + subpart.c_str(), (void *)env, path.c_str()); ); return NULL; } @@ -818,7 +818,7 @@ { IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Element '%s' of variable '%s' not found in object %p nor in _global (slashsyntax)"), - subpart.c_str(), path.c_str(), env); + subpart.c_str(), path.c_str(), (void *)env); ); return NULL; } @@ -829,7 +829,7 @@ IF_VERBOSE_ASCODING_ERRORS( log_aserror(_("Member %s of object %p doesn't cast to an Object (%s) " "evaluating target path %s (slashsyntax)"), - subpart.c_str(), env, tmp.to_debug_string().c_str(), path.c_str()); + subpart.c_str(), (void *)env, tmp.to_debug_string().c_str(), path.c_str()); ); return NULL; } Index: server/as_function.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_function.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- server/as_function.cpp 15 Jun 2007 15:00:27 -0000 1.33 +++ server/as_function.cpp 15 Jun 2007 18:46:59 -0000 1.34 @@ -143,7 +143,7 @@ { log_debug(_("Exported interface of function %p " "has been overwritten (from %p to %p)"), - this, _properties.get(), + (void*)this, (void*)_properties.get(), (void*)proto.to_object().get()); _properties = proto.to_object(); } Index: server/as_value.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_value.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -u -b -r1.53 -r1.54 --- server/as_value.cpp 15 Jun 2007 15:00:28 -0000 1.53 +++ server/as_value.cpp 15 Jun 2007 18:46:59 -0000 1.54 @@ -822,10 +822,10 @@ sprintf(buf, "[bool:%s]", m_boolean_value ? "true" : "false"); return buf; case OBJECT: - sprintf(buf, "[object:%p]", m_object_value); + sprintf(buf, "[object:%p]", (void *)m_object_value); return buf; case AS_FUNCTION: - sprintf(buf, "[function:%p]", m_object_value); + sprintf(buf, "[function:%p]", (void *)m_object_value); return buf; case STRING: return "[string:" + m_string_value + "]"; Index: server/asobj/NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -u -b -r1.63 -r1.64 --- server/asobj/NetStream.cpp 3 Jun 2007 18:17:20 -0000 1.63 +++ server/asobj/NetStream.cpp 15 Jun 2007 18:46:59 -0000 1.64 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.63 2007/06/03 18:17:20 strk Exp $ */ +/* $Id: NetStream.cpp,v 1.64 2007/06/15 18:46:59 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -159,7 +159,7 @@ static as_value netstream_seek(const fn_call& fn) { boost::intrusive_ptr ns = ensureType(fn.this_ptr); - double time = 0; + uint32_t time = 0; if (fn.nargs > 0) { time = fn.arg(0).to_number(&fn.env()); Index: server/asobj/xml.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/xml.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -b -r1.42 -r1.43 --- server/asobj/xml.cpp 14 May 2007 16:24:44 -0000 1.42 +++ server/asobj/xml.cpp 15 Jun 2007 18:47:00 -0000 1.43 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: xml.cpp,v 1.42 2007/05/14 16:24:44 strk Exp $ */ +/* $Id: xml.cpp,v 1.43 2007/06/15 18:47:00 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -583,7 +583,7 @@ xml_obj = boost::dynamic_pointer_cast(obj); if ( xml_obj ) { - log_msg(_("\tCloned the XML object at %p"), xml_obj.get()); + log_msg(_("\tCloned the XML object at %p"), (void *)xml_obj.get()); return as_value(xml_obj->cloneNode(true).get()); } } Index: server/parser/shape_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/shape_character_def.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- server/parser/shape_character_def.cpp 24 May 2007 13:42:50 -0000 1.27 +++ server/parser/shape_character_def.cpp 15 Jun 2007 18:47:00 -0000 1.28 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: shape_character_def.cpp,v 1.27 2007/05/24 13:42:50 strk Exp $ */ +/* $Id: shape_character_def.cpp,v 1.28 2007/06/15 18:47:00 strk Exp $ */ // Based on the public domain shape.cpp of Thatcher Ulrich 2003 @@ -296,7 +296,7 @@ if ( style > m_fill_styles.size() ) // 1-based index { IF_VERBOSE_MALFORMED_SWF( - log_swferror(_("Invalid fill style %d in fillStyle0Change record - %u defined. Set to 0."), style, m_fill_styles.size()); + log_swferror(_("Invalid fill style %d in fillStyle0Change record - " SIZET_FMT " defined. Set to 0."), style, m_fill_styles.size()); ); style = 0; } @@ -339,7 +339,7 @@ if ( style > m_fill_styles.size() ) // 1-based index { IF_VERBOSE_MALFORMED_SWF( - log_swferror(_("Invalid fill style %d in fillStyle1Change record - %u defined. Set to 0."), style, m_fill_styles.size()); + log_swferror(_("Invalid fill style %d in fillStyle1Change record - " SIZET_FMT " defined. Set to 0."), style, m_fill_styles.size()); ); style = 0; } @@ -379,7 +379,7 @@ if ( style > m_line_styles.size() ) // 1-based index { IF_VERBOSE_MALFORMED_SWF( - log_swferror(_("Invalid fill style %d in lineStyleChange record - %u defined. Set to 0."), style, m_line_styles.size()); + log_swferror(_("Invalid fill style %d in lineStyleChange record - " SIZET_FMT " defined. Set to 0."), style, m_line_styles.size()); ); style = 0; } Index: server/vm/ActionExec.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ActionExec.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -b -r1.37 -r1.38 --- server/vm/ActionExec.cpp 1 Jun 2007 10:21:01 -0000 1.37 +++ server/vm/ActionExec.cpp 15 Jun 2007 18:47:00 -0000 1.38 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ActionExec.cpp,v 1.37 2007/06/01 10:21:01 strk Exp $ */ +/* $Id: ActionExec.cpp,v 1.38 2007/06/15 18:47:00 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -251,7 +251,7 @@ if ( ++branchCount > maxBranchCount ) { char buf[256]; - snprintf(buf, 255, _("Loop iterations count exceeded limit of %u"), + snprintf(buf, 255, _("Loop iterations count exceeded limit of " SIZET_FMT), maxBranchCount); throw ActionLimitException(buf); } From MAILER-DAEMON Fri Jun 15 14:51:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGt2-0005GM-7m for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 14:51:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGt0-0005Fa-DI for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:51:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGsz-0005FL-V9 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:51:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGsz-0005FI-Q7 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:51:05 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzGsz-0007oX-Ew for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:51:05 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzGsy-0002up-Tx for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:51:05 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzGsy-0002um-Q1 for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:51:04 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 18:51:04 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/BitmapMovieInstance.cpp ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:51:06 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 18:51:04 Modified files: . : ChangeLog server : BitmapMovieInstance.cpp server/asobj : NetStream.cpp Log message: * server/BitmapMovieInstance.cpp, server/asobj/NetStream.cpp: More warnings fixes. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3550&r2=1.3551 http://cvs.savannah.gnu.org/viewcvs/gnash/server/BitmapMovieInstance.cpp?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.64&r2=1.65 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3550 retrieving revision 1.3551 diff -u -b -r1.3550 -r1.3551 --- ChangeLog 15 Jun 2007 18:46:58 -0000 1.3550 +++ ChangeLog 15 Jun 2007 18:51:04 -0000 1.3551 @@ -1,5 +1,10 @@ 2007-06-14 Sandro Santilli + * server/BitmapMovieInstance.cpp, server/asobj/NetStream.cpp: + More warnings fixes. + +2007-06-14 Sandro Santilli + * gui/Player.cpp, gui/gnash.cpp, server/as_environment.cpp, server/as_function.cpp, server/as_value.cpp, server/asobj/NetStream.cpp, server/asobj/xml.cpp, Index: server/BitmapMovieInstance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/BitmapMovieInstance.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/BitmapMovieInstance.cpp 28 May 2007 15:41:04 -0000 1.8 +++ server/BitmapMovieInstance.cpp 15 Jun 2007 18:51:04 -0000 1.9 @@ -45,7 +45,7 @@ //log_msg("Created char in BitmapMovieInstance is a %s", typeid(*ch).name()); int depth = 1+character::staticDepthOffset; int clip_depth = character::noClipDepthValue; - place_character(ch.get(), depth, cxform(), mat, 1.0, clip_depth); + place_character(ch.get(), depth, cxform(), mat, 1, clip_depth); } Index: server/asobj/NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.64 retrieving revision 1.65 diff -u -b -r1.64 -r1.65 --- server/asobj/NetStream.cpp 15 Jun 2007 18:46:59 -0000 1.64 +++ server/asobj/NetStream.cpp 15 Jun 2007 18:51:04 -0000 1.65 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.64 2007/06/15 18:46:59 strk Exp $ */ +/* $Id: NetStream.cpp,v 1.65 2007/06/15 18:51:04 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -162,7 +162,7 @@ uint32_t time = 0; if (fn.nargs > 0) { - time = fn.arg(0).to_number(&fn.env()); + time = fn.arg(0).to_number(&fn.env()); } ns->seek(static_cast(time*1000.0)); From MAILER-DAEMON Fri Jun 15 14:52:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGtw-0005T7-Ea for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 14:52:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGtu-0005Se-MC for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:52:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGtu-0005SS-BE for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:52:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGtu-0005SP-47 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:52:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzGtt-0007u7-O4 for gnash-commit@gnu.org; Fri, 15 Jun 2007 14:52:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzGtt-0002zL-1s for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:52:01 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzGts-0002zI-QF for gnash-commit@gnu.org; Fri, 15 Jun 2007 18:52:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 18:52:00 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:52:02 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 18:52:00 Modified files: . : ChangeLog Log message: fixed patch #5927 attribution CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3551&r2=1.3552 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3551 retrieving revision 1.3552 diff -u -b -r1.3551 -r1.3552 --- ChangeLog 15 Jun 2007 18:51:04 -0000 1.3551 +++ ChangeLog 15 Jun 2007 18:52:00 -0000 1.3552 @@ -3,13 +3,13 @@ * server/BitmapMovieInstance.cpp, server/asobj/NetStream.cpp: More warnings fixes. -2007-06-14 Sandro Santilli +2007-06-14 Kris Jurka * gui/Player.cpp, gui/gnash.cpp, server/as_environment.cpp, server/as_function.cpp, server/as_value.cpp, server/asobj/NetStream.cpp, server/asobj/xml.cpp, server/parser/shape_character_def.cpp, server/vm/ActionExec.cpp: - Applied patch #5927. + Fix some compiler warnings. Applied patch #5927. 2007-06-14 Sandro Santilli From MAILER-DAEMON Fri Jun 15 16:58:58 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzIsj-0000q1-UW for mharc-gnash-commit@gnu.org; Fri, 15 Jun 2007 16:58:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzIsi-0000pR-8C for gnash-commit@gnu.org; Fri, 15 Jun 2007 16:58:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzIsg-0000oG-2J for gnash-commit@gnu.org; Fri, 15 Jun 2007 16:58:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzIsf-0000oD-VY for gnash-commit@gnu.org; Fri, 15 Jun 2007 16:58:54 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzIsf-0000jn-JI for gnash-commit@gnu.org; Fri, 15 Jun 2007 16:58:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzIsf-0006aS-1v for gnash-commit@gnu.org; Fri, 15 Jun 2007 20:58:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzIse-0006aP-Sr for gnash-commit@gnu.org; Fri, 15 Jun 2007 20:58:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 15 Jun 2007 20:58:52 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp serv... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 20:58:56 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/15 20:58:52 Modified files: . : ChangeLog server : sprite_instance.cpp sprite_instance.h Log message: * server/sprite_instance.{cpp,h} (markReachableResources): Mark the drawable canvas as reachable ! This fixes the empty movie case (no segfault) and also the 2-frames simple leaking case reported by UdoG a long time ago (first frame contains an empty function definition, second frame is empty). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3552&r2=1.3553 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.287&r2=1.288 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.119&r2=1.120 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3552 retrieving revision 1.3553 diff -u -b -r1.3552 -r1.3553 --- ChangeLog 15 Jun 2007 18:52:00 -0000 1.3552 +++ ChangeLog 15 Jun 2007 20:58:51 -0000 1.3553 @@ -1,5 +1,14 @@ 2007-06-14 Sandro Santilli + * server/sprite_instance.{cpp,h} (markReachableResources): + Mark the drawable canvas as reachable ! + This fixes the empty movie case (no segfault) and also + the 2-frames simple leaking case reported by UdoG a long + time ago (first frame contains an empty function definition, + second frame is empty). + +2007-06-14 Sandro Santilli + * server/BitmapMovieInstance.cpp, server/asobj/NetStream.cpp: More warnings fixes. Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.287 retrieving revision 1.288 diff -u -b -r1.287 -r1.288 --- server/sprite_instance.cpp 15 Jun 2007 15:00:30 -0000 1.287 +++ server/sprite_instance.cpp 15 Jun 2007 20:58:52 -0000 1.288 @@ -4002,6 +4002,8 @@ oldDisplayList.visitAll(marker); + _drawable->setReachable(); + _drawable_inst->setReachable(); m_as_environment.markReachableResources(); Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.119 retrieving revision 1.120 diff -u -b -r1.119 -r1.120 --- server/sprite_instance.h 15 Jun 2007 15:00:30 -0000 1.119 +++ server/sprite_instance.h 15 Jun 2007 20:58:52 -0000 1.120 @@ -1,3 +1,4 @@ +// sprite_instance.h: Stateful live Sprite instance, for Gnash. // // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. // @@ -989,7 +990,8 @@ // /// sprite-specific reachable resources are: /// - DisplayList items (both current and backup one) - /// - Drawable instance + /// - Canvas for dynamic drawing (_drawable) + /// - Drawable instance (_drawable_inst) /// - sprite environment /// virtual void markReachableResources() const; From MAILER-DAEMON Sat Jun 16 02:30:37 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzRnx-0000qs-Eb for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 02:30:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzRnv-0000q9-4t for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:30:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzRnu-0000pl-4R for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:30:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzRnt-0000pi-Vm for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:30:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzRnt-0004mt-DZ for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:30:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzRnr-000396-0P for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:30:31 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzRnq-000390-Qg for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:30:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 06:30:30 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/button_character_instanc... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 06:30:35 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 06:30:30 Modified files: . : ChangeLog server : button_character_instance.cpp button_character_instance.h font.cpp font.h generic_character.h Log message: * server/button_character_instance.{cpp,h}: implement markReachableResources to properly mark the state characters and the character definition. * server/font.{cpp,h}: make texture_glyph a concrete class, no more managed. * server/generic_character.h: implement markReachableResources to properly mark the character definition. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3553&r2=1.3554 http://cvs.savannah.gnu.org/viewcvs/gnash/server/button_character_instance.cpp?cvsroot=gnash&r1=1.49&r2=1.50 http://cvs.savannah.gnu.org/viewcvs/gnash/server/button_character_instance.h?cvsroot=gnash&r1=1.21&r2=1.22 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.cpp?cvsroot=gnash&r1=1.39&r2=1.40 http://cvs.savannah.gnu.org/viewcvs/gnash/server/font.h?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/server/generic_character.h?cvsroot=gnash&r1=1.23&r2=1.24 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3553 retrieving revision 1.3554 diff -u -b -r1.3553 -r1.3554 --- ChangeLog 15 Jun 2007 20:58:51 -0000 1.3553 +++ ChangeLog 16 Jun 2007 06:30:28 -0000 1.3554 @@ -1,3 +1,13 @@ +2007-06-16 Sandro Santilli + + * server/button_character_instance.{cpp,h}: implement + markReachableResources to properly mark the state characters + and the character definition. + * server/font.{cpp,h}: make texture_glyph a concrete class, no + more managed. + * server/generic_character.h: implement markReachableResources to + properly mark the character definition. + 2007-06-14 Sandro Santilli * server/sprite_instance.{cpp,h} (markReachableResources): Index: server/button_character_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/button_character_instance.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -u -b -r1.49 -r1.50 --- server/button_character_instance.cpp 8 Jun 2007 12:11:49 -0000 1.49 +++ server/button_character_instance.cpp 16 Jun 2007 06:30:29 -0000 1.50 @@ -897,6 +897,26 @@ // We'll not call it here.. } +#ifdef GNASH_USE_GC +void +button_character_instance::markReachableResources() const +{ + assert(isReachable()); + + m_def->setReachable(); + + // Markstate characters as reachable + for (CharsVect::const_iterator i=m_record_character.begin(), e=m_record_character.end(); + i!=e; ++i) + { + (*i)->setReachable(); + } + + // character class members + markCharacterReachable(); +} +#endif // GNASH_USE_GC + } // end of namespace gnash Index: server/button_character_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/button_character_instance.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- server/button_character_instance.h 28 May 2007 15:41:05 -0000 1.21 +++ server/button_character_instance.h 16 Jun 2007 06:30:29 -0000 1.22 @@ -21,7 +21,7 @@ // SWF buttons. Mouse-sensitive update/display, actions, etc. -/* $Id: button_character_instance.h,v 1.21 2007/05/28 15:41:05 ann Exp $ */ +/* $Id: button_character_instance.h,v 1.22 2007/06/16 06:30:29 strk Exp $ */ #ifndef GNASH_BUTTON_CHARACTER_INSTANCE_H #define GNASH_BUTTON_CHARACTER_INSTANCE_H @@ -55,7 +55,10 @@ { public: button_character_definition* m_def; - std::vector< boost::intrusive_ptr > m_record_character; + + typedef std::vector< boost::intrusive_ptr > CharsVect; + + CharsVect m_record_character; enum mouse_flags { @@ -148,6 +151,18 @@ /// Properly initialize instance names for contained sprites virtual void construct(); +protected: + +#ifdef GNASH_USE_GC + /// Mark reachabe resources (for the GC) + // + /// These are: + /// - this char's definition (m_def) + /// - the vector of state characters (m_record_character) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC + private: bool m_enabled; Index: server/font.cpp =================================================================== RCS file: /sources/gnash/gnash/server/font.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -u -b -r1.39 -r1.40 --- server/font.cpp 15 Jun 2007 15:00:29 -0000 1.39 +++ server/font.cpp 16 Jun 2007 06:30:29 -0000 1.40 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: font.cpp,v 1.39 2007/06/15 15:00:29 strk Exp $ */ +/* $Id: font.cpp,v 1.40 2007/06/16 06:30:29 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -630,7 +630,7 @@ // Mark textured glyphs for (TextureGlyphVect::const_iterator i=m_texture_glyphs.begin(), e=m_texture_glyphs.end(); i!=e; ++i) { - i->setReachable(); + i->markReachableResources(); } // Mark vector glyphs Index: server/font.h =================================================================== RCS file: /sources/gnash/gnash/server/font.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- server/font.h 15 Jun 2007 15:00:29 -0000 1.24 +++ server/font.h 16 Jun 2007 06:30:29 -0000 1.25 @@ -34,7 +34,7 @@ /// class for holding (cached) textured glyph info. - class texture_glyph : public ref_counted + class texture_glyph // : public ref_counted { public: @@ -57,6 +57,15 @@ m_bitmap_info = bi; } +#ifdef GNASH_USE_GC + /// Mark the contained bitmap info as being reachable + void markReachableResources() const + { + if ( m_bitmap_info.get() ) m_bitmap_info->setReachable(); + } +#endif + + // too early to make these private, fontlib directly accesses // them, postponed. //private: @@ -67,15 +76,6 @@ // the origin of the glyph box, in uv coords point m_uv_origin; - protected: - -#ifdef GNASH_USE_GC - /// Mark the contained bitmap info as being reachable - void markReachableResources() const - { - if ( m_bitmap_info.get() ) m_bitmap_info->setReachable(); - } -#endif }; Index: server/generic_character.h =================================================================== RCS file: /sources/gnash/gnash/server/generic_character.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -b -r1.23 -r1.24 --- server/generic_character.h 28 May 2007 15:41:06 -0000 1.23 +++ server/generic_character.h 16 Jun 2007 06:30:29 -0000 1.24 @@ -48,6 +48,21 @@ boost::intrusive_ptr m_def; +#ifdef GNASH_USE_GC + /// Mark reachabe resources (for the GC) + // + /// These are: + /// - this char's definition (m_def) + /// + void markReachableResources() const + { + assert(isReachable()); + m_def->setReachable(); + + markCharacterReachable(); + } +#endif // GNASH_USE_GC + public: generic_character(character_def* def, character* parent, int id) From MAILER-DAEMON Sat Jun 16 02:56:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzSCZ-0001DK-E4 for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzSCX-0001DF-RX for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzSCW-0001D3-Ak for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzSCW-0001D0-5a for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:00 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzSCV-00079c-PB for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:55:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzSCU-0006DK-M3 for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:55:58 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzSCU-0006DG-Ev for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:55:58 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 06:55:58 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash server/parser/movie_def_impl.cpp server/p... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 06:56:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 06:55:58 Modified files: server/parser : movie_def_impl.cpp movie_def_impl.h testsuite : MovieTester.cpp Log message: With this commit, sample/clip_as_button2.swf runs w/out memory faults in the GC model. * server/parser/movie_def_impl.{cpp,h} (markReachableResources): Set CharacterDictionary items as reachable ! (BTW, why are character defs managed pointers ?!) * testsuite/MovieTester.cpp: initialize gnash code lib so to work with GC on. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.cpp?cvsroot=gnash&r1=1.72&r2=1.73 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.h?cvsroot=gnash&r1=1.44&r2=1.45 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.43&r2=1.44 Patches: Index: server/parser/movie_def_impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.cpp,v retrieving revision 1.72 retrieving revision 1.73 diff -u -b -r1.72 -r1.73 --- server/parser/movie_def_impl.cpp 15 Jun 2007 15:00:31 -0000 1.72 +++ server/parser/movie_def_impl.cpp 16 Jun 2007 06:55:56 -0000 1.73 @@ -1141,6 +1141,9 @@ { (*i)->setReachable(); } + + _dictionary.markReachableResources(); + } #endif // GNASH_USE_GC Index: server/parser/movie_def_impl.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.h,v retrieving revision 1.44 retrieving revision 1.45 diff -u -b -r1.44 -r1.45 --- server/parser/movie_def_impl.h 15 Jun 2007 15:00:31 -0000 1.44 +++ server/parser/movie_def_impl.h 16 Jun 2007 06:55:57 -0000 1.45 @@ -166,6 +166,18 @@ /// Dump content of the dictionary (debugging only) void dump_chars(void) const; + +#ifdef GNASH_USE_GC + /// Mark all dictionary items to be reachable (for GC) + void markReachableResources() const + { + for(const_iterator i=_map.begin(), e=_map.end(); i!=e; ++i) + { + i->second->setReachable(); + } + } +#endif // GNASH_USE_GC + private: container _map; @@ -639,6 +651,7 @@ /// - sound samples (m_sound_samples) /// - exports (m_exports) /// - imported movies (m_import_source_movies) + /// - character dictionary (_dictionary) /// /// TODO: do we really need all this stuff to be a GcResource ?? /// Index: testsuite/MovieTester.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- testsuite/MovieTester.cpp 7 Jun 2007 14:50:34 -0000 1.43 +++ testsuite/MovieTester.cpp 16 Jun 2007 06:55:57 -0000 1.44 @@ -55,6 +55,10 @@ : _forceRedraw(true) { + + // Initialize gnash code lib + gnashInit(); + if ( url == "-" ) { std::auto_ptr in ( From MAILER-DAEMON Sat Jun 16 02:56:40 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzSDA-0001Mg-IW for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzSD9-0001MR-SW for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzSD7-0001ME-Fg for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzSD7-0001MB-Ap for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzSD6-0007CF-Tx for gnash-commit@gnu.org; Sat, 16 Jun 2007 02:56:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzSD6-0006GT-CF for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:56:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzSD6-0006GQ-7Y for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:56:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 06:56:36 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 06:56:40 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 06:56:36 Modified files: . : ChangeLog Log message: ops, forgot to commit this one CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3554&r2=1.3555 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3554 retrieving revision 1.3555 diff -u -b -r1.3554 -r1.3555 --- ChangeLog 16 Jun 2007 06:30:28 -0000 1.3554 +++ ChangeLog 16 Jun 2007 06:56:35 -0000 1.3555 @@ -1,5 +1,13 @@ 2007-06-16 Sandro Santilli + * server/parser/movie_def_impl.{cpp,h} (markReachableResources): + Set CharacterDictionary items as reachable ! + (BTW, why are character defs managed pointers ?!) + * testsuite/MovieTester.cpp: initialize gnash code lib so + to work with GC on. + +2007-06-16 Sandro Santilli + * server/button_character_instance.{cpp,h}: implement markReachableResources to properly mark the state characters and the character definition. From MAILER-DAEMON Sat Jun 16 03:37:58 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzSr8-0007Ei-9U for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 03:37:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzSr6-0007Bh-Mi for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:37:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzSr6-0007Ax-5Y for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:37:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzSr5-0007Am-TQ for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:37:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzSr5-0003ry-H6 for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:37:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzSr4-0001DS-2u for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:37:54 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzSr3-0001DM-C9 for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:37:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 07:37:53 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/server/DisplayListTes... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 07:37:56 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 07:37:53 Modified files: . : ChangeLog testsuite/server: DisplayListTest.cpp GetterSetterTest.cpp PropertyListTest.cpp Log message: * testsuite/server/: DisplayListTest.cpp, GetterSetterTest.cpp, PropertyListTest.cpp: initialize gnash lib. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3555&r2=1.3556 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/DisplayListTest.cpp?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/GetterSetterTest.cpp?cvsroot=gnash&r1=1.12&r2=1.13 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/PropertyListTest.cpp?cvsroot=gnash&r1=1.14&r2=1.15 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3555 retrieving revision 1.3556 diff -u -b -r1.3555 -r1.3556 --- ChangeLog 16 Jun 2007 06:56:35 -0000 1.3555 +++ ChangeLog 16 Jun 2007 07:37:51 -0000 1.3556 @@ -1,5 +1,10 @@ 2007-06-16 Sandro Santilli + * testsuite/server/: DisplayListTest.cpp, GetterSetterTest.cpp, + PropertyListTest.cpp: initialize gnash lib. + +2007-06-16 Sandro Santilli + * server/parser/movie_def_impl.{cpp,h} (markReachableResources): Set CharacterDictionary items as reachable ! (BTW, why are character defs managed pointers ?!) Index: testsuite/server/DisplayListTest.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/server/DisplayListTest.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/server/DisplayListTest.cpp 14 Jun 2007 02:03:19 -0000 1.5 +++ testsuite/server/DisplayListTest.cpp 16 Jun 2007 07:37:52 -0000 1.6 @@ -48,6 +48,9 @@ gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); dbglogfile.setVerbosity(); + // Initialize gnash lib + gnashInit(); + // Initialize a VM boost::intrusive_ptr md5 ( new DummyMovieDefinition(5) ); boost::intrusive_ptr md6 ( new DummyMovieDefinition(6) ); Index: testsuite/server/GetterSetterTest.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/server/GetterSetterTest.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- testsuite/server/GetterSetterTest.cpp 28 May 2007 15:41:13 -0000 1.12 +++ testsuite/server/GetterSetterTest.cpp 16 Jun 2007 07:37:52 -0000 1.13 @@ -83,6 +83,9 @@ gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); dbglogfile.setVerbosity(); + // Initialize gnash lib + gnashInit(); + boost::intrusive_ptr md6 ( new DummyMovieDefinition(6) ); VM::init(*md6); Index: testsuite/server/PropertyListTest.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/server/PropertyListTest.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- testsuite/server/PropertyListTest.cpp 28 May 2007 15:41:13 -0000 1.14 +++ testsuite/server/PropertyListTest.cpp 16 Jun 2007 07:37:52 -0000 1.15 @@ -45,6 +45,9 @@ gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); dbglogfile.setVerbosity(); + // Initialize gnash lib + gnashInit(); + boost::intrusive_ptr md5 ( new DummyMovieDefinition(5) ); boost::intrusive_ptr md6 ( new DummyMovieDefinition(6) ); From MAILER-DAEMON Sat Jun 16 03:59:25 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzTBt-0005E2-I9 for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 03:59:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzTBr-0005Dk-Ej for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:59:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzTBp-0005DX-UC for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:59:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzTBp-0005DU-QF for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:59:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzTBp-0006iw-GF for gnash-commit@gnu.org; Sat, 16 Jun 2007 03:59:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzTBo-0003Y9-Ei for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:59:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzTBo-0003Y4-8x for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:59:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 07:59:20 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/libbase ref_counted.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 07:59:23 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 07:59:20 Modified files: libbase : ref_counted.h Log message: Do not define GNASH_GC_DEBUG here, its official locateion in GC.h CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/ref_counted.h?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: ref_counted.h =================================================================== RCS file: /sources/gnash/gnash/libbase/ref_counted.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- ref_counted.h 15 Jun 2007 15:00:26 -0000 1.7 +++ ref_counted.h 16 Jun 2007 07:59:19 -0000 1.8 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: ref_counted.h,v 1.7 2007/06/15 15:00:26 strk Exp $ */ +/* $Id: ref_counted.h,v 1.8 2007/06/16 07:59:19 strk Exp $ */ #ifndef GNASH_REF_COUNTED_H #define GNASH_REF_COUNTED_H @@ -27,9 +27,6 @@ #include "container.h" #include "smart_ptr.h" -// Define the following macro to enable GC verbosity -#define GNASH_GC_DEBUG 1 - #ifdef GNASH_USE_GC # include "GC.h" # ifdef GNASH_GC_DEBUG From MAILER-DAEMON Sat Jun 16 04:15:59 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzTRu-0002un-RJ for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 04:15:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzTRs-0002uZ-Ke for gnash-commit@gnu.org; Sat, 16 Jun 2007 04:15:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzTRr-0002uN-Vd for gnash-commit@gnu.org; Sat, 16 Jun 2007 04:15:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzTRr-0002uK-Nv for gnash-commit@gnu.org; Sat, 16 Jun 2007 04:15:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzTRr-0000ui-Fr for gnash-commit@gnu.org; Sat, 16 Jun 2007 04:15:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzTRp-0004k9-Cc for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:15:53 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzTRp-0004k3-2f for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:15:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 08:15:53 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/libbase GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 08:15:56 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 08:15:52 Modified files: libbase : GC.h Log message: Protect last debugging message by the GNASH_GC_DEBUG macro CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- GC.h 15 Jun 2007 15:00:26 -0000 1.2 +++ GC.h 16 Jun 2007 08:15:52 -0000 1.3 @@ -276,7 +276,9 @@ /// Mark all reachable resources void markReachable() { +#ifdef GNASH_GC_DEBUG log_debug(_("GC %p: MARK SCAN"), (void*)this); +#endif _root.markReachableResources(); } From MAILER-DAEMON Sat Jun 16 05:07:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzUFw-00053d-Qs for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 05:07:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzUFv-00053Y-9V for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:07:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzUFt-00053M-Dw for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:07:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzUFt-00053J-6P for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:07:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzUFs-0007Jt-MJ for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:07:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzUFs-0001wc-8U for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:07:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzUFs-0001wY-0R for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:07:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 09:07:36 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStream.h server... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 09:07:39 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 09:07:35 Modified files: . : ChangeLog server/asobj : NetStream.h gen-asclass.sh LoadVars.cpp libbase : GC.h server : timers.cpp timers.h movie_root.cpp movie_root.h Log message: This commit fixes NetStream-SquareTestRunner and LoadVars.as segfaults * server/asobj/NetStream.h: implement markReachableResources. * server/asobj/gen-asclass.sh: updated template to include a sample of a markReachableResources implementation. * server/asobj/LoadVars.cpp: implement markReachableResources to properly mark event handlers and environment resources. * libbase/GC.h: don't be verbose about objects being marked, classes not overriding markReachableResources and collectables registered unless GNASH_GC_DEBUG > 1 * server/timers.{cpp,h}: provide a markReachableResources to mark function, target objet and args. * server/movie_root.{cpp,h} (markReachableResources): mark Timers resources as being reachable; document what's marked in the function declaration documentation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3556&r2=1.3557 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.h?cvsroot=gnash&r1=1.45&r2=1.46 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/gen-asclass.sh?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/LoadVars.cpp?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/server/timers.cpp?cvsroot=gnash&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/gnash/server/timers.h?cvsroot=gnash&r1=1.21&r2=1.22 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.66&r2=1.67 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.h?cvsroot=gnash&r1=1.57&r2=1.58 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3556 retrieving revision 1.3557 diff -u -b -r1.3556 -r1.3557 --- ChangeLog 16 Jun 2007 07:37:51 -0000 1.3556 +++ ChangeLog 16 Jun 2007 09:07:33 -0000 1.3557 @@ -1,5 +1,21 @@ 2007-06-16 Sandro Santilli + * server/asobj/NetStream.h: implement markReachableResources. + * server/asobj/gen-asclass.sh: updated template to include + a sample of a markReachableResources implementation. + * server/asobj/LoadVars.cpp: implement markReachableResources + to properly mark event handlers and environment resources. + * libbase/GC.h: don't be verbose about objects being marked, + classes not overriding markReachableResources and collectables + registered unless GNASH_GC_DEBUG > 1 + * server/timers.{cpp,h}: provide a markReachableResources to mark + function, target objet and args. + * server/movie_root.{cpp,h} (markReachableResources): mark Timers + resources as being reachable; document what's marked in the function + declaration documentation. + +2007-06-16 Sandro Santilli + * testsuite/server/: DisplayListTest.cpp, GetterSetterTest.cpp, PropertyListTest.cpp: initialize gnash lib. Index: server/asobj/NetStream.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -b -r1.45 -r1.46 --- server/asobj/NetStream.h 1 Jun 2007 11:53:19 -0000 1.45 +++ server/asobj/NetStream.h 16 Jun 2007 09:07:34 -0000 1.46 @@ -19,7 +19,7 @@ // // -/* $Id: NetStream.h,v 1.45 2007/06/01 11:53:19 strk Exp $ */ +/* $Id: NetStream.h,v 1.46 2007/06/16 09:07:34 strk Exp $ */ #ifndef __NETSTREAM_H__ #define __NETSTREAM_H__ @@ -166,6 +166,17 @@ // The position in the inputfile, only used when not playing a FLV long inputPos; +#ifdef GNASH_USE_GC + /// Mark all reachable resources of a NetStream, for the GC + // + /// Reachable resources are: + /// - associated NetConnection object (_netCon) + /// - onStatus event handler (m_statusHandler) + /// + virtual void markReachableResources() const; + +#endif // GNASH_USE_GC + public: NetStream(); Index: server/asobj/gen-asclass.sh =================================================================== RCS file: /sources/gnash/gnash/server/asobj/gen-asclass.sh,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- server/asobj/gen-asclass.sh 26 Apr 2007 07:00:29 -0000 1.13 +++ server/asobj/gen-asclass.sh 16 Jun 2007 09:07:34 -0000 1.14 @@ -200,6 +200,20 @@ // override from as_object ? //double get_numeric_value() const { return 0; } + +protected: + + // override from as_object if storing GC resources beside + // the proper propertyes + //void markReachableResources() const + //{ + // // Call setReachable on any stored GcResource member + // // and equivalent functions for containers of GcResources + // // (tipically named markReachableResources) + // + // // invoke general as_object marker + // markAsObjectReachable(); + //} }; EOF Index: server/asobj/LoadVars.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/LoadVars.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- server/asobj/LoadVars.cpp 26 Apr 2007 07:00:29 -0000 1.24 +++ server/asobj/LoadVars.cpp 16 Jun 2007 09:07:34 -0000 1.25 @@ -120,6 +120,31 @@ return _loaded; } +protected: + +#ifdef GNASH_USE_GC + /// Mark all reachable resources, for the GC + // + /// Reachable resources are: + /// - onLoad event handler (_onLoad) + /// - onData event handler (_onLoad) + /// - associated environment (_env) + /// + virtual void markReachableResources() const + { + + if ( _onLoad ) _onLoad->setReachable(); + + if ( _onData ) _onData->setReachable(); + + if ( _env ) _env->markReachableResources(); + + // Invoke generic as_object marker + markAsObjectReachable(); + } + +#endif // GNASH_USE_GC + private: /// Forbid copy Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- libbase/GC.h 16 Jun 2007 08:15:52 -0000 1.3 +++ libbase/GC.h 16 Jun 2007 09:07:34 -0000 1.4 @@ -100,7 +100,7 @@ return; } -#ifdef GNASH_GC_DEBUG +#if GNASH_GC_DEBUG > 1 log_debug(_("Instance %p of class %s set to reachable, scanning reachable resources from it"), (void*)this, typeid(*this).name()); #endif @@ -134,7 +134,7 @@ virtual void markReachableResources() const { assert(_reachable); -#ifdef GNASH_GC_DEBUG +#if GNASH_GC_DEBUG > 1 log_debug(_("Class %s didn't override the markReachableResources() method"), typeid(*this).name()); #endif } @@ -215,7 +215,7 @@ assert(std::find(_resList.begin(), _resList.end(), item) == _resList.end()); _resList.push_back(item); -#ifdef GNASH_GC_DEBUG +#if GNASH_GC_DEBUG > 1 log_debug(_("GC %p: collectable %p added, num collectables: " SIZET_FMT), (void*)this, (void*)item, _resList.size()); #endif } Index: server/timers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/timers.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- server/timers.cpp 4 Jun 2007 08:10:27 -0000 1.33 +++ server/timers.cpp 16 Jun 2007 09:07:34 -0000 1.34 @@ -19,7 +19,7 @@ // // -/* $Id: timers.cpp,v 1.33 2007/06/04 08:10:27 strk Exp $ */ +/* $Id: timers.cpp,v 1.34 2007/06/16 09:07:34 strk Exp $ */ #include "timers.h" #include "as_function.h" // for class as_function @@ -133,6 +133,21 @@ } +#ifdef GNASH_USE_GC +void +Timer::markReachableResources() const +{ + for (ArgsContainer::const_iterator i=_args.begin(), e=_args.end(); + i!=e; ++i) + { + i->setReachable(); + } + + if ( _function ) _function->setReachable(); + if ( _object ) _object->setReachable(); +} +#endif // GNASH_USE_GC + // TODO: move to Global.cpp as_value timer_setinterval(const fn_call& fn) Index: server/timers.h =================================================================== RCS file: /sources/gnash/gnash/server/timers.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- server/timers.h 28 May 2007 15:41:07 -0000 1.21 +++ server/timers.h 16 Jun 2007 09:07:35 -0000 1.22 @@ -134,6 +134,17 @@ /// Arguments list type typedef std::vector ArgsContainer; +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Resources reachable from Timer are: + /// + /// - Arguments list (_args) + /// - Associated function (_function) + /// - Target object (_object) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC private: Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.66 retrieving revision 1.67 diff -u -b -r1.66 -r1.67 --- server/movie_root.cpp 15 Jun 2007 15:00:30 -0000 1.66 +++ server/movie_root.cpp 16 Jun 2007 09:07:35 -0000 1.67 @@ -1027,6 +1027,12 @@ // Mark mouse entities m_mouse_button_state.markReachableResources(); + // Mark timer targets + for (TimerList::const_iterator i=_intervalTimers.begin(), e=_intervalTimers.end(); + i != e; ++i) + { + i->markReachableResources(); + } } #endif // GNASH_USE_GC Index: server/movie_root.h =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.h,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- server/movie_root.h 15 Jun 2007 15:00:30 -0000 1.57 +++ server/movie_root.h 16 Jun 2007 09:07:35 -0000 1.58 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: movie_root.h,v 1.57 2007/06/15 15:00:30 strk Exp $ */ +/* $Id: movie_root.h,v 1.58 2007/06/16 09:07:35 strk Exp $ */ /// \page events_handling Handling of user events /// @@ -441,6 +441,13 @@ #ifdef GNASH_USE_GC /// Mark all reachable resources (for GC) + // + /// Resources reachable from movie_root are: + /// + /// - All _level# movies (_movie) + /// - Mouse entities (m_mouse_button_state) + /// - Timer targets (_intervalTimers) + /// void markReachableResources() const; #endif // GNASH_USE_GC From MAILER-DAEMON Sat Jun 16 05:08:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzUGb-0005Gi-2f for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 05:08:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzUGZ-0005Gd-3j for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:08:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzUGY-0005GR-Dc for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:08:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzUGY-0005GO-57 for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:08:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzUGX-0007Nb-Qg for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:08:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzUGX-00020i-Cd for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:08:17 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzUGX-00020f-8K for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:08:17 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 09:08:17 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/asobj/NetStream.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 09:08:19 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 09:08:17 Modified files: . : ChangeLog server/asobj : NetStream.cpp Log message: ops, forgot NetStream.cpp CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3557&r2=1.3558 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.65&r2=1.66 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3557 retrieving revision 1.3558 diff -u -b -r1.3557 -r1.3558 --- ChangeLog 16 Jun 2007 09:07:33 -0000 1.3557 +++ ChangeLog 16 Jun 2007 09:08:15 -0000 1.3558 @@ -1,6 +1,6 @@ 2007-06-16 Sandro Santilli - * server/asobj/NetStream.h: implement markReachableResources. + * server/asobj/NetStream.{h,cpp}: implement markReachableResources. * server/asobj/gen-asclass.sh: updated template to include a sample of a markReachableResources implementation. * server/asobj/LoadVars.cpp: implement markReachableResources Index: server/asobj/NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.65 retrieving revision 1.66 diff -u -b -r1.65 -r1.66 --- server/asobj/NetStream.cpp 15 Jun 2007 18:51:04 -0000 1.65 +++ server/asobj/NetStream.cpp 16 Jun 2007 09:08:16 -0000 1.66 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.65 2007/06/15 18:51:04 strk Exp $ */ +/* $Id: NetStream.cpp,v 1.66 2007/06/16 09:08:16 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -461,6 +461,12 @@ return; } + size_t initialStackSize = m_env->stack_size(); + if ( initialStackSize > 0 ) + { + log_debug("NetStream environment stack not empty at start of processStatusNotifications"); + } + StatusCode code; while (1) { @@ -476,6 +482,14 @@ m_env->push_val(as_value(o.get())); call_method(status, m_env, this, 1, m_env->get_top_index() ); + + } + + // clear the stack after method execution + if ( m_env->stack_size() > initialStackSize ) + { + log_debug("NetStream environment stack not empty at end of processStatusNotifications"); + m_env->drop(m_env->stack_size() - initialStackSize); } @@ -628,5 +642,16 @@ _statusQueue.clear(); } +void +NetStream::markReachableResources() const +{ + + if ( _netCon ) _netCon->setReachable(); + + if ( m_statusHandler ) m_statusHandler->setReachable(); + + // Invoke generic as_object marker + markAsObjectReachable(); +} } // end of gnash namespace From MAILER-DAEMON Sat Jun 16 05:17:43 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzUPf-0007v5-HX for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 05:17:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzUPd-0007ux-5c for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:17:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzUPb-0007ul-JX for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:17:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzUPb-0007ui-Aw for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:17:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzUPb-0008R1-2Z for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:17:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzUPa-0002iL-1p for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:17:38 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzUPY-0002i7-97 for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:17:36 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 09:17:36 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash libbase/GC.h ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 09:17:41 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 09:17:35 Modified files: libbase : GC.h . : ChangeLog Log message: Don't report deletion as they occure if GNASH_GC_DEBUG < 2 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3558&r2=1.3559 Patches: Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- libbase/GC.h 16 Jun 2007 09:07:34 -0000 1.4 +++ libbase/GC.h 16 Jun 2007 09:17:34 -0000 1.5 @@ -294,7 +294,7 @@ const GcResource* res = *i; if ( ! res->isReachable() ) { -#ifdef GNASH_GC_DEBUG +#if GNASH_GC_DEBUG > 1 log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), (void*)this, (void*)res, typeid(*res).name()); ++deleted; Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3558 retrieving revision 1.3559 diff -u -b -r1.3558 -r1.3559 --- ChangeLog 16 Jun 2007 09:08:15 -0000 1.3558 +++ ChangeLog 16 Jun 2007 09:17:34 -0000 1.3559 @@ -6,8 +6,8 @@ * server/asobj/LoadVars.cpp: implement markReachableResources to properly mark event handlers and environment resources. * libbase/GC.h: don't be verbose about objects being marked, - classes not overriding markReachableResources and collectables - registered unless GNASH_GC_DEBUG > 1 + classes not overriding markReachableResources, collectables + registered and deleted unless GNASH_GC_DEBUG > 1 * server/timers.{cpp,h}: provide a markReachableResources to mark function, target objet and args. * server/movie_root.{cpp,h} (markReachableResources): mark Timers From MAILER-DAEMON Sat Jun 16 05:55:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzUzo-0004vJ-5D for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 05:55:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzUzl-0004ux-Dt for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:55:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzUzj-0004ul-TB for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:55:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzUzj-0004ui-OM for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:54:59 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzUzj-0004Mv-BM for gnash-commit@gnu.org; Sat, 16 Jun 2007 05:54:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzUzh-00071l-Sj for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:54:58 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzUzh-00071e-IO for gnash-commit@gnu.org; Sat, 16 Jun 2007 09:54:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 09:54:57 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server/asobj NetStream.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 09:55:02 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 09:54:56 Modified files: server/asobj : NetStream.cpp Log message: Don't implement markReachableResources() if GNASH_USE_GC is not defined CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStream.cpp?cvsroot=gnash&r1=1.66&r2=1.67 Patches: Index: NetStream.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStream.cpp,v retrieving revision 1.66 retrieving revision 1.67 diff -u -b -r1.66 -r1.67 --- NetStream.cpp 16 Jun 2007 09:08:16 -0000 1.66 +++ NetStream.cpp 16 Jun 2007 09:54:56 -0000 1.67 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStream.cpp,v 1.66 2007/06/16 09:08:16 strk Exp $ */ +/* $Id: NetStream.cpp,v 1.67 2007/06/16 09:54:56 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -642,6 +642,7 @@ _statusQueue.clear(); } +#ifdef GNASH_USE_GC void NetStream::markReachableResources() const { @@ -653,5 +654,6 @@ // Invoke generic as_object marker markAsObjectReachable(); } +#endif // GNASH_USE_GC } // end of gnash namespace From MAILER-DAEMON Sat Jun 16 06:41:02 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzViI-0002Je-Na for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 06:41:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzViH-0002IU-3b for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:41:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzViG-0002II-6h for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:41:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzViG-0002IF-4L for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:41:00 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzViF-0003It-Qj for gnash-commit@gnu.org; Sat, 16 Jun 2007 06:40:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzViE-00033B-Iy for gnash-commit@gnu.org; Sat, 16 Jun 2007 10:40:58 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzViD-00032u-AN for gnash-commit@gnu.org; Sat, 16 Jun 2007 10:40:58 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 10:40:57 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/morph2_character_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 10:41:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 10:40:57 Modified files: . : ChangeLog server/parser : morph2_character_def.cpp morph2_character_def.h Log message: * server/parser/morph2_character_def.{cpp,h}: do not explicitly delete the shape_character_defs, rather keep by intrusive_ptr (which means leave ownership to the GC in the GC case). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3559&r2=1.3560 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/morph2_character_def.cpp?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/morph2_character_def.h?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3559 retrieving revision 1.3560 diff -u -b -r1.3559 -r1.3560 --- ChangeLog 16 Jun 2007 09:17:34 -0000 1.3559 +++ ChangeLog 16 Jun 2007 10:40:56 -0000 1.3560 @@ -1,5 +1,11 @@ 2007-06-16 Sandro Santilli + * server/parser/morph2_character_def.{cpp,h}: do not explicitly + delete the shape_character_defs, rather keep by intrusive_ptr + (which means leave ownership to the GC in the GC case). + +2007-06-16 Sandro Santilli + * server/asobj/NetStream.{h,cpp}: implement markReachableResources. * server/asobj/gen-asclass.sh: updated template to include a sample of a markReachableResources implementation. Index: server/parser/morph2_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/morph2_character_def.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- server/parser/morph2_character_def.cpp 14 Jun 2007 02:03:18 -0000 1.9 +++ server/parser/morph2_character_def.cpp 16 Jun 2007 10:40:56 -0000 1.10 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: morph2_character_def.cpp,v 1.9 2007/06/14 02:03:18 zoulunkai Exp $ */ +/* $Id: morph2_character_def.cpp,v 1.10 2007/06/16 10:40:56 strk Exp $ */ // Based on the public domain morph2.cpp of: // Thatcher Ulrich , Mike Shaver 2003, @@ -108,8 +108,6 @@ morph2_character_def::~morph2_character_def() { - delete m_shape2; - delete m_shape1; } void morph2_character_def::display(character* inst) Index: server/parser/morph2_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/morph2_character_def.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- server/parser/morph2_character_def.h 14 Jun 2007 08:23:14 -0000 1.2 +++ server/parser/morph2_character_def.h 16 Jun 2007 10:40:57 -0000 1.3 @@ -33,9 +33,24 @@ return m_bound; } + protected: + +#ifdef GNASH_USE_GC + /// Mark all reachable resources of a morph2_character_def, for the GC + // + /// Reachable resources are: + /// - The start and end shapes (m_shape1, m_shape2) + /// + virtual void markReachableResources() const + { + if ( m_shape1 ) m_shape1->setReachable(); + if ( m_shape2 ) m_shape2->setReachable(); + } +#endif // GNASH_USE_GC + private: - shape_character_def* m_shape1; - shape_character_def* m_shape2; + boost::intrusive_ptr m_shape1; + boost::intrusive_ptr m_shape2; unsigned int offset; int fill_style_count; int line_style_count; From MAILER-DAEMON Sat Jun 16 07:27:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzWRW-0003II-3R for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 07:27:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzWRU-0003I5-5l for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:27:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzWRS-0003Ht-NY for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:27:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzWRS-0003Hq-I2 for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:27:42 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzWRS-0000Kf-5Q for gnash-commit@gnu.org; Sat, 16 Jun 2007 07:27:42 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzWRR-0007NM-LK for gnash-commit@gnu.org; Sat, 16 Jun 2007 11:27:41 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzWRQ-0007NJ-Vw for gnash-commit@gnu.org; Sat, 16 Jun 2007 11:27:41 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 11:27:40 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/movie_root.cpp server/mo... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 11:27:44 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 11:27:40 Modified files: . : ChangeLog server : movie_root.cpp movie_root.h server/vm : ExecutableCode.h Log message: * server/vm/ExecutableCode.h: implement markReachableResources for executable code. * server/movie_root.{cpp,h}: mark resources reachable by the executable code in the global action queue. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3560&r2=1.3561 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.67&r2=1.68 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.h?cvsroot=gnash&r1=1.58&r2=1.59 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ExecutableCode.h?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3560 retrieving revision 1.3561 diff -u -b -r1.3560 -r1.3561 --- ChangeLog 16 Jun 2007 10:40:56 -0000 1.3560 +++ ChangeLog 16 Jun 2007 11:27:38 -0000 1.3561 @@ -1,5 +1,12 @@ 2007-06-16 Sandro Santilli + * server/vm/ExecutableCode.h: implement markReachableResources + for executable code. + * server/movie_root.{cpp,h}: mark resources reachable by + the executable code in the global action queue. + +2007-06-16 Sandro Santilli + * server/parser/morph2_character_def.{cpp,h}: do not explicitly delete the shape_character_defs, rather keep by intrusive_ptr (which means leave ownership to the GC in the GC case). Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.67 retrieving revision 1.68 diff -u -b -r1.67 -r1.68 --- server/movie_root.cpp 16 Jun 2007 09:07:35 -0000 1.67 +++ server/movie_root.cpp 16 Jun 2007 11:27:40 -0000 1.68 @@ -1033,6 +1033,13 @@ { i->markReachableResources(); } + + // Mark resources reachable by queued action code + for (ActionQueue::const_iterator i=_actionQueue.begin(), e=_actionQueue.end(); + i != e; ++i) + { + (*i)->markReachableResources(); + } } #endif // GNASH_USE_GC Index: server/movie_root.h =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.h,v retrieving revision 1.58 retrieving revision 1.59 diff -u -b -r1.58 -r1.59 --- server/movie_root.h 16 Jun 2007 09:07:35 -0000 1.58 +++ server/movie_root.h 16 Jun 2007 11:27:40 -0000 1.59 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: movie_root.h,v 1.58 2007/06/16 09:07:35 strk Exp $ */ +/* $Id: movie_root.h,v 1.59 2007/06/16 11:27:40 strk Exp $ */ /// \page events_handling Handling of user events /// @@ -447,6 +447,7 @@ /// - All _level# movies (_movie) /// - Mouse entities (m_mouse_button_state) /// - Timer targets (_intervalTimers) + /// - Resources reachable by ActionQueue code (_actionQueue) /// void markReachableResources() const; #endif // GNASH_USE_GC Index: server/vm/ExecutableCode.h =================================================================== RCS file: /sources/gnash/gnash/server/vm/ExecutableCode.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- server/vm/ExecutableCode.h 28 May 2007 15:41:10 -0000 1.5 +++ server/vm/ExecutableCode.h 16 Jun 2007 11:27:40 -0000 1.6 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: ExecutableCode.h,v 1.5 2007/05/28 15:41:10 ann Exp $ */ +/* $Id: ExecutableCode.h,v 1.6 2007/06/16 11:27:40 strk Exp $ */ #ifndef GNASH_EXECUTABLECODE_H #define GNASH_EXECUTABLECODE_H @@ -46,6 +46,11 @@ virtual ExecutableCode* clone() const=0; virtual ~ExecutableCode() {} + +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + virtual void markReachableResources() const=0; +#endif // GNASU_USE_GC }; /// Global code (out of any function) @@ -77,6 +82,18 @@ } } +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// Reachable resources are: + /// - the action target (target) + /// + virtual void markReachableResources() const + { + if ( target ) target->setReachable(); + } +#endif // GNASU_USE_GC + private: const action_buffer& buffer; @@ -136,6 +153,18 @@ } } +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// Reachable resources are: + /// - the action target (_target) + /// + virtual void markReachableResources() const + { + if ( _target ) _target->setReachable(); + } +#endif // GNASU_USE_GC + private: boost::intrusive_ptr _target; @@ -166,6 +195,20 @@ func->call(fn_call(target.get(), &env, 0, 0)); } +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// Reachable resources are: + /// - the function body (func) + /// - the action target (target) + /// + virtual void markReachableResources() const + { + if ( func ) func->setReachable(); + if ( func ) func->setReachable(); + } +#endif // GNASU_USE_GC + private: boost::intrusive_ptr func; From MAILER-DAEMON Sat Jun 16 08:48:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzXhE-0000am-DL for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 08:48:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzXhC-0000Yz-FO for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:48:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzXhA-0000Xb-Nd for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:48:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzXhA-0000XQ-EF for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:48:00 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzXh9-0002ZH-Ph for gnash-commit@gnu.org; Sat, 16 Jun 2007 08:48:00 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzXh7-0007V8-OO for gnash-commit@gnu.org; Sat, 16 Jun 2007 12:47:58 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzXh6-0007V1-PK for gnash-commit@gnu.org; Sat, 16 Jun 2007 12:47:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 16 Jun 2007 12:47:56 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/LoadThread.cpp libbase/... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 12:48:02 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/16 12:47:55 Modified files: . : ChangeLog libbase : LoadThread.cpp LoadThread.h image.cpp image.h image_filters.cpp noseek_fd_adapter.cpp server/asobj : Global.cpp Sound.cpp Sound.h SoundFfmpeg.cpp SoundGst.cpp SoundMad.cpp xmlsocket.cpp Log message: * libbase/: image.{cpp,h}, LoadThread.{cpp,h}, image_filters.cpp, noseek_fd_adapter.cpp, reduce number of explicit deletes by using scoped pointers * server/asobj/Global.cpp: reduce explicit deletes... * server/asobj/: Sound.{cpp,h}, SoundFfmpeg.{cpp,h}, SoundGst.{cpp,h}, SoundMad.{cpp,h}: Use a smart pointer for the NetConnection reference, and implement markReachableResources to mark it. * server/asobj/xmlsocket.cpp (anydata): don't use a module-static to keep track of leftovers !! CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3561&r2=1.3562 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/LoadThread.cpp?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/LoadThread.h?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.cpp?cvsroot=gnash&r1=1.20&r2=1.21 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.h?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image_filters.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/noseek_fd_adapter.cpp?cvsroot=gnash&r1=1.19&r2=1.20 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.62&r2=1.63 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Sound.cpp?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Sound.h?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/SoundFfmpeg.cpp?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/SoundGst.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/SoundMad.cpp?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xmlsocket.cpp?cvsroot=gnash&r1=1.28&r2=1.29 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3561 retrieving revision 1.3562 diff -u -b -r1.3561 -r1.3562 --- ChangeLog 16 Jun 2007 11:27:38 -0000 1.3561 +++ ChangeLog 16 Jun 2007 12:47:52 -0000 1.3562 @@ -1,5 +1,17 @@ 2007-06-16 Sandro Santilli + * libbase/: image.{cpp,h}, LoadThread.{cpp,h}, + image_filters.cpp, noseek_fd_adapter.cpp, + reduce number of explicit deletes by using scoped pointers + * server/asobj/Global.cpp: reduce explicit deletes... + * server/asobj/: Sound.{cpp,h}, SoundFfmpeg.{cpp,h}, SoundGst.{cpp,h}, + SoundMad.{cpp,h}: Use a smart pointer for the NetConnection + reference, and implement markReachableResources to mark it. + * server/asobj/xmlsocket.cpp (anydata): don't use a module-static + to keep track of leftovers !! + +2007-06-16 Sandro Santilli + * server/vm/ExecutableCode.h: implement markReachableResources for executable code. * server/movie_root.{cpp,h}: mark resources reachable by Index: libbase/LoadThread.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/LoadThread.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- libbase/LoadThread.cpp 30 May 2007 07:28:09 -0000 1.13 +++ libbase/LoadThread.cpp 16 Jun 2007 12:47:53 -0000 1.14 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: LoadThread.cpp,v 1.13 2007/05/30 07:28:09 tgc Exp $ +// $Id: LoadThread.cpp,v 1.14 2007/06/16 12:47:53 strk Exp $ #include "LoadThread.h" @@ -33,7 +33,7 @@ _loadPosition(0), _userPosition(0), _actualPosition(0), - _cache(NULL), + _cache(), _cacheStart(0), _cachedData(0), _cacheSize(0), @@ -55,7 +55,6 @@ _thread.reset(NULL); } #endif - if (_cache) delete[] _cache; } bool LoadThread::setStream(std::auto_ptr stream) @@ -96,7 +95,7 @@ // If the data is in the cache we used it if (_cacheStart <= _userPosition && static_cast(bytes) + _userPosition <= _cacheStart + _cachedData) { - memcpy(dst, _cache + (_userPosition - _cacheStart), bytes); + memcpy(dst, _cache.get() + (_userPosition - _cacheStart), bytes); _userPosition += bytes; return bytes; @@ -144,7 +143,7 @@ // buffer, note the new position and return the actual amount read int ret = _stream->read_bytes(dst, bytes); - memcpy(_cache +(_userPosition - _cacheStart), dst, ret); + memcpy(_cache.get() +(_userPosition - _cacheStart), dst, ret); _cachedData = _userPosition - _cacheStart + ret; _userPosition += ret; _actualPosition = _userPosition; @@ -157,9 +156,8 @@ // check if the cache is big enough to contain the wanted data if (static_cast(bytes) > _cacheSize-20000) { - delete[] _cache; _cacheSize = bytes+20000; - _cache = new uint8_t[_cacheSize]; + _cache.reset( new uint8_t[_cacheSize] ); } // To avoid recaching all the time, we cache some data from before @@ -185,7 +183,7 @@ // Try to read a wanted amount of bytes into the given // buffer, note the new position and return the actual amount read - int ret = _stream->read_bytes(_cache, readdata); + int ret = _stream->read_bytes(_cache.get(), readdata); _cachedData = ret; _cacheStart = newcachestart; @@ -197,7 +195,7 @@ int newret = bytes; if (static_cast(bytes) > ret) newret = ret - (_userPosition - newcachestart); - memcpy(dst, _cache + (_userPosition - newcachestart), newret); + memcpy(dst, _cache.get() + (_userPosition - newcachestart), newret); _userPosition += newret; _actualPosition = newcachestart + _cachedData; if (newcachestart + _cachedData > _loadPosition) @@ -242,10 +240,10 @@ boost::mutex::scoped_lock lock(_mutex); #endif - _cache = new uint8_t[1024*500]; + _cache.reset( new uint8_t[1024*500] ); _cacheSize = 1024*500; - int ret = _stream->read_bytes(_cache, 1024); + int ret = _stream->read_bytes(_cache.get(), 1024); _cacheStart = 0; _cachedData = ret; _loadPosition = 1024; @@ -287,7 +285,7 @@ // the "the edge", and "warm up" the remaining data. int ret; if (_cachedData + _chunkSize > _cacheSize) { - ret = _stream->read_bytes(_cache + _cachedData, _cacheSize - _cachedData); + ret = _stream->read_bytes(_cache.get() + _cachedData, _cacheSize - _cachedData); _cachedData += ret; if (ret != _cacheSize - _cachedData) { @@ -302,7 +300,7 @@ } } else { - ret = _stream->read_bytes(_cache + _cachedData, _chunkSize); + ret = _stream->read_bytes(_cache.get() + _cachedData, _chunkSize); if (ret != _chunkSize) { _completed = true; } Index: libbase/LoadThread.h =================================================================== RCS file: /sources/gnash/gnash/libbase/LoadThread.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- libbase/LoadThread.h 27 May 2007 14:22:03 -0000 1.10 +++ libbase/LoadThread.h 16 Jun 2007 12:47:53 -0000 1.11 @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -129,7 +130,7 @@ volatile long _actualPosition; // Cache... - uint8_t* _cache; + boost::scoped_array _cache; // The fileposition where the cache start volatile long _cacheStart; Index: libbase/image.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/image.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- libbase/image.cpp 2 May 2007 12:19:58 -0000 1.20 +++ libbase/image.cpp 16 Jun 2007 12:47:53 -0000 1.21 @@ -12,6 +12,7 @@ #include "jpeg.h" #include "tu_file.h" #include +#include namespace image @@ -67,13 +68,14 @@ assert(m_pitch >= m_width * 3); assert((m_pitch & 3) == 0); -// m_data = (uint8_t*) dlmalloc(m_pitch * m_height); m_data = new uint8_t[m_pitch * m_height]; } rgb::~rgb() { -// dlfree(m_data); + // TODO FIXME: m_data is a member of image_base, + // so ONLY image_base should delete it ! + // USE A SCOPED POINTER FOR THIS ! delete [] m_data; } @@ -107,7 +109,9 @@ rgba::~rgba() { -// dlfree(m_data); + // TODO FIXME: m_data is a member of image_base, + // so ONLY image_base should delete it ! + // USE A SCOPED POINTER FOR THIS ! delete [] m_data; } @@ -162,7 +166,6 @@ alpha::~alpha() { -// dlfree(m_data); delete [] m_data; } @@ -298,13 +301,12 @@ void write_jpeg(tu_file* out, rgb* image, int quality) // Write the given image to the given out stream, in jpeg format. { - jpeg::output* j_out = jpeg::output::create(out, image->m_width, image->m_height, quality); + std::auto_ptr j_out ( jpeg::output::create(out, image->m_width, image->m_height, quality) ); for (int y = 0; y < image->m_height; y++) { j_out->write_scanline(scanline(image, y)); } - delete j_out; } @@ -323,22 +325,23 @@ } - rgb* read_jpeg(tu_file* in) // Create and read a new image from the stream. + // + // TODO: return by auto_ptr ! + // + rgb* read_jpeg(tu_file* in) { - jpeg::input* j_in = jpeg::input::create(in); - if (j_in == NULL) return NULL; + std::auto_ptr j_in ( jpeg::input::create(in) ); + if (!j_in.get()) return 0; - rgb* im = image::create_rgb(j_in->get_width(), j_in->get_height()); + std::auto_ptr im ( image::create_rgb(j_in->get_width(), j_in->get_height()) ); for (int y = 0; y < j_in->get_height(); y++) { - j_in->read_scanline(scanline(im, y)); + j_in->read_scanline(scanline(im.get(), y)); } - delete j_in; - - return im; + return im.release(); } @@ -363,24 +366,27 @@ } - rgba* read_swf_jpeg3(tu_file* in) // For reading SWF JPEG3-style image data, like ordinary JPEG, // but stores the data in rgba format. + // + // TODO: return by auto_ptr ! + // + rgba* read_swf_jpeg3(tu_file* in) { - jpeg::input* j_in = jpeg::input::create_swf_jpeg2_header_only(in); - if (j_in == NULL) return NULL; + std::auto_ptr j_in ( jpeg::input::create_swf_jpeg2_header_only(in) ); + if ( ! j_in.get() ) return 0; j_in->start_image(); - rgba* im = image::create_rgba(j_in->get_width(), j_in->get_height()); + std::auto_ptr im ( image::create_rgba(j_in->get_width(), j_in->get_height()) ); - uint8_t* line = new uint8_t[3*j_in->get_width()]; + boost::scoped_array line ( new uint8_t[3*j_in->get_width()] ); for (int y = 0; y < j_in->get_height(); y++) { - j_in->read_scanline(line); + j_in->read_scanline(line.get()); - uint8_t* data = scanline(im, y); + uint8_t* data = scanline(im.get(), y); for (int x = 0; x < j_in->get_width(); x++) { data[4*x+0] = line[3*x+0]; @@ -390,12 +396,9 @@ } } - delete [] line; - j_in->finish_image(); - delete j_in; - return im; + return im.release(); // TODO: return by auto_ptr ! } @@ -428,37 +431,6 @@ } } - -#if 0 - SDL_Surface* create_SDL_Surface(rgb* image) - // Steal *image's data to create an SDL_Surface. - // - // DELETES image!!! - { - assert(image->m_pitch < 65536); // SDL_Surface only uses uint16_t for pitch!!! - - SDL_Surface* s = SDL_CreateRGBSurfaceFrom(image->m_data, - image->m_width, image->m_height, 24, image->m_pitch, - SDL_SwapLE32(0x0FF), - SDL_SwapLE32(0x0FF00), - SDL_SwapLE32(0x0FF0000), - 0); - - // s owns *image's data now -- invalidate *image. - image->m_data = 0; - image->m_height = 0; - image->m_width = 0; - image->m_pitch = 0; - delete image; - - assert(s->pixels); - assert(s->format->BytesPerPixel == 3); - assert(s->format->BitsPerPixel == 24); - - return s; - } -#endif // 0 - void make_next_miplevel(rgb* image) // Fast, in-place resample. For making mip-maps. Munges the // input image to produce the output image. Index: libbase/image.h =================================================================== RCS file: /sources/gnash/gnash/libbase/image.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- libbase/image.h 2 May 2007 12:19:58 -0000 1.13 +++ libbase/image.h 16 Jun 2007 12:47:53 -0000 1.14 @@ -12,6 +12,8 @@ #include "tu_config.h" #include "tu_types.h" +#include + class tu_file; namespace jpeg { class input; } @@ -35,7 +37,13 @@ id_image m_type; + // TODO FIXME: m_data allocation is currently managed + // by subclasses (see rgb and rgba), this is really unsafe. + // Rather, *this* calss should manage it, using a scoped + // pointer + // USE A SCOPED POINTER FOR THIS ! uint8_t* m_data; + int m_width; int m_height; int m_pitch; // byte offset from one row to the next Index: libbase/image_filters.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/image_filters.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- libbase/image_filters.cpp 1 Dec 2006 10:22:12 -0000 1.14 +++ libbase/image_filters.cpp 16 Jun 2007 12:47:54 -0000 1.15 @@ -11,7 +11,7 @@ // converted from K&R C to C-like C++, changed the interfaces a bit, // etc. -/* $Id: image_filters.cpp,v 1.14 2006/12/01 10:22:12 alexeev Exp $ */ +/* $Id: image_filters.cpp,v 1.15 2007/06/16 12:47:54 strk Exp $ */ #include "image.h" #include "utility.h" @@ -387,8 +387,6 @@ support = filter_table[default_type].support; -// image::rgb* tmp; /* intermediate image */ -// float xscale, yscale; /* zoom scale factors */ int i, k; /* loop variables */ unsigned int j; /* loop variables */ int n; /* pixel number */ @@ -412,7 +410,7 @@ int in_window_h = int(ceilf(in_y1) - floorf(in_y0) + 1); /* create intermediate image to hold horizontal zoom */ - image::rgb* tmp = image::create_rgb(out_width, in_window_h); + std::auto_ptr tmp ( image::create_rgb(out_width, in_window_h) ); float xscale = (float) (out_width - 1) / in_width; float yscale = (float) (out_height - 1) / in_height; @@ -467,7 +465,7 @@ green += raster[pixel * 3 + 1] * contrib[i][j].weight; blue += raster[pixel * 3 + 2] * contrib[i][j].weight; } - put_pixel(tmp, i, k, red, green, blue); + put_pixel(tmp.get(), i, k, red, green, blue); } } my_cfree(raster); @@ -508,7 +506,7 @@ /* apply filter to zoom vertically from tmp to dst */ raster = (uint8_t*) my_calloc(tmp->m_height, 3); for (k = 0; k < tmp->m_width; ++k) { - get_column(raster, tmp, k); + get_column(raster, tmp.get(), k); for (i = 0; i < out_height; ++i) { float red = 0.0f; float green = 0.0f; @@ -526,7 +524,6 @@ contrib.resize(0); - delete tmp; } @@ -554,7 +551,6 @@ support = filter_table[default_type].support; - image::rgba* tmp; /* intermediate image */ float xscale, yscale; /* zoom scale factors */ int i, k; /* loop variables */ unsigned int j; /* loop variables */ @@ -579,7 +575,7 @@ int in_window_h = int(ceilf(in_y1) - floorf(in_y0) + 1); /* create intermediate image to hold horizontal zoom */ - tmp = image::create_rgba(out_width, in_window_h); + std::auto_ptr tmp( image::create_rgba(out_width, in_window_h) ); xscale = (float) (out_width - 1) / in_width; yscale = (float) (out_height - 1) / in_height; @@ -636,7 +632,7 @@ blue += raster[pixel * 4 + 2] * contrib[i][j].weight; alpha += raster[pixel * 4 + 3] * contrib[i][j].weight; } - put_pixel(tmp, i, k, red, green, blue, alpha); + put_pixel(tmp.get(), i, k, red, green, blue, alpha); } } my_cfree(raster); @@ -677,7 +673,7 @@ /* apply filter to zoom vertically from tmp to dst */ raster = (uint8_t*) my_calloc(tmp->m_height, 4); for (k = 0; k < tmp->m_width; ++k) { - get_column(raster, tmp, k); + get_column(raster, tmp.get(), k); for (i = 0; i < out_height; ++i) { float red = 0.0f; float green = 0.0f; @@ -697,7 +693,6 @@ contrib.resize(0); - delete tmp; } } // end namespace image Index: libbase/noseek_fd_adapter.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/noseek_fd_adapter.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -u -b -r1.19 -r1.20 --- libbase/noseek_fd_adapter.cpp 28 May 2007 15:41:02 -0000 1.19 +++ libbase/noseek_fd_adapter.cpp 16 Jun 2007 12:47:54 -0000 1.20 @@ -27,6 +27,8 @@ #include #include +#include + //#define GNASH_NOSEEK_FD_VERBOSE 1 // define this if you want seeks back to be reported (on stderr) @@ -217,15 +219,14 @@ #endif - char* buf = new char[bytes_needed]; - int bytes_read = read(_fd, (void*)buf, bytes_needed); + boost::scoped_array buf ( new char[bytes_needed] ); + int bytes_read = read(_fd, (void*)buf.get(), bytes_needed); if ( bytes_read < 0 ) { fprintf(stderr, "Error reading " SIZET_FMT " bytes from input stream", bytes_needed); _running = false; - delete [] buf; // this looks like a CRITICAL error (since we don't handle it..) throw gnash::GnashException("Error reading from input stream"); return; @@ -239,14 +240,12 @@ fprintf(stderr, "EOF reached\n"); #endif _running = false; - delete [] buf; return; } } - cache(buf, static_cast(bytes_read)); + cache(buf.get(), static_cast(bytes_read)); - delete [] buf; } /*private*/ Index: server/asobj/Global.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -u -b -r1.62 -r1.63 --- server/asobj/Global.cpp 4 Jun 2007 19:21:20 -0000 1.62 +++ server/asobj/Global.cpp 16 Jun 2007 12:47:55 -0000 1.63 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: Global.cpp,v 1.62 2007/06/04 19:21:20 strk Exp $ */ +/* $Id: Global.cpp,v 1.63 2007/06/16 12:47:55 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -72,6 +72,7 @@ #include "xmlsocket.h" #include // for numeric_limits::quiet_NaN +#include // Common code to warn and return if a required single arg is not present // and to warn if there are extra args. @@ -206,8 +207,8 @@ // Set up some variables const string digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - char *input_buffer = new char[fn.arg(0).to_string().size()+1]; - char *input = input_buffer; + boost::scoped_array input_buffer ( new char[fn.arg(0).to_string().size()+1] ); + char *input = input_buffer.get(); strcpy(input,fn.arg(0).to_string().c_str()); int base; bool bNegative; @@ -254,7 +255,6 @@ if (base < 2 || base > 36) { - delete [] input_buffer; as_value rv; rv.set_nan(); return rv; @@ -272,7 +272,6 @@ // If we didn't get any digits, we should return NaN if (numdigits == 0) { - delete [] input_buffer; as_value rv; rv.set_nan(); return rv; @@ -287,8 +286,6 @@ if (bNegative) result = -result; - delete [] input_buffer; - // Now return the parsed string return as_value(result); } Index: server/asobj/Sound.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Sound.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- server/asobj/Sound.cpp 4 May 2007 21:40:50 -0000 1.17 +++ server/asobj/Sound.cpp 16 Jun 2007 12:47:55 -0000 1.18 @@ -59,15 +59,15 @@ Sound::Sound() : as_object(getSoundInterface()), - connection(NULL), + connection(), soundId(-1), externalSound(false), isStreaming(false) { } -Sound::~Sound() { - if (connection) delete connection; +Sound::~Sound() +{ } @@ -140,8 +140,7 @@ log_msg(_("%s is still testing!"), __FUNCTION__); if (connection) { - log_error(_("%s: This sound already has a connection? (We try to handle this by deleting the old one...)"), __FUNCTION__); - delete connection; + log_error(_("%s: This sound already has a connection? (We try to handle this by overriding the old one...)"), __FUNCTION__); } externalURL = file; Index: server/asobj/Sound.h =================================================================== RCS file: /sources/gnash/gnash/server/asobj/Sound.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- server/asobj/Sound.h 28 May 2007 15:41:08 -0000 1.5 +++ server/asobj/Sound.h 16 Jun 2007 12:47:55 -0000 1.6 @@ -58,13 +58,26 @@ std::string soundName; protected: + +#ifdef GNASH_USE_GC + /// Mark all reachable resources of a Sound, for the GC + // + /// Reachable resources are: + /// - associated NetConnection object (connection) + /// + void markReachableResources() const + { + if ( connection ) connection->setReachable(); + } +#endif // GNASH_USE_GC + bool _duration; bool _id3; bool _onID3; bool _onLoad; bool _onComplete; bool _position; - NetConnection* connection; + boost::intrusive_ptr connection; int soundId; bool externalSound; Index: server/asobj/SoundFfmpeg.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/SoundFfmpeg.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- server/asobj/SoundFfmpeg.cpp 30 May 2007 12:42:03 -0000 1.10 +++ server/asobj/SoundFfmpeg.cpp 16 Jun 2007 12:47:55 -0000 1.11 @@ -40,7 +40,7 @@ { SoundFfmpeg* so = static_cast(opaque); - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; size_t ret = nc->read(static_cast(buf), buf_size); so->inputPos += ret; @@ -53,7 +53,7 @@ SoundFfmpeg::seekMedia(void *opaque, offset_t offset, int whence){ SoundFfmpeg* so = static_cast(opaque); - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; // Offset is absolute new position in the file @@ -83,7 +83,7 @@ SoundFfmpeg::setupDecoder(SoundFfmpeg* so) { - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; assert(nc); // Pass stuff from/to the NetConnection object. @@ -369,8 +369,7 @@ remainingLoops = 0; if (connection) { - log_error(_("This sound already has a connection. (We try to handle this by deleting the old one...)")); - delete connection; + log_error(_("This sound already has a connection. (We try to handle this by overriding the old one...)")); } externalURL = file; Index: server/asobj/SoundGst.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/SoundGst.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- server/asobj/SoundGst.cpp 4 May 2007 21:40:50 -0000 1.7 +++ server/asobj/SoundGst.cpp 16 Jun 2007 12:47:55 -0000 1.8 @@ -62,7 +62,7 @@ { SoundGst* so = static_cast(opaque); - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; size_t ret = nc->read(static_cast(buf), buf_size); so->inputPos += ret; @@ -75,7 +75,7 @@ SoundGst::seekMedia(void *opaque, int offset, int whence){ SoundGst* so = static_cast(opaque); - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; // Offset is absolute new position in the file @@ -133,7 +133,7 @@ SoundGst::setupDecoder(SoundGst* so) { - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; assert(nc); // Pass stuff from/to the NetConnection object. @@ -226,8 +226,7 @@ remainingLoops = 0; if (connection) { - log_error(_("%s: This sound already has a connection? (We try to handle this by deleting the old one...)"), __FUNCTION__); - delete connection; + log_error(_("%s: This sound already has a connection? (We try to handle this by overriding the old one...)"), __FUNCTION__); } externalURL = file; Index: server/asobj/SoundMad.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/SoundMad.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/asobj/SoundMad.cpp 18 May 2007 12:51:47 -0000 1.8 +++ server/asobj/SoundMad.cpp 16 Jun 2007 12:47:55 -0000 1.9 @@ -74,7 +74,7 @@ SoundMad::setupDecoder(SoundMad* so) { - NetConnection* nc = so->connection; + boost::intrusive_ptr nc = so->connection; assert(nc); // Pass stuff from/to the NetConnection object. @@ -347,8 +347,7 @@ remainingLoops = 0; if (connection) { - log_error(_("This sound already has a connection? (We try to handle this by deleting the old one...)")); - delete connection; + log_error(_("This sound already has a connection? (We try to handle this by overriding the old one...)")); } externalURL = file; Index: server/asobj/xmlsocket.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/xmlsocket.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- server/asobj/xmlsocket.cpp 28 May 2007 15:41:08 -0000 1.28 +++ server/asobj/xmlsocket.cpp 16 Jun 2007 12:47:55 -0000 1.29 @@ -55,6 +55,7 @@ #endif #include +#include #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 @@ -200,7 +201,7 @@ int retries = 10; char *ptr, *eom; int cr, index = 0; - static char *leftover = 0; + boost::scoped_array leftover; int adjusted_size; @@ -267,12 +268,12 @@ while (strchr(ptr, '\n') > 0) { if (leftover) { processing(false); - //log_msg(_("%s: The remainder is: \"%s\""), __FUNCTION__, leftover); + //log_msg(_("%s: The remainder is: \"%s\""), __FUNCTION__, leftover.get()); //log_msg(_("%s: The rest of the message is: \"%s\""), __FUNCTION__, ptr); - adjusted_size = memadjust(cr + strlen(leftover) + 1); + adjusted_size = memadjust(cr + strlen(leftover.get()) + 1); packet = new char[adjusted_size]; memset(packet, 0, adjusted_size); - strcpy(packet, leftover); + strcpy(packet, leftover.get()); strcat(packet, ptr); eom = strrchr(packet, '\n'); // drop the CR off the end there is one if (eom) { @@ -280,8 +281,7 @@ } //log_msg(_("%s: The whole message is: \"%s\""), __FUNCTION__, packet); ptr = strchr(ptr, '\n') + 2; // messages are delimited by a "\n\0" - delete leftover; - leftover = 0; + leftover.reset(); } else { adjusted_size = memadjust(cr + 1); packet = new char[adjusted_size]; @@ -308,10 +308,10 @@ } // end of while (cr) if (strlen(ptr) > 0) { - leftover = new char[strlen(ptr) + 1]; - strcpy(leftover, ptr); + leftover.reset( new char[strlen(ptr) + 1] ); + strcpy(leftover.get(), ptr); processing(true); - //log_msg(_("%s: Adding remainder: \"%s\""), __FUNCTION__, leftover); + //log_msg(_("%s: Adding remainder: \"%s\""), __FUNCTION__, leftover.get()); } processing(false); From MAILER-DAEMON Sat Jun 16 15:03:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzdY9-00088h-P5 for mharc-gnash-commit@gnu.org; Sat, 16 Jun 2007 15:03:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzdY8-00088D-B5 for gnash-commit@gnu.org; Sat, 16 Jun 2007 15:03:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzdY7-00087v-R6 for gnash-commit@gnu.org; Sat, 16 Jun 2007 15:03:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzdY7-00087l-Ft for gnash-commit@gnu.org; Sat, 16 Jun 2007 15:03:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzdY6-0000R5-Tn for gnash-commit@gnu.org; Sat, 16 Jun 2007 15:03:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzdY5-0000xS-Gf for gnash-commit@gnu.org; Sat, 16 Jun 2007 19:03:01 +0000 Received: from rsavoye by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzdY5-0000xC-7I for gnash-commit@gnu.org; Sat, 16 Jun 2007 19:03:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Rob Savoye Date: Sat, 16 Jun 2007 19:03:01 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash gui/gnash.cpp gui/Makefile.am libbase/ima... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 19:03:04 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Rob Savoye 07/06/16 19:03:01 Modified files: gui : gnash.cpp Makefile.am libbase : image.cpp macros : ffmpeg.m4 . : ChangeLog Log message: * gui/gnash.cpp: Add the version of FFMPEG or GST to --version. Add the config options too. * gui/Makefile.am: Extract the config options so we can pass them to GCC, wo they become part of the output from --version. * libbase/image.cpp: Include memory so auto_ptr is defined. * macros/ffmpeg.m4: Define HAVE_FFMPEG_AVCODEC_H eben when not using AC_CHECK_HEADER. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gnash.cpp?cvsroot=gnash&r1=1.73&r2=1.74 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.78&r2=1.79 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.cpp?cvsroot=gnash&r1=1.21&r2=1.22 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&r1=1.44&r2=1.45 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3562&r2=1.3563 Patches: Index: gui/gnash.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gnash.cpp,v retrieving revision 1.73 retrieving revision 1.74 diff -u -b -r1.73 -r1.74 --- gui/gnash.cpp 15 Jun 2007 18:46:59 -0000 1.73 +++ gui/gnash.cpp 16 Jun 2007 19:02:59 -0000 1.74 @@ -26,6 +26,15 @@ #include "rc.h" // for use of rcfile #include "debugger.h" +#ifdef HAVE_FFMPEG_AVCODEC_H +# include "ffmpeg/avcodec.h" +#endif + +#ifdef HAVE_GST_GST_H +# include "gst/gst.h" +# include "gst/gstversion.h" +#endif + #if defined(_WIN32) || defined(WIN32) #include "getopt_win32.h" #else @@ -148,9 +157,17 @@ { printf (_("Build options %s\n" " Target: %s\n" - " Renderer: %s GUI: %s Media handler: %s\n"), + " Renderer: %s GUI: %s Media handler: %s\n" + " Configured with: %s\n"), VERSION, TARGET_CONFIG, RENDERER_CONFIG, GUI_CONFIG, - MEDIA_CONFIG); + MEDIA_CONFIG, CONFIG_CONFIG); +#ifdef HAVE_FFMPEG_AVCODEC_H + printf(_("Ffmpeg version is: %s\n"), LIBAVCODEC_IDENT); +#endif +#ifdef HAVE_GST_GST_H + printf(_("Gstreamer version is: %d.%d.%d."), GST_VERSION_MAJOR, + GST_VERSION_MINOR, GST_VERSION_MICRO); +#endif } Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.78 retrieving revision 1.79 diff -u -b -r1.78 -r1.79 --- gui/Makefile.am 10 Jun 2007 07:36:13 -0000 1.78 +++ gui/Makefile.am 16 Jun 2007 19:03:00 -0000 1.79 @@ -17,7 +17,7 @@ # -# $Id: Makefile.am,v 1.78 2007/06/10 07:36:13 strk Exp $ +# $Id: Makefile.am,v 1.79 2007/06/16 19:03:00 rsavoye Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -184,6 +184,9 @@ endif endif +if USE_SOUND_GST +AM_CPPFLAGS += $(GSTREAMER_CFLAGS) +endif if USE_GUI_FLTK FLTK_SRCS = fltk.cpp fltksup.h $(FLTK_AGG_SRCS) $(FLTK_CAIRO_SRCS) @@ -199,6 +202,7 @@ AM_CPPFLAGS += -DGUI_CONFIG=\"$(GUI_CONFIG)\" AM_CPPFLAGS += -DMEDIA_CONFIG=\"$(MEDIA_CONFIG)\" AM_CPPFLAGS += -DTARGET_CONFIG=\"$(target)\" +AM_CPPFLAGS += -DCONFIG_CONFIG="\"$(shell cat .configline)\"" dist_images_DATA = images/gnash_128_96.ico images/GnashG.png #dist_images_DATA = images/gnash_G_v3.ico @@ -263,7 +267,7 @@ gnash_SOURCES = gnash.cpp # export our symbols so they can be used by Gnash plugins gnash_LDFLAGS = $(LIBLTDL) -export-dynamic -gnash_DEPENDENCIES = $(GNASH_LIBS) +gnash_DEPENDENCIES = $(GNASH_LIBS) .configline gnash_LDADD = \ $(MYSQL_LIBS) \ $(GNASH_LIBS) @@ -282,7 +286,7 @@ # $(GNASH_LIBS) #klash_DEPENDENCIES = \ -# $(GNASH_LIBS) +# $(GNASH_LIBS) .configline # $(LIBLTDL) "-dlopen" self "-dlopen" CLEANFILES = klash.moc @@ -295,6 +299,10 @@ ln -sf $(srcdir)/klash.moc.in klash.moc; \ fi +.configline: ../config.log + -@rm -f .configline + @head ../config.log | grep " .*/configure " | sed -e 's:^ . .*configure ::' > .configline + #noinst_PROGRAMS = guitest # klash flak #guitest_SOURCES = guitest.cpp #fltk.cpp #fltksup.h fltksupp.h gnash.cpp gtk.cpp # gtksup.h gui.cpp gui.h menu.cpp menu.h sdl.cpp sdlsup.h [21~sdlsupp.h Index: libbase/image.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/image.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- libbase/image.cpp 16 Jun 2007 12:47:53 -0000 1.21 +++ libbase/image.cpp 16 Jun 2007 19:03:00 -0000 1.22 @@ -12,9 +12,9 @@ #include "jpeg.h" #include "tu_file.h" #include +#include // for auto_ptr #include - namespace image { // Index: macros/ffmpeg.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v retrieving revision 1.44 retrieving revision 1.45 diff -u -b -r1.44 -r1.45 --- macros/ffmpeg.m4 7 Jun 2007 18:59:51 -0000 1.44 +++ macros/ffmpeg.m4 16 Jun 2007 19:03:00 -0000 1.45 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: ffmpeg.m4,v 1.44 2007/06/07 18:59:51 strk Exp $ +dnl $Id: ffmpeg.m4,v 1.45 2007/06/16 19:03:00 rsavoye Exp $ AC_DEFUN([GNASH_PATH_FFMPEG], [ @@ -75,6 +75,8 @@ if test x${cross_compiling} = xno; then AC_CHECK_HEADERS(ffmpeg/avcodec.h, [ac_cv_path_ffmpeg_incl=""]) fi + else + AC_DEFINE(HAVE_FFMPEG_AVCODEC_H, 1, [Define if you have avcodec.h installed.]) fi dnl We need LIBAVCODEC VERSION of at least 51.29.0 to get avcodec_decode_audio2 Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3562 retrieving revision 1.3563 diff -u -b -r1.3562 -r1.3563 --- ChangeLog 16 Jun 2007 12:47:52 -0000 1.3562 +++ ChangeLog 16 Jun 2007 19:03:00 -0000 1.3563 @@ -1,3 +1,13 @@ +2007-06-16 Rob Savoye + + * gui/gnash.cpp: Add the version of FFMPEG or GST to + --version. Add the config options too. + * gui/Makefile.am: Extract the config options so we can pass them + to GCC, wo they become part of the output from --version. + * libbase/image.cpp: Include memory so auto_ptr is defined. + * macros/ffmpeg.m4: Define HAVE_FFMPEG_AVCODEC_H eben when not + using AC_CHECK_HEADER. + 2007-06-16 Sandro Santilli * libbase/: image.{cpp,h}, LoadThread.{cpp,h}, From MAILER-DAEMON Sun Jun 17 04:29:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hzq8d-0005cT-WE for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 04:29:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hzq8c-0005cF-1t for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:29:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hzq8a-0005bq-T6 for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:29:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzq8a-0005bn-NT for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:29:32 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hzq8a-0001vz-AK for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:29:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hzq8J-0006sR-QR for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:29:15 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hzq8J-0006sO-LB for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:29:15 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Sun, 17 Jun 2007 08:29:15 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog INSTALL doc/C/usermanual/instal... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 08:29:34 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/17 08:29:15 Modified files: . : ChangeLog INSTALL doc/C/usermanual/installation: install.xml Log message: In patch #5772, Anders Juel Jensen suggested explicitly stating that '--plugin-dir' is used instead of '--prefix' to determine the location for the Firefox plugin, and that the plugin defaults to ~/.firefox/plugins. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3563&r2=1.3564 http://cvs.savannah.gnu.org/viewcvs/gnash/INSTALL?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/usermanual/installation/install.xml?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3563 retrieving revision 1.3564 diff -u -b -r1.3563 -r1.3564 --- ChangeLog 16 Jun 2007 19:03:00 -0000 1.3563 +++ ChangeLog 17 Jun 2007 08:29:14 -0000 1.3564 @@ -1,3 +1,10 @@ +2007-06-17 Ann Barcomb + + * doc/C/usermanual/install.xml: Added some information + inspired by the comments made in patch #5772. + * INSTALL: Applied a modified version of patch #5772 by + Anders Juel Jensen. + 2007-06-16 Rob Savoye * gui/gnash.cpp: Add the version of FFMPEG or GST to Index: INSTALL =================================================================== RCS file: /sources/gnash/gnash/INSTALL,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- INSTALL 19 Jan 2006 23:50:11 -0000 1.2 +++ INSTALL 17 Jun 2007 08:29:15 -0000 1.3 @@ -105,7 +105,10 @@ By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. +`configure' the option `--prefix=PREFIX'. Note that Firefox plugin +installation is controlled with '--plugin-dir' and are not affected +by '--prefix'. The default directory for the Firefox plugin is +`$(HOME)/.firefox/plugins'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you Index: doc/C/usermanual/installation/install.xml =================================================================== RCS file: /sources/gnash/gnash/doc/C/usermanual/installation/install.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- doc/C/usermanual/installation/install.xml 7 Jun 2007 14:11:26 -0000 1.2 +++ doc/C/usermanual/installation/install.xml 17 Jun 2007 08:29:15 -0000 1.3 @@ -18,7 +18,8 @@ Documentation may also be installed. The installation location is controlled with the --prefix configure - option. + option, except for plugins, which are explicitly set with + --plugin-dir. @@ -68,7 +69,7 @@ directory of the system installed Firefox or Mozilla, if development packages are installed for either of them. - Otherwise, the default is /usr/lib/mozilla/plugins. + Otherwise, the default is ~/.firefox/plugins. You may also specify the plugin installation directory by using the --with-plugindir option to configure. From MAILER-DAEMON Sun Jun 17 04:34:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzqDd-0008Nq-Vc for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 04:34:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzqDc-0008Nj-FI for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:34:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzqDc-0008NR-1U for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:34:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzqDb-0008NO-TA for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:34:43 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzqDb-0002xI-H4 for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:34:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzqDa-0007kW-Rm for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:34:42 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzqDa-0007kN-JR for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:34:42 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Sun, 17 Jun 2007 08:34:42 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog plugin/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 08:34:44 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/17 08:34:42 Modified files: . : ChangeLog plugin : Makefile.am Log message: While trying to determine if the default directory for plugins was, in fact, ~/.firefox/plugins, I noted a comment in plugin/Makefile.am which explicitly said that it could not be. Later, reading macros/firefox.m4, I saw that ~/.firefox/plugins is the default directory for the Firefox plugin, if no alternative has been specified by --plugin-dir. Therefore I have removed the misleading comment from the plugin Makefile. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3564&r2=1.3565 http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/Makefile.am?cvsroot=gnash&r1=1.58&r2=1.59 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3564 retrieving revision 1.3565 diff -u -b -r1.3564 -r1.3565 --- ChangeLog 17 Jun 2007 08:29:14 -0000 1.3564 +++ ChangeLog 17 Jun 2007 08:34:41 -0000 1.3565 @@ -1,5 +1,6 @@ 2007-06-17 Ann Barcomb + * plugin/Makefile.am: Removed an incorrect comment. * doc/C/usermanual/install.xml: Added some information inspired by the comments made in patch #5772. * INSTALL: Applied a modified version of patch #5772 by Index: plugin/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/plugin/Makefile.am,v retrieving revision 1.58 retrieving revision 1.59 diff -u -b -r1.58 -r1.59 --- plugin/Makefile.am 27 Jan 2007 15:30:47 -0000 1.58 +++ plugin/Makefile.am 17 Jun 2007 08:34:42 -0000 1.59 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# $Id: Makefile.am,v 1.58 2007/01/27 15:30:47 rsavoye Exp $ +# $Id: Makefile.am,v 1.59 2007/06/17 08:34:42 ann Exp $ AUTOMAKE_OPTIONS = @@ -93,10 +93,7 @@ libgnashplugin_la_LDFLAGS = -module -avoid-version -L$(plugindir) endif -# For now the plugin has to be installed in the root plugin -# directory for Firefox. For some reason if the same file is -# installed in the users $(HOME)/.firefox/plugins, the plugin -# won't load due to errors with an undefined MaiAtkObject. +# The default directory for the plugin is $(HOME)/.firefox/plugins. install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) test -d "$(DESTDIR)$(plugindir)" || $(mkinstalldirs) "$(DESTDIR)$(plugindir)" # cp .libs/libgnashplugin.so $(DESTDIR)$(plugindir)/libgnashplugin.so From MAILER-DAEMON Sun Jun 17 04:49:40 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzqS4-0007uM-O8 for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 04:49:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzqS1-0007u2-T7 for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:49:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzqS1-0007tq-8G for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:49:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzqS1-0007tn-3T for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:49:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzqS0-0005dx-LV for gnash-commit@gnu.org; Sun, 17 Jun 2007 04:49:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzqRt-0000hl-Go for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:49:29 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzqRt-0000hh-Ao for gnash-commit@gnu.org; Sun, 17 Jun 2007 08:49:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 17 Jun 2007 08:49:29 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 08:49:38 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/17 08:49:29 Modified files: . : ChangeLog libbase : GC.h Log message: * libbase/GC.h: fixed a misleading delete count for the debugging mode. You can now see that in the UdoG leaking case (empty function in first frame, empty second frame) every GC collect run deletes 2 resources (most likely an isolated chain of references in the RC case). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3565&r2=1.3566 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.5&r2=1.6 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3565 retrieving revision 1.3566 diff -u -b -r1.3565 -r1.3566 --- ChangeLog 17 Jun 2007 08:34:41 -0000 1.3565 +++ ChangeLog 17 Jun 2007 08:49:28 -0000 1.3566 @@ -1,3 +1,11 @@ +2007-06-16 Sandro Santilli + + * libbase/GC.h: fixed a misleading delete count for + the debugging mode. You can now see that in the UdoG + leaking case (empty function in first frame, empty second + frame) every GC collect run deletes 2 resources (most + likely an isolated chain of references in the RC case). + 2007-06-17 Ann Barcomb * plugin/Makefile.am: Removed an incorrect comment. Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- libbase/GC.h 16 Jun 2007 09:17:34 -0000 1.5 +++ libbase/GC.h 17 Jun 2007 08:49:29 -0000 1.6 @@ -294,9 +294,11 @@ const GcResource* res = *i; if ( ! res->isReachable() ) { +#ifdef GNASH_GC_DEBUG #if GNASH_GC_DEBUG > 1 log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), (void*)this, (void*)res, typeid(*res).name()); +#endif ++deleted; #endif delete res; From MAILER-DAEMON Sun Jun 17 05:07:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzqjN-0000pE-RM for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 05:07:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzqjL-0000p9-SL for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:07:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzqjK-0000ou-TQ for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:07:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzqjK-0000op-Lw for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:07:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzqjK-0000Nf-5T for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:07:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1HzqjJ-0001aS-A3 for gnash-commit@gnu.org; Sun, 17 Jun 2007 09:07:29 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1HzqjJ-0001aP-44 for gnash-commit@gnu.org; Sun, 17 Jun 2007 09:07:29 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Sun, 17 Jun 2007 09:07:29 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/movie_definition.... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 09:07:32 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/17 09:07:28 Modified files: . : ChangeLog server/parser : movie_definition.h movie_def_impl.h sprite_definition.h Timeline.h server/swf : PlaceObject2Tag.h PlaceObject2Tag.cpp server : dlist.cpp sprite_instance.h sprite_instance.cpp testsuite/misc-ming.all: displaylist_depths_test11.c loop_test2.c loop_test2runner.cpp loop_test3.c loop_test5.c loop_test8.c Log message: enable and improve 3rd attempt timeline design, 20 more successes CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3566&r2=1.3567 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_definition.h?cvsroot=gnash&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.h?cvsroot=gnash&r1=1.45&r2=1.46 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/sprite_definition.h?cvsroot=gnash&r1=1.21&r2=1.22 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/Timeline.h?cvsroot=gnash&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/PlaceObject2Tag.h?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/PlaceObject2Tag.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/server/dlist.cpp?cvsroot=gnash&r1=1.71&r2=1.72 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.120&r2=1.121 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.288&r2=1.289 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/displaylist_depths_test11.c?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test2.c?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test2runner.cpp?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test3.c?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test5.c?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3566 retrieving revision 1.3567 diff -u -b -r1.3566 -r1.3567 --- ChangeLog 17 Jun 2007 08:49:28 -0000 1.3566 +++ ChangeLog 17 Jun 2007 09:07:26 -0000 1.3567 @@ -1,4 +1,26 @@ -2007-06-16 Sandro Santilli +2007-06-17 Zou Lunkai + + * server/parser/movie_definition.h, + server/parser/movie_def_impl.h, + server/parser/sprite_definition.h, + server/parser/Timeline.h, + server/swf/PlaceObject2Tag.h, + server/swf/PlaceObject2Tag.cpp, + server/dlist.cpp, + server/sprite_instance.h, server/sprite_instance.cpp: + enable and improve the 3rd attempt of timeline-control design, take + ratio into consideration, which is not only used for morphs but also + for general characters in lots of swf files. Got 20 more successes, + still need more tests and cleanups. see wiki. + * testsuite/misc-ming.all/displaylist_depths_test11.c, + testsuite/misc-ming.all/loop_test2.c, + testsuite/misc-ming.all/loop_test2runner.cpp, + testsuite/misc-ming.all/loop_test3.c, + testsuite/misc-ming.all/loop_test5.c, + testsuite/misc-ming.all/loop_test8.c: + xchecks to checks. + +2007-06-17 Sandro Santilli * libbase/GC.h: fixed a misleading delete count for the debugging mode. You can now see that in the UdoG Index: server/parser/movie_definition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_definition.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- server/parser/movie_definition.h 28 May 2007 15:41:09 -0000 1.24 +++ server/parser/movie_definition.h 17 Jun 2007 09:07:27 -0000 1.25 @@ -57,6 +57,7 @@ #include #include // for auto_ptr +#include // Forward declarations namespace gnash { @@ -569,7 +570,9 @@ /// Depth of an instance placed by PlaceObject* tag. /// Assumed to be in the static zone (an assertion would fail otherwise). /// - virtual void addTimelineDepth(int /*depth*/) {} + /// @param ratio + /// Ratio of an instance defined by PlaceObject2 tag, ranges from 0 to 65535 + virtual void addTimelineDepth(int /*depth*/, int /*ratio*/) {} /// Remove a depth from the timeline depth set in current frame // @@ -601,8 +604,7 @@ /// @param depths /// A vector to copy all frame depths to. /// - virtual void getTimelineDepths(size_t /*frameno*/, - std::vector& /*depths*/) + virtual void getTimelineDepths(size_t /*frameno*/, std::map& /*depths*/) {} }; Index: server/parser/movie_def_impl.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.h,v retrieving revision 1.45 retrieving revision 1.46 diff -u -b -r1.45 -r1.46 --- server/parser/movie_def_impl.h 16 Jun 2007 06:55:57 -0000 1.45 +++ server/parser/movie_def_impl.h 17 Jun 2007 09:07:27 -0000 1.46 @@ -616,9 +616,9 @@ // // TODO: implement in base class ? // - void addTimelineDepth(int depth) + void addTimelineDepth(int depth, int ratio) { - _timeline.addDepth(depth); + _timeline.addDepth(depth, ratio); } // See dox in base class @@ -634,7 +634,7 @@ // // TODO: implement in base class ? // - void getTimelineDepths(size_t frameno, std::vector& depths) + void getTimelineDepths(size_t frameno, std::map& depths) { _timeline.getFrameDepths(frameno, depths); } Index: server/parser/sprite_definition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/sprite_definition.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- server/parser/sprite_definition.h 15 Jun 2007 15:00:31 -0000 1.21 +++ server/parser/sprite_definition.h 17 Jun 2007 09:07:27 -0000 1.22 @@ -86,9 +86,9 @@ // // TODO: implement in base class ? // - void addTimelineDepth(int depth) + void addTimelineDepth(int depth, int ratio) { - _timeline.addDepth(depth); + _timeline.addDepth(depth, ratio); } // See dox in base class @@ -104,7 +104,7 @@ // // TODO: implement in base class ? // - void getTimelineDepths(size_t frameno, std::vector& depths) + void getTimelineDepths(size_t frameno, std::map& depths) { _timeline.getFrameDepths(frameno, depths); } Index: server/parser/Timeline.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/Timeline.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- server/parser/Timeline.h 21 May 2007 17:02:46 -0000 1.3 +++ server/parser/Timeline.h 17 Jun 2007 09:07:27 -0000 1.4 @@ -25,7 +25,7 @@ #endif #include -#include +#include #include namespace gnash @@ -58,7 +58,7 @@ /// Construct a Timeline instance Timeline() { - _frameDepths.push_back(DepthSet()); + _frameDepths.push_back(DepthMap()); } /// Destroy a Timeline instance @@ -102,6 +102,13 @@ /// Add a timeline depth to the current frame // + /// @param depth + /// Depth of an instance placed by PlaceObject* tag. + /// Assumed to be in the static zone (an assertion would fail otherwise). + /// + /// @param ratio + /// Ratio of an instance defined by PlaceObject* tag, default to zero. + /// /// Does NOT lock the mutex as this function is intended to be /// called by a single thread (the loader/parser). /// @@ -109,11 +116,11 @@ /// Depth of an instance placed by PlaceObject* tag. /// Assumed to be in the static zone (an assertion would fail otherwise). /// - void addDepth(int depth) + void addDepth(int depth, int ratio=0) { assert(depth < 0 && depth >= -16384); // or should be > -16384 (not ==?) - _frameDepths.back().insert(depth); + _frameDepths.back().insert(DRPair(depth, ratio)); } /// Remove a timeline depth from the current frame @@ -159,21 +166,24 @@ /// /// /// - void getFrameDepths(size_t frameno, std::vector& depths) + void getFrameDepths(size_t frameno, std::map& depths) { assert(frameno < _frameDepths.size()); - DepthSet& from = _frameDepths[frameno]; - depths.assign(from.begin(), from.end()); + DepthMap& from = _frameDepths[frameno]; + depths.insert(from.begin(), from.end()); } private: - /// A set of depths in the static zone - typedef std::set DepthSet; + /// A pair of depth value and ratio ralue + typedef std::map::value_type DRPair; + + /// A set of depth-ratio-pairs in the static zone + typedef std::map DepthMap; - /// A vector of depth sets (one for each frame) - typedef std::vector FrameDepths; + /// A vector of depth maps (one for each frame) + typedef std::vector FrameDepths; /// Return the number of frames completely defined // @@ -195,7 +205,7 @@ } - /// A set of depth for each frame + /// A map of depths for each frame // /// Access to this container is mutex-protected /// for thread safety. See _frameDepthsMutex. @@ -213,12 +223,13 @@ for (Timeline::FrameDepths::const_iterator it=t._frameDepths.begin(), itEnd=t._frameDepths.end(); it!=itEnd; ++it) { os << "["; - for (Timeline::DepthSet::const_iterator di=it->begin(), de=it->end(); di!=de; ++di) + for (Timeline::DepthMap::const_iterator di=it->begin(), de=it->end(); di!=de; ++di) { - if ( di != it->begin() ) os << ","; - os << *di; + if ( di != it->begin() ) os << ", "; + os << "<" << di->first << ", " << di->second << ">"; } os << "]"; + os << "\n"; } return os; } Index: server/swf/PlaceObject2Tag.h =================================================================== RCS file: /sources/gnash/gnash/server/swf/PlaceObject2Tag.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- server/swf/PlaceObject2Tag.h 14 Jun 2007 02:03:19 -0000 1.10 +++ server/swf/PlaceObject2Tag.h 17 Jun 2007 09:07:27 -0000 1.11 @@ -19,7 +19,7 @@ // // -/* $Id: PlaceObject2Tag.h,v 1.10 2007/06/14 02:03:19 zoulunkai Exp $ */ +/* $Id: PlaceObject2Tag.h,v 1.11 2007/06/17 09:07:27 zoulunkai Exp $ */ #ifndef GNASH_SWF_PLACEOBJECT2TAG_H #define GNASH_SWF_PLACEOBJECT2TAG_H @@ -99,6 +99,8 @@ static void loader(stream* in, tag_type tag, movie_definition* m); + int getRatio() const { return m_ratio;} + private: int m_tag_type; Index: server/swf/PlaceObject2Tag.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/PlaceObject2Tag.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/swf/PlaceObject2Tag.cpp 14 Jun 2007 02:03:19 -0000 1.14 +++ server/swf/PlaceObject2Tag.cpp 17 Jun 2007 09:07:27 -0000 1.15 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: PlaceObject2Tag.cpp,v 1.14 2007/06/14 02:03:19 zoulunkai Exp $ */ +/* $Id: PlaceObject2Tag.cpp,v 1.15 2007/06/17 09:07:27 zoulunkai Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -377,9 +377,10 @@ m->add_execute_tag(ch); int depth = ch->getDepth(); + int ratio = ch->getRatio(); if ( depth < 0 && depth >= character::staticDepthOffset ) { - m->addTimelineDepth(ch->getDepth()); + m->addTimelineDepth(depth, ratio); } else { Index: server/dlist.cpp =================================================================== RCS file: /sources/gnash/gnash/server/dlist.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -b -r1.71 -r1.72 --- server/dlist.cpp 15 Jun 2007 15:00:28 -0000 1.71 +++ server/dlist.cpp 17 Jun 2007 09:07:28 -0000 1.72 @@ -503,10 +503,11 @@ // 1. Find all "timeline depth" for the target frame, querying the // Timeline object in the sprite/movie definition (see implementation details) - std::vector save; + std::map save; movieDef.getTimelineDepths(tgtFrame, save); -#define GNASH_DEBUG_TIMELINE 1 +//#define GNASH_DEBUG_TIMELINE 1 +#undef GNASH_DEBUG_TIMELINE #ifdef GNASH_DEBUG_TIMELINE cout << "Depths found to save: " << endl; std::ostream_iterator ostrIter(cout, "," ) ; @@ -516,7 +517,7 @@ #endif - typedef std::vector::iterator SeekIter; + typedef std::map::iterator SeekIter; SeekIter startSeek = save.begin(); SeekIter endSeek = save.end(); @@ -559,9 +560,11 @@ } #endif - /// Only remove if not in the save vector - SeekIter match = std::find(startSeek, endSeek, di_depth); - if ( match == save.end() ) + /// Only remove if not in the save vector, + /// or in the save vector but has a different ratio value + SeekIter match = save.find(di_depth); + if( match == save.end() || + ( match != save.end() && match->second != di->get_ratio() )) { // Not to be saved, killing if ( call_unload ) di->unload(); Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.120 retrieving revision 1.121 diff -u -b -r1.120 -r1.121 --- server/sprite_instance.h 15 Jun 2007 20:58:52 -0000 1.120 +++ server/sprite_instance.h 17 Jun 2007 09:07:28 -0000 1.121 @@ -476,6 +476,17 @@ /// void remove_display_object(int depth, int /* id */) { + character* existing_char = m_display_list.get_character_at_depth(depth); + if(existing_char && existing_char->getTimelineInfo()) + { + // Don't remove characters placed after target frame + /// TODO: Don't remove character placed after the this RemoveObject tag + if(m_current_frame <= existing_char->getTimelineInfo()->placedInFrame() ) + { + return; + } + } + set_invalidated(); m_display_list.remove_display_object(depth); } Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.288 retrieving revision 1.289 diff -u -b -r1.288 -r1.289 --- server/sprite_instance.cpp 15 Jun 2007 20:58:52 -0000 1.288 +++ server/sprite_instance.cpp 17 Jun 2007 09:07:28 -0000 1.289 @@ -74,7 +74,7 @@ //#define GNASH_DEBUG_REPLACE 1 // Unfed for original design, 2 for second redesign attempt, 3 for third redesign attempt -#define NEW_TIMELINE_DESIGN 2 +#define NEW_TIMELINE_DESIGN 3 Index: testsuite/misc-ming.all/displaylist_depths_test11.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/displaylist_depths_test11.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/displaylist_depths_test11.c 22 May 2007 15:53:40 -0000 1.2 +++ testsuite/misc-ming.all/displaylist_depths_test11.c 17 Jun 2007 09:07:28 -0000 1.3 @@ -168,14 +168,14 @@ // supposed to be removed on jump back, being on a depth supposed // to contain a timeline instance at that time // Gnash fails here by removing the instance placed in a later frame - "xcheck_equals(_root.depth3Constructed, 2);" + "check_equals(_root.depth3Constructed, 2);" // Gnash fails here by removing the instance placed in a later frame - "xcheck_equals(typeof(static1), 'undefined');" + "check_equals(typeof(static1), 'undefined');" // Gnash fails here by removing the instance placed in a later frame // (thus placing a new instance) - "xcheck_equals(typeof(static2), 'movieclip');" + "check_equals(typeof(static2), 'movieclip');" "totals();" ); Index: testsuite/misc-ming.all/loop_test2.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test2.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- testsuite/misc-ming.all/loop_test2.c 25 May 2007 15:18:05 -0000 1.5 +++ testsuite/misc-ming.all/loop_test2.c 17 Jun 2007 09:07:28 -0000 1.6 @@ -140,18 +140,18 @@ // Depths have not be restored // (gnash fails because create new instnaces instead) - "xcheck_equals(movieClip1.getDepth(), mc2_depth);" - "xcheck_equals(movieClip2.getDepth(), mc1_depth);" + "check_equals(movieClip1.getDepth(), mc2_depth);" + "check_equals(movieClip2.getDepth(), mc1_depth);" // They are still the same instance // (gnash fails because create new instnaces instead) - "xcheck_equals(movieClip1.secretCode, 'mc1');" - "xcheck_equals(movieClip2.secretCode, 'mc2');" + "check_equals(movieClip1.secretCode, 'mc1');" + "check_equals(movieClip2.secretCode, 'mc2');" // Chars have not been reconstructed // (gnash fails because create new instnaces instead) - "xcheck_equals(mc1Constructed, 1);" - "xcheck_equals(mc2Constructed, 1);" + "check_equals(mc1Constructed, 1);" + "check_equals(mc2Constructed, 1);" "totals();" Index: testsuite/misc-ming.all/loop_test2runner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test2runner.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/loop_test2runner.cpp 28 May 2007 15:41:12 -0000 1.2 +++ testsuite/misc-ming.all/loop_test2runner.cpp 17 Jun 2007 09:07:28 -0000 1.3 @@ -132,7 +132,7 @@ // Check that the black square is still behind the red square check_pixel(x_left, y, 2, white, 2); check_pixel(x_red, y, 2, red, 2); - xcheck_pixel(x_int, y, 2, red, 2); // black is *behind* red square + check_pixel(x_int, y, 2, red, 2); // black is *behind* red square check_pixel(x_black, y, 2, black, 2); check_pixel(x_right, y, 2, white, 2); } Index: testsuite/misc-ming.all/loop_test3.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test3.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/loop_test3.c 18 May 2007 21:44:16 -0000 1.1 +++ testsuite/misc-ming.all/loop_test3.c 17 Jun 2007 09:07:28 -0000 1.2 @@ -143,19 +143,19 @@ "gotoAndStop(2);" // Character placed in frame 3 at depth (-16380) was destroyed (placed *after* target frame) - "xcheck_equals(typeof(movieClip1), 'undefined');" + "check_equals(typeof(movieClip1), 'undefined');" // Depth of character at depth -16380 isn't restored (there's no character at that depth) // (gnash fails because create new instances instead) - "xcheck_equals(movieClip2.getDepth(), -16381);" + "check_equals(movieClip2.getDepth(), -16381);" // movieClip2 is still the same instance // (gnash fails because create new instance instead) - "xcheck_equals(movieClip2.secretCode, 'mc2');" + "check_equals(movieClip2.secretCode, 'mc2');" // Chars have been constructed only once // (gnash fails because create new movieClip1 instance instead) - "xcheck_equals(mc1Constructed, 1);" + "check_equals(mc1Constructed, 1);" "check_equals(mc2Constructed, 1);" "totals();" Index: testsuite/misc-ming.all/loop_test5.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test5.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/loop_test5.c 21 May 2007 08:30:11 -0000 1.1 +++ testsuite/misc-ming.all/loop_test5.c 17 Jun 2007 09:07:28 -0000 1.2 @@ -182,12 +182,12 @@ SWFMovie_add(mo, (SWFBlock)newSWFAction( "gotoAndStop(3);")); check_equals(mo, "typeof(movieClip1)", "'movieclip'"); - xcheck_equals(mo, "typeof(movieClip2)", "'undefined'"); + check_equals(mo, "typeof(movieClip2)", "'undefined'"); // the difference of movieClip3 and movieClip4 was caused by the ratio value check_equals(mo, "typeof(movieClip3)", "'undefined'"); - xcheck_equals(mo, "typeof(movieClip4)", "'movieclip'"); + check_equals(mo, "typeof(movieClip4)", "'movieclip'"); check_equals(mo, "_root.mc1Constructed", "2"); - xcheck_equals(mo, "_root.mc2Constructed", "1"); + check_equals(mo, "_root.mc2Constructed", "1"); check_equals(mo, "_root.mc3Constructed", "1"); check_equals(mo, "_root.mc4Constructed", "1"); Index: testsuite/misc-ming.all/loop_test8.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test8.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- testsuite/misc-ming.all/loop_test8.c 13 Jun 2007 13:15:51 -0000 1.3 +++ testsuite/misc-ming.all/loop_test8.c 17 Jun 2007 09:07:28 -0000 1.4 @@ -218,12 +218,12 @@ add_actions(mo, "gotoAndStop(3);"); check_equals(mo, "typeof(mc1)", "'movieclip'"); - xcheck_equals(mo, "typeof(mc2)", "'undefined'"); + check_equals(mo, "typeof(mc2)", "'undefined'"); check_equals(mo, "typeof(mc3)", "'movieclip'"); - xcheck_equals(mo, "typeof(mc4)", "'movieclip'"); + check_equals(mo, "typeof(mc4)", "'movieclip'"); xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); check_equals(mo, "mc1Constructed", "1"); - xcheck_equals(mo, "mc2Constructed", "1"); + check_equals(mo, "mc2Constructed", "1"); check_equals(mo, "mc3Constructed", "2"); check_equals(mo, "mc4Constructed", "1"); check_equals(mo, "mc5Constructed", "1"); From MAILER-DAEMON Sun Jun 17 05:19:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hzqum-0006SM-Rl for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 05:19:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hzquk-0006Pm-Tj for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:19:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hzquk-0006OQ-3t for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:19:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzquj-0006OA-TN for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:19:17 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hzquj-0001tv-IX for gnash-commit@gnu.org; Sun, 17 Jun 2007 05:19:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Hzqui-00023p-UH for gnash-commit@gnu.org; Sun, 17 Jun 2007 09:19:17 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Hzqui-00023m-PN for gnash-commit@gnu.org; Sun, 17 Jun 2007 09:19:16 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Sun, 17 Jun 2007 09:19:16 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 09:19:19 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/17 09:19:16 Modified files: . : ChangeLog testsuite/misc-ming.all: loop_test8.c Log message: comments CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3567&r2=1.3568 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test8.c?cvsroot=gnash&r1=1.4&r2=1.5 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3567 retrieving revision 1.3568 diff -u -b -r1.3567 -r1.3568 --- ChangeLog 17 Jun 2007 09:07:26 -0000 1.3567 +++ ChangeLog 17 Jun 2007 09:19:16 -0000 1.3568 @@ -1,5 +1,9 @@ 2007-06-17 Zou Lunkai + * testsuite/misc-ming.all/loop_test8.c: comments + +2007-06-17 Zou Lunkai + * server/parser/movie_definition.h, server/parser/movie_def_impl.h, server/parser/sprite_definition.h, Index: testsuite/misc-ming.all/loop_test8.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test8.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- testsuite/misc-ming.all/loop_test8.c 17 Jun 2007 09:07:28 -0000 1.4 +++ testsuite/misc-ming.all/loop_test8.c 17 Jun 2007 09:19:16 -0000 1.5 @@ -221,7 +221,7 @@ check_equals(mo, "typeof(mc2)", "'undefined'"); check_equals(mo, "typeof(mc3)", "'movieclip'"); check_equals(mo, "typeof(mc4)", "'movieclip'"); - xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); + xcheck_equals(mo, "typeof(mc5)", "'movieclip'"); // Gnash fails because of action execution order check_equals(mo, "mc1Constructed", "1"); check_equals(mo, "mc2Constructed", "1"); check_equals(mo, "mc3Constructed", "2"); From MAILER-DAEMON Sun Jun 17 18:09:28 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I02w4-0005Nh-JX for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 18:09:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I02w2-0005NW-Sx for gnash-commit@gnu.org; Sun, 17 Jun 2007 18:09:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I02w1-0005NK-Sr for gnash-commit@gnu.org; Sun, 17 Jun 2007 18:09:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I02w1-0005NH-PQ for gnash-commit@gnu.org; Sun, 17 Jun 2007 18:09:25 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I02w1-0002FK-Fj for gnash-commit@gnu.org; Sun, 17 Jun 2007 18:09:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I02w0-0000DO-HV for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:09:24 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I02w0-0000DL-CB for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:09:24 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 17 Jun 2007 22:09:24 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server sprite_instance.cpp sprite_instance.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 22:09:27 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/17 22:09:24 Modified files: server : sprite_instance.cpp sprite_instance.h Log message: (second attempt, savannah probs...) * server/sprite_instance.{cpp,h}: (markReachableResources): mark _frame0_chars as reachable. make check completes successfully now. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.289&r2=1.290 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.121&r2=1.122 Patches: Index: sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.289 retrieving revision 1.290 diff -u -b -r1.289 -r1.290 --- sprite_instance.cpp 17 Jun 2007 09:07:28 -0000 1.289 +++ sprite_instance.cpp 17 Jun 2007 22:09:23 -0000 1.290 @@ -4002,6 +4002,8 @@ oldDisplayList.visitAll(marker); + _frame0_chars.visitAll(marker); + _drawable->setReachable(); _drawable_inst->setReachable(); Index: sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.121 retrieving revision 1.122 diff -u -b -r1.121 -r1.122 --- sprite_instance.h 17 Jun 2007 09:07:28 -0000 1.121 +++ sprite_instance.h 17 Jun 2007 22:09:24 -0000 1.122 @@ -1000,7 +1000,7 @@ /// the parent's class version (markCharacterReachableResources) // /// sprite-specific reachable resources are: - /// - DisplayList items (both current and backup one) + /// - DisplayList items (current, backup and frame0 ones) /// - Canvas for dynamic drawing (_drawable) /// - Drawable instance (_drawable_inst) /// - sprite environment From MAILER-DAEMON Sun Jun 17 20:27:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0560-0000wU-8F for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 20:27:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I055y-0000vu-PD for gnash-commit@gnu.org; Sun, 17 Jun 2007 20:27:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I055x-0000vB-04 for gnash-commit@gnu.org; Sun, 17 Jun 2007 20:27:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I055w-0000v6-Se for gnash-commit@gnu.org; Sun, 17 Jun 2007 20:27:48 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I055w-0000eR-JV for gnash-commit@gnu.org; Sun, 17 Jun 2007 20:27:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I055u-0005zs-KU for gnash-commit@gnu.org; Mon, 18 Jun 2007 00:27:46 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I055t-0005zi-Pt for gnash-commit@gnu.org; Mon, 18 Jun 2007 00:27:46 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 18 Jun 2007 00:27:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/vm/ASHandlers.cpp testsu... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 00:27:51 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/18 00:27:45 Modified files: . : ChangeLog server/vm : ASHandlers.cpp testsuite/swfdec: PASSING Log message: * server/vm/ASHandlers.cpp (ActionTrace): don't use the string value as a format string ! * testsuite/swfdec/PASSING: 31 new tests found in the 'as' branch of swfdec succeed. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3569&r2=1.3570 http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/ASHandlers.cpp?cvsroot=gnash&r1=1.108&r2=1.109 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/swfdec/PASSING?cvsroot=gnash&r1=1.22&r2=1.23 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3569 retrieving revision 1.3570 diff -u -b -r1.3569 -r1.3570 --- ChangeLog 17 Jun 2007 22:03:52 -0000 1.3569 +++ ChangeLog 18 Jun 2007 00:27:43 -0000 1.3570 @@ -1,5 +1,12 @@ 2007-06-18 Sandro Santilli + * server/vm/ASHandlers.cpp (ActionTrace): don't use the string value + as a format string ! + * testsuite/swfdec/PASSING: 31 new tests found in the 'as' branch + of swfdec succeed. + +2007-06-18 Sandro Santilli + * server/sprite_instance.{cpp,h}: (markReachableResources): mark _frame0_chars as reachable. make check completes successfully now. Index: server/vm/ASHandlers.cpp =================================================================== RCS file: /sources/gnash/gnash/server/vm/ASHandlers.cpp,v retrieving revision 1.108 retrieving revision 1.109 diff -u -b -r1.108 -r1.109 --- server/vm/ASHandlers.cpp 15 Jun 2007 15:00:31 -0000 1.108 +++ server/vm/ASHandlers.cpp 18 Jun 2007 00:27:44 -0000 1.109 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: ASHandlers.cpp,v 1.108 2007/06/15 15:00:31 strk Exp $ */ +/* $Id: ASHandlers.cpp,v 1.109 2007/06/18 00:27:44 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1220,7 +1220,7 @@ //std::string val = env.pop().to_string_versioned(VM::get().getSWFVersion(), &env); std::string val = env.pop().to_string(&env); - log_trace(val.c_str()); + log_trace("%s", val.c_str()); } void Index: testsuite/swfdec/PASSING =================================================================== RCS file: /sources/gnash/gnash/testsuite/swfdec/PASSING,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- testsuite/swfdec/PASSING 30 Apr 2007 21:11:10 -0000 1.22 +++ testsuite/swfdec/PASSING 18 Jun 2007 00:27:44 -0000 1.23 @@ -59,3 +59,34 @@ object-math-7.swf event-order.swf function1.swf +array-new-override-5.swf +delete-object-5.swf +delete-object-6.swf +delete-object-7.swf +delete-prototypes-5.swf +delete-prototypes-6.swf +delete-prototypes-7.swf +function-tostring-5.swf +function-tostring-6.swf +function-tostring-7.swf +initobject-stack-5.swf +initobject-stack-7.swf +isnan-5.swf +isnan-6.swf +isnan-7.swf +jump-into-with.swf +jump-out-and-back-into-with-3.swf +jump-out-and-back-into-with-4.swf +jump-out-and-back-into-with.swf +set-overwrite-global-5.swf +set-overwrite-global-6.swf +set-overwrite-global-7.swf +string-convert-5.swf +with-delete-5.swf +with-delete-6.swf +with-delete-7.swf +with-function-delete-6.swf +with-function-delete-7.swf +with-prototypes-5.swf +with-prototypes-6.swf +with-prototypes-7.swf From MAILER-DAEMON Sun Jun 17 22:40:38 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I07AU-0008IZ-0J for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 22:40:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I07AS-0008IU-Pi for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:40:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I07AS-0008IH-0U for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:40:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07AR-0008IC-TI for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:40:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I07AR-0006vR-GM for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:40:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I07AQ-0001rq-3S for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:40:34 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I07AP-0001rl-Q7 for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:40:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 02:40:33 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/loop_te... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 02:40:37 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 02:40:33 Modified files: . : ChangeLog testsuite/misc-ming.all: loop_test7.c Log message: add missing head file and comments CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3572&r2=1.3573 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test7.c?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3572 retrieving revision 1.3573 diff -u -b -r1.3572 -r1.3573 --- ChangeLog 18 Jun 2007 02:39:26 -0000 1.3572 +++ ChangeLog 18 Jun 2007 02:40:32 -0000 1.3573 @@ -1,6 +1,5 @@ 2007-06-18 Zou Lunkai - * libbase/GC.h: add missing head file * testsuite/misc-ming.all/loop_test7: review and comments 2007-06-18 Sandro Santilli Index: testsuite/misc-ming.all/loop_test7.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test7.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/loop_test7.c 24 May 2007 08:48:04 -0000 1.2 +++ testsuite/misc-ming.all/loop_test7.c 18 Jun 2007 02:40:33 -0000 1.3 @@ -39,7 +39,6 @@ * * Expected behaviour: * - * TODO: verify * After jump back, the onConstruct event handler for the red square has been invoked twice. * * run as ./loop_test7 @@ -117,6 +116,12 @@ // Frame3: Remove red square SWFDisplayItem_remove(it1); + // After compile, the RemoveObject2 tag is *after* the DoAction tag which + // contains the following check. So it's not surprise that we can still access + // "movieClip1" here when considering the gloabal ActionQueue model! If the + // RemoveObject2 is *before* the DoAction, then typeof(movieClip1) will reurn 'undefined'. + // So Gnash fails here because of action execution order! + // TODO: add testcase for this(DoAction placed *before* RemoveObject2 within the same frame). xcheck_equals(mo, "typeof(movieClip1)", "'movieclip'"); // kept alive for calling onUnload! check_equals(mo, "_root.mc1Constructed", "1"); SWFMovie_nextFrame(mo); From MAILER-DAEMON Sun Jun 17 22:42:56 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I07Ci-0000ba-AP for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 22:42:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I07Cg-0000bS-Q9 for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:42:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I07Cf-0000bG-Ff for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:42:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07Cf-0000bD-AN for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:42:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I07Cf-00075P-0n for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:42:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I07Ce-0002Hu-9q for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:42:52 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I07Cd-0002Hp-Ts for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:42:52 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 02:42:51 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all loop_test7.c X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 02:42:55 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 02:42:51 Modified files: testsuite/misc-ming.all: loop_test7.c Log message: typo CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test7.c?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: loop_test7.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test7.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- loop_test7.c 18 Jun 2007 02:40:33 -0000 1.3 +++ loop_test7.c 18 Jun 2007 02:42:51 -0000 1.4 @@ -121,7 +121,7 @@ // "movieClip1" here when considering the gloabal ActionQueue model! If the // RemoveObject2 is *before* the DoAction, then typeof(movieClip1) will reurn 'undefined'. // So Gnash fails here because of action execution order! - // TODO: add testcase for this(DoAction placed *before* RemoveObject2 within the same frame). + // TODO: add testcase for this(RemoveObject2 placed *before* DoAction within the same frame). xcheck_equals(mo, "typeof(movieClip1)", "'movieclip'"); // kept alive for calling onUnload! check_equals(mo, "_root.mc1Constructed", "1"); SWFMovie_nextFrame(mo); From MAILER-DAEMON Sun Jun 17 22:48:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I07IF-0002on-MN for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 22:48:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I07IE-0002og-3w for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:48:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I07ID-0002oU-MY for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:48:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07ID-0002oR-JQ for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:48:37 -0400 Received: from nz-out-0506.google.com ([64.233.162.226]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I07ID-0007nF-7C for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:48:37 -0400 Received: by nz-out-0506.google.com with SMTP id q3so1104822nzb for ; Sun, 17 Jun 2007 19:48:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VxYgkZT2cTXdIHXmH4ZHyN8obT3ZmzwHPQ75sMpl6fv8vp7+sOubAG0SM6AE+0WrrcU/YXtEjr7A4QjyOptUo/Fr2Ag4Y5yU5TErEAZUQevTiTznrYtIFsHwshsgZrMMnodRlm6u2+p69JnKSnmpNT+MkNvIgrWkqTHypWqm6e4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sQJRumWkLmbLgqRmHkG347zk+mn+um8/VHHMh4Xr9inybqCRwNIL4VsOffQrYP0KWwAZ3WAbh5GiZ54UIjAe6XHrWP/OPgNCO83Ol5NcyE2H/CaoYZtxhZmNtqwolMJAZX4snuwvRIGvxKa0XJquJksoh6gWGivfCINjgLIP8V8= Received: by 10.115.23.12 with SMTP id a12mr5657884waj.1182134915417; Sun, 17 Jun 2007 19:48:35 -0700 (PDT) Received: by 10.114.110.5 with HTTP; Sun, 17 Jun 2007 19:48:35 -0700 (PDT) Message-ID: Date: Mon, 18 Jun 2007 10:48:35 +0800 From: "zou lunkai" To: "Sandro Santilli" Subject: Re: [Gnash-commit] gnash ChangeLog libbase/GC.h In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 02:48:38 -0000 should add two missing head files for std::find and assert() for passing compile here. eg. #include //for std::find #include I can't update this file, always get a message " waiting for nobody's lock in /sources/gnash/gnash/libbase". Don't quite understand what this message exactly means. On 6/17/07, Sandro Santilli wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Sandro Santilli 07/06/17 08:49:29 > > Modified files: > . : ChangeLog > libbase : GC.h > > Log message: > * libbase/GC.h: fixed a misleading delete count for > the debugging mode. You can now see that in the UdoG > leaking case (empty function in first frame, empty second > frame) every GC collect run deletes 2 resources (most > likely an isolated chain of references in the RC case). > > CVSWeb URLs: > http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3565&r2=1.3566 > http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.5&r2=1.6 > > Patches: > Index: ChangeLog > =================================================================== > RCS file: /sources/gnash/gnash/ChangeLog,v > retrieving revision 1.3565 > retrieving revision 1.3566 > diff -u -b -r1.3565 -r1.3566 > --- ChangeLog 17 Jun 2007 08:34:41 -0000 1.3565 > +++ ChangeLog 17 Jun 2007 08:49:28 -0000 1.3566 > @@ -1,3 +1,11 @@ > +2007-06-16 Sandro Santilli > + > + * libbase/GC.h: fixed a misleading delete count for > + the debugging mode. You can now see that in the UdoG > + leaking case (empty function in first frame, empty second > + frame) every GC collect run deletes 2 resources (most > + likely an isolated chain of references in the RC case). > + > 2007-06-17 Ann Barcomb > > * plugin/Makefile.am: Removed an incorrect comment. > > Index: libbase/GC.h > =================================================================== > RCS file: /sources/gnash/gnash/libbase/GC.h,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -b -r1.5 -r1.6 > --- libbase/GC.h 16 Jun 2007 09:17:34 -0000 1.5 > +++ libbase/GC.h 17 Jun 2007 08:49:29 -0000 1.6 > @@ -294,9 +294,11 @@ > const GcResource* res = *i; > if ( ! res->isReachable() ) > { > +#ifdef GNASH_GC_DEBUG > #if GNASH_GC_DEBUG > 1 > log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), > (void*)this, (void*)res, typeid(*res).name()); > +#endif > ++deleted; > #endif > delete res; > > > _______________________________________________ > Gnash-commit mailing list > Gnash-commit@gnu.org > http://lists.gnu.org/mailman/listinfo/gnash-commit > From MAILER-DAEMON Sun Jun 17 22:57:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I07QR-0007As-44 for mharc-gnash-commit@gnu.org; Sun, 17 Jun 2007 22:57:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I07QQ-0007An-0a for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:57:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I07QP-0007Ab-Jq for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:57:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I07QP-0007AY-EF for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:57:05 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I07QO-0000CI-TB for gnash-commit@gnu.org; Sun, 17 Jun 2007 22:57:05 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I07QO-0003M0-1u for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:57:04 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I07QN-0003Lx-Rc for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:57:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 02:57:03 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all loop_test6.c X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 02:57:06 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 02:57:02 Modified files: testsuite/misc-ming.all: loop_test6.c Log message: review and comments CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loop_test6.c?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: loop_test6.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loop_test6.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- loop_test6.c 24 May 2007 07:31:45 -0000 1.2 +++ loop_test6.c 18 Jun 2007 02:57:02 -0000 1.3 @@ -124,7 +124,9 @@ SWFMovie_add(mo, (SWFBlock)newSWFAction( "gotoAndStop(4);")); check_equals(mo, "typeof(movieClip1)", "'undefined'"); - // Gnash calls onConstruct again !! + // onClipConstruct invoked or not during jumping back is dependent + // on whether the onClipUnload has been defined. + // Gnash fails by calling onClipConstruct again without considering onClipUnload!! xcheck_equals(mo, "_root.mc1Constructed", "1"); SWFMovie_add(mo, (SWFBlock)newSWFAction( "totals(); stop();" )); @@ -136,4 +138,3 @@ return 0; } - From MAILER-DAEMON Mon Jun 18 02:50:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0B4b-0000HL-SU for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 02:50:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0B4a-0000HB-2r for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:50:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0B4X-0000FE-TW for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:50:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0B4X-0000FB-N7 for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:50:45 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0B4X-0007Tk-Aj for gnash-commit@gnu.org; Mon, 18 Jun 2007 02:50:45 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0B4W-0003jk-Hb for gnash-commit@gnu.org; Mon, 18 Jun 2007 06:50:44 +0000 Received: from ann by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0B4W-0003jf-8S for gnash-commit@gnu.org; Mon, 18 Jun 2007 06:50:44 +0000 To: gnash-commit@gnu.org Message-Id: From: Ann Barcomb Date: Mon, 18 Jun 2007 06:50:44 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/libbase GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 06:50:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Ann Barcomb 07/06/18 06:50:44 Modified files: libbase : GC.h Log message: This is a meaningless change (removed a comma in a description), intended to see if there is a stalled lock on this file. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.6&r2=1.7 Patches: Index: GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- GC.h 17 Jun 2007 08:49:29 -0000 1.6 +++ GC.h 18 Jun 2007 06:50:43 -0000 1.7 @@ -1,4 +1,4 @@ -// GC.h: Garbage Collector, for Gnash +// GC.h: Garbage Collector for Gnash // // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. // From MAILER-DAEMON Mon Jun 18 04:13:14 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0CMM-00005e-GI for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 04:13:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0CMK-0008VY-HJ for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:13:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0CMK-0008Uw-4u for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:13:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0CMJ-0008Ul-Vp for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:13:11 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0CMJ-0002e4-LJ for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:13:11 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0CMJ-0001G2-1s for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:13:11 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0CMI-0001Fz-Tt for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:13:10 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 08:13:10 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 08:13:12 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 08:13:10 Modified files: . : ChangeLog libbase : GC.h Log message: add missing head file CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3573&r2=1.3574 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3573 retrieving revision 1.3574 diff -u -b -r1.3573 -r1.3574 --- ChangeLog 18 Jun 2007 02:40:32 -0000 1.3573 +++ ChangeLog 18 Jun 2007 08:13:10 -0000 1.3574 @@ -1,6 +1,11 @@ 2007-06-18 Zou Lunkai + * libbase/GC.h: add missing head file. + +2007-06-18 Zou Lunkai + * testsuite/misc-ming.all/loop_test7: review and comments + * testsuite/misc-ming.all/loop_test6: review and comments 2007-06-18 Sandro Santilli Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- libbase/GC.h 18 Jun 2007 06:50:43 -0000 1.7 +++ libbase/GC.h 18 Jun 2007 08:13:10 -0000 1.8 @@ -24,6 +24,7 @@ #endif #include +#include //for std::find // Define the following macro to enable GC verbosity // Define to > 1 to have info printed about scan of already reachable objects From MAILER-DAEMON Mon Jun 18 04:34:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0ChF-0004Mg-Ty for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 04:34:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0ChE-0004Ka-7L for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:34:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0ChC-0004Jf-V7 for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:34:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0ChC-0004JV-Q7 for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:34:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0ChC-0005WT-Fn for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:34:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0ChB-0002b9-UH for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:34:46 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0ChA-0002az-TO for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:34:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 08:34:44 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/key_eve... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 08:34:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 08:34:44 Modified files: . : ChangeLog testsuite/misc-ming.all: key_event_test3.c key_event_test3runner.cpp Log message: fix the bogus key_event_test3runner CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3574&r2=1.3575 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/key_event_test3.c?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/key_event_test3runner.cpp?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3574 retrieving revision 1.3575 diff -u -b -r1.3574 -r1.3575 --- ChangeLog 18 Jun 2007 08:13:10 -0000 1.3574 +++ ChangeLog 18 Jun 2007 08:34:43 -0000 1.3575 @@ -1,5 +1,11 @@ 2007-06-18 Zou Lunkai + * testsuite/misc-ming.all/key_event_test3.c, + testsuite/misc-ming.all/key_event_test3runner.cpp: the testrunner was + bogus, fix the testrunner itself. + +2007-06-18 Zou Lunkai + * libbase/GC.h: add missing head file. 2007-06-18 Zou Lunkai Index: testsuite/misc-ming.all/key_event_test3.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/key_event_test3.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/key_event_test3.c 29 May 2007 07:28:31 -0000 1.1 +++ testsuite/misc-ming.all/key_event_test3.c 18 Jun 2007 08:34:44 -0000 1.2 @@ -19,7 +19,7 @@ /* * frame1: set _root.x1 to zero; * frame2: - * create a dynamic movieclip with a user defined onKeyDown event handler; + * create a dynamic movieclip at the static depth zone with a user defined onKeyDown event handler; * increase _root.x1 within the event handler; * * KeyDown events are provided by the testrunner. @@ -55,15 +55,15 @@ Ming_init(); mo = newSWFMovieWithVersion(OUTPUT_VERSION); SWFMovie_setDimension(mo, 800, 600); - SWFMovie_setRate (mo, 12.0); + SWFMovie_setRate (mo, 0.5); dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); SWFMovie_add(mo, (SWFBlock)dejagnuclip); - add_actions(mo, "x1=0;"); + add_actions(mo, "_root.note('at frame1'); x1=0;"); SWFMovie_nextFrame(mo); // 1st frame add_actions(mo, - "_root.createEmptyMovieClip('dynamic_mc', 10);" + "_root.createEmptyMovieClip('dynamic_mc', -10);" "dynamic_mc.onKeyDown = function() " "{" " _root.note('KeyDown triggered');" @@ -80,5 +80,3 @@ return 0; } - - Index: testsuite/misc-ming.all/key_event_test3runner.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/key_event_test3runner.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/misc-ming.all/key_event_test3runner.cpp 29 May 2007 07:28:31 -0000 1.1 +++ testsuite/misc-ming.all/key_event_test3runner.cpp 18 Jun 2007 08:34:44 -0000 1.2 @@ -73,8 +73,7 @@ tester.releaseKey(key::A); // check that no KeyDown was triggered(no key event handler at frame1); check(root->get_member("x1", &tmp)); - // Gnash fails because the key listener didn't get removed by loop-back - xcheck_equals(tmp.to_number(), 0); + check_equals(tmp.to_number(), 0); tester.advance(); // advance to frame2 check_equals(root->get_current_frame(), 1); @@ -85,9 +84,7 @@ // check that KeyDown have been triggered check(root->get_member("x1", &tmp)); - // gnash fails because the key listener didn't get removed by loop-back - // and get added to the listener list again; - xcheck_equals(tmp.to_number(), 1); + check_equals(tmp.to_number(), 1); tester.advance(); // loop back to frame1 again // press key 'A' and checks @@ -95,8 +92,7 @@ tester.releaseKey(key::A); // check that no KeyDown was triggered(no key event handler at frame1); check(root->get_member("x1", &tmp)); - // Gnash fails because the key listener didn't get removed by loop-back - xcheck_equals(tmp.to_number(), 0); + check_equals(tmp.to_number(), 0); tester.advance(); // advance to frame2 check_equals(root->get_current_frame(), 1); @@ -107,9 +103,7 @@ // check that KeyDown have been triggered check(root->get_member("x1", &tmp)); - // gnash fails because the key listener didn't get removed when loop back - // and get added to the list again; - xcheck_equals(tmp.to_number(), 1); + check_equals(tmp.to_number(), 1); return 0; } From MAILER-DAEMON Mon Jun 18 04:56:41 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0D2P-0005f0-Da for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 04:56:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0D2N-0005eZ-KU for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:56:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0D2M-0005eN-Uw for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:56:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0D2M-0005eK-QU for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:56:38 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0D2M-0008AP-BL for gnash-commit@gnu.org; Mon, 18 Jun 2007 04:56:38 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0D2L-0005Il-Mm for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:56:37 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0D2L-0005Ig-F5 for gnash-commit@gnu.org; Mon, 18 Jun 2007 08:56:37 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 18 Jun 2007 08:56:37 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/shape_t... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 08:56:39 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/18 08:56:37 Modified files: . : ChangeLog testsuite/misc-ming.all: shape_test.c Log message: more tests, make the deduction easier CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3575&r2=1.3576 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/shape_test.c?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3575 retrieving revision 1.3576 diff -u -b -r1.3575 -r1.3576 --- ChangeLog 18 Jun 2007 08:34:43 -0000 1.3575 +++ ChangeLog 18 Jun 2007 08:56:36 -0000 1.3576 @@ -1,5 +1,10 @@ 2007-06-18 Zou Lunkai + * testsuite/misc-ming.all/shape_test.c: more tests, make the deduction easier. + surprisingly, all succeeded. + +2007-06-18 Zou Lunkai + * testsuite/misc-ming.all/key_event_test3.c, testsuite/misc-ming.all/key_event_test3runner.cpp: the testrunner was bogus, fix the testrunner itself. Index: testsuite/misc-ming.all/shape_test.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/shape_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/shape_test.c 24 May 2007 13:01:47 -0000 1.2 +++ testsuite/misc-ming.all/shape_test.c 18 Jun 2007 08:56:37 -0000 1.3 @@ -16,6 +16,13 @@ * */ +/* + * Try to add variables to shapes, observed behavior is that variables are added + * to _root accidently. + * + * TODO: verify this! + */ + #include #include #include @@ -69,8 +76,10 @@ check(mo, "sh2 != undefined"); // Do these checks mean that shapes are movieclips? + // seems not. check_equals(mo, "typeof(sh1)", "'movieclip'"); check_equals(mo, "typeof(sh2)", "'movieclip'"); + check_equals(mo, "typeof(_root)", "'movieclip'"); add_actions(mo, "sh1.var1 = 10;" @@ -78,8 +87,12 @@ ); // Do these checks mean that we can add variables to shapes? + // seems not, variable are added to the _root, interesting. check_equals(mo, "sh1.var1", "10"); check_equals(mo, "sh2.var2", "20"); + check_equals(mo, "_root.var1", "10"); + check_equals(mo, "_root.var2", "20"); + check_equals(mo, "sh1._x", "0"); check_equals(mo, "sh2._x", "0"); @@ -90,6 +103,7 @@ check_equals(mo, "sh1._x", "400"); check_equals(mo, "sh2._x", "400"); + check_equals(mo, "_root._x", "400"); // Do these checks mean that shapes are *not* movieclips? check_equals(mo, "typeof(sh1.getDepth())", "'undefined'"); From MAILER-DAEMON Mon Jun 18 05:33:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0Dbr-0007GO-1H for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 05:33:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0Dbp-0007GE-II for gnash-commit@gnu.org; Mon, 18 Jun 2007 05:33:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0Dbo-0007Fw-4A for gnash-commit@gnu.org; Mon, 18 Jun 2007 05:33:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0Dbo-0007Fs-1z for gnash-commit@gnu.org; Mon, 18 Jun 2007 05:33:16 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0Dbn-000535-GJ for gnash-commit@gnu.org; Mon, 18 Jun 2007 05:33:15 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0Dbf-00082Z-0w for gnash-commit@gnu.org; Mon, 18 Jun 2007 09:33:07 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0Dbe-00082V-P1 for gnash-commit@gnu.org; Mon, 18 Jun 2007 09:33:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 18 Jun 2007 09:33:06 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/movie_def_impl.h ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 09:33:17 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/18 09:33:06 Modified files: . : ChangeLog server/parser : movie_def_impl.h movie_definition.h sprite_definition.h Log message: * server/parser/: movie_def_impl.h, movie_definition.h, sprite_definition.h: document add_execute_tag ownership transfer. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3576&r2=1.3577 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.h?cvsroot=gnash&r1=1.46&r2=1.47 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_definition.h?cvsroot=gnash&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/sprite_definition.h?cvsroot=gnash&r1=1.22&r2=1.23 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3576 retrieving revision 1.3577 diff -u -b -r1.3576 -r1.3577 --- ChangeLog 18 Jun 2007 08:56:36 -0000 1.3576 +++ ChangeLog 18 Jun 2007 09:33:05 -0000 1.3577 @@ -1,3 +1,9 @@ +2007-06-18 Sandro Santilli + + * server/parser/: movie_def_impl.h, movie_definition.h, + sprite_definition.h: document add_execute_tag ownership + transfer. + 2007-06-18 Zou Lunkai * testsuite/misc-ming.all/shape_test.c: more tests, make the deduction easier. Index: server/parser/movie_def_impl.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.h,v retrieving revision 1.46 retrieving revision 1.47 diff -u -b -r1.46 -r1.47 --- server/parser/movie_def_impl.h 17 Jun 2007 09:07:27 -0000 1.46 +++ server/parser/movie_def_impl.h 18 Jun 2007 09:33:06 -0000 1.47 @@ -470,12 +470,12 @@ // See dox in movie_definition.h int get_loading_sound_stream_id() { return m_loading_sound_stream; } - /// Add an execute_tag to this movie_definition's playlist - void add_execute_tag(execute_tag* e) + // See dox in movie_definition.h + void add_execute_tag(execute_tag* tag) { - assert(e); + assert(tag); if (_frames_loaded < m_playlist.size()) { - m_playlist[_frames_loaded].push_back(e); + m_playlist[_frames_loaded].push_back(tag); } } Index: server/parser/movie_definition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_definition.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- server/parser/movie_definition.h 17 Jun 2007 09:07:27 -0000 1.25 +++ server/parser/movie_definition.h 18 Jun 2007 09:33:06 -0000 1.26 @@ -331,10 +331,18 @@ return NULL; } - /// Add an execute_tag to the frame currently being loaded + /// Add an execute_tag to this movie_definition's playlist // /// The default implementation is a no-op. /// + /// @param tag + /// The tag to add in the list of executable tags for + /// the frame currently being loaded. Ownership is transferred + /// to the movie_def_impl. + /// + /// TODO: take an auto_ptr. + /// NOTE: the default implementation just let the execute_tag leak. + /// virtual void add_execute_tag(execute_tag* /*c*/) { } Index: server/parser/sprite_definition.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/sprite_definition.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- server/parser/sprite_definition.h 17 Jun 2007 09:07:27 -0000 1.22 +++ server/parser/sprite_definition.h 18 Jun 2007 09:33:06 -0000 1.23 @@ -290,6 +290,7 @@ character* parent, int id); + // See dox in movie_definition.h virtual void add_execute_tag(execute_tag* c) { m_playlist[m_loading_frame].push_back(c); From MAILER-DAEMON Mon Jun 18 15:53:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0NHd-0007Xi-8W for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 15:53:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0NHb-0007Xd-Ln for gnash-commit@gnu.org; Mon, 18 Jun 2007 15:53:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0NHa-0007XR-IO for gnash-commit@gnu.org; Mon, 18 Jun 2007 15:53:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0NHa-0007XK-FQ for gnash-commit@gnu.org; Mon, 18 Jun 2007 15:53:02 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0NHa-0003MA-0F for gnash-commit@gnu.org; Mon, 18 Jun 2007 15:53:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0NHY-0000BQ-Jw for gnash-commit@gnu.org; Mon, 18 Jun 2007 19:53:00 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0NHY-0000BN-E4 for gnash-commit@gnu.org; Mon, 18 Jun 2007 19:53:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 18 Jun 2007 19:53:00 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog configure.ac server/asobj/NetSt... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 19:53:03 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/18 19:53:00 Modified files: . : ChangeLog configure.ac server/asobj : NetStreamGst.cpp Log message: Applied patch by Alexander Sack : * configure.ac: detect usable pbutils for automatic installation of missing codecs. * server/asobj/NetStreamGst.cpp: try installing missing codecs as needed. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3577&r2=1.3578 http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.343&r2=1.344 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamGst.cpp?cvsroot=gnash&r1=1.54&r2=1.55 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3577 retrieving revision 1.3578 diff -u -b -r1.3577 -r1.3578 --- ChangeLog 18 Jun 2007 09:33:05 -0000 1.3577 +++ ChangeLog 18 Jun 2007 19:52:59 -0000 1.3578 @@ -1,3 +1,10 @@ +2007-06-18 Alexander Sack + + * configure.ac: detect usable pbutils for automatic installation of + missing codecs. + * server/asobj/NetStreamGst.cpp: try installing missing codecs + as needed. + 2007-06-18 Sandro Santilli * server/parser/: movie_def_impl.h, movie_definition.h, Index: configure.ac =================================================================== RCS file: /sources/gnash/gnash/configure.ac,v retrieving revision 1.343 retrieving revision 1.344 diff -u -b -r1.343 -r1.344 --- configure.ac 14 Jun 2007 09:43:17 -0000 1.343 +++ configure.ac 18 Jun 2007 19:52:59 -0000 1.344 @@ -15,7 +15,7 @@ dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA dnl -dnl $Id: configure.ac,v 1.343 2007/06/14 09:43:17 strk Exp $ +dnl $Id: configure.ac,v 1.344 2007/06/18 19:52:59 strk Exp $ AC_PREREQ(2.50) AC_INIT(gnash, cvs) @@ -907,6 +907,20 @@ AC_MSG_WARN([No appropriate gstreamer library found, will try using mad.]) media_handler=mad fi + else + AC_MSG_CHECKING([for modern pbutils]) + save_cflags=$CFLAGS + CFLAGS=$GSTREAMER_CFLAGS + AC_TRY_COMPILE([#include ],[void* pointer = &gst_install_plugins_sync], + GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstpbutils-0.10", + has_modern_gstpbutils='no')] + CFLAGS=$save_cflags + if test x$has_modern_gstpbutils = xno; then + AC_MSG_RESULT([no {GSTREAMER_CFLAGS=$GSTREAMER_CFLAGS}]) + else + AC_DEFINE([GST_HAS_MODERN_PBUTILS], [], [GStreamer has pbutils with missing codec install routines installed]) + AC_MSG_RESULT([ok]) + fi fi fi Index: server/asobj/NetStreamGst.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamGst.cpp,v retrieving revision 1.54 retrieving revision 1.55 diff -u -b -r1.54 -r1.55 --- server/asobj/NetStreamGst.cpp 4 Jun 2007 20:55:14 -0000 1.54 +++ server/asobj/NetStreamGst.cpp 18 Jun 2007 19:53:00 -0000 1.55 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamGst.cpp,v 1.54 2007/06/04 20:55:14 strk Exp $ */ +/* $Id: NetStreamGst.cpp,v 1.55 2007/06/18 19:53:00 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -37,6 +37,11 @@ #include "gstgnashsrc.h" +#ifdef GST_HAS_MODERN_PBUTILS +#include +#include +#endif // GST_HAS_MODERN_PBUTILS + #include "URL.h" // Define the following macro to enable debugging traces @@ -525,6 +530,91 @@ } +#ifdef GST_HAS_MODERN_PBUTILS + +static void +GstInstallPluginsResultCb (GstInstallPluginsReturn result, + gpointer user_data) +{ + g_debug("JAU RESULTO MENDO"); +} + + +static gboolean +NetStreamGst_install_missing_codecs(GList *missing_plugin_details) +{ + + GstInstallPluginsReturn rv; + int i,c; + gchar **details = g_new0(gchar*, c+1); + GstInstallPluginsContext *install_ctx = gst_install_plugins_context_new(); + + c=g_list_length(missing_plugin_details); + + for(i=0; i < c; i++) + { + details[i] = (gchar*) g_list_nth_data(missing_plugin_details, i); + } + + rv = gst_install_plugins_sync (details, + install_ctx); + + g_strfreev(details); + + switch(rv) { + case GST_INSTALL_PLUGINS_SUCCESS: + if(!gst_update_registry()) + g_warning("we failed to update gst registry for new codecs"); + else + return true; + break; + case GST_INSTALL_PLUGINS_NOT_FOUND: + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_NOT_FOUND"); + break; + case GST_INSTALL_PLUGINS_ERROR: + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_ERROR"); + break; + case GST_INSTALL_PLUGINS_PARTIAL_SUCCESS: + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_PARTIAL_SUCCESS"); + break; + case GST_INSTALL_PLUGINS_USER_ABORT: + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_USER_ABORT"); + break; + case GST_INSTALL_PLUGINS_CRASHED: + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_CRASHED"); + break; + case GST_INSTALL_PLUGINS_INVALID: + g_warning("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_INVALID"); + break; + default: + g_warning("gst_install_plugins_sync -> UNEXPECTED RESULT (undocumented value)"); + break; + }; + + return false; +} + +static GList* +NetStreamGst_append_missing_codec_to_details (GList *list, + GstElement *source, + const GstCaps* caps) +{ + GstMessage *missing_msg; + missing_msg = gst_missing_decoder_message_new(source, + caps); + gchar* detail = gst_missing_plugin_message_get_installer_detail(missing_msg); + + if(!detail) + { + g_warning("missing message details not found. No details added."); + return list; + } + + return g_list_append(list, detail); +} + +#endif // GST_HAS_MODERN_PBUTILS + bool NetStreamGst::buildFLVVideoPipeline(bool &video) { @@ -536,6 +626,8 @@ bool doVideo = video; + GList *missing_plugin_details = NULL; + retry: if (videoInfo) { doVideo = true; videosource = gst_element_factory_make ("fakesrc", NULL); @@ -578,13 +670,15 @@ if ( ! videodecoder ) { log_error("Unable to create videodecoder 'ffdec_flv' element"); - return false; - } - // Check if the element was correctly created - if (!videodecoder) { - log_error(_("A gstreamer flashvideo (h.263) decoder element could not be created. You probably need to install gst-ffmpeg.")); +#ifdef GST_HAS_MODERN_PBUTILS + missing_plugin_details = NetStreamGst_append_missing_codec_to_details + (missing_plugin_details, + videosource, + videonincaps); +#else // GST_HAS_MODERN_PBUTILS return false; +#endif // GST_HAS_MODERN_PBUTILS } } else if (videoInfo->codec == VIDEO_CODEC_VP6) { @@ -597,13 +691,15 @@ if ( ! videodecoder ) { log_error("Unable to create videodecoder 'ffdec_vp6f' element"); - return false; - } - // Check if the element was correctly created - if (!videodecoder) { - log_error(_("A gstreamer flashvideo (VP6) decoder element could not be created! You probably need to install gst-ffmpeg.")); +#ifdef GST_HAS_MODERN_PBUTILS + missing_plugin_details = NetStreamGst_append_missing_codec_to_details + (missing_plugin_details, + videosource, + videonincaps); +#else // GST_HAS_MODERN_PBUTILS return false; +#endif // GST_HAS_MODERN_PBUTILS } } else if (videoInfo->codec == VIDEO_CODEC_SCREENVIDEO) { @@ -617,7 +713,15 @@ // Check if the element was correctly created if (!videodecoder) { log_error(_("A gstreamer flashvideo (ScreenVideo) decoder element could not be created! You probably need to install gst-ffmpeg.")); + +#ifdef GST_HAS_MODERN_PBUTILS + missing_plugin_details = NetStreamGst_append_missing_codec_to_details + (missing_plugin_details, + videosource, + videonincaps); +#else // GST_HAS_MODERN_PBUTILS return false; +#endif // GST_HAS_MODERN_PBUTILS } } else { @@ -625,13 +729,36 @@ return false; } + if(g_list_length(missing_plugin_details) == 0) + { g_object_set (G_OBJECT (videoinputcaps), "caps", videonincaps, NULL); gst_caps_unref (videonincaps); } - video = doVideo; + } + +#ifdef GST_HAS_MODERN_PBUTILS + if(g_list_length(missing_plugin_details) == 0) + { + g_debug("no missing plugins found"); + video = doVideo; return true; + } + g_debug("try to install missing plugins (count=%d)", g_list_length(missing_plugin_details)); + if(NetStreamGst_install_missing_codecs(missing_plugin_details)) + { + disconnectVideoHandoffSignal(); + g_list_free(missing_plugin_details); + missing_plugin_details = NULL; + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_SUCCESS ... one more roundtrip"); + goto retry; + } + g_list_free(missing_plugin_details); + return false; +#else // GST_HAS_MODERN_PBUTILS + return true; +#endif // GST_HAS_MODERN_PBUTILS } bool @@ -642,6 +769,10 @@ FLVAudioInfo* audioInfo = m_parser->getAudioInfo(); if (!audioInfo) doSound = false; +#ifdef GST_HAS_MODERN_PBUTILS + GList *missing_plugin_details = NULL; + retry: +#endif if (doSound) { #ifdef GNASH_DEBUG @@ -677,7 +808,6 @@ if (!audiodecoder) { log_error(_("A gstreamer mp3-decoder element could not be created! You probably need to install a mp3-decoder plugin like gstreamer0.10-mad or gstreamer0.10-fluendo-mp3.")); - return false; } } @@ -695,6 +825,28 @@ "layer", G_TYPE_INT, 3, "rate", G_TYPE_INT, audioInfo->sampleRate, "channels", G_TYPE_INT, audioInfo->stereo ? 2 : 1, NULL); + + if(!audiodecoder) + { +#ifdef GST_HAS_MODERN_PBUTILS + missing_plugin_details = NetStreamGst_append_missing_codec_to_details + (missing_plugin_details, + audiosource, + audioincaps); + + if(NetStreamGst_install_missing_codecs(missing_plugin_details)) + { + disconnectAudioHandoffSignal(); + g_list_free(missing_plugin_details); + missing_plugin_details = NULL; + g_debug("gst_install_plugins_sync -> GST_INSTALL_PLUGINS_SUCCESS ... one more roundtrip"); + goto retry; + } + + g_list_free(missing_plugin_details); +#endif // GST_HAS_MODERN_PBUTILS + return false; + } g_object_set (G_OBJECT (audioinputcaps), "caps", audioincaps, NULL); gst_caps_unref (audioincaps); } else { From MAILER-DAEMON Mon Jun 18 16:20:25 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0Ni5-0005FV-KD for mharc-gnash-commit@gnu.org; Mon, 18 Jun 2007 16:20:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0Ni4-0005Bk-GR for gnash-commit@gnu.org; Mon, 18 Jun 2007 16:20:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0Ni2-00056f-QG for gnash-commit@gnu.org; Mon, 18 Jun 2007 16:20:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0Ni2-00055z-I0 for gnash-commit@gnu.org; Mon, 18 Jun 2007 16:20:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0Ni1-0007vU-Rn for gnash-commit@gnu.org; Mon, 18 Jun 2007 16:20:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0Ni0-0001xN-Jy for gnash-commit@gnu.org; Mon, 18 Jun 2007 20:20:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0Ni0-0001xK-G2 for gnash-commit@gnu.org; Mon, 18 Jun 2007 20:20:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Mon, 18 Jun 2007 20:20:20 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server/asobj NetStreamGst.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 20:20:24 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/18 20:20:20 Modified files: server/asobj : NetStreamGst.cpp Log message: fix compiler warning removing a jump label when not needed CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetStreamGst.cpp?cvsroot=gnash&r1=1.55&r2=1.56 Patches: Index: NetStreamGst.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/NetStreamGst.cpp,v retrieving revision 1.55 retrieving revision 1.56 diff -u -b -r1.55 -r1.56 --- NetStreamGst.cpp 18 Jun 2007 19:53:00 -0000 1.55 +++ NetStreamGst.cpp 18 Jun 2007 20:20:20 -0000 1.56 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: NetStreamGst.cpp,v 1.55 2007/06/18 19:53:00 strk Exp $ */ +/* $Id: NetStreamGst.cpp,v 1.56 2007/06/18 20:20:20 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -627,7 +627,9 @@ bool doVideo = video; GList *missing_plugin_details = NULL; +#ifdef GST_HAS_MODERN_PBUTILS retry: +#endif if (videoInfo) { doVideo = true; videosource = gst_element_factory_make ("fakesrc", NULL); From MAILER-DAEMON Tue Jun 19 03:16:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0XxI-000184-S5 for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 03:16:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0XxH-00017z-3k for gnash-commit@gnu.org; Tue, 19 Jun 2007 03:16:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0XxF-00017l-8s for gnash-commit@gnu.org; Tue, 19 Jun 2007 03:16:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0XxF-00017i-3f for gnash-commit@gnu.org; Tue, 19 Jun 2007 03:16:45 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0XxE-0006J0-R5 for gnash-commit@gnu.org; Tue, 19 Jun 2007 03:16:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0XxD-0001bg-TN for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:16:43 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0XxD-0001bd-Mw for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:16:43 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 07:16:43 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/array.cpp server/array.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 07:16:47 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 07:16:43 Modified files: . : ChangeLog server : array.cpp array.h Log message: * server/array.{cpp,h}: implement resource marker for arrays. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3578&r2=1.3579 http://cvs.savannah.gnu.org/viewcvs/gnash/server/array.cpp?cvsroot=gnash&r1=1.60&r2=1.61 http://cvs.savannah.gnu.org/viewcvs/gnash/server/array.h?cvsroot=gnash&r1=1.26&r2=1.27 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3578 retrieving revision 1.3579 diff -u -b -r1.3578 -r1.3579 --- ChangeLog 18 Jun 2007 19:52:59 -0000 1.3578 +++ ChangeLog 19 Jun 2007 07:16:42 -0000 1.3579 @@ -1,3 +1,8 @@ +2007-06-19 Sandro Santilli + + * server/array.{cpp,h}: implement resource marker + for arrays. + 2007-06-18 Alexander Sack * configure.ac: detect usable pbutils for automatic installation of Index: server/array.cpp =================================================================== RCS file: /sources/gnash/gnash/server/array.cpp,v retrieving revision 1.60 retrieving revision 1.61 diff -u -b -r1.60 -r1.61 --- server/array.cpp 18 Apr 2007 09:35:42 -0000 1.60 +++ server/array.cpp 19 Jun 2007 07:16:43 -0000 1.61 @@ -951,6 +951,17 @@ glob.init_member("Array", ar.get()); } +#ifdef GNASH_USE_GC +void +as_array_object::markReachableResources() const +{ + for (container::const_iterator i=elements.begin(), e=elements.end(); i!=e; ++i) + { + i->setReachable(); + } + markAsObjectReachable(); +} +#endif // GNASH_USE_GC } // end of gnash namespace Index: server/array.h =================================================================== RCS file: /sources/gnash/gnash/server/array.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -b -r1.26 -r1.27 --- server/array.h 28 May 2007 15:41:05 -0000 1.26 +++ server/array.h 19 Jun 2007 07:16:43 -0000 1.27 @@ -171,6 +171,18 @@ virtual void set_member(const std::string& name, const as_value& val ); +protected: + +#ifdef GNASH_USE_GC + /// Mark array-specific reachable resources and invoke + /// the parent's class version (markAsObjectReachable) + // + /// array-specific reachable resources are: + /// - The elements values (elements) + /// + virtual void markReachableResources() const; +#endif // GNASH_USE_GC + private: typedef std::deque container; From MAILER-DAEMON Tue Jun 19 05:27:00 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0ZzI-0002fr-Pp for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 05:27:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0ZzH-0002fm-IL for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:26:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0ZzF-0002fP-Je for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:26:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0ZzF-0002fG-Be for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:26:57 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0ZzF-0004Hj-2i for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:26:57 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0ZzD-0002IF-JE for gnash-commit@gnu.org; Tue, 19 Jun 2007 09:26:55 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0ZzD-0002IB-EC for gnash-commit@gnu.org; Tue, 19 Jun 2007 09:26:55 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 09:26:55 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server video_stream_instance.cpp video_st... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 09:26:59 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 09:26:55 Modified files: server : video_stream_instance.cpp video_stream_instance.h sprite_instance.h character.h Log message: * server/video_stream_instance.{cpp,h}: implement reachable resources marker. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.cpp?cvsroot=gnash&r1=1.28&r2=1.29 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.h?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.122&r2=1.123 http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.h?cvsroot=gnash&r1=1.83&r2=1.84 Patches: Index: video_stream_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- video_stream_instance.cpp 6 Jun 2007 15:41:12 -0000 1.28 +++ video_stream_instance.cpp 19 Jun 2007 09:26:54 -0000 1.29 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.cpp,v 1.28 2007/06/06 15:41:12 tgc Exp $ +// $Id: video_stream_instance.cpp,v 1.29 2007/06/19 09:26:54 strk Exp $ #include "sprite_instance.h" #include "video_stream_instance.h" @@ -158,6 +158,7 @@ _ns(NULL), m_decoder(NULL) // don't abort if m_def is null { + log_debug("video_stream_instance %p ctor", (void*)this); if ( m_def ) { m_decoder = m_def->get_decoder(); @@ -277,4 +278,12 @@ global.init_member("Video", cl.get()); } +#ifdef GNASH_USE_GC +void +video_stream_instance::markReachableResources() const +{ + if ( _ns ) _ns->setReachable(); +} +#endif // GNASH_USE_GC + } // end of namespace gnash Index: video_stream_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- video_stream_instance.h 4 Jun 2007 19:21:20 -0000 1.15 +++ video_stream_instance.h 19 Jun 2007 09:26:54 -0000 1.16 @@ -16,7 +16,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.h,v 1.15 2007/06/04 19:21:20 strk Exp $ +// $Id: video_stream_instance.h,v 1.16 2007/06/19 09:26:54 strk Exp $ #ifndef GNASH_VIDEO_STREAM_INSTANCE_H #define GNASH_VIDEO_STREAM_INSTANCE_H @@ -70,6 +70,18 @@ /// Set the input stream for this video void setStream(boost::intrusive_ptr ns); +protected: + +#ifdef GNASH_USE_GC + /// Mark video-specific reachable resources and invoke + /// the parent's class version (markCharacterReachable) + // + /// video-specific reachable resources are: + /// - Associated NetStream if any (_ns) + /// + virtual void markReachableResources() const; +#endif // GNASH_USE_GC + private: // m_video_source - A Camera object that is capturing video data or a NetStream object. Index: sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.122 retrieving revision 1.123 diff -u -b -r1.122 -r1.123 --- sprite_instance.h 17 Jun 2007 22:09:24 -0000 1.122 +++ sprite_instance.h 19 Jun 2007 09:26:55 -0000 1.123 @@ -997,7 +997,7 @@ #ifdef GNASH_USE_GC /// Mark sprite-specific reachable resources and invoke - /// the parent's class version (markCharacterReachableResources) + /// the parent's class version (markCharacterReachable) // /// sprite-specific reachable resources are: /// - DisplayList items (current, backup and frame0 ones) Index: character.h =================================================================== RCS file: /sources/gnash/gnash/server/character.h,v retrieving revision 1.83 retrieving revision 1.84 diff -u -b -r1.83 -r1.84 --- character.h 15 Jun 2007 15:00:28 -0000 1.83 +++ character.h 19 Jun 2007 09:26:55 -0000 1.84 @@ -19,7 +19,7 @@ // // -/* $Id: character.h,v 1.83 2007/06/15 15:00:28 strk Exp $ */ +/* $Id: character.h,v 1.84 2007/06/19 09:26:55 strk Exp $ */ #ifndef GNASH_CHARACTER_H #define GNASH_CHARACTER_H @@ -157,7 +157,7 @@ #ifdef GNASH_USE_GC /// Mark all reachable resources, override from as_object. // - /// The default implementation calls markCharacterReachableResources(). + /// The default implementation calls markCharacterReachable(). /// /// If a derived class provides access to more GC-managed /// resources, it should override this method and call From MAILER-DAEMON Tue Jun 19 05:39:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0aBU-0000cH-A5 for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 05:39:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0aBS-0000bv-K9 for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:39:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0aBR-0000bb-P4 for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:39:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0aBR-0000bY-Ir for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:39:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0aBR-0006DX-8l for gnash-commit@gnu.org; Tue, 19 Jun 2007 05:39:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0aBJ-0004DZ-7s for gnash-commit@gnu.org; Tue, 19 Jun 2007 09:39:25 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0aBJ-0004DW-3h for gnash-commit@gnu.org; Tue, 19 Jun 2007 09:39:25 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 09:39:25 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 09:39:34 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 09:39:25 Modified files: . : ChangeLog Log message: forgot this CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3579&r2=1.3580 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3579 retrieving revision 1.3580 diff -u -b -r1.3579 -r1.3580 --- ChangeLog 19 Jun 2007 07:16:42 -0000 1.3579 +++ ChangeLog 19 Jun 2007 09:39:24 -0000 1.3580 @@ -1,5 +1,10 @@ 2007-06-19 Sandro Santilli + * server/video_stream_instance.{cpp,h}: implement + reachable resources marker. + +2007-06-19 Sandro Santilli + * server/array.{cpp,h}: implement resource marker for arrays. From MAILER-DAEMON Tue Jun 19 06:00:39 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0aVr-00015V-CM for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 06:00:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0aVq-00015K-49 for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:00:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0aVp-000158-Ep for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:00:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0aVp-000151-2V for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:00:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0aVo-0001fI-Kk for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:00:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0aVn-0005EJ-TQ for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:00:36 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0aVn-0005ED-9N for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:00:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 10:00:35 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/generic_character.cpp se... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 10:00:38 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 10:00:35 Modified files: . : ChangeLog server : generic_character.cpp generic_character.h Log message: * server/generic_character.{cpp,h}: generic character are not mouse entities by default, so make get_topmost_mouse_entity return NULL and can_handle_mouse_events return false. Fixes bug #20102. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3580&r2=1.3581 http://cvs.savannah.gnu.org/viewcvs/gnash/server/generic_character.cpp?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/server/generic_character.h?cvsroot=gnash&r1=1.24&r2=1.25 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3580 retrieving revision 1.3581 diff -u -b -r1.3580 -r1.3581 --- ChangeLog 19 Jun 2007 09:39:24 -0000 1.3580 +++ ChangeLog 19 Jun 2007 10:00:34 -0000 1.3581 @@ -1,5 +1,12 @@ 2007-06-19 Sandro Santilli + * server/generic_character.{cpp,h}: generic character + are not mouse entities by default, so make get_topmost_mouse_entity + return NULL and can_handle_mouse_events return false. Fixes + bug #20102. + +2007-06-19 Sandro Santilli + * server/video_stream_instance.{cpp,h}: implement reachable resources marker. Index: server/generic_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/generic_character.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- server/generic_character.cpp 18 Apr 2007 13:24:44 -0000 1.6 +++ server/generic_character.cpp 19 Jun 2007 10:00:34 -0000 1.7 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: generic_character.cpp,v 1.6 2007/04/18 13:24:44 strk Exp $ */ +/* $Id: generic_character.cpp,v 1.7 2007/06/19 10:00:34 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -58,27 +58,6 @@ return m_def->point_test_local(lp.m_x, lp.m_y); } -character* -generic_character::get_topmost_mouse_entity(float x, float y) -{ - assert(get_visible()); // caller should check this. - - // @@ is there any generic_character derivate that - // can actually handle mouse events ? - if ( ! can_handle_mouse_event() ) return NULL; - - matrix m = get_matrix(); - point p; - m.transform_by_inverse(&p, point(x, y)); - - if (m_def->point_test_local(p.m_x, p.m_y)) - { - // The mouse is inside the shape. - return this; - } - return NULL; -} - } // namespace gnash // Local Variables: Index: server/generic_character.h =================================================================== RCS file: /sources/gnash/gnash/server/generic_character.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- server/generic_character.h 16 Jun 2007 06:30:29 -0000 1.24 +++ server/generic_character.h 19 Jun 2007 10:00:35 -0000 1.25 @@ -73,9 +73,13 @@ assert(m_def); } + /// generic characters can not handle mouse events, so + /// the default implementation returns false. + /// override in your subclass to change this virtual bool can_handle_mouse_event() const { - assert(m_parent != NULL); - return m_parent->can_handle_mouse_event(); + return false; + //assert(m_parent != NULL); + //return m_parent->can_handle_mouse_event(); } virtual void display() @@ -91,7 +95,17 @@ return m_def->get_bound().getRange(); } - virtual character* get_topmost_mouse_entity(float x, float y); + /// Generic character is NEVER a mouse entity by default, so + /// the default implementation of this method always returns NULL. + /// Override it from subclasses that do can be mouse entities. + /// + /// If you need to check for a generic character to contain a + /// given point, use the pointInShape() function instead. + /// + virtual character* get_topmost_mouse_entity(float /*x*/, float /*y*/) + { + return NULL; + } // See dox in character.h virtual bool pointInShape(float x, float y) const; From MAILER-DAEMON Tue Jun 19 06:16:11 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0akt-0007mY-Az for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 06:16:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0akp-0007kK-77 for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:16:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0akn-0007jI-C7 for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:16:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0akm-0007iz-TB for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:16:05 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0akm-0003SC-Jo for gnash-commit@gnu.org; Tue, 19 Jun 2007 06:16:04 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0akl-00063K-Dx for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:16:03 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0akl-00063G-7B for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:16:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 10:16:03 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/generic_character.cpp se... [release-0-8-0] X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 10:16:07 -0000 CVSROOT: /sources/gnash Module name: gnash Branch: release-0-8-0 Changes by: Sandro Santilli 07/06/19 10:16:02 Modified files: . : ChangeLog server : generic_character.cpp generic_character.h Log message: backported 100% CPU bug fix (final 0.8.0 is now tagged as release-0-8-0-final, so we can use release-0-8-0 as the 0.8 branch) * server/generic_character.{cpp,h}: generic character are not mouse entities by default, so make get_topmost_mouse_entity return NULL and can_handle_mouse_events return false. Fixes bug #20102. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.3451.2.55&r2=1.3451.2.56 http://cvs.savannah.gnu.org/viewcvs/gnash/server/generic_character.cpp?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.6&r2=1.6.4.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/generic_character.h?cvsroot=gnash&only_with_tag=release-0-8-0&r1=1.23&r2=1.23.4.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3451.2.55 retrieving revision 1.3451.2.56 diff -u -b -r1.3451.2.55 -r1.3451.2.56 --- ChangeLog 9 Jun 2007 12:46:32 -0000 1.3451.2.55 +++ ChangeLog 19 Jun 2007 10:16:00 -0000 1.3451.2.56 @@ -1,3 +1,10 @@ +2007-06-19 Sandro Santilli + + * server/generic_character.{cpp,h}: generic character + are not mouse entities by default, so make get_topmost_mouse_entity + return NULL and can_handle_mouse_events return false. Fixes + bug #20102. + 2007-06-09 Sandro Santilli * libbase/embedVideoDecoderFfmpeg.cpp (decodeFrame): do not Index: server/generic_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/generic_character.cpp,v retrieving revision 1.6 retrieving revision 1.6.4.1 diff -u -b -r1.6 -r1.6.4.1 --- server/generic_character.cpp 18 Apr 2007 13:24:44 -0000 1.6 +++ server/generic_character.cpp 19 Jun 2007 10:16:02 -0000 1.6.4.1 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: generic_character.cpp,v 1.6 2007/04/18 13:24:44 strk Exp $ */ +/* $Id: generic_character.cpp,v 1.6.4.1 2007/06/19 10:16:02 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -58,27 +58,6 @@ return m_def->point_test_local(lp.m_x, lp.m_y); } -character* -generic_character::get_topmost_mouse_entity(float x, float y) -{ - assert(get_visible()); // caller should check this. - - // @@ is there any generic_character derivate that - // can actually handle mouse events ? - if ( ! can_handle_mouse_event() ) return NULL; - - matrix m = get_matrix(); - point p; - m.transform_by_inverse(&p, point(x, y)); - - if (m_def->point_test_local(p.m_x, p.m_y)) - { - // The mouse is inside the shape. - return this; - } - return NULL; -} - } // namespace gnash // Local Variables: Index: server/generic_character.h =================================================================== RCS file: /sources/gnash/gnash/server/generic_character.h,v retrieving revision 1.23 retrieving revision 1.23.4.1 diff -u -b -r1.23 -r1.23.4.1 --- server/generic_character.h 28 May 2007 15:41:06 -0000 1.23 +++ server/generic_character.h 19 Jun 2007 10:16:02 -0000 1.23.4.1 @@ -58,9 +58,13 @@ assert(m_def); } + /// generic characters can not handle mouse events, so + /// the default implementation returns false. + /// override in your subclass to change this virtual bool can_handle_mouse_event() const { - assert(m_parent != NULL); - return m_parent->can_handle_mouse_event(); + return false; + //assert(m_parent != NULL); + //return m_parent->can_handle_mouse_event(); } virtual void display() @@ -76,7 +80,17 @@ return m_def->get_bound().getRange(); } - virtual character* get_topmost_mouse_entity(float x, float y); + /// Generic character is NEVER a mouse entity by default, so + /// the default implementation of this method always returns NULL. + /// Override it from subclasses that do can be mouse entities. + /// + /// If you need to check for a generic character to contain a + /// given point, use the pointInShape() function instead. + /// + virtual character* get_topmost_mouse_entity(float /*x*/, float /*y*/) + { + return NULL; + } // See dox in character.h virtual bool pointInShape(float x, float y) const; From MAILER-DAEMON Tue Jun 19 07:54:30 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0cI1-0001fF-UD for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 07:54:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0cI0-0001es-DS for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:54:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0cHv-0001aq-Ha for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:54:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0cHv-0001ak-9S for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:54:23 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0cHu-0001jF-Tf for gnash-commit@gnu.org; Tue, 19 Jun 2007 07:54:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0cHt-0005gB-HA for gnash-commit@gnu.org; Tue, 19 Jun 2007 11:54:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0cHt-0005g7-Cn for gnash-commit@gnu.org; Tue, 19 Jun 2007 11:54:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 11:54:21 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 11:54:28 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 11:54:21 Modified files: . : ChangeLog gui : Makefile.am Log message: * gui/Makefile.am: add .configline to CLEANFILES and remove all in CLEANFILES on make clean (needed for distcheck to complete). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3581&r2=1.3582 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.79&r2=1.80 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3581 retrieving revision 1.3582 diff -u -b -r1.3581 -r1.3582 --- ChangeLog 19 Jun 2007 10:00:34 -0000 1.3581 +++ ChangeLog 19 Jun 2007 11:54:20 -0000 1.3582 @@ -1,5 +1,7 @@ 2007-06-19 Sandro Santilli + * gui/Makefile.am: add .configline to CLEANFILES and remove all in + CLEANFILES on make clean (needed for distcheck to complete). * server/generic_character.{cpp,h}: generic character are not mouse entities by default, so make get_topmost_mouse_entity return NULL and can_handle_mouse_events return false. Fixes Index: gui/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/gui/Makefile.am,v retrieving revision 1.79 retrieving revision 1.80 diff -u -b -r1.79 -r1.80 --- gui/Makefile.am 16 Jun 2007 19:03:00 -0000 1.79 +++ gui/Makefile.am 19 Jun 2007 11:54:21 -0000 1.80 @@ -17,7 +17,7 @@ # -# $Id: Makefile.am,v 1.79 2007/06/16 19:03:00 rsavoye Exp $ +# $Id: Makefile.am,v 1.80 2007/06/19 11:54:21 strk Exp $ AUTOMAKE_OPTIONS = localedir = $(datadir)/locale @@ -289,7 +289,7 @@ # $(GNASH_LIBS) .configline # $(LIBLTDL) "-dlopen" self "-dlopen" -CLEANFILES = klash.moc +CLEANFILES = klash.moc .configline klash.moc: $(srcdir)/kdesup.h @if test x"$(MOC)" != x; then \ echo "Generating MOC file..."; \ @@ -314,5 +314,5 @@ $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap" clean-hook: - -rm -f core.* + -rm -f core.* $(CLEANFILES) From MAILER-DAEMON Tue Jun 19 10:21:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0eaM-0002Wc-2t for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 10:21:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0eaJ-0002WQ-PZ for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:21:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0eaH-0002WC-LL for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:21:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0eaH-0002W9-Gj for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:21:29 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0eaH-000083-99 for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:21:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0eaG-00006t-L5 for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:21:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0eaG-00006p-HE for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:21:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 14:21:28 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server timers.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 14:21:32 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 14:21:28 Modified files: server : timers.h Log message: remove unused struct definition CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/timers.h?cvsroot=gnash&r1=1.22&r2=1.23 Patches: Index: timers.h =================================================================== RCS file: /sources/gnash/gnash/server/timers.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -b -r1.22 -r1.23 --- timers.h 16 Jun 2007 09:07:35 -0000 1.22 +++ timers.h 19 Jun 2007 14:21:28 -0000 1.23 @@ -43,11 +43,6 @@ namespace gnash { - struct variable { - std::string name; - as_value value; - }; - /// An interval timer. // /// This is constructed when _global.setInterval() is called. From MAILER-DAEMON Tue Jun 19 10:57:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0f8n-0003Te-CO for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 10:57:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0f8k-0003TR-Tv for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:57:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0f8j-0003TC-CY for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:57:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0f8j-0003T9-6d for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:57:05 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0f8i-0005EJ-P2 for gnash-commit@gnu.org; Tue, 19 Jun 2007 10:57:04 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0f8h-00038P-Kj for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:57:03 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0f8h-00038L-G6 for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:57:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 14:57:03 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/bitmap_character_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 14:57:07 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 14:57:03 Modified files: . : ChangeLog server/parser : bitmap_character_def.h Log message: * server/parser/bitmap_character_def.h: implement reachable resources marker. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3582&r2=1.3583 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/bitmap_character_def.h?cvsroot=gnash&r1=1.17&r2=1.18 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3582 retrieving revision 1.3583 diff -u -b -r1.3582 -r1.3583 --- ChangeLog 19 Jun 2007 11:54:20 -0000 1.3582 +++ ChangeLog 19 Jun 2007 14:57:02 -0000 1.3583 @@ -1,5 +1,7 @@ 2007-06-19 Sandro Santilli + * server/parser/bitmap_character_def.h: implement reachable resources + marker. * gui/Makefile.am: add .configline to CLEANFILES and remove all in CLEANFILES on make clean (needed for distcheck to complete). * server/generic_character.{cpp,h}: generic character Index: server/parser/bitmap_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/bitmap_character_def.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- server/parser/bitmap_character_def.h 12 Jun 2007 12:33:22 -0000 1.17 +++ server/parser/bitmap_character_def.h 19 Jun 2007 14:57:03 -0000 1.18 @@ -33,6 +33,7 @@ #include "utility.h" #include "smart_ptr.h" #include "bitmap_info.h" // for dtor visibility by intrusive_ptr +#include "GC.h" // for GcResource (markReachableResources) #include #include @@ -62,7 +63,7 @@ /// availability of a render_handler in order to transform /// image::rgb or image::rgba to a bitmap_info. /// -class bitmap_character_def : public ref_counted +class bitmap_character_def : public ref_counted // @@ why not character_def ? { public: @@ -87,6 +88,20 @@ return _bitmap_info.get(); } +protected: + +#ifdef GNASH_USE_GC + /// Mark reachable resources (for GC) + // + /// Reachable resources are: + /// - bitmap info (_bitmap_info) + /// + void markReachableResources() const + { + if ( _bitmap_info ) _bitmap_info->setReachable(); + } +#endif // GNASH_USE_GC + private: boost::intrusive_ptr _bitmap_info; From MAILER-DAEMON Tue Jun 19 14:43:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0ifh-0006wf-7d for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 14:43:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0ifg-0006wa-0v for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:43:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0ifc-0006up-7r for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:43:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0ifc-0006uk-3u for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:43:16 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0ifZ-0005zG-HC for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:43:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0ifD-0000Rg-CI for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:42:51 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0ifD-0000RY-88 for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:42:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 18:42:51 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/sprite_instance.h server... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 18:43:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 18:42:51 Modified files: . : ChangeLog server : sprite_instance.h server/parser : button_character_def.cpp button_character_def.h edit_text_character_def.cpp edit_text_character_def.h Log message: * server/sprite_instance.h: document another reachable resource (was marked already, just not documented as such). * server/parser/: button_character_def.{cpp,h}, edit_text_character_def.{cpp,h}: Implement reachable resources marker. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3583&r2=1.3584 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.123&r2=1.124 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/button_character_def.cpp?cvsroot=gnash&r1=1.12&r2=1.13 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/button_character_def.h?cvsroot=gnash&r1=1.15&r2=1.16 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/edit_text_character_def.cpp?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/edit_text_character_def.h?cvsroot=gnash&r1=1.12&r2=1.13 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3583 retrieving revision 1.3584 diff -u -b -r1.3583 -r1.3584 --- ChangeLog 19 Jun 2007 14:57:02 -0000 1.3583 +++ ChangeLog 19 Jun 2007 18:42:49 -0000 1.3584 @@ -1,5 +1,14 @@ 2007-06-19 Sandro Santilli + * server/sprite_instance.h: document another + reachable resource (was marked already, just not documented + as such). + * server/parser/: button_character_def.{cpp,h}, + edit_text_character_def.{cpp,h}: + Implement reachable resources marker. + +2007-06-19 Sandro Santilli + * server/parser/bitmap_character_def.h: implement reachable resources marker. * gui/Makefile.am: add .configline to CLEANFILES and remove all in Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.123 retrieving revision 1.124 diff -u -b -r1.123 -r1.124 --- server/sprite_instance.h 19 Jun 2007 09:26:55 -0000 1.123 +++ server/sprite_instance.h 19 Jun 2007 18:42:50 -0000 1.124 @@ -1004,6 +1004,7 @@ /// - Canvas for dynamic drawing (_drawable) /// - Drawable instance (_drawable_inst) /// - sprite environment + /// - definition the sprite has been instantiated from /// virtual void markReachableResources() const; #endif // GNASH_USE_GC Index: server/parser/button_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/button_character_def.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- server/parser/button_character_def.cpp 24 May 2007 13:46:24 -0000 1.12 +++ server/parser/button_character_def.cpp 19 Jun 2007 18:42:50 -0000 1.13 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: button_character_def.cpp,v 1.12 2007/05/24 13:46:24 strk Exp $ */ +/* $Id: button_character_def.cpp,v 1.13 2007/06/19 18:42:50 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -333,7 +333,15 @@ return ch; } +#ifdef GNASH_USE_GC +void +button_character_definition::button_sound_info::markReachableResources() const +{ + if ( m_sam ) m_sam->setReachable(); } +#endif // GNASH_USE_GC + +} // namespace gnash // Local Variables: // mode: C++ Index: server/parser/button_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/button_character_def.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -b -r1.15 -r1.16 --- server/parser/button_character_def.h 19 May 2007 21:59:00 -0000 1.15 +++ server/parser/button_character_def.h 19 Jun 2007 18:42:50 -0000 1.16 @@ -44,8 +44,15 @@ matrix m_button_matrix; cxform m_button_cxform; + public: + button_record() + : + m_character_def(0) + { + } + /// Read a button record from the SWF stream. // /// Return true if we read a record; false if this is a null @@ -57,6 +64,18 @@ /// which has not been defined. bool is_valid(); +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Reachable resources are: + /// - m_character_def (??) what's it !? + /// + void markReachableResources() const + { + if ( m_character_def ) m_character_def->setReachable(); + } +#endif // GNASH_USE_GC + }; class button_action @@ -113,18 +132,53 @@ uint16_t m_sound_id; sound_sample* m_sam; sound_info m_sound_style; + + button_sound_info() + : + m_sam(0) + { + } + +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Reachable resources are: + /// - sound sample (m_sam) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC }; struct button_sound_def { void read(stream* in, movie_definition* m); button_sound_info m_button_sounds[4]; + +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Reachable resources are: + /// - button sound infos (m_button_sounds) + /// + void markReachableResources() const + { + for (int i=0; i<4; ++i) + { + m_button_sounds[i].markReachableResources(); + } + } +#endif // GNASH_USE_GC }; bool m_menu; - std::vector m_button_records; - std::vector m_button_actions; + + typedef std::vector ButtonRecVect; + ButtonRecVect m_button_records; + + typedef std::vector ButtonActVect; + ButtonActVect m_button_actions; + button_sound_def* m_sound; button_character_definition(); @@ -153,6 +207,25 @@ assert(0); // not implemented } +protected: + +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Reachable resources are: + /// - button records (m_button_records) + /// - button sound definition (m_sound) + /// + void markReachableResources() const + { + assert(isReachable()); + for (ButtonRecVect::const_iterator i=m_button_records.begin(), e=m_button_records.end(); i!=e; ++i) + { + i->markReachableResources(); + } + if ( m_sound ) m_sound->markReachableResources(); + } +#endif // GNASH_USE_GC }; } // end namespace gnash Index: server/parser/edit_text_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/edit_text_character_def.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- server/parser/edit_text_character_def.cpp 18 Apr 2007 14:07:32 -0000 1.8 +++ server/parser/edit_text_character_def.cpp 19 Jun 2007 18:42:50 -0000 1.9 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character_def.cpp,v 1.8 2007/04/18 14:07:32 jgilmore Exp $ */ +/* $Id: edit_text_character_def.cpp,v 1.9 2007/06/19 18:42:50 strk Exp $ */ // Based on the public domain text.cpp of Thatcher Ulrich 2003 @@ -27,6 +27,7 @@ #include "edit_text_character_def.h" #include "edit_text_character.h" +#include "font.h" // for setReachable call namespace gnash { @@ -156,6 +157,15 @@ return ch; } +#ifdef GNASH_USE_GC +void +edit_text_character_def::markReachableResources() const +{ + if ( m_root_def ) m_root_def->setReachable(); + if ( m_font ) m_font->setReachable(); +} +#endif // GNASH_USE_GC + } // namespace gnash // Local Variables: Index: server/parser/edit_text_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/edit_text_character_def.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- server/parser/edit_text_character_def.h 28 May 2007 15:41:09 -0000 1.12 +++ server/parser/edit_text_character_def.h 19 Jun 2007 18:42:51 -0000 1.13 @@ -211,6 +211,17 @@ return get_bounds(); } +protected: + +#ifdef GNASH_USE_GC + /// Mark all reachable resources (for GC) + // + /// Reachable resources are: + /// - The root movie definition (m_root_def) @@ what do we use this for ? + /// - The font being used (m_font) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC private: From MAILER-DAEMON Tue Jun 19 14:52:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0ioz-00064L-Kl for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 14:52:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0ioy-00064G-Ei for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:52:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0iox-000644-FG for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:52:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0iox-000641-CH for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:52:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0iot-0007Qq-Ve for gnash-commit@gnu.org; Tue, 19 Jun 2007 14:52:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0ioU-0001zw-JU for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:52:26 +0000 Received: from eh9 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0ioU-0001zt-Db for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:52:26 +0000 To: gnash-commit@gnu.org Message-Id: From: Eric Hughes Date: Tue, 19 Jun 2007 18:52:26 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/cygnal/ACT ACT.hpp Cygnal_Instances.cpp S... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 18:52:56 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Eric Hughes 07/06/19 18:52:26 Modified files: cygnal/ACT : ACT.hpp Cygnal_Instances.cpp Scheduler.cpp Scheduler.hpp Scheduling_Queue.cpp Scheduling_Queue.hpp cygnal/ACT/test_support: Listening_Actions.cpp Listening_Actions.hpp cygnal/ACT/unit_tests: Test_Scheduler.cpp Test_Scheduling_Queue.cpp Added files: cygnal/ACT : Change_Log.txt Log message: Scheduler to stable status. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/ACT.hpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Cygnal_Instances.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Scheduler.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Scheduler.hpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Scheduling_Queue.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Scheduling_Queue.hpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Change_Log.txt?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/test_support/Listening_Actions.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/test_support/Listening_Actions.hpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/unit_tests/Test_Scheduler.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/unit_tests/Test_Scheduling_Queue.cpp?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ACT.hpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/ACT.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- ACT.hpp 13 Jun 2007 19:29:10 -0000 1.1 +++ ACT.hpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -32,34 +32,7 @@ namespace ACT { - //------------------------- - /** \class wakeup_listener - * \brief The 'A' in ACT means 'asynchronous', so in general there must be a way of notifying - * a scheduler that an inactive ACT, one that has a pending sub-action, is ready to proceed. - * This class is the interface between a scheduler and such an ACT. - * - * The archetype of a notification is that from an asynchronous system I/O call. - * These notifications arrive various by event, queue item, callback, signal, and others. - * Notification is a mechanism crying out for implementation hiding by means of an abstraction. - * This type provides a standard way to do so. - * - * The implementation pattern is an ACT call a wakeup_listener and that a scheduler - * provide the function so called. - * The scheduler should encapsulate its own notification receiver, however structured, - * into a function object of this class, say, by binding a member function adapter. - * - * Such a function object should be parameter of the ACT constructor, if required. - * - * An alternate design would have to pass a wakeup_listener with each call. - * This would be useful if a single ACT were variously handled by different scheduler objects. - * This may, perhaps, be an opportunity for greater efficiency. - * It's not clear as of this writing that such an interface is necessary. - */ - class wakeup_listener - { - public: - virtual void operator()() =0 ; - } ; + class wakeup_listener ; //------------------------- /** \enum act_state Index: Cygnal_Instances.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/Cygnal_Instances.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Cygnal_Instances.cpp 13 Jun 2007 19:29:11 -0000 1.1 +++ Cygnal_Instances.cpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -32,6 +32,6 @@ namespace ACT { // Explicit template instantiation. - template Scheduling_Queue< Basic_Scheduled_Item > ; + template Basic_Scheduler::queue_type ; } // end namespace ACT Index: Scheduler.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/Scheduler.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Scheduler.cpp 13 Jun 2007 19:29:11 -0000 1.1 +++ Scheduler.cpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -28,39 +28,61 @@ // Basic_Scheduled_Item //-------------------------------------------------- Basic_Scheduled_Item:: - Basic_Scheduled_Item( act x, unsigned int n, Basic_Priority p ) + Basic_Scheduled_Item( act x, unsigned int n, Action_Category action_type ) : the_action( x ), sequence_number( n ), - priority_category( p ) - {} + action_type( action_type ) + { + switch ( action_type ) { + case Task : + priority_category = Initial ; + break ; + case Service : + priority_category = Background ; + break ; + default : + priority_category = Background ; + break ; + } + } //------------------------- bool Basic_Scheduled_Item:: operator<( const Basic_Scheduled_Item & x ) const { - return priority_category < x.priority_category - || sequence_number > x.sequence_number ; + return priority_category > x.priority_category + || ( priority_category == x.priority_category + && sequence_number > x.sequence_number + ) ; } //-------------------------------------------------- - // Basic_Scheduler + // wakeup_listener_allocated //-------------------------------------------------- - // Class member initialization - Basic_Scheduler Basic_Scheduler::the_instance ; + wakeup_listener_allocated:: + wakeup_listener_allocated( size_t x, scheduler_pointer y ) + : the_wakeup_listener( new wakeup_listener( x, y ) ) {} - //------------------------- - // Class factory function member - Basic_Scheduler & - Basic_Scheduler::obtain_scheduler() + //-------------------------------------------------- + // wakeup_listener + //-------------------------------------------------- + void + wakeup_listener:: + operator()() { - return the_instance ; + queue_type & the_queue = the_scheduler -> queue() ; + the_queue.item( permutation_index ).priority_category = Ordinary ; + the_queue.reorder( permutation_index ) ; } - //------------------------- + //-------------------------------------------------- + // Basic_Scheduler + //-------------------------------------------------- Basic_Scheduler:: Basic_Scheduler() - : operating( true ) + : operating( true ), + next_sequence_number( 1 ) {} //------------------------- @@ -97,14 +119,14 @@ Basic_Scheduler:: add_task( act x ) { - item_pointer item = the_queue.push( Basic_Scheduled_Item( x, ++ next_sequence_number ) ) ; - item -> listener = Basic_Wakeup_Listener( item, & the_queue ) ; + item_pointer item = the_queue.push( Basic_Scheduled_Item( x, ++ next_sequence_number ), this ) ; } void Basic_Scheduler:: - add_service( act ) + add_service( act x ) { + item_pointer item = the_queue.push( Basic_Scheduled_Item( x, ++ next_sequence_number, Service ), this ) ; } void @@ -130,11 +152,15 @@ } // Assert the_queue is not empty - Scheduling_Queue< Basic_Scheduled_Item >::reference item = the_queue.top() ; - act_state result = item.the_action( & item.listener.get() ) ; //.get() because .listener is optional<> + queue_type::pointer item = the_queue.top_ptr() ; + act_state result = item -> the_action( the_queue.auxiliary_top() -> get() ) ; if ( result == Working ) { - item.priority_category = Waiting ; - the_queue.reorder( the_queue.top_ptr() ) ; + if ( item -> action_type == Task ) { + // Assert action is not a service + item -> priority_category = Waiting ; + the_queue.reorder( item ) ; + } + // Note service actions do not re-prioritize right now } else { the_queue.pop() ; // Perhaps we might want to log items gone bad here. @@ -150,16 +176,4 @@ return the_queue.top().priority_category <= Ordinary ; } - //-------------------------------------------------- - // Basic_Wakeup_Listener - //-------------------------------------------------- - void - Basic_Wakeup_Listener:: - operator()() - { - the_item -> priority_category = Ordinary ; - the_scheduler -> reorder( the_item ) ; - } - - } // end namespace ACT Index: Scheduler.hpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/Scheduler.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Scheduler.hpp 13 Jun 2007 19:29:11 -0000 1.1 +++ Scheduler.hpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -32,27 +32,81 @@ namespace ACT { - //using boost::posix_time::ptime ; - //------------------------- - /* Forward declarations for Basic_Wakeup_Listener + /* Forward declarations for wakeup_listener */ struct Basic_Scheduled_Item ; + class Basic_Scheduler ; + class wakeup_listener_allocated ; //------------------------- - class Basic_Wakeup_Listener - : public wakeup_listener + /** \class wakeup_listener_allocated + * \brief A managed-storage wrapper for wakeup listener as it's used with the Scheduling_Queue + * + * \par Plans + * This class uses the ordinary heap for allocation on an item-by-item basis. + * Since we know that we must have one object of this class allocated for each task, + * we can optimize this memory use by allocating in bulk and providing a custom allocator. + * On the other hand, since these objects are allocated only during the growth phase, + * this allocation strategy has no performance penalty in the steady state, + * except to the extent that excess memory usage causes unnecessary swapping. + */ + class wakeup_listener_allocated { public: /// - typedef Scheduling_Queue< Basic_Scheduled_Item >::pointer item_pointer ; + typedef Basic_Scheduler * scheduler_pointer ; + // typedef wakeup_listener::scheduler_pointer scheduler_pointer ; + + /// + typedef scheduler_pointer constructor_parameter ; + private: + /// The wrapped pointer + /// + /// I'm using a shared_ptr here because this class must have a copy constructor for std::vector resizing. + /// An auto_ptr won't work with the default copy constructor. + boost::shared_ptr< wakeup_listener > the_wakeup_listener ; + + public: + /// Ordinary constructor used after item is within a scheduling queue and its storage location is known. + wakeup_listener_allocated( size_t x, scheduler_pointer y ) ; + + /// + wakeup_listener * get() const { return the_wakeup_listener.get() ; } + + /// + inline void reconstruct( scheduler_pointer ) {} ; + } ; + + //------------------------- + /** \class wakeup_listener + * \brief The 'A' in ACT means 'asynchronous', so in general there must be a way of notifying + * a scheduler that an inactive ACT, one that has a pending sub-action, is ready to proceed. + * This class is the interface between a scheduler and such an ACT. + * + * The archetype of a notification is that from an asynchronous system I/O call. + * These notifications arrive various by event, queue item, callback, signal, and others. + * Notification is a mechanism crying out for implementation hiding by means of an abstraction. + * This type provides a standard way to do so. + * + * The implementation pattern is an ACT call a wakeup_listener and that a scheduler + * provide the function so called. + * The scheduler should encapsulate its own notification receiver, however structured, + * into a function object of this class, say, by binding a member function adapter. + */ + class wakeup_listener + { + public: /// - typedef Scheduling_Queue< Basic_Scheduled_Item > * scheduler_pointer ; + typedef Basic_Scheduler * scheduler_pointer ; private: + /// + typedef Scheduling_Queue< Basic_Scheduled_Item, wakeup_listener_allocated > queue_type ; + /// A pointer to the item to reschedule. - item_pointer the_item ; + size_t permutation_index ; /// We use the scheduler to reorder an item after we change its priority. scheduler_pointer the_scheduler ; @@ -61,9 +115,12 @@ /// The listener body. void operator()() ; + /// Accessor for the scheduler + inline scheduler_pointer scheduler() const { return the_scheduler ; } + /// Ordinary constructor used after item is within a scheduling queue and its storage location is known. - Basic_Wakeup_Listener( item_pointer x, scheduler_pointer y ) - : the_item( x ), the_scheduler( y ) {} + wakeup_listener( size_t x, scheduler_pointer y ) + : permutation_index( x ), the_scheduler( y ) {} } ; //------------------------- @@ -113,6 +170,9 @@ struct Basic_Scheduled_Item { /// + Action_Category action_type ; + + /// Basic_Priority priority_category ; /// @@ -122,10 +182,7 @@ act the_action ; /// - Basic_Scheduled_Item( act, unsigned int, Basic_Priority = Initial ) ; - - /// - boost::optional< Basic_Wakeup_Listener > listener ; + Basic_Scheduled_Item( act x, unsigned int n, Action_Category action_type = Task ) ; /// Comparison operator for the priority queue bool operator<( const Basic_Scheduled_Item & ) const ; @@ -135,7 +192,13 @@ class Basic_Scheduler { /// - typedef Scheduling_Queue< Basic_Scheduled_Item >::pointer item_pointer ; + friend wakeup_listener ; + + /// The type of our internal queue. + typedef Scheduling_Queue< Basic_Scheduled_Item, wakeup_listener_allocated > queue_type ; + + /// + typedef queue_type::pointer item_pointer ; /// Activate the next action once. void activate_one_item() ; @@ -144,18 +207,18 @@ bool operating ; /// The live activation queue. - Scheduling_Queue< Basic_Scheduled_Item > the_queue ; + queue_type the_queue ; + + /// Getter method for wakeup_listener + inline queue_type & queue() { return the_queue ; } /// Increasing sequence numbers upon scheduling implements a kind of LRU activation policy. unsigned int next_sequence_number ; + public: /// Default constructor is private to enforce singleton Basic_Scheduler() ; - /// - static Basic_Scheduler the_instance ; - - public: /// Add an ordinary task into the scheduling queue. void add_task( act ) ; @@ -179,9 +242,6 @@ /// void reset() ; - - /// Factory method for singleton pattern - static Basic_Scheduler & obtain_scheduler() ; } ; } // end namespace ACT Index: Scheduling_Queue.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/Scheduling_Queue.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Scheduling_Queue.cpp 13 Jun 2007 19:29:11 -0000 1.1 +++ Scheduling_Queue.cpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -28,22 +28,17 @@ namespace ACT { //------------------------- - template< class T > - Scheduling_Queue< T >:: + template< class T, class Aux > + Scheduling_Queue< T, Aux >:: Scheduling_Queue() : n_queue_items( 0 ) {} //------------------------- - /* -The problem here is that the free list isn't ordered as it should be. -Or else the problem here is that something. -Blargh. - */ - template< class T > - typename Scheduling_Queue< T >::pointer - Scheduling_Queue< T >:: - push( const_reference item ) + template< class T, class Aux > + typename Scheduling_Queue< T, Aux >::pointer + Scheduling_Queue< T, Aux >:: + push( const_reference item, const typename Aux::constructor_parameter auxiliary ) { size_t permutation_index ; // The new queue-index in both cases is n_queue_items, which is incremented afterwards. @@ -52,25 +47,26 @@ // In this case the permutation index is the mutual size of the queue and the permutation. permutation_index = n_queue_items ; the_queue.push_back( Scheduled_Item< T >( item, permutation_index ) ) ; // operator[] would throw here - permutation.push_back( n_queue_items ) ; // ditto + permutation.push_back( Auxiliary_Item< Aux >( n_queue_items, permutation_index, auxiliary ) ) ; // ditto } else { // Assert n_queue_items < the_queue.size() // Assert the_queue has at least one deleted element // In this case the permutation index to use it that of the first deleted element permutation_index = the_queue[ n_queue_items ].permutation_index ; the_queue[ n_queue_items ] = Scheduled_Item< T >( item, permutation_index ) ; // note that the Scheduled_Item is the same as above - permutation[ permutation_index ] = n_queue_items ; + // The reconstruct() call is ordinarily a no-op, since a wakeup_listener can be reused. + // This call is present to support a possible aspect in the Auxiliary. + permutation[ permutation_index ].the_auxiliary.reconstruct( auxiliary ) ; } ++ n_queue_items ; - size_t n = up_heap( n_queue_items - 1 ) ; - return pointer( n, this ) ; + return pointer( permutation_index, this ) ; } //------------------------- - template< class T > + template< class T, class Aux > void - Scheduling_Queue< T >:: + Scheduling_Queue< T, Aux >:: pop() { -- n_queue_items ; @@ -79,21 +75,33 @@ } //------------------------- - template< class T > + template< class T, class Aux > void - Scheduling_Queue< T >:: + Scheduling_Queue< T, Aux >:: reorder( pointer p ) { - size_t z = permutation[ p.index ] ; + size_t z = permutation[ p.index ].priority_queue_index ; size_t x = down_heap( z ) ; if ( z != x ) return ; (void) up_heap( z ) ; } //------------------------- - template< class T > + template< class T, class Aux > + void + Scheduling_Queue< T, Aux >:: + reorder( size_t permutation_index ) + { + size_t z( permutation[ permutation_index ].priority_queue_index ) ; + size_t x( down_heap( z ) ) ; + if ( z != x ) return ; + (void) up_heap( z ) ; + } + + //------------------------- + template< class T, class Aux > void - Scheduling_Queue< T >:: + Scheduling_Queue< T, Aux >:: swap( size_t x, size_t y ) { // Swap the items @@ -102,17 +110,17 @@ the_queue[ y ] = tmp ; // Update the permutation - permutation[ the_queue[ x ].permutation_index ] = x ; - permutation[ the_queue[ y ].permutation_index ] = y ; + permutation[ the_queue[ x ].permutation_index ].priority_queue_index = x ; + permutation[ the_queue[ y ].permutation_index ].priority_queue_index = y ; } //------------------------- /** \par Implementation * This algorithm treat the_queue as an implicit binary heap. */ - template< class T > + template< class T, class Aux > size_t - Scheduling_Queue< T >:: + Scheduling_Queue< T, Aux >:: up_heap( size_t item ) { // Guards: @@ -135,9 +143,9 @@ /** \par Implementation * This algorithm treat the_queue as an implicit binary heap. */ - template< class T > + template< class T, class Aux > size_t - Scheduling_Queue< T >:: + Scheduling_Queue< T, Aux >:: down_heap( size_t item ) { // Index: Scheduling_Queue.hpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/Scheduling_Queue.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- Scheduling_Queue.hpp 13 Jun 2007 19:29:11 -0000 1.1 +++ Scheduling_Queue.hpp 19 Jun 2007 18:52:25 -0000 1.2 @@ -74,19 +74,42 @@ } } ; + + //------------------------- + /** \class Scheduled_Item + * \brief The full data that goes into the scheduling queue. + * It includes the underlying item plus extra housekeeping information. + */ + template< class Aux > + struct Auxiliary_Item + { + /// Index into the priority queue. + size_t priority_queue_index ; + + /// The auxiliary item held at fixed location. + /// Designed for wakeup_listener. + Aux the_auxiliary ; + + /// Ordinary constructor + Auxiliary_Item( size_t x, size_t permutation_index, typename Aux::constructor_parameter z ) + : priority_queue_index( x ), + the_auxiliary( permutation_index, z ) + {} ; + } ; + //------------------------- /** \class Scheduled_Item_Pointer */ - template< class T > + template< class T, class Aux > class Scheduled_Item_Pointer { - template< class T > friend class Scheduling_Queue ; + template< class T, class Aux > friend class Scheduling_Queue ; size_t index ; - Scheduling_Queue< T > * the_scheduling_queue ; + Scheduling_Queue< T, Aux > * the_scheduling_queue ; - Scheduled_Item_Pointer( size_t x, Scheduling_Queue< T > * y ) + Scheduled_Item_Pointer( size_t x, Scheduling_Queue< T, Aux > * y ) : index( x ), the_scheduling_queue( y ) {} public: inline T & operator*() { @@ -110,8 +133,8 @@ * These extra permutation indices constitute a "free list" of available permutation slots for the creation of pointers. * * \invariant - * - (bijective permutation) permutation[ the_queue[ x ].permutation_index ] == x - * - (bijective permutation) the_queue[ permutation[ y ] ].permutation_index == y + * - (bijective permutation) permutation[ the_queue[ x ].permutation_index ].priority_queue_index == x + * - (bijective permutation) the_queue[ permutation[ y ].priority_queue_index ].permutation_index == y * - n_queue_items <= the_queue.size * - permutation.size() == the_queue.size() * @@ -121,10 +144,12 @@ * It might be more efficient later to put them in the same container * and provide adapters to simulate separate arrays. */ - template< class T > + template< class T, class Aux > class Scheduling_Queue { - template< class T > friend class Scheduled_Item_Pointer ; + // friends + template< class T, class Aux > friend class Scheduled_Item_Pointer ; + friend class wakeup_listener ; /// The main queue for scheduled items. std::vector< Scheduled_Item< T > > the_queue ; @@ -134,7 +159,7 @@ size_t n_queue_items ; /// The heap functions maintain a permutation that provide a constant pointer into the item queue. - std::vector< size_t > permutation ; + std::vector< Auxiliary_Item< Aux > > permutation ; /// Swap two elements within the queue. /// Adjust the permutation accordingly. @@ -155,12 +180,12 @@ /// Item accessor for implementation of indirection in Scheduled_Item_Pointer T & item( size_t x ) { - return the_queue[ permutation[ x ] ].the_underlying_item ; + return the_queue[ permutation[ x ].priority_queue_index ].the_underlying_item ; } /// Item accessor for implementation of indirection in Scheduled_Item_Pointer T * item_ptr( size_t x ) { - return & the_queue[ permutation[ x ] ].the_underlying_item ; + return & the_queue[ permutation[ x ].priority_queue_index ].the_underlying_item ; } public: @@ -168,7 +193,7 @@ typedef T value_type ; /// We have a pointer type rather than an iterator type, since we cannot increment through the queue. - typedef Scheduled_Item_Pointer< T > pointer ; + typedef Scheduled_Item_Pointer< T, Aux > pointer ; /// A reference to a member of the queue typedef value_type & reference ; @@ -183,7 +208,7 @@ /// /// Note that the signature of this function differs from that of std::priority_queue, which returns void. /// We require a reference to be able to asynchronously wake up an action. - pointer push( const_reference ) ; + pointer push( const_reference, const typename Aux::constructor_parameter auxiliary ) ; /// Constant access to the top-priority item in the queue. reference top() { return the_queue[ 0 ].the_underlying_item ; } @@ -194,11 +219,20 @@ /// Remove the top item from the queue void pop() ; + /// Reorder the position of the indexed item. Use this after its priority changes. + void reorder( size_t ) ; + /// Reorder the position of the pointed-to item. Use this after its priority changes. void reorder( pointer ) ; /// Return is true if queue has no items of any kind in it, waiting or not. bool empty() { return n_queue_items == 0 ; } + + /// + inline Aux & auxiliary( size_t x ) { return permutation[ x ].the_auxiliary ; } + + /// + inline Aux * auxiliary_top() { return & permutation[ the_queue[ 0 ].permutation_index ].the_auxiliary ; } } ; } // end namespace ACT Index: test_support/Listening_Actions.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/test_support/Listening_Actions.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- test_support/Listening_Actions.cpp 13 Jun 2007 19:29:12 -0000 1.1 +++ test_support/Listening_Actions.cpp 19 Jun 2007 18:52:26 -0000 1.2 @@ -28,6 +28,8 @@ //-------------------------------------------------- // N_to_completion_Monitor //-------------------------------------------------- + std::vector< wakeup_listener::scheduler_pointer > N_to_completion_Monitor::schedulers ; + N_to_completion_Monitor:: N_to_completion_Monitor() : listeners( 0 ) @@ -35,7 +37,7 @@ void N_to_completion_Monitor:: - add( N_to_completion *, wakeup_listener * w ) + add_wakeup_item( N_to_completion *, wakeup_listener * w ) { // Assert this instance is registered in the scheduler and will eventually run. // Note: as of this writing, there's no way for an object to register itself with the scheduler. @@ -51,6 +53,11 @@ N_to_completion_Monitor:: run() { + if ( listeners.empty() ) { + // This monitor is no longer necessary, since there's nothing to wake up. + // Therefore we return complete and let the scheduler remove this instance. + return Completed ; + } while ( ! listeners.empty() ) { ( * listeners.back() )() ; listeners.pop_back() ; @@ -99,12 +106,13 @@ N_to_completion:: register_for_wakeup( wakeup_listener * w ) { + if ( w == 0 ) return ; if ( the_monitor.get() == 0 ) { the_monitor = shared_ptr< monitor_type >( new monitor_type() ) ; - Basic_Scheduler::obtain_scheduler().add_service( act( the_monitor ) ) ; + w -> scheduler() -> add_service( act( the_monitor ) ) ; } // Assert monitor exists - the_monitor -> add( this, w ) ; + the_monitor -> add_wakeup_item( this, w ) ; } //------------------------- Index: test_support/Listening_Actions.hpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/test_support/Listening_Actions.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- test_support/Listening_Actions.hpp 13 Jun 2007 19:29:12 -0000 1.1 +++ test_support/Listening_Actions.hpp 19 Jun 2007 18:52:26 -0000 1.2 @@ -24,7 +24,7 @@ #ifndef __Listening_Actions_hpp__ #define __Listening_Actions_hpp__ -#include "ACT/ACT.hpp" +#include "ACT/Scheduler.hpp" #include "Action_Tracing.hpp" #include #include @@ -40,6 +40,9 @@ class N_to_completion_Monitor : public simple_act { + /// A vector of schedulers + static std::vector< wakeup_listener::scheduler_pointer > schedulers ; + std::vector< wakeup_listener * > listeners ; act_state run() ; @@ -51,7 +54,7 @@ /// Query whether there are any actions registered for wakeup. inline bool empty() { return listeners.empty() ; } - void add( N_to_completion *, wakeup_listener * ) ; + void add_wakeup_item( N_to_completion *, wakeup_listener * ) ; } ; //------------------------- Index: unit_tests/Test_Scheduler.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/unit_tests/Test_Scheduler.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- unit_tests/Test_Scheduler.cpp 13 Jun 2007 19:29:12 -0000 1.1 +++ unit_tests/Test_Scheduler.cpp 19 Jun 2007 18:52:26 -0000 1.2 @@ -31,8 +31,7 @@ BOOST_AUTO_UNIT_TEST( null ) { - Basic_Scheduler & b = Basic_Scheduler::obtain_scheduler() ; - BOOST_REQUIRE( b.empty() ) ; + Basic_Scheduler b ; execution_trace tr ; b.add_task( act( new no_action( new simple_tracker( tr, "N" ) ) ) ) ; @@ -44,12 +43,12 @@ std::string expected( "ABC" ) ; BOOST_CHECK_MESSAGE( tr.result() == expected, "Found result " << tr.result() << ". Expected result " << expected << "." ) ; + BOOST_CHECK( b.empty() ) ; } BOOST_AUTO_UNIT_TEST( act_n_interleaved ) { - Basic_Scheduler & b = Basic_Scheduler::obtain_scheduler() ; - b.reset() ; + Basic_Scheduler b ; BOOST_REQUIRE( b.empty() ) ; execution_trace tr ; @@ -61,6 +60,7 @@ std::string expected( "ABCABCBCCC" ) ; BOOST_CHECK_MESSAGE( tr.result() == expected, "Found result " << tr.result() << ". Expected result " << expected << "." ) ; + BOOST_CHECK( b.empty() ) ; } //-------------------------------------------------- @@ -68,7 +68,7 @@ BOOST_AUTO_UNIT_TEST( pause_action ) { - Basic_Scheduler & b = Basic_Scheduler::obtain_scheduler() ; + Basic_Scheduler b ; BOOST_REQUIRE( b.empty() ) ; Pause_Service x( & b ) ; Index: unit_tests/Test_Scheduling_Queue.cpp =================================================================== RCS file: /sources/gnash/gnash/cygnal/ACT/unit_tests/Test_Scheduling_Queue.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- unit_tests/Test_Scheduling_Queue.cpp 13 Jun 2007 19:29:12 -0000 1.1 +++ unit_tests/Test_Scheduling_Queue.cpp 19 Jun 2007 18:52:26 -0000 1.2 @@ -29,12 +29,12 @@ // Include this implementation file in order to instantiate template #include "ACT/Scheduling_Queue.cpp" -namespace ACT { - /** A test item to put into a scheduling queue. + +/** A test item to put into a scheduling queue. */ - class test_item { +class test_item { size_t it ; - public: +public: explicit test_item( size_t x ) : it( x ) {} @@ -42,27 +42,28 @@ inline bool operator==( unsigned int x ) const { return it == x ; } size_t get() { return it ; } void set( size_t n ) { it = n ; } - } ; +} ; - // Explicit instantiation - template Scheduling_Queue< test_item > ; -} +// Explicit instantiation +template ACT::Scheduling_Queue< test_item, ACT::wakeup_listener_allocated > ; + +typedef ACT::Scheduling_Queue< test_item, ACT::wakeup_listener_allocated > queue_type ; +typedef queue_type::pointer pointer ; using namespace ACT ; -typedef Scheduling_Queue< test_item >::pointer pointer ; //-------------------------------------------------- BOOST_AUTO_UNIT_TEST( simple_queue_exercise ) { - Scheduling_Queue< test_item > q ; + queue_type q ; test_item a( 1 ) ; test_item b( 2 ) ; test_item c( 3 ) ; - q.push( a ) ; - q.push( b ) ; - q.push( c ) ; + q.push( a, 0 ) ; + q.push( b, 0 ) ; + q.push( c, 0 ) ; pointer x( q.top_ptr() ) ; test_item it = * x ; @@ -80,12 +81,12 @@ void add_then_test_order( permutation_iterator::const_iterator begin, permutation_iterator::const_iterator end ) { - Scheduling_Queue< test_item > q ; + queue_type q ; size_t permutation_size = end - begin ; size_t j ; for ( j = 0 ; j < permutation_size ; ++ j ) { - q.push( test_item( * begin ++ ) ) ; + q.push( test_item( * begin ++ ), 0 ) ; } for ( j = 0 ; j < permutation_size ; ++ j ) { pointer p( q.top_ptr() ) ; @@ -114,15 +115,15 @@ //-------------------------------------------------- BOOST_AUTO_UNIT_TEST( another_simple_queue_exercise ) { - Scheduling_Queue< test_item > q ; + queue_type q ; test_item a( 4 ) ; test_item b( 5 ) ; test_item c( 6 ) ; - q.push( a ) ; - q.push( b ) ; - q.push( c ) ; + q.push( a, 0 ) ; + q.push( b, 0 ) ; + q.push( c, 0 ) ; pointer x( q.top_ptr() ) ; test_item it = * x ; @@ -172,7 +173,7 @@ void add_then_reorder( const iterator begin, iterator middle, iterator end ) { - Scheduling_Queue< test_item > q ; + queue_type q ; size_t n = middle - begin ; size_t n2 = end - middle ; @@ -183,7 +184,7 @@ /* Add elements to the queue from middle to end */ for ( j = 0 ; j < n2 ; ++ j ) { - q.push( test_item( * i ++ ) ) ; + q.push( test_item( * i ++ ), 0 ) ; } i = begin ; for ( j = 0 ; j < n ; ++ j ) { @@ -231,14 +232,14 @@ void add_then_wakeup( const iterator begin, const iterator middle, const iterator end ) { - Scheduling_Queue< test_item > q ; + queue_type q ; const size_t number_of_elements = middle - begin ; size_t j ; iterator i( begin ) ; std::vector< pointer > pp ; while ( i != middle ) { - pp.push_back( q.push( test_item( * i ++ ) ) ) ; + pp.push_back( q.push( test_item( * i ++ ), 0 ) ) ; } BOOST_REQUIRE( i - begin == number_of_elements ) ; Index: Change_Log.txt =================================================================== RCS file: Change_Log.txt diff -N Change_Log.txt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Change_Log.txt 19 Jun 2007 18:52:25 -0000 1.1 @@ -0,0 +1,32 @@ +2007-06-19 Eric Hughes + Added a completion check for the test listening action. + All unit tests now fully pass. + +2007-06-19 Eric Hughes + Added wakeup_listener_allocated to be the auxiliary object in the scheduling queue. + Changed constructor for old auxiliary items into a call to reconstruct on the old object. + Eliminated identifier Basic_Wakeup_Listener. + +2007-06-18 Eric Hughes + Removed singleton construction for Scheduler. + +2007-06-17 Eric Hughes + Changed activate_one_item to use a queue pointer rather than a reference. A reference points to a single location in the priority queue (which reorders itself), whereas a pointer points to the same entry as it moves around. + Changed index version of reorder to use a permutation_index. + +2007-06-17 Eric Hughes + Changed wakeup_listener to store a permutation_index rather than a pointer. This eliminates an essential duplication, having stored both the scheduler and its queue addresses both. + Expanded permutation vector to incorporate an auxiliary object, used to hold wakeup_listener. + Changed interface to push to take this auxiliary object. + Added a reorder( size_t ) call that directly takes the permutation_index in wakeup_listener. + +2007-06-17 Eric Hughes + Found defect with wakeup_listener allocated with queue_item, so pointers to such aren't stable. + Added another class parameter to Scheduling_Queue etc. in preparation for storing wakeup_listener stably. + +2007-06-16 Eric Hughes + Added guard for wakeup to require a listener present. + Moved wakeup_listener from ACT.hpp to Scheduler.hpp + Added scheduler accessor to wakeup_listener. Will allow removal of singleton. + Added action type to scheduled item. Fixed comparison function. + Implemented add_service. \ No newline at end of file From MAILER-DAEMON Tue Jun 19 17:59:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0lj7-0007Xc-OT for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 17:59:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0lj6-0007XX-BA for gnash-commit@gnu.org; Tue, 19 Jun 2007 17:59:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0lj5-0007XD-Fp for gnash-commit@gnu.org; Tue, 19 Jun 2007 17:59:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0lj5-0007XA-AO for gnash-commit@gnu.org; Tue, 19 Jun 2007 17:59:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0lj4-0001mJ-S8 for gnash-commit@gnu.org; Tue, 19 Jun 2007 17:59:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0lj2-0003rZ-W9 for gnash-commit@gnu.org; Tue, 19 Jun 2007 21:59:01 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0lj2-0003rV-NQ for gnash-commit@gnu.org; Tue, 19 Jun 2007 21:59:00 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 21:59:00 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/NullGui.cpp gui/NullGui.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 21:59:04 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 21:59:00 Modified files: . : ChangeLog gui : NullGui.cpp NullGui.h Log message: * gui/NullGui.{cpp,h}: implement setTimeout call. fixes bug #20118. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3584&r2=1.3585 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/NullGui.cpp?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/NullGui.h?cvsroot=gnash&r1=1.9&r2=1.10 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3584 retrieving revision 1.3585 diff -u -b -r1.3584 -r1.3585 --- ChangeLog 19 Jun 2007 18:42:49 -0000 1.3584 +++ ChangeLog 19 Jun 2007 21:58:59 -0000 1.3585 @@ -1,5 +1,10 @@ 2007-06-19 Sandro Santilli + * gui/NullGui.{cpp,h}: implement setTimeout + call. fixes bug #20118. + +2007-06-19 Sandro Santilli + * server/sprite_instance.h: document another reachable resource (was marked already, just not documented as such). Index: gui/NullGui.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/NullGui.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- gui/NullGui.cpp 28 May 2007 15:40:59 -0000 1.6 +++ gui/NullGui.cpp 19 Jun 2007 21:59:00 -0000 1.7 @@ -32,15 +32,41 @@ # include // for usleep #endif +#include // for gettimeofday +#include // for gettimeofday +#include // for reporting gettimeofday errors + namespace gnash { bool NullGui::run() { + struct timeval tv; + + + if (gettimeofday(&tv, NULL)) + { + cerr << "Could not get time of day: " << strerror(errno) << endl; + return false; + } + unsigned long int start_timer = tv.tv_sec*1000 + tv.tv_usec / 1000; + while (true) { + if (gettimeofday(&tv, NULL)) + { + cerr << "Could not get time of day: " << strerror(errno) << endl; + return false; + } + unsigned long int timer = tv.tv_sec*1000 + tv.tv_usec / 1000; + if ( timer - start_timer > _timeout) + { + break; + } + // sleep for _interval milliseconds + // TODO: use the timer value to trigger advances usleep(_interval*1000); Gui::advance_movie(this); } Index: gui/NullGui.h =================================================================== RCS file: /sources/gnash/gnash/gui/NullGui.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- gui/NullGui.h 28 May 2007 15:40:59 -0000 1.9 +++ gui/NullGui.h 19 Jun 2007 21:59:00 -0000 1.10 @@ -46,8 +46,9 @@ { _interval=interval; } - void setTimeout(unsigned int) + void setTimeout(unsigned int to) { + _timeout=to; } bool init(int, char ***) { return true; } bool createWindow(const char* /*title*/, int /*width*/, int /*height*/) @@ -58,6 +59,11 @@ bool createMenu() { return true; } bool setupEvents() { return true; } void renderBuffer() { } + +private: + + /// timeout value, in milliseconds + unsigned int _timeout; }; } // end of gnash namespace From MAILER-DAEMON Tue Jun 19 18:26:00 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0m9A-0003Ah-Iq for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 18:26:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0m98-00039f-1I for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:25:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0m97-00039G-Cs for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:25:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0m97-00039D-2W for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:25:57 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0m96-000527-On for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:25:56 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0m95-0007Jf-N4 for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:25:55 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0m95-0007Jc-IQ for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:25:55 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 22:25:55 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp serv... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 22:25:58 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 22:25:55 Modified files: . : ChangeLog server : sprite_instance.cpp sprite_instance.h Log message: * server/sprite_instance.{cpp,h}: (markReachableResources): Mark textfield variables and relative root. Fixes segfault in movie reported in bug #19883, and also shows that the GC model does it's job in this case. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3585&r2=1.3586 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.290&r2=1.291 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.124&r2=1.125 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3585 retrieving revision 1.3586 diff -u -b -r1.3585 -r1.3586 --- ChangeLog 19 Jun 2007 21:58:59 -0000 1.3585 +++ ChangeLog 19 Jun 2007 22:25:54 -0000 1.3586 @@ -1,5 +1,12 @@ 2007-06-19 Sandro Santilli + * server/sprite_instance.{cpp,h}: (markReachableResources): + Mark textfield variables and relative root. + Fixes segfault in movie reported in bug #19883, and also + shows that the GC model does it's job in this case. + +2007-06-19 Sandro Santilli + * gui/NullGui.{cpp,h}: implement setTimeout call. fixes bug #20118. Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.290 retrieving revision 1.291 diff -u -b -r1.290 -r1.291 --- server/sprite_instance.cpp 17 Jun 2007 22:09:23 -0000 1.290 +++ server/sprite_instance.cpp 19 Jun 2007 22:25:55 -0000 1.291 @@ -4013,6 +4013,21 @@ // Mark our own definition if ( m_def.get() ) m_def->setReachable(); + // Mark textfields in the TextfieldMap + if ( _text_variables.get() ) + { + for(TextfieldMap::const_iterator i=_text_variables->begin(), + e=_text_variables->end(); + i!=e; ++i) + { + i->second->setReachable(); + } + } + + // Mark our relative root + assert(m_root != NULL); + m_root->setReachable(); + markCharacterReachable(); } Index: server/sprite_instance.h =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.h,v retrieving revision 1.124 retrieving revision 1.125 diff -u -b -r1.124 -r1.125 --- server/sprite_instance.h 19 Jun 2007 18:42:50 -0000 1.124 +++ server/sprite_instance.h 19 Jun 2007 22:25:55 -0000 1.125 @@ -1005,6 +1005,8 @@ /// - Drawable instance (_drawable_inst) /// - sprite environment /// - definition the sprite has been instantiated from + /// - Textfields having an associated variable registered in this instance. + /// - Relative root of this instance (m_root) /// virtual void markReachableResources() const; #endif // GNASH_USE_GC From MAILER-DAEMON Tue Jun 19 18:40:26 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0mN7-0003Ei-QE for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 18:40:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0mN6-0003EE-IN for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:40:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0mN5-0003Dm-GO for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:40:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0mN5-0003Di-Bj for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:40:23 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0mN5-0007HG-1c for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:40:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0mN3-0008Jx-HN for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:40:21 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0mN3-0008Ju-Cp for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:40:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 22:40:21 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/gui NullGui.cpp NullGui.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 22:40:24 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 22:40:21 Modified files: gui : NullGui.cpp NullGui.h Log message: Ops, don't exit immediately if timeout is zero (-t0, or the default) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/NullGui.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/NullGui.h?cvsroot=gnash&r1=1.10&r2=1.11 Patches: Index: NullGui.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/NullGui.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- NullGui.cpp 19 Jun 2007 21:59:00 -0000 1.7 +++ NullGui.cpp 19 Jun 2007 22:40:21 -0000 1.8 @@ -54,6 +54,8 @@ while (true) { + if ( _timeout ) + { if (gettimeofday(&tv, NULL)) { cerr << "Could not get time of day: " << strerror(errno) << endl; @@ -64,6 +66,7 @@ { break; } + } // sleep for _interval milliseconds // TODO: use the timer value to trigger advances Index: NullGui.h =================================================================== RCS file: /sources/gnash/gnash/gui/NullGui.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- NullGui.h 19 Jun 2007 21:59:00 -0000 1.10 +++ NullGui.h 19 Jun 2007 22:40:21 -0000 1.11 @@ -38,7 +38,8 @@ NullGui(bool do_loop) : - Gui(0,0,do_loop,0) + Gui(0,0,do_loop,0), + _timeout(0) {} ~NullGui() {} From MAILER-DAEMON Tue Jun 19 18:54:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I0maq-0001AZ-NV for mharc-gnash-commit@gnu.org; Tue, 19 Jun 2007 18:54:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0map-0001AL-CV for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:54:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0man-0001A9-Lz for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:54:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0man-0001A6-GL for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:54:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0man-0000Sb-49 for gnash-commit@gnu.org; Tue, 19 Jun 2007 18:54:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I0mam-000227-44 for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:54:32 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I0mal-000224-W4 for gnash-commit@gnu.org; Tue, 19 Jun 2007 22:54:32 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Tue, 19 Jun 2007 22:54:31 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/StreamProvider.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 22:54:35 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/19 22:54:31 Modified files: . : ChangeLog server : StreamProvider.cpp Log message: * server/StreamProvider.cpp (getStream): transfer ownerhip of the opened FILE to the tu_file, to plug a memory leak. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3586&r2=1.3587 http://cvs.savannah.gnu.org/viewcvs/gnash/server/StreamProvider.cpp?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3586 retrieving revision 1.3587 diff -u -b -r1.3586 -r1.3587 --- ChangeLog 19 Jun 2007 22:25:54 -0000 1.3586 +++ ChangeLog 19 Jun 2007 22:54:31 -0000 1.3587 @@ -1,5 +1,7 @@ 2007-06-19 Sandro Santilli + * server/StreamProvider.cpp (getStream): transfer ownerhip of + the opened FILE to the tu_file, to plug a memory leak. * server/sprite_instance.{cpp,h}: (markReachableResources): Mark textfield variables and relative root. Fixes segfault in movie reported in bug #19883, and also Index: server/StreamProvider.cpp =================================================================== RCS file: /sources/gnash/gnash/server/StreamProvider.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- server/StreamProvider.cpp 19 Apr 2007 15:52:20 -0000 1.18 +++ server/StreamProvider.cpp 19 Jun 2007 22:54:31 -0000 1.19 @@ -66,7 +66,7 @@ if ( path == "-" ) { FILE *newin = fdopen(dup(0), "rb"); - return new tu_file(newin, false); + return new tu_file(newin, true); // close by dtor } else { @@ -74,7 +74,7 @@ if (!newin) { return NULL; } - return new tu_file(newin, false); + return new tu_file(newin, true); // close by dtor } } else From MAILER-DAEMON Wed Jun 20 10:24:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I116J-0006sW-7a for mharc-gnash-commit@gnu.org; Wed, 20 Jun 2007 10:24:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I116H-0006sI-Bx for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:24:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I116F-0006rx-Dj for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:23:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I116F-0006ru-7g for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:23:59 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I116E-0002eN-Ru for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:23:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1167-0000KP-49 for gnash-commit@gnu.org; Wed, 20 Jun 2007 14:23:51 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1166-0000KK-Vb for gnash-commit@gnu.org; Wed, 20 Jun 2007 14:23:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 20 Jun 2007 14:23:50 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/fill_style.cpp server/fi... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 14:24:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/20 14:23:50 Modified files: . : ChangeLog server : fill_style.cpp fill_style.h server/parser : shape_character_def.cpp shape_character_def.h Log message: * server/fill_style.{cpp,h}: add an markReachableResources() function to keep alive eventual bitmap and character fills. * server/parser/shape_character_def.{cpp,h}: implement resource marking function, marking fill styles. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3587&r2=1.3588 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fill_style.cpp?cvsroot=gnash&r1=1.4&r2=1.5 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fill_style.h?cvsroot=gnash&r1=1.5&r2=1.6 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.cpp?cvsroot=gnash&r1=1.28&r2=1.29 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.h?cvsroot=gnash&r1=1.12&r2=1.13 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3587 retrieving revision 1.3588 diff -u -b -r1.3587 -r1.3588 --- ChangeLog 19 Jun 2007 22:54:31 -0000 1.3587 +++ ChangeLog 20 Jun 2007 14:23:49 -0000 1.3588 @@ -1,3 +1,10 @@ +2007-06-20 Sandro Santilli + + * server/fill_style.{cpp,h}: add an markReachableResources() + function to keep alive eventual bitmap and character fills. + * server/parser/shape_character_def.{cpp,h}: implement resource + marking function, marking fill styles. + 2007-06-19 Sandro Santilli * server/StreamProvider.cpp (getStream): transfer ownerhip of Index: server/fill_style.cpp =================================================================== RCS file: /sources/gnash/gnash/server/fill_style.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- server/fill_style.cpp 14 May 2007 20:15:03 -0000 1.4 +++ server/fill_style.cpp 20 Jun 2007 14:23:50 -0000 1.5 @@ -457,8 +457,16 @@ } -// end of namespace +#ifdef GNASH_USE_GC +void +fill_style::markReachableResources() const +{ + if ( m_gradient_bitmap_info ) m_gradient_bitmap_info->setReachable(); + if ( m_bitmap_character ) m_bitmap_character->setReachable(); } +#endif // GNASH_USE_GC + +} // end of namespace // Local Variables: Index: server/fill_style.h =================================================================== RCS file: /sources/gnash/gnash/server/fill_style.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- server/fill_style.h 28 May 2007 15:41:06 -0000 1.5 +++ server/fill_style.h 20 Jun 2007 14:23:50 -0000 1.6 @@ -17,7 +17,7 @@ // Based on work of Thatcher Ulrich 2003 -/* $Id: fill_style.h,v 1.5 2007/05/28 15:41:06 ann Exp $ */ +/* $Id: fill_style.h,v 1.6 2007/06/20 14:23:50 strk Exp $ */ #ifndef GNASH_FILL_STYLE_H #define GNASH_FILL_STYLE_H @@ -117,6 +117,17 @@ /// Returns the color stop value at a specified index const gradient_record& get_color_stop(int index) const; +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// fill_style specific reachable resources are: + /// + /// - gradient bitmap info (m_gradient_bitmap_info) + /// - bitmap character (m_bitmap_character) + /// + void markReachableResources() const; +#endif // GNASH_USE_GC + private: /// Return the color at the specified ratio into our gradient. Index: server/parser/shape_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/shape_character_def.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- server/parser/shape_character_def.cpp 15 Jun 2007 18:47:00 -0000 1.28 +++ server/parser/shape_character_def.cpp 20 Jun 2007 14:23:50 -0000 1.29 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: shape_character_def.cpp,v 1.28 2007/06/15 18:47:00 strk Exp $ */ +/* $Id: shape_character_def.cpp,v 1.29 2007/06/20 14:23:50 strk Exp $ */ // Based on the public domain shape.cpp of Thatcher Ulrich 2003 @@ -822,6 +822,19 @@ } } +#ifdef GNASH_USE_GC +void +shape_character_def::markReachableResources() const +{ + assert(isReachable()); + for (FillStyleVect::const_iterator i=m_fill_styles.begin(), e=m_fill_styles.end(); + i != e; ++i) + { + i->markReachableResources(); + } +} +#endif // GNASH_USE_GC + } // end namespace gnash // Local Variables: Index: server/parser/shape_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/shape_character_def.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- server/parser/shape_character_def.h 14 May 2007 17:23:16 -0000 1.12 +++ server/parser/shape_character_def.h 20 Jun 2007 14:23:50 -0000 1.13 @@ -5,7 +5,7 @@ // Quadratic bezier outline shapes, the basis for most SWF rendering. -/* $Id: shape_character_def.h,v 1.12 2007/05/14 17:23:16 strk Exp $ */ +/* $Id: shape_character_def.h,v 1.13 2007/06/20 14:23:50 strk Exp $ */ #ifndef GNASH_SHAPE_CHARACTER_DEF_H #define GNASH_SHAPE_CHARACTER_DEF_H @@ -33,6 +33,7 @@ typedef std::vector FillStyleVect; typedef std::vector LineStyleVect; + typedef std::vector PathVect; shape_character_def(); virtual ~shape_character_def(); @@ -72,10 +73,20 @@ protected: friend class morph2_character_def; +#ifdef GNASH_USE_GC + /// Mark reachable resources (for the GC) + // + /// Reachable resources are: + /// - Associated fill styles (m_fill_styles). + /// These are not actual resources, but may contain some. + /// + virtual void markReachableResources() const; +#endif // GNASH_USE_GC + // derived morph classes changes these - std::vector m_fill_styles; - std::vector m_line_styles; - std::vector m_paths; + FillStyleVect m_fill_styles; + LineStyleVect m_line_styles; + PathVect m_paths; rect m_bound; /// Free all meshes From MAILER-DAEMON Wed Jun 20 10:27:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I119h-0007kH-3z for mharc-gnash-commit@gnu.org; Wed, 20 Jun 2007 10:27:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I119g-0007jT-EH for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:27:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I119f-0007ib-P4 for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:27:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I119f-0007iM-Id for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:27:31 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I119f-0003ZT-83 for gnash-commit@gnu.org; Wed, 20 Jun 2007 10:27:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I119e-0000hx-LK for gnash-commit@gnu.org; Wed, 20 Jun 2007 14:27:30 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I119e-0000ht-Fk for gnash-commit@gnu.org; Wed, 20 Jun 2007 14:27:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 20 Jun 2007 14:27:30 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/GC.cpp libbase/GC.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 14:27:32 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/20 14:27:30 Modified files: . : ChangeLog libbase : GC.cpp GC.h Log message: * server/fill_style.{cpp,h}: add an markReachableResources() function to keep alive eventual bitmap and character fills. * server/parser/shape_character_def.{cpp,h}: implement resource marking function, marking fill styles. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3588&r2=1.3589 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.cpp?cvsroot=gnash&r1=1.1&r2=1.2 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/GC.h?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3588 retrieving revision 1.3589 diff -u -b -r1.3588 -r1.3589 --- ChangeLog 20 Jun 2007 14:23:49 -0000 1.3588 +++ ChangeLog 20 Jun 2007 14:27:29 -0000 1.3589 @@ -1,5 +1,7 @@ 2007-06-20 Sandro Santilli + * libbase/GC.{cpp,h}: moved destructor and cleanUnreachable methods + from header to implementation file. * server/fill_style.{cpp,h}: add an markReachableResources() function to keep alive eventual bitmap and character fills. * server/parser/shape_character_def.{cpp,h}: implement resource Index: libbase/GC.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- libbase/GC.cpp 15 Jun 2007 18:16:32 -0000 1.1 +++ libbase/GC.cpp 20 Jun 2007 14:27:30 -0000 1.2 @@ -16,13 +16,14 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: GC.cpp,v 1.1 2007/06/15 18:16:32 strk Exp $ */ +/* $Id: GC.cpp,v 1.2 2007/06/20 14:27:30 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "GC.h" +#include "builtin_function.h" namespace gnash { @@ -52,6 +53,55 @@ _singleton = NULL; } +GC::~GC() +{ +#ifdef GNASH_GC_DEBUG + log_debug(_("GC %p deleted, deleting all managed resources"), (void*)this); +#endif + +#if 1 + for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ++i) + { + delete *i; + } +#endif +} + +void +GC::cleanUnreachable() +{ +#ifdef GNASH_GC_DEBUG + size_t deleted = 0; + log_debug(_("GC %p: SWEEP SCAN"), (void*)this); +#endif + for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ) + { + const GcResource* res = *i; + if ( ! res->isReachable() ) + { +#ifdef GNASH_GC_DEBUG +#if GNASH_GC_DEBUG > 1 + log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), + (void*)this, (void*)res, typeid(*res).name()); +#endif + ++deleted; +#endif + delete res; + i = _resList.erase(i); + } + else + { + res->clearReachable(); + ++i; + } + } +#ifdef GNASH_GC_DEBUG + log_debug(_("GC %p: cleanUnreachable deleted " SIZET_FMT + " resources marked as unreachable"), + (void*)this, deleted); +#endif +} + } // end of namespace gnash Index: libbase/GC.h =================================================================== RCS file: /sources/gnash/gnash/libbase/GC.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- libbase/GC.h 18 Jun 2007 08:13:10 -0000 1.8 +++ libbase/GC.h 20 Jun 2007 14:27:30 -0000 1.9 @@ -253,27 +253,11 @@ } /// Destroy the collector, releasing all collectables. - ~GC() - { -#ifdef GNASH_GC_DEBUG - log_debug(_("GC %p deleted, NOT collecting again all managed resources"), (void*)this); -#endif - -#if 0 - for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ++i) - { - delete *i; - } -#endif - } - + ~GC(); /// List of collectables typedef std::list ResList; - /// List of roots - typedef std::list RootList; - /// Mark all reachable resources void markReachable() { @@ -284,39 +268,7 @@ } /// Delete all unreachable objects, and mark the others unreachable again - void cleanUnreachable() - { -#ifdef GNASH_GC_DEBUG - size_t deleted = 0; - log_debug(_("GC %p: SWEEP SCAN"), (void*)this); -#endif - for (ResList::iterator i=_resList.begin(), e=_resList.end(); i!=e; ) - { - const GcResource* res = *i; - if ( ! res->isReachable() ) - { -#ifdef GNASH_GC_DEBUG -#if GNASH_GC_DEBUG > 1 - log_debug(_("GC %p: cleanUnreachable deleting object %p (%s)"), - (void*)this, (void*)res, typeid(*res).name()); -#endif - ++deleted; -#endif - delete res; - i = _resList.erase(i); - } - else - { - res->clearReachable(); - ++i; - } - } -#ifdef GNASH_GC_DEBUG - log_debug(_("GC %p: cleanUnreachable deleted " SIZET_FMT - " resources marked as unreachable"), - (void*)this, deleted); -#endif - } + void cleanUnreachable(); ResList _resList; From MAILER-DAEMON Wed Jun 20 19:20:50 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I19Tl-0001kZ-Se for mharc-gnash-commit@gnu.org; Wed, 20 Jun 2007 19:20:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I19Tk-0001kP-Fs for gnash-commit@gnu.org; Wed, 20 Jun 2007 19:20:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I19Tj-0001kD-OR for gnash-commit@gnu.org; Wed, 20 Jun 2007 19:20:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I19Tj-0001kA-Iv for gnash-commit@gnu.org; Wed, 20 Jun 2007 19:20:47 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I19Tj-00041v-8D for gnash-commit@gnu.org; Wed, 20 Jun 2007 19:20:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I19Ti-0000OK-23 for gnash-commit@gnu.org; Wed, 20 Jun 2007 23:20:46 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I19Th-0000OF-PQ for gnash-commit@gnu.org; Wed, 20 Jun 2007 23:20:45 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Wed, 20 Jun 2007 23:20:45 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/server/swf tag_loaders.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 23:20:48 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/20 23:20:45 Modified files: server/swf : tag_loaders.cpp Log message: remove unneeded header CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.114&r2=1.115 Patches: Index: tag_loaders.cpp =================================================================== RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v retrieving revision 1.114 retrieving revision 1.115 diff -u -b -r1.114 -r1.115 --- tag_loaders.cpp 8 Jun 2007 00:44:26 -0000 1.114 +++ tag_loaders.cpp 20 Jun 2007 23:20:44 -0000 1.115 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: tag_loaders.cpp,v 1.114 2007/06/08 00:44:26 tgc Exp $ */ +/* $Id: tag_loaders.cpp,v 1.115 2007/06/20 23:20:44 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -47,7 +47,6 @@ #include "movie_def_impl.h" #include "swf.h" #include "swf/TagLoadersTable.h" -#include "generic_character.h" #include "text_character_def.h" #include "edit_text_character_def.h" #include "execute_tag.h" // for set_background_color inheritance From MAILER-DAEMON Wed Jun 20 20:19:59 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1AP1-0001HM-Aa for mharc-gnash-commit@gnu.org; Wed, 20 Jun 2007 20:19:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1AOz-0001Gp-MX for gnash-commit@gnu.org; Wed, 20 Jun 2007 20:19:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1AOz-0001GT-0L for gnash-commit@gnu.org; Wed, 20 Jun 2007 20:19:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1AOy-0001GP-PE for gnash-commit@gnu.org; Wed, 20 Jun 2007 20:19:56 -0400 Received: from nz-out-0506.google.com ([64.233.162.228]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1AOy-0004ND-BX for gnash-commit@gnu.org; Wed, 20 Jun 2007 20:19:56 -0400 Received: by nz-out-0506.google.com with SMTP id q3so342726nzb for ; Wed, 20 Jun 2007 17:19:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=opmsOVT7cJPSVLc2Hbny0Kel5oFeYnBVxSk/vtAWxZmV9GlpSSsw2BycaEdsgCtunVsZsDJRHk8JnpsLHltE9lWearprd/uNrIHM49jQh6drIv399jbvHy50SU+1iwi49wGtKxj29siORRmZgEQZaabJu9PbdGjD29nDk+ewW8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SrZhqknc961KMJd3O3OsiQ31tiwwr1feeGHCorxWQBGy8fndIULIpkR9hhI13tLmVhTcPwftsmSKtQDl5c/loSYoD3d+jUSfAfsSLbxnJd7dNHFOj6J4ecEixak+CUd2g9zpflRSBlE1TflP5Hp1y3ZP8dvDSYMkIKgRq55EdaM= Received: by 10.115.90.1 with SMTP id s1mr910534wal.1182385195138; Wed, 20 Jun 2007 17:19:55 -0700 (PDT) Received: by 10.114.110.5 with HTTP; Wed, 20 Jun 2007 17:19:55 -0700 (PDT) Message-ID: Date: Thu, 21 Jun 2007 08:19:55 +0800 From: "zou lunkai" To: "Sandro Santilli" Subject: Re: [Gnash-commit] gnash ChangeLog server/fill_style.cpp server/fi... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 00:19:58 -0000 Question: It seems that besides AS objects, GC also takse over more general resouces, eg. SWF tags. Will this increase the scan time at later collecting step? On 6/20/07, Sandro Santilli wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Sandro Santilli 07/06/20 14:23:50 > > Modified files: > . : ChangeLog > server : fill_style.cpp fill_style.h > server/parser : shape_character_def.cpp shape_character_def.h > > Log message: > * server/fill_style.{cpp,h}: add an markReachableResources() > function to keep alive eventual bitmap and character fills. > * server/parser/shape_character_def.{cpp,h}: implement resource > marking function, marking fill styles. > > CVSWeb URLs: > http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3587&r2=1.3588 > http://cvs.savannah.gnu.org/viewcvs/gnash/server/fill_style.cpp?cvsroot=gnash&r1=1.4&r2=1.5 > http://cvs.savannah.gnu.org/viewcvs/gnash/server/fill_style.h?cvsroot=gnash&r1=1.5&r2=1.6 > http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.cpp?cvsroot=gnash&r1=1.28&r2=1.29 > http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.h?cvsroot=gnash&r1=1.12&r2=1.13 > > Patches: > Index: ChangeLog > =================================================================== > RCS file: /sources/gnash/gnash/ChangeLog,v > retrieving revision 1.3587 > retrieving revision 1.3588 > diff -u -b -r1.3587 -r1.3588 > --- ChangeLog 19 Jun 2007 22:54:31 -0000 1.3587 > +++ ChangeLog 20 Jun 2007 14:23:49 -0000 1.3588 > @@ -1,3 +1,10 @@ > +2007-06-20 Sandro Santilli > + > + * server/fill_style.{cpp,h}: add an markReachableResources() > + function to keep alive eventual bitmap and character fills. > + * server/parser/shape_character_def.{cpp,h}: implement resource > + marking function, marking fill styles. > + > 2007-06-19 Sandro Santilli > > * server/StreamProvider.cpp (getStream): transfer ownerhip of > > Index: server/fill_style.cpp > =================================================================== > RCS file: /sources/gnash/gnash/server/fill_style.cpp,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -u -b -r1.4 -r1.5 > --- server/fill_style.cpp 14 May 2007 20:15:03 -0000 1.4 > +++ server/fill_style.cpp 20 Jun 2007 14:23:50 -0000 1.5 > @@ -457,8 +457,16 @@ > } > > > -// end of namespace > +#ifdef GNASH_USE_GC > +void > +fill_style::markReachableResources() const > +{ > + if ( m_gradient_bitmap_info ) m_gradient_bitmap_info->setReachable(); > + if ( m_bitmap_character ) m_bitmap_character->setReachable(); > } > +#endif // GNASH_USE_GC > + > +} // end of namespace > > > // Local Variables: > > Index: server/fill_style.h > =================================================================== > RCS file: /sources/gnash/gnash/server/fill_style.h,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -b -r1.5 -r1.6 > --- server/fill_style.h 28 May 2007 15:41:06 -0000 1.5 > +++ server/fill_style.h 20 Jun 2007 14:23:50 -0000 1.6 > @@ -17,7 +17,7 @@ > > // Based on work of Thatcher Ulrich 2003 > > -/* $Id: fill_style.h,v 1.5 2007/05/28 15:41:06 ann Exp $ */ > +/* $Id: fill_style.h,v 1.6 2007/06/20 14:23:50 strk Exp $ */ > > #ifndef GNASH_FILL_STYLE_H > #define GNASH_FILL_STYLE_H > @@ -117,6 +117,17 @@ > /// Returns the color stop value at a specified index > const gradient_record& get_color_stop(int index) const; > > +#ifdef GNASH_USE_GC > + /// Mark reachable resources (for the GC) > + // > + /// fill_style specific reachable resources are: > + /// > + /// - gradient bitmap info (m_gradient_bitmap_info) > + /// - bitmap character (m_bitmap_character) > + /// > + void markReachableResources() const; > +#endif // GNASH_USE_GC > + > private: > > /// Return the color at the specified ratio into our gradient. > > Index: server/parser/shape_character_def.cpp > =================================================================== > RCS file: /sources/gnash/gnash/server/parser/shape_character_def.cpp,v > retrieving revision 1.28 > retrieving revision 1.29 > diff -u -b -r1.28 -r1.29 > --- server/parser/shape_character_def.cpp 15 Jun 2007 18:47:00 -0000 1.28 > +++ server/parser/shape_character_def.cpp 20 Jun 2007 14:23:50 -0000 1.29 > @@ -17,7 +17,7 @@ > // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > // > > -/* $Id: shape_character_def.cpp,v 1.28 2007/06/15 18:47:00 strk Exp $ */ > +/* $Id: shape_character_def.cpp,v 1.29 2007/06/20 14:23:50 strk Exp $ */ > > // Based on the public domain shape.cpp of Thatcher Ulrich 2003 > > @@ -822,6 +822,19 @@ > } > } > > +#ifdef GNASH_USE_GC > +void > +shape_character_def::markReachableResources() const > +{ > + assert(isReachable()); > + for (FillStyleVect::const_iterator i=m_fill_styles.begin(), e=m_fill_styles.end(); > + i != e; ++i) > + { > + i->markReachableResources(); > + } > +} > +#endif // GNASH_USE_GC > + > } // end namespace gnash > > // Local Variables: > > Index: server/parser/shape_character_def.h > =================================================================== > RCS file: /sources/gnash/gnash/server/parser/shape_character_def.h,v > retrieving revision 1.12 > retrieving revision 1.13 > diff -u -b -r1.12 -r1.13 > --- server/parser/shape_character_def.h 14 May 2007 17:23:16 -0000 1.12 > +++ server/parser/shape_character_def.h 20 Jun 2007 14:23:50 -0000 1.13 > @@ -5,7 +5,7 @@ > > // Quadratic bezier outline shapes, the basis for most SWF rendering. > > -/* $Id: shape_character_def.h,v 1.12 2007/05/14 17:23:16 strk Exp $ */ > +/* $Id: shape_character_def.h,v 1.13 2007/06/20 14:23:50 strk Exp $ */ > > #ifndef GNASH_SHAPE_CHARACTER_DEF_H > #define GNASH_SHAPE_CHARACTER_DEF_H > @@ -33,6 +33,7 @@ > > typedef std::vector FillStyleVect; > typedef std::vector LineStyleVect; > + typedef std::vector PathVect; > > shape_character_def(); > virtual ~shape_character_def(); > @@ -72,10 +73,20 @@ > protected: > friend class morph2_character_def; > > +#ifdef GNASH_USE_GC > + /// Mark reachable resources (for the GC) > + // > + /// Reachable resources are: > + /// - Associated fill styles (m_fill_styles). > + /// These are not actual resources, but may contain some. > + /// > + virtual void markReachableResources() const; > +#endif // GNASH_USE_GC > + > // derived morph classes changes these > - std::vector m_fill_styles; > - std::vector m_line_styles; > - std::vector m_paths; > + FillStyleVect m_fill_styles; > + LineStyleVect m_line_styles; > + PathVect m_paths; > rect m_bound; > > /// Free all meshes > > > _______________________________________________ > Gnash-commit mailing list > Gnash-commit@gnu.org > http://lists.gnu.org/mailman/listinfo/gnash-commit > From MAILER-DAEMON Wed Jun 20 22:03:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1C1X-0000TA-B2 for mharc-gnash-commit@gnu.org; Wed, 20 Jun 2007 22:03:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1C1V-0000Sl-JZ for gnash-commit@gnu.org; Wed, 20 Jun 2007 22:03:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1C1V-0000SW-3m for gnash-commit@gnu.org; Wed, 20 Jun 2007 22:03:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1C1V-0000ST-14 for gnash-commit@gnu.org; Wed, 20 Jun 2007 22:03:49 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1C1U-0000Wz-Ic for gnash-commit@gnu.org; Wed, 20 Jun 2007 22:03:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1C1T-00012Y-Sm for gnash-commit@gnu.org; Thu, 21 Jun 2007 02:03:48 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1C1T-00012U-Jv for gnash-commit@gnu.org; Thu, 21 Jun 2007 02:03:47 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 21 Jun 2007 02:03:47 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 02:03:49 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/21 02:03:47 Modified files: . : ChangeLog Added files: testsuite/actionscript.all: enumerate.as Log message: new testcase, Gnash fails. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3589&r2=1.3590 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/enumerate.as?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3589 retrieving revision 1.3590 diff -u -b -r1.3589 -r1.3590 --- ChangeLog 20 Jun 2007 14:27:29 -0000 1.3589 +++ ChangeLog 21 Jun 2007 02:03:46 -0000 1.3590 @@ -1,3 +1,7 @@ +2007-06-21 Zou Lunkai + + * testsuite/actionscript.all/enumerate.as: new testcase, Gnash fails. + 2007-06-20 Sandro Santilli * libbase/GC.{cpp,h}: moved destructor and cleanUnreachable methods Index: testsuite/actionscript.all/enumerate.as =================================================================== RCS file: testsuite/actionscript.all/enumerate.as diff -N testsuite/actionscript.all/enumerate.as --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/actionscript.all/enumerate.as 21 Jun 2007 02:03:47 -0000 1.1 @@ -0,0 +1,61 @@ + // +// Copyright (C) 2007 Free Software Foundation, Inc. +// +// This program is free software; you can redistribute it and/or modchecky +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; check not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA 02110-1301 USA +// + +/* + * Zou Lunkai, zoulunkai@gmail.com + * + * Test ActionEnumerate/2 + */ + +#include "check.as" + +#if OUTPUT_VERSION > 5 + +// Create a recorder and init it. +recorder = new Array(10); +for(i=0; i<10; i++){ + recorder[i] = 0; +} + +// Create six characters +for(i=0; i<6; i++) +{ + _root.createEmptyMovieClip("mc"+i, i+1); +} + +// Use the recorder to record the enumerated results in _root +i = 0; +for (var j in _root) +{ + recorder[i] = _root[j]; + i++; +} + +// Test what we got in the above step. Tests show that characters were also got enumerated! +// Note: don't use clip names for testing here, the order in enumerating is not defined. +// However, the tests bellow are dependent on enumerating order! +// Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. +// TODO: find a proper way to test this. +xcheck_equals(typeof(recorder[3]), 'movieclip'); +xcheck_equals(typeof(recorder[4]), 'movieclip'); +xcheck_equals(typeof(recorder[5]), 'movieclip'); +xcheck_equals(typeof(recorder[6]), 'movieclip'); +xcheck_equals(typeof(recorder[7]), 'movieclip'); +xcheck_equals(typeof(recorder[8]), 'movieclip'); + +#endif // OUTPUT_VERSION > 5 \ No newline at end of file From MAILER-DAEMON Thu Jun 21 01:09:18 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Euz-0006Pa-Qs for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 01:09:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Euy-0006PH-B3 for gnash-commit@gnu.org; Thu, 21 Jun 2007 01:09:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Eux-0006P5-Kz for gnash-commit@gnu.org; Thu, 21 Jun 2007 01:09:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Eux-0006P2-E5 for gnash-commit@gnu.org; Thu, 21 Jun 2007 01:09:15 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1Eux-00065w-21 for gnash-commit@gnu.org; Thu, 21 Jun 2007 01:09:15 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1Euw-0000Yt-3o for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:09:14 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1Euv-0000Yp-S7 for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:09:13 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 21 Jun 2007 05:09:13 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/movie_root.cpp testsuite... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 05:09:16 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/21 05:09:13 Modified files: . : ChangeLog server : movie_root.cpp Added files: testsuite/misc-ming.all: key_event_test4.c key_event_test4runner.cpp Log message: tests for key event handler and fix CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3590&r2=1.3591 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/key_event_test4.c?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/key_event_test4runner.cpp?cvsroot=gnash&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.cpp?cvsroot=gnash&r1=1.68&r2=1.69 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3590 retrieving revision 1.3591 diff -u -b -r1.3590 -r1.3591 --- ChangeLog 21 Jun 2007 02:03:46 -0000 1.3590 +++ ChangeLog 21 Jun 2007 05:09:12 -0000 1.3591 @@ -1,5 +1,11 @@ 2007-06-21 Zou Lunkai + * testsuite/misc-ming.all/key_event_test4.c, key_event_test4runner.cpp, Makefile.am: + new testcase for "this" context in a user defined key event handler. + * server/movie_root.cpp: correctly set the context. + +2007-06-21 Zou Lunkai + * testsuite/actionscript.all/enumerate.as: new testcase, Gnash fails. 2007-06-20 Sandro Santilli Index: server/movie_root.cpp =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -u -b -r1.68 -r1.69 --- server/movie_root.cpp 16 Jun 2007 11:27:40 -0000 1.68 +++ server/movie_root.cpp 21 Jun 2007 05:09:13 -0000 1.69 @@ -741,7 +741,7 @@ method = ch->getUserDefinedEventHandler("onKeyDown"); if ( method ) { - call_method0(as_value(method.get()), &(_movie->get_environment()), _movie.get()); + call_method0(as_value(method.get()), &(_movie->get_environment()), ch); } } // invoke onClipKeyPress handler @@ -759,7 +759,7 @@ method = ch->getUserDefinedEventHandler("onKeyUp"); if ( method ) { - call_method0(as_value(method.get()), &(_movie->get_environment()), _movie.get()); + call_method0(as_value(method.get()), &(_movie->get_environment()), ch); } } } Index: testsuite/misc-ming.all/key_event_test4.c =================================================================== RCS file: testsuite/misc-ming.all/key_event_test4.c diff -N testsuite/misc-ming.all/key_event_test4.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/key_event_test4.c 21 Jun 2007 05:09:13 -0000 1.1 @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/* + * zou lunkai zoulunkai@gmail.com + * + * Test "this" context in a user defined event handler, self-contained. + * The testrunner just provide a key press event. + */ + +#include "ming_utils.h" + +#include +#include +#include + +#define OUTPUT_VERSION 6 +#define OUTPUT_FILENAME "key_event_test4.swf" + +int +main(int argc, char** argv) +{ + SWFMovie mo; + SWFMovieClip dejagnuclip; + int i; + + + const char *srcdir="."; + if ( argc>1 ) + srcdir=argv[1]; + else + { + //fprintf(stderr, "Usage: %s \n", argv[0]); + //return 1; + } + + Ming_init(); + mo = newSWFMovieWithVersion(OUTPUT_VERSION); + SWFMovie_setDimension(mo, 800, 600); + SWFMovie_setRate (mo, 3); + + dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); + SWFMovie_add(mo, (SWFBlock)dejagnuclip); + add_actions(mo, " hasKeyPressed = false; thisPtr = 0; "); + add_actions(mo, " _root.createEmptyMovieClip('clip', 3); " + " clip.onKeyDown = function () { hasKeyPressed = true; _root.thisPtr = this; }; " + " Key.addListener(clip); "); + SWFMovie_nextFrame(mo); // frame1 + + for(i=1; i<10; i++) + { + SWFMovie_nextFrame(mo); + } + + add_actions(mo, " if(hasKeyPressed == true) " + " { " + " check_equals(thisPtr, _level0.clip); " + " } " + " total(); stop(); "); + SWFMovie_nextFrame(mo); + + //Output movie + puts("Saving " OUTPUT_FILENAME ); + SWFMovie_save(mo, OUTPUT_FILENAME); + + return 0; +} Index: testsuite/misc-ming.all/key_event_test4runner.cpp =================================================================== RCS file: testsuite/misc-ming.all/key_event_test4runner.cpp diff -N testsuite/misc-ming.all/key_event_test4runner.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/key_event_test4runner.cpp 21 Jun 2007 05:09:13 -0000 1.1 @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * + */ + +#define INPUT_FILENAME "key_event_test4.swf" + +#include "MovieTester.h" +#include "sprite_instance.h" +#include "character.h" +#include "dlist.h" +#include "container.h" +#include "log.h" + +#include "check.h" +#include +#include + +using namespace gnash; +using namespace std; + +int +main(int /*argc*/, char** /*argv*/) +{ + string filename = string(INPUT_FILENAME); + MovieTester tester(filename); + + gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); + dbglogfile.setVerbosity(1); + + sprite_instance* root = tester.getRootMovie(); + assert(root); + + tester.advance(); + tester.advance(); + tester.advance(); + + // Provide a key event and that's all. + // testing will be done in the SWF file. + tester.pressKey(key::A); + tester.releaseKey(key::A); + + //make sure to advance to the last frame. + for(int i=0; i<10; i++) + { + tester.advance(); + } + check_equals(root->get_current_frame(), root->get_frame_count()-1); + + return 0; +} From MAILER-DAEMON Thu Jun 21 03:22:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Gzw-0000T5-SP for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 03:22:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Gzv-0000Sj-5q for gnash-commit@gnu.org; Thu, 21 Jun 2007 03:22:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Gzt-0000SX-Oz for gnash-commit@gnu.org; Thu, 21 Jun 2007 03:22:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Gzt-0000SU-KF for gnash-commit@gnu.org; Thu, 21 Jun 2007 03:22:29 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1Gzt-0001T4-AF for gnash-commit@gnu.org; Thu, 21 Jun 2007 03:22:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1Gzs-0005cO-HE for gnash-commit@gnu.org; Thu, 21 Jun 2007 07:22:28 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1Gzs-0005cG-AV for gnash-commit@gnu.org; Thu, 21 Jun 2007 07:22:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Thu, 21 Jun 2007 07:22:28 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 07:22:31 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/21 07:22:28 Modified files: . : ChangeLog testsuite/actionscript.all: enumerate.as Log message: more tests CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3591&r2=1.3592 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/enumerate.as?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3591 retrieving revision 1.3592 diff -u -b -r1.3591 -r1.3592 --- ChangeLog 21 Jun 2007 05:09:12 -0000 1.3591 +++ ChangeLog 21 Jun 2007 07:22:27 -0000 1.3592 @@ -1,5 +1,9 @@ 2007-06-21 Zou Lunkai + * testsuite/actionscript.all/enumerate.as: more tests. + +2007-06-21 Zou Lunkai + * testsuite/misc-ming.all/key_event_test4.c, key_event_test4runner.cpp, Makefile.am: new testcase for "this" context in a user defined key event handler. * server/movie_root.cpp: correctly set the context. Index: testsuite/actionscript.all/enumerate.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/enumerate.as,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- testsuite/actionscript.all/enumerate.as 21 Jun 2007 02:03:47 -0000 1.1 +++ testsuite/actionscript.all/enumerate.as 21 Jun 2007 07:22:28 -0000 1.2 @@ -26,36 +26,70 @@ #if OUTPUT_VERSION > 5 -// Create a recorder and init it. -recorder = new Array(10); -for(i=0; i<10; i++){ +// +// enumerate characters of a sprite +// +{ + // Create a recorder and init it. + recorder = new Array(10); + for(i=0; i<10; i++){ recorder[i] = 0; -} + } -// Create six characters -for(i=0; i<6; i++) -{ + // Create six characters + for(i=0; i<6; i++){ _root.createEmptyMovieClip("mc"+i, i+1); -} + } -// Use the recorder to record the enumerated results in _root -i = 0; -for (var j in _root) -{ + // Use the recorder to record the enumerated results in _root + i = 0; + for (var j in _root){ recorder[i] = _root[j]; i++; + } + + // Test what we got in the above step. Tests show that characters were also got enumerated! + // Note: don't use clip names for testing here, the order in enumerating is not defined. + // However, the tests bellow are dependent on enumerating order! + // Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. + // TODO: find a proper way to test this. + xcheck_equals(typeof(recorder[3]), 'movieclip'); + xcheck_equals(typeof(recorder[4]), 'movieclip'); + xcheck_equals(typeof(recorder[5]), 'movieclip'); + xcheck_equals(typeof(recorder[6]), 'movieclip'); + xcheck_equals(typeof(recorder[7]), 'movieclip'); + xcheck_equals(typeof(recorder[8]), 'movieclip'); + + delete recorder; } -// Test what we got in the above step. Tests show that characters were also got enumerated! -// Note: don't use clip names for testing here, the order in enumerating is not defined. -// However, the tests bellow are dependent on enumerating order! -// Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. -// TODO: find a proper way to test this. -xcheck_equals(typeof(recorder[3]), 'movieclip'); -xcheck_equals(typeof(recorder[4]), 'movieclip'); -xcheck_equals(typeof(recorder[5]), 'movieclip'); -xcheck_equals(typeof(recorder[6]), 'movieclip'); -xcheck_equals(typeof(recorder[7]), 'movieclip'); -xcheck_equals(typeof(recorder[8]), 'movieclip'); +// +// enumerate properties of an AS object +// +{ + recorder = new Array(10); + + // initialize the recorder + for(i=0; i<10; i++){ + recorder[i] = 0; + } + + obj = new Object(); + obj.x1 = function () {}; + obj.x2 = obj.x1; + obj.x3 = obj.x2; + + i = 0; + for (var j in obj){ + recorder[i] = obj[j]; + i++; + } + + check_equals(typeof(recorder[0]), 'function'); + check_equals(typeof(recorder[1]), 'function'); + check_equals(typeof(recorder[2]), 'function'); + + delete recorder; +} #endif // OUTPUT_VERSION > 5 \ No newline at end of file From MAILER-DAEMON Thu Jun 21 05:02:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1IYP-0004zY-Ha for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 05:02:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1IYN-0004xh-A0 for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:02:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1IYK-0004ux-FF for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:02:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1IYK-0004uM-9o for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:02:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1IYJ-0004NP-HF for gnash-commit@gnu.org; Thu, 21 Jun 2007 05:02:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1IYI-0006LK-R4 for gnash-commit@gnu.org; Thu, 21 Jun 2007 09:02:06 +0000 Received: from tgc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1IYI-0006LG-Jd for gnash-commit@gnu.org; Thu, 21 Jun 2007 09:02:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Tomas Groth Date: Thu, 21 Jun 2007 09:02:06 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog backend/sound_handler_gst.cpp b... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 09:02:11 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Tomas Groth 07/06/21 09:02:06 Modified files: . : ChangeLog backend : sound_handler_gst.cpp sound_handler_gst.h sound_handler_sdl.cpp sound_handler_sdl.h Log message: * backend/sound_handler_gst.{cpp,h}: Made it threadsafe, fixes bug #20186. Made the internal variables private. * backend/sound_handler_sdl.{cpp,h}: Made the internal variables private. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3592&r2=1.3593 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_gst.cpp?cvsroot=gnash&r1=1.48&r2=1.49 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_gst.h?cvsroot=gnash&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_sdl.cpp?cvsroot=gnash&r1=1.69&r2=1.70 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/sound_handler_sdl.h?cvsroot=gnash&r1=1.25&r2=1.26 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3592 retrieving revision 1.3593 diff -u -b -r1.3592 -r1.3593 --- ChangeLog 21 Jun 2007 07:22:27 -0000 1.3592 +++ ChangeLog 21 Jun 2007 09:02:05 -0000 1.3593 @@ -1,3 +1,10 @@ +2007-06-21 Tomas Groth Christensen + + * backend/sound_handler_gst.{cpp,h}: Made it threadsafe, fixes + bug #20186. Made the internal variables private. + * backend/sound_handler_sdl.{cpp,h}: Made the internal + variables private. + 2007-06-21 Zou Lunkai * testsuite/actionscript.all/enumerate.as: more tests. Index: backend/sound_handler_gst.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_gst.cpp,v retrieving revision 1.48 retrieving revision 1.49 diff -u -b -r1.48 -r1.49 --- backend/sound_handler_gst.cpp 7 Jun 2007 12:10:21 -0000 1.48 +++ backend/sound_handler_gst.cpp 21 Jun 2007 09:02:05 -0000 1.49 @@ -20,7 +20,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -/* $Id: sound_handler_gst.cpp,v 1.48 2007/06/07 12:10:21 tgc Exp $ */ +/* $Id: sound_handler_gst.cpp,v 1.49 2007/06/21 09:02:05 tgc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -44,6 +44,8 @@ #define BUFFER_SIZE 5000 +using namespace boost; + GST_sound_handler::GST_sound_handler() : looping(false), muted(false) @@ -73,6 +75,8 @@ // can be use for playing it. { + mutex::scoped_lock lock(_mutex); + sound_data *sounddata = new sound_data; if (!sounddata) { gnash::log_error(_("Could not allocate memory for sound data")); @@ -135,6 +139,7 @@ // this gets called when a stream gets more data long GST_sound_handler::fill_stream_data(void* data, int data_bytes, int /*sample_count*/, int handle_id) { + mutex::scoped_lock lock(_mutex); // @@ does a negative handle_id have any meaning ? // should we change it to unsigned instead ? @@ -146,15 +151,16 @@ guint8* tmp_data = new guint8[data_bytes + sounddata->data_size]; memcpy(tmp_data, sounddata->data, sounddata->data_size); memcpy(tmp_data + sounddata->data_size, data, data_bytes); - delete [] sounddata->data; + if (sounddata->data_size > 0) delete [] sounddata->data; sounddata->data = tmp_data; sounddata->data_size += data_bytes; + // If playback has already started, we also update the active sounds for (size_t i=0, e=sounddata->m_gst_elements.size(); i < e; ++i) { gst_elements* sound = sounddata->m_gst_elements[i]; sound->data_size = sounddata->data_size; - sound->data = sounddata->data; + sound->set_data(tmp_data); } return sounddata->data_size - data_bytes; @@ -171,10 +177,13 @@ } // The callback function which refills the buffer with data -static void callback_handoff (GstElement * /*c*/, GstBuffer *buffer, GstPad* /*pad*/, gpointer user_data) +void GST_sound_handler::callback_handoff (GstElement * /*c*/, GstBuffer *buffer, GstPad* /*pad*/, gpointer user_data) { gst_elements *gstelements = static_cast(user_data); - guint8* data_pos = gstelements->data+gstelements->position; + + mutex::scoped_lock lock(gstelements->handler->_mutex); + + guint8* data_pos = gstelements->get_data_ptr(gstelements->position); // First callback if (GST_BUFFER_SIZE(buffer) == 0) { @@ -218,7 +227,7 @@ } else { // Copy what's left of the data, and then fill the rest with "new" data. memcpy(GST_BUFFER_DATA(buffer), data_pos, chunk_size); - memcpy(GST_BUFFER_DATA(buffer) + chunk_size, gstelements->data, GST_BUFFER_SIZE(buffer)- chunk_size); + memcpy(GST_BUFFER_DATA(buffer) + chunk_size, gstelements->get_data_ptr(0), GST_BUFFER_SIZE(buffer)- chunk_size); gstelements->position = GST_BUFFER_SIZE(buffer) - chunk_size; gstelements->loop_count--; @@ -238,6 +247,7 @@ void GST_sound_handler::play_sound(int sound_handle, int loop_count, int /*offset*/, long start_position, const std::vector* /*envelopes*/) // Play the index'd sample. { + mutex::scoped_lock lock(_mutex); // Check if the sound exists, or if audio is muted if (sound_handle < 0 || (unsigned int) sound_handle >= m_sound_data.size() || muted) @@ -269,9 +279,13 @@ gnash::log_error (_("Could not allocate memory for gst_element")); return; } + + // Set the handler + gst_element->handler = this; + // Copy data-info to the "gst_elements" gst_element->data_size = sounddata->data_size; - gst_element->data = sounddata->data; + gst_element->set_data(sounddata->data); gst_element->position = start_position; // Set number of loop we should do. -1 is infinte loop, 0 plays it once, 1 twice etc. @@ -440,6 +454,7 @@ void GST_sound_handler::stop_sound(int sound_handle) { + mutex::scoped_lock lock(_mutex); // Check if the sound exists. if (sound_handle < 0 || (unsigned int) sound_handle >= m_sound_data.size()) @@ -479,6 +494,7 @@ void GST_sound_handler::delete_sound(int sound_handle) // this gets called when it's done with a sample. { + mutex::scoped_lock lock(_mutex); if (sound_handle >= 0 && (unsigned int) sound_handle < m_sound_data.size()) { @@ -503,6 +519,8 @@ // where 0 is off and 100 is full volume. The default setting is 100. int GST_sound_handler::get_volume(int sound_handle) { + mutex::scoped_lock lock(_mutex); + // Check if the sound exists. if (sound_handle >= 0 && (unsigned int) sound_handle < m_sound_data.size()) { @@ -517,6 +535,8 @@ // 100 is full volume and 0 is no volume. The default setting is 100. void GST_sound_handler::set_volume(int sound_handle, int volume) { + mutex::scoped_lock lock(_mutex); + // Check if the sound exists. if (sound_handle < 0 || (unsigned int) sound_handle >= m_sound_data.size()) { @@ -543,6 +563,8 @@ void GST_sound_handler::get_info(int sound_handle, int* format, bool* stereo) { + mutex::scoped_lock lock(_mutex); + // Check if the sound exists. if (sound_handle >= 0 && (unsigned int) sound_handle < m_sound_data.size()) { @@ -577,6 +599,16 @@ gnash::log_unimpl(__PRETTY_FUNCTION__); } +// Pointer handling and checking functions +uint8_t* gst_elements::get_data_ptr(unsigned long int pos) { + assert(data_size > pos); + return data + pos; +} + +void gst_elements::set_data(uint8_t* idata) { + data = idata; +} + gnash::sound_handler* gnash::create_sound_handler_gst() // Factory. { Index: backend/sound_handler_gst.h =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_gst.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -b -r1.9 -r1.10 --- backend/sound_handler_gst.h 28 May 2007 15:40:57 -0000 1.9 +++ backend/sound_handler_gst.h 21 Jun 2007 09:02:06 -0000 1.10 @@ -23,9 +23,15 @@ #include #include +#include +#include +#include #define BUFFER_SIZE 5000 +// forward declaration +class GST_sound_handler; + // Used to hold the gstreamer when doing on-demand-decoding class gst_elements { @@ -49,9 +55,6 @@ // position in the stream long position; - // The (un)compressed data - guint8* data; - // data size long data_size; @@ -60,6 +63,20 @@ // signal id guint handoff_signal_id; + // The sound handler. Used to get access to the GST_sound_handler->_mutex + GST_sound_handler* handler; + + /// Returns the data pointer in the undecoded datastream + /// for the given position. Boundaries are checked. + uint8_t* get_data_ptr(unsigned long int pos); + + /// Set the undecoded data pointer + void set_data(uint8_t*); + +private: + // The (un)compressed data + guint8* data; + }; @@ -97,7 +114,7 @@ // Use gstreamer to handle sounds. class GST_sound_handler : public gnash::sound_handler { -public: +private: /// Vector containing all the sounds std::vector m_sound_data; @@ -107,6 +124,14 @@ /// Is the audio muted? bool muted; + /// Mutex for making sure threads doesn't mess things up + boost::mutex _mutex; + +public: + + /// Gstreamer callback function + static void callback_handoff (GstElement * /*c*/, GstBuffer *buffer, GstPad* /*pad*/, gpointer user_data); + GST_sound_handler(); virtual ~GST_sound_handler(); Index: backend/sound_handler_sdl.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_sdl.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -u -b -r1.69 -r1.70 --- backend/sound_handler_sdl.cpp 8 Jun 2007 11:38:17 -0000 1.69 +++ backend/sound_handler_sdl.cpp 21 Jun 2007 09:02:06 -0000 1.70 @@ -18,7 +18,7 @@ // Based on sound_handler_sdl.cpp by Thatcher Ulrich http://tulrich.com 2003 // which has been donated to the Public Domain. -// $Id: sound_handler_sdl.cpp,v 1.69 2007/06/08 11:38:17 tgc Exp $ +// $Id: sound_handler_sdl.cpp,v 1.70 2007/06/21 09:02:06 tgc Exp $ #ifdef HAVE_CONFIG_H #include "config.h" @@ -33,8 +33,6 @@ using namespace boost; -static void sdl_audio_callback(void *udata, Uint8 *stream, int len); // SDL C audio handler - SDL_sound_handler::SDL_sound_handler() : soundOpened(false), soundsPlaying(0), @@ -44,7 +42,7 @@ audioSpec.freq = 44100; audioSpec.format = AUDIO_S16SYS; // AUDIO_S8 AUDIO_U8; audioSpec.channels = 2; - audioSpec.callback = sdl_audio_callback; + audioSpec.callback = SDL_sound_handler::sdl_audio_callback; audioSpec.userdata = this; audioSpec.samples = 2048; //512 - not enough for videostream } @@ -650,36 +648,8 @@ } -/// Callback invoked by the SDL audio thread. -// -/// Refills the output stream/buffer with data. -/// -/// We run trough all the attached auxiliary streamers fetching decoded -/// audio blocks and mixing them into the given output stream. -/// -/// -/// If sound is compresssed (mp3) a mp3-frame is decoded into a buffer, -/// and resampled if needed. When the buffer has been sampled, another -/// frame is decoded until all frames has been decoded. -/// If a sound is looping it will be decoded from the beginning again. -/// -/// -/// TODO: make a static method of the SDL_sound_handler class -/// -/// @param udata -/// User data pointer (SDL_sound_handler instance in our case). -/// We'll lock the SDL_sound_handler::_mutex during operations. -/// -/// @param stream -/// The output stream/buffer to fill -/// -/// @param buffer_length_in -/// Length of the buffer. -/// If zero or negative we log an error and return -/// (negative is probably an SDL bug, zero dunno yet). -/// -static void -sdl_audio_callback (void *udata, Uint8 *stream, int buffer_length_in) +// Callback invoked by the SDL audio thread. +void SDL_sound_handler::sdl_audio_callback (void *udata, Uint8 *stream, int buffer_length_in) { if ( buffer_length_in < 0 ) { Index: backend/sound_handler_sdl.h =================================================================== RCS file: /sources/gnash/gnash/backend/sound_handler_sdl.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- backend/sound_handler_sdl.h 28 May 2007 15:40:58 -0000 1.25 +++ backend/sound_handler_sdl.h 21 Jun 2007 09:02:06 -0000 1.26 @@ -14,7 +14,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// $Id: sound_handler_sdl.h,v 1.25 2007/05/28 15:40:58 ann Exp $ +// $Id: sound_handler_sdl.h,v 1.26 2007/06/21 09:02:06 tgc Exp $ #ifndef SOUND_HANDLER_SDL_H #define SOUND_HANDLER_SDL_H @@ -145,7 +145,7 @@ // Use SDL and ffmpeg/mad/nothing to handle sounds. class SDL_sound_handler : public gnash::sound_handler { -public: +private: /// NetStream audio callbacks hash_wrapper< void* /* owner */, aux_streamer_ptr /* callback */> m_aux_streamer; //vv @@ -167,6 +167,7 @@ /// Mutex for making sure threads doesn't mess things up boost::mutex _mutex; +public: SDL_sound_handler(); virtual ~SDL_sound_handler(); @@ -212,6 +213,34 @@ virtual void attach_aux_streamer(aux_streamer_ptr ptr, void* owner); //vv virtual void detach_aux_streamer(void* owner); //vv + + /// Callback invoked by the SDL audio thread. + // + /// Refills the output stream/buffer with data. + /// + /// We run trough all the attached auxiliary streamers fetching decoded + /// audio blocks and mixing them into the given output stream. + /// + /// If sound is compresssed (mp3) a mp3-frame is decoded into a buffer, + /// and resampled if needed. When the buffer has been sampled, another + /// frame is decoded until all frames has been decoded. + /// If a sound is looping it will be decoded from the beginning again. + /// + /// TODO: make a static method of the SDL_sound_handler class + /// + /// @param udata + /// User data pointer (SDL_sound_handler instance in our case). + /// We'll lock the SDL_sound_handler::_mutex during operations. + /// + /// @param stream + /// The output stream/buffer to fill + /// + /// @param buffer_length_in + /// Length of the buffer. + /// If zero or negative we log an error and return + /// (negative is probably an SDL bug, zero dunno yet). + /// + static void sdl_audio_callback (void *udata, Uint8 *stream, int buffer_length_in); }; From MAILER-DAEMON Thu Jun 21 06:43:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1K85-0001cw-M9 for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 06:43:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1K84-0001cq-Kk for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:43:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1K84-0001ce-1Y for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:43:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1K83-0001cb-RT for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:43:07 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I1K83-00043I-3u for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:43:07 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5LAh1612411; Thu, 21 Jun 2007 12:43:01 +0200 (CEST) (envelope-from strk@keybit.net) Date: Thu, 21 Jun 2007 12:43:01 +0200 From: Sandro Santilli To: zou lunkai Subject: Re: [Gnash-commit] gnash ChangeLog server/fill_style.cpp server/fi... Message-ID: <20070621104301.GJ30501@keybit.net> Mail-Followup-To: zou lunkai , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 10:43:08 -0000 On Thu, Jun 21, 2007 at 08:19:55AM +0800, zou lunkai wrote: > Question: It seems that besides AS objects, GC also takse over more > general resouces, eg. SWF tags. Will this increase the scan time at > later collecting step? Yes, scan time will be increased by the bumber of items required to be marked as reachable. I'm just following the ref_counted layout, not adding new classes. Actually, I'd like to remove some classes from the ref_counted tree, in particular bitmap_info and character_def (and descendant). After all, a definition is always in memory anyway (in the CharacterDictionary) so it should be managed by the CharacterDictionary. The only exception is for dynamically created sprites (IIRC) which gets a definition created at runtime and the drawable for drawing API, which is again a definition breaking the documentation for a character_def (an "immutable" definition of a character element). We used a shape_character_def to avoid changing the interfaces to the backend renderer but I've always noted we had a problem there, suggesting we'd always render *instances* instead of *definitions*. --strk; From MAILER-DAEMON Thu Jun 21 06:44:31 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1K9P-0002Vt-98 for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 06:44:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1K9O-0002TX-0f for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:44:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1K9M-0002Qe-AR for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:44:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1K9M-0002QS-8R for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:44:28 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I1K9L-0004J7-DA for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:44:27 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5LAiNm12453; Thu, 21 Jun 2007 12:44:23 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 21 Jun 2007 12:44:23 +0200 To: Zou Lunkai Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... Message-ID: <20070621104423.GK30501@keybit.net> Mail-Followup-To: Zou Lunkai , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 10:44:30 -0000 On Thu, Jun 21, 2007 at 02:03:47AM +0000, Zou Lunkai wrote: > +// Test what we got in the above step. Tests show that characters were also got enumerated! > +// Note: don't use clip names for testing here, the order in enumerating is not defined. > +// However, the tests bellow are dependent on enumerating order! > +// Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. > +// TODO: find a proper way to test this. use recorder[name] = 1; and check_equals(typeof(recorder['name']), 'movieclip'); > +xcheck_equals(typeof(recorder[3]), 'movieclip'); > +xcheck_equals(typeof(recorder[4]), 'movieclip'); > +xcheck_equals(typeof(recorder[5]), 'movieclip'); > +xcheck_equals(typeof(recorder[6]), 'movieclip'); > +xcheck_equals(typeof(recorder[7]), 'movieclip'); > +xcheck_equals(typeof(recorder[8]), 'movieclip'); --strk; From MAILER-DAEMON Thu Jun 21 06:46:17 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1KB7-0003cq-3J for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 06:46:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1KB5-0003XE-36 for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:46:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1KB3-0003UK-Rv for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:46:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1KB3-0003UH-PR for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:46:13 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I1KB3-0004Wz-0y for gnash-commit@gnu.org; Thu, 21 Jun 2007 06:46:13 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5LAk8k12539; Thu, 21 Jun 2007 12:46:08 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Thu, 21 Jun 2007 12:46:08 +0200 To: Tomas Groth Subject: Re: [Gnash-commit] gnash ChangeLog backend/sound_handler_gst.cpp b... Message-ID: <20070621104608.GL30501@keybit.net> Mail-Followup-To: Tomas Groth , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 10:46:15 -0000 On Thu, Jun 21, 2007 at 09:02:06AM +0000, Tomas Groth wrote: > - delete [] sounddata->data; > + if (sounddata->data_size > 0) delete [] sounddata->data; Please consider using boost::scoped_array<> for managing array pointers. --strk; From MAILER-DAEMON Thu Jun 21 18:30:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1VAi-0007nA-NC for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 18:30:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1VAg-0007n3-NA for gnash-commit@gnu.org; Thu, 21 Jun 2007 18:30:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1VAf-0007mb-5x for gnash-commit@gnu.org; Thu, 21 Jun 2007 18:30:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1VAe-0007mY-V5 for gnash-commit@gnu.org; Thu, 21 Jun 2007 18:30:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1VAe-0007P2-LH for gnash-commit@gnu.org; Thu, 21 Jun 2007 18:30:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1VAc-0006dR-S9 for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:30:30 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1VAc-0006dO-Ny for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:30:30 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Thu, 21 Jun 2007 22:30:30 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/kde.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 22:30:34 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/21 22:30:30 Modified files: . : ChangeLog gui : kde.cpp Log message: Applied patch from Antti CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3593&r2=1.3594 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde.cpp?cvsroot=gnash&r1=1.16&r2=1.17 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3593 retrieving revision 1.3594 diff -u -b -r1.3593 -r1.3594 --- ChangeLog 21 Jun 2007 09:02:05 -0000 1.3593 +++ ChangeLog 21 Jun 2007 22:30:30 -0000 1.3594 @@ -1,3 +1,7 @@ +2007-06-21 Antti Ajanki + + * gui/kde.cpp: Fix for agg-render premature initialization. + 2007-06-21 Tomas Groth Christensen * backend/sound_handler_gst.{cpp,h}: Made it threadsafe, fixes Index: gui/kde.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- gui/kde.cpp 10 Jun 2007 14:46:44 -0000 1.16 +++ gui/kde.cpp 21 Jun 2007 22:30:30 -0000 1.17 @@ -62,12 +62,18 @@ // GNASH_REPORT_FUNCTION; _qapp.reset(new QApplication(argc, *argv)); _qwidget.reset(new qwidget(this)); + + _renderer = _glue.createRenderHandler(); + if ( ! _renderer ) return false; + set_render_handler(_renderer); + if (_xid) { QXEmbed::initialize(); QXEmbed::embedClientIntoWindow(_qwidget.get(), _xid); } _glue.init (argc, argv); + _glue.prepDrawingArea(_qwidget.get()); return true; } @@ -83,13 +89,10 @@ _qapp->setMainWidget(_qwidget.get()); _qwidget->show(); - _glue.prepDrawingArea(_qwidget.get()); - _renderer = _glue.createRenderHandler(); _glue.initBuffer(width, height); _width = width; _height = height; - set_render_handler(_renderer); return true; } From MAILER-DAEMON Thu Jun 21 19:47:53 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1WNV-0007hZ-Aw for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 19:47:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1WNT-0007gv-IX for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:47:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1WNS-0007gb-HW for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:47:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1WNS-0007gY-Co for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:47:50 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1WNS-0001MC-1e for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:47:50 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1WNQ-0006iR-Ge for gnash-commit@gnu.org; Thu, 21 Jun 2007 23:47:48 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1WNQ-0006iH-9o for gnash-commit@gnu.org; Thu, 21 Jun 2007 23:47:48 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Thu, 21 Jun 2007 23:47:48 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libgeometry/Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 23:47:51 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/21 23:47:47 Modified files: . : ChangeLog libgeometry : Makefile.am Log message: Fixed building issue (on Darwin) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3594&r2=1.3595 http://cvs.savannah.gnu.org/viewcvs/gnash/libgeometry/Makefile.am?cvsroot=gnash&r1=1.27&r2=1.28 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3594 retrieving revision 1.3595 diff -u -b -r1.3594 -r1.3595 --- ChangeLog 21 Jun 2007 22:30:30 -0000 1.3594 +++ ChangeLog 21 Jun 2007 23:47:46 -0000 1.3595 @@ -1,3 +1,7 @@ +2007-06-22 Markus Gothe + + * libgeometry/Makefile.am: Fixed building issue on Darwin. + 2007-06-21 Antti Ajanki * gui/kde.cpp: Fix for agg-render premature initialization. Index: libgeometry/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/libgeometry/Makefile.am,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- libgeometry/Makefile.am 15 May 2007 16:31:02 -0000 1.27 +++ libgeometry/Makefile.am 21 Jun 2007 23:47:47 -0000 1.28 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.27 2007/05/15 16:31:02 rsavoye Exp $ +# $Id: Makefile.am,v 1.28 2007/06/21 23:47:47 nihilus Exp $ AUTOMAKE_OPTIONS = @@ -35,6 +35,7 @@ AM_CPPFLAGS = -I.. -I$(srcdir) \ -I$(top_srcdir)/libbase \ + $(BOOST_CFLAGS) \ $(NULL) # -I$(top_srcdir) \ From MAILER-DAEMON Thu Jun 21 19:50:52 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1WQO-00089q-2T for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 19:50:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1WQN-00089i-5J for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:50:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1WQK-00089W-PK for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:50:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1WQK-00089T-Ix for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:50:48 -0400 Received: from equi.bjacques.org ([84.244.180.88]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1WQK-0001hN-1R for gnash-commit@gnu.org; Thu, 21 Jun 2007 19:50:48 -0400 Received: from equi.bjacques.org (bastiaan@localhost [127.0.0.1]) by equi.bjacques.org (8.13.4/8.13.4) with ESMTP id l5LNoeGT030866; Fri, 22 Jun 2007 01:50:40 +0200 (CEST) Received: from localhost (bastiaan@localhost) by equi.bjacques.org (8.13.4/8.13.4/Submit) with ESMTP id l5LNoeXi007481; Fri, 22 Jun 2007 01:50:40 +0200 (CEST) X-Authentication-Warning: equi.bjacques.org: bastiaan owned process doing -bs Date: Fri, 22 Jun 2007 01:50:40 +0200 (CEST) From: Bastiaan Jacques To: Markus Gothe Subject: Re: [Gnash-commit] gnash ChangeLog gui/kde.cpp In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-kernel: OpenBSD 3.0-3.9 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 23:50:51 -0000 On Thu, 21 Jun 2007, Markus Gothe wrote: > =================================================================== > RCS file: /sources/gnash/gnash/ChangeLog,v > retrieving revision 1.3593 > retrieving revision 1.3594 > diff -u -b -r1.3593 -r1.3594 > --- ChangeLog 21 Jun 2007 09:02:05 -0000 1.3593 > +++ ChangeLog 21 Jun 2007 22:30:30 -0000 1.3594 > @@ -1,3 +1,7 @@ > +2007-06-21 Antti Ajanki > + > + * gui/kde.cpp: Fix for agg-render premature initialization. > + For future patches, please include the author's full description. Bastiaan From MAILER-DAEMON Thu Jun 21 21:17:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Xll-00019X-RC for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 21:17:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Xlj-00018p-MR for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:16:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Xli-00018b-8D for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:16:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Xli-00018Y-3Q for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:16:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1Xlh-0002o6-RV for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:16:57 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1Xlg-0007xs-R1 for gnash-commit@gnu.org; Fri, 22 Jun 2007 01:16:56 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1Xlg-0007xm-Ku for gnash-commit@gnu.org; Fri, 22 Jun 2007 01:16:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Fri, 22 Jun 2007 01:16:56 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 01:16:59 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/22 01:16:56 Modified files: . : ChangeLog testsuite/actionscript.all: enumerate.as Log message: cleanups, tests are not dependent on enumeration order now CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3595&r2=1.3596 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/enumerate.as?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3595 retrieving revision 1.3596 diff -u -b -r1.3595 -r1.3596 --- ChangeLog 21 Jun 2007 23:47:46 -0000 1.3595 +++ ChangeLog 22 Jun 2007 01:16:55 -0000 1.3596 @@ -1,3 +1,8 @@ +2007-06-21 Zou Lunkai + + * testsuite/actionscript.all/enumerate.as: cleanups, tests are not + dependent on enumeration order now. + 2007-06-22 Markus Gothe * libgeometry/Makefile.am: Fixed building issue on Darwin. Index: testsuite/actionscript.all/enumerate.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/enumerate.as,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/actionscript.all/enumerate.as 21 Jun 2007 07:22:28 -0000 1.2 +++ testsuite/actionscript.all/enumerate.as 22 Jun 2007 01:16:56 -0000 1.3 @@ -33,32 +33,28 @@ // Create a recorder and init it. recorder = new Array(10); for(i=0; i<10; i++){ - recorder[i] = 0; + recorder['mc'+i] = 0; } // Create six characters for(i=0; i<6; i++){ - _root.createEmptyMovieClip("mc"+i, i+1); + _root.createEmptyMovieClip('mc'+i, i+1); } // Use the recorder to record the enumerated results in _root i = 0; for (var j in _root){ - recorder[i] = _root[j]; + recorder[j.toString()] = _root[j]; i++; } // Test what we got in the above step. Tests show that characters were also got enumerated! - // Note: don't use clip names for testing here, the order in enumerating is not defined. - // However, the tests bellow are dependent on enumerating order! - // Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. - // TODO: find a proper way to test this. - xcheck_equals(typeof(recorder[3]), 'movieclip'); - xcheck_equals(typeof(recorder[4]), 'movieclip'); - xcheck_equals(typeof(recorder[5]), 'movieclip'); - xcheck_equals(typeof(recorder[6]), 'movieclip'); - xcheck_equals(typeof(recorder[7]), 'movieclip'); - xcheck_equals(typeof(recorder[8]), 'movieclip'); + xcheck_equals(typeof(recorder['mc0']), 'movieclip'); + xcheck_equals(typeof(recorder['mc1']), 'movieclip'); + xcheck_equals(typeof(recorder['mc2']), 'movieclip'); + xcheck_equals(typeof(recorder['mc3']), 'movieclip'); + xcheck_equals(typeof(recorder['mc4']), 'movieclip'); + xcheck_equals(typeof(recorder['mc5']), 'movieclip'); delete recorder; } @@ -71,23 +67,24 @@ // initialize the recorder for(i=0; i<10; i++){ - recorder[i] = 0; + recorder['x'+i] = 0; } obj = new Object(); obj.x1 = function () {}; - obj.x2 = obj.x1; - obj.x3 = obj.x2; + obj.x2 = 1; + obj.x3 = Array(); i = 0; for (var j in obj){ - recorder[i] = obj[j]; + // equivalent to recorder[j.toString()] = obj[j.toString()]; + recorder[j.toString()] = obj[j]; i++; } - check_equals(typeof(recorder[0]), 'function'); - check_equals(typeof(recorder[1]), 'function'); - check_equals(typeof(recorder[2]), 'function'); + check_equals(typeof(recorder['x1']), 'function'); + check_equals(typeof(recorder['x2']), 'number'); + check_equals(typeof(recorder['x3']), 'object'); delete recorder; } From MAILER-DAEMON Thu Jun 21 21:24:33 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Xt3-0004Z8-2L for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 21:24:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Xt1-0004Yp-Li for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:24:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Xt0-0004Yc-A5 for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:24:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Xt0-0004YZ-3r for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:24:30 -0400 Received: from nz-out-0506.google.com ([64.233.162.228]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1Xsz-00047o-NC for gnash-commit@gnu.org; Thu, 21 Jun 2007 21:24:29 -0400 Received: by nz-out-0506.google.com with SMTP id q3so666217nzb for ; Thu, 21 Jun 2007 18:24:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZvoNgiTTM2lhJK2ObJCBmxYWo7+ASWG4iVcqZboqAXZt8RPdJg8YKo7Z+5em1F1BSlg16M7gp0qnK37NeLWVNd5vYR8pU+x9JPlAApp2K/nGHT3g30MxoUYYhvkbyPOhA23X05sCZiMJE+OHe11PcWCe5sxhUGBv91PsP20c3d4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UI37DT5aiXwi4F2QVMtyTCoafXZjmfDG1IrfA2uJsFXw4CJyP8NUYFktb8InwRGtVleCNeOnndM89P7ZpdJra8XXqhmt0P7LIkPggm2rzsaurmvU31ijzYLieUbyIPxcHcLi1gKgmaJt+DlDtXNERnUQetqIq+QO7E+XB3/XmuU= Received: by 10.114.190.6 with SMTP id n6mr2341127waf.1182475465799; Thu, 21 Jun 2007 18:24:25 -0700 (PDT) Received: by 10.114.110.5 with HTTP; Thu, 21 Jun 2007 18:24:25 -0700 (PDT) Message-ID: Date: Fri, 22 Jun 2007 09:24:25 +0800 From: "zou lunkai" To: strk , gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... In-Reply-To: <20070621104423.GK30501@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070621104423.GK30501@keybit.net> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 01:24:31 -0000 On 6/21/07, strk wrote: > On Thu, Jun 21, 2007 at 02:03:47AM +0000, Zou Lunkai wrote: > > > +// Test what we got in the above step. Tests show that characters were also got enumerated! > > +// Note: don't use clip names for testing here, the order in enumerating is not defined. > > +// However, the tests bellow are dependent on enumerating order! > > +// Since recorder[0] and recorder[1] and recorder[2] might not be movieclips. > > +// TODO: find a proper way to test this. > > use recorder[name] = 1; > and check_equals(typeof(recorder['name']), 'movieclip'); > Thanks. Done. Tests should be safe now. Any one like to fix it:)? I am going to test ActionCallFunction, I think I've found something with it. From MAILER-DAEMON Thu Jun 21 22:11:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Yc9-0008Vl-Gi for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 22:11:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Yc8-0008Va-Dx for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:11:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Yc7-0008VN-U0 for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:11:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Yc7-0008VK-PH for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:11:07 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1Yc7-0002GY-Gk for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:11:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1Yc6-0004AF-TR for gnash-commit@gnu.org; Fri, 22 Jun 2007 02:11:07 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1Yc6-0004AA-Ot for gnash-commit@gnu.org; Fri, 22 Jun 2007 02:11:06 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Fri, 22 Jun 2007 02:11:06 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/movie_root.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 02:11:08 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/22 02:11:06 Modified files: . : ChangeLog server : movie_root.h Log message: document KeyListener class and related stuff CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3596&r2=1.3597 http://cvs.savannah.gnu.org/viewcvs/gnash/server/movie_root.h?cvsroot=gnash&r1=1.59&r2=1.60 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3596 retrieving revision 1.3597 diff -u -b -r1.3596 -r1.3597 --- ChangeLog 22 Jun 2007 01:16:55 -0000 1.3596 +++ ChangeLog 22 Jun 2007 02:11:05 -0000 1.3597 @@ -2,6 +2,7 @@ * testsuite/actionscript.all/enumerate.as: cleanups, tests are not dependent on enumeration order now. + * server/movie_root.h: document KeyListener class and related stuff. 2007-06-22 Markus Gothe Index: server/movie_root.h =================================================================== RCS file: /sources/gnash/gnash/server/movie_root.h,v retrieving revision 1.59 retrieving revision 1.60 diff -u -b -r1.59 -r1.60 --- server/movie_root.h 16 Jun 2007 11:27:40 -0000 1.59 +++ server/movie_root.h 22 Jun 2007 02:11:06 -0000 1.60 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: movie_root.h,v 1.59 2007/06/16 11:27:40 strk Exp $ */ +/* $Id: movie_root.h,v 1.60 2007/06/22 02:11:06 zoulunkai Exp $ */ /// \page events_handling Handling of user events /// @@ -91,9 +91,10 @@ namespace gnash { - #ifdef NEW_KEY_LISTENER_LIST_DESIGN +#ifdef NEW_KEY_LISTENER_LIST_DESIGN class KeyListener{ public: + /// all constructed key listeners are not registered to the global Key object by default. KeyListener(boost::intrusive_ptr obj, bool flag=false) : _listener(obj), _user_defined_handler_added(flag) {} @@ -103,12 +104,22 @@ bool operator == (const KeyListener & rhs ) const { return _listener.get() == rhs.get(); } bool operator != (const KeyListener & rhs ) const { return _listener.get() != rhs.get(); } + /// \brief + /// Return true if the _listener has been registered by Key.addListener(), + /// false if the _listener has not been registered or unregistered by Key.removeListener(). + /// The return value is used to decide if we should invoke the user defined handler. bool isRegistered() const { return _user_defined_handler_added; } + + /// unregister the key listener void unregisterUserHandler() { _user_defined_handler_added = false; } + + /// register the key listener void registerUserHandler() { _user_defined_handler_added = true; } private: + /// the listener object, could be a character or a general as_object boost::intrusive_ptr _listener; + /// mark if the object has been registered by Key.addListener() bool _user_defined_handler_added; }; #endif @@ -395,7 +406,13 @@ DSOEXPORT void notify_key_listeners(key::code k, bool down); #ifdef NEW_KEY_LISTENER_LIST_DESIGN + // Push a new key listener to the container if it is not there, + // otherwise, just register it. void add_key_listener(const KeyListener& listener); + + // Unregister the specified key listener, never really remove it. + // The name is confusing just that the built-in Key.removeListener() + // does not really remove any thing. void remove_key_listener(const KeyListener& listener); #else void add_key_listener(as_object* listener); @@ -465,6 +482,9 @@ /// Remove all listeners with a ref-count of 1 /// (only referenced as key listeners) + // in new design: + // remove unloaded characters and unregistered as_objects + // from the key listeners container. void cleanup_key_listeners(); /// Return the current Stage object From MAILER-DAEMON Thu Jun 21 22:12:11 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1Yd9-0000Th-PV for mharc-gnash-commit@gnu.org; Thu, 21 Jun 2007 22:12:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Yd8-0000Sr-Aa for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:12:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Yd6-0000SD-T4 for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:12:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Yd6-0000S5-Lf for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:12:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1Yd6-0002Oq-CH for gnash-commit@gnu.org; Thu, 21 Jun 2007 22:12:08 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1Yd5-0004Qe-Qf for gnash-commit@gnu.org; Fri, 22 Jun 2007 02:12:07 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1Yd5-0004QX-Li for gnash-commit@gnu.org; Fri, 22 Jun 2007 02:12:07 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Fri, 22 Jun 2007 02:12:07 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 02:12:10 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/22 02:12:07 Modified files: . : ChangeLog Log message: typo CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3597&r2=1.3598 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3597 retrieving revision 1.3598 diff -u -b -r1.3597 -r1.3598 --- ChangeLog 22 Jun 2007 02:11:05 -0000 1.3597 +++ ChangeLog 22 Jun 2007 02:12:07 -0000 1.3598 @@ -1,4 +1,4 @@ -2007-06-21 Zou Lunkai +2007-06-22 Zou Lunkai * testsuite/actionscript.all/enumerate.as: cleanups, tests are not dependent on enumeration order now. From MAILER-DAEMON Fri Jun 22 00:47:11 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1b38-0006Hc-Vg for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 00:47:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1b34-0006D3-TL for gnash-commit@gnu.org; Fri, 22 Jun 2007 00:47:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1b32-00068W-0u for gnash-commit@gnu.org; Fri, 22 Jun 2007 00:47:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1b31-00068N-U3 for gnash-commit@gnu.org; Fri, 22 Jun 2007 00:47:03 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I1b30-0004qZ-Tw for gnash-commit@gnu.org; Fri, 22 Jun 2007 00:47:03 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5M4kv130941; Fri, 22 Jun 2007 06:46:57 +0200 (CEST) (envelope-from strk@keybit.net) Date: Fri, 22 Jun 2007 06:46:57 +0200 From: strk To: zou lunkai Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... Message-ID: <20070622044657.GA29722@keybit.net> Mail-Followup-To: zou lunkai , gnash-commit@gnu.org References: <20070621104423.GK30501@keybit.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 04:47:07 -0000 On Fri, Jun 22, 2007 at 09:24:25AM +0800, zou lunkai wrote: > On 6/21/07, strk wrote: > >On Thu, Jun 21, 2007 at 02:03:47AM +0000, Zou Lunkai wrote: > > > >> +// Test what we got in the above step. Tests show that characters were > >also got enumerated! > >> +// Note: don't use clip names for testing here, the order in > >enumerating is not defined. > >> +// However, the tests bellow are dependent on enumerating order! > >> +// Since recorder[0] and recorder[1] and recorder[2] might not be > >movieclips. > >> +// TODO: find a proper way to test this. > > > >use recorder[name] = 1; > >and check_equals(typeof(recorder['name']), 'movieclip'); > > > Thanks. Done. Tests should be safe now. > Any one like to fix it:)? The bug is in characters not being proper properties, but rather handler from overridden set_member/get_member methods. One solution could be making enumerateObject a virtual function itself so that whoever overrides set_member/get_member can also override the latter. Another solution would be turning childs into proper read-only properties. Have you tried using hasOwnProperty('childname') ? --strk; () ASCII Ribbon Campaign /\ Keep it simple! From MAILER-DAEMON Fri Jun 22 04:25:21 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1eSH-0001dW-JG for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 04:25:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1eSG-0001dF-0j for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:25:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1eSF-0001cc-3r for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:25:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1eSE-0001cZ-RX for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:25:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1eSE-000671-Ih for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:25:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1eSD-0007ie-Vr for gnash-commit@gnu.org; Fri, 22 Jun 2007 08:25:18 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1eSD-0007ia-QQ for gnash-commit@gnu.org; Fri, 22 Jun 2007 08:25:17 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Fri, 22 Jun 2007 08:25:17 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 08:25:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/22 08:25:17 Modified files: . : ChangeLog testsuite/actionscript.all: enumerate.as Log message: more tests CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3598&r2=1.3599 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/enumerate.as?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3598 retrieving revision 1.3599 diff -u -b -r1.3598 -r1.3599 --- ChangeLog 22 Jun 2007 02:12:07 -0000 1.3598 +++ ChangeLog 22 Jun 2007 08:25:17 -0000 1.3599 @@ -1,5 +1,9 @@ 2007-06-22 Zou Lunkai + * testsuite/actionscript.all/enumerate.as: more tests. + +2007-06-22 Zou Lunkai + * testsuite/actionscript.all/enumerate.as: cleanups, tests are not dependent on enumeration order now. * server/movie_root.h: document KeyListener class and related stuff. Index: testsuite/actionscript.all/enumerate.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/enumerate.as,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- testsuite/actionscript.all/enumerate.as 22 Jun 2007 01:16:56 -0000 1.3 +++ testsuite/actionscript.all/enumerate.as 22 Jun 2007 08:25:17 -0000 1.4 @@ -55,7 +55,12 @@ xcheck_equals(typeof(recorder['mc3']), 'movieclip'); xcheck_equals(typeof(recorder['mc4']), 'movieclip'); xcheck_equals(typeof(recorder['mc5']), 'movieclip'); - + check_equals(_root.hasOwnProperty('mc0'), false); + check_equals(_root.hasOwnProperty('mc1'), false); + check_equals(_root.hasOwnProperty('mc2'), false); + check_equals(_root.hasOwnProperty('mc3'), false); + check_equals(_root.hasOwnProperty('mc4'), false); + check_equals(_root.hasOwnProperty('mc5'), false); delete recorder; } @@ -85,7 +90,9 @@ check_equals(typeof(recorder['x1']), 'function'); check_equals(typeof(recorder['x2']), 'number'); check_equals(typeof(recorder['x3']), 'object'); - + check_equals(obj.hasOwnProperty('x1'), true); + check_equals(obj.hasOwnProperty('x2'), true); + check_equals(obj.hasOwnProperty('x3'), true); delete recorder; } From MAILER-DAEMON Fri Jun 22 04:37:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1eeE-0008AJ-AZ for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 04:37:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1eeC-0008A7-1O for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:37:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1eeA-00089d-AD for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:37:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1eeA-00089M-3f for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:37:38 -0400 Received: from nz-out-0506.google.com ([64.233.162.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1ee9-0007vG-PW for gnash-commit@gnu.org; Fri, 22 Jun 2007 04:37:37 -0400 Received: by nz-out-0506.google.com with SMTP id q3so732555nzb for ; Fri, 22 Jun 2007 01:37:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N0oH5kFLKd5ueHukcU6Is2dbklNrppsVubXht15dlNVFLCUat0np/csuTTOFqsWMmBgI5xqL874YfrPMRSQerVE9vfVVz1BXNZoADwoYb0xRA4olcYAxTxVYK7SORNACs8uPQiTrjFM9mxKwRQ3YuluB3piWz+0RnliHDMq5xg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=amaU0R/nJopMsX/MlKB1kk4JTF88GH/5Bw9C3oZ+rA8bxj7P6SikfrFFVZTGQQmwoqRLUprmliCt2vzmVyV8lUYi4AxSG5rLN5oat5nkxYEbWhm51aa6F5o2iEKFIcV2t4uOMOKeDiDXoiHbCXNtzNTd4jpJwqx3AbbC/dYVkCQ= Received: by 10.114.25.3 with SMTP id 3mr2745846way.1182501456507; Fri, 22 Jun 2007 01:37:36 -0700 (PDT) Received: by 10.114.110.5 with HTTP; Fri, 22 Jun 2007 01:37:36 -0700 (PDT) Message-ID: Date: Fri, 22 Jun 2007 16:37:36 +0800 From: "zou lunkai" To: "Sandro Santilli" Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/enum... In-Reply-To: <20070622044657.GA29722@keybit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070621104423.GK30501@keybit.net> <20070622044657.GA29722@keybit.net> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 08:37:40 -0000 > > The bug is in characters not being proper properties, but rather > handler from overridden set_member/get_member methods. > One solution could be making enumerateObject a virtual function itself > so that whoever overrides set_member/get_member can also override > the latter. > Another solution would be turning childs into proper read-only properties. > Have you tried using hasOwnProperty('childname') ? > > --strk; > Tests added by using hasOwnProperty. "characters not being proper properties" seems correct. Maybe ActionEnumerate just not only enumerate properties but also characters. I did see it is used for characters in some random swf files. From MAILER-DAEMON Fri Jun 22 09:51:23 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1jXm-0003S4-Oj for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 09:51:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1jXk-0003Pc-FE for gnash-commit@gnu.org; Fri, 22 Jun 2007 09:51:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1jXj-0003PP-Qk for gnash-commit@gnu.org; Fri, 22 Jun 2007 09:51:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1jXj-0003PM-M8 for gnash-commit@gnu.org; Fri, 22 Jun 2007 09:51:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1jXj-0006Ok-AR for gnash-commit@gnu.org; Fri, 22 Jun 2007 09:51:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1jXi-0004k1-3J for gnash-commit@gnu.org; Fri, 22 Jun 2007 13:51:18 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1jXh-0004jx-Tg for gnash-commit@gnu.org; Fri, 22 Jun 2007 13:51:18 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Fri, 22 Jun 2007 13:51:17 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/libgeometry Makefile.am X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 13:51:20 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/22 13:51:17 Modified files: libgeometry : Makefile.am Log message: Added use of PTHREAD_CFLAGS as Rob suggested. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/libgeometry/Makefile.am?cvsroot=gnash&r1=1.28&r2=1.29 Patches: Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/libgeometry/Makefile.am,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- Makefile.am 21 Jun 2007 23:47:47 -0000 1.28 +++ Makefile.am 22 Jun 2007 13:51:17 -0000 1.29 @@ -18,7 +18,7 @@ # # -# $Id: Makefile.am,v 1.28 2007/06/21 23:47:47 nihilus Exp $ +# $Id: Makefile.am,v 1.29 2007/06/22 13:51:17 nihilus Exp $ AUTOMAKE_OPTIONS = @@ -36,6 +36,7 @@ AM_CPPFLAGS = -I.. -I$(srcdir) \ -I$(top_srcdir)/libbase \ $(BOOST_CFLAGS) \ + $(PTHREAD_CFLAGS) \ $(NULL) # -I$(top_srcdir) \ From MAILER-DAEMON Fri Jun 22 10:31:17 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1kAP-000412-0u for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 10:31:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1kAM-00040v-Vv for gnash-commit@gnu.org; Fri, 22 Jun 2007 10:31:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1kAM-00040j-N6 for gnash-commit@gnu.org; Fri, 22 Jun 2007 10:31:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1kAM-00040c-ER for gnash-commit@gnu.org; Fri, 22 Jun 2007 10:31:14 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1kAM-00036U-62 for gnash-commit@gnu.org; Fri, 22 Jun 2007 10:31:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1kAL-00085F-Pi for gnash-commit@gnu.org; Fri, 22 Jun 2007 14:31:13 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1kAL-00085C-L0 for gnash-commit@gnu.org; Fri, 22 Jun 2007 14:31:13 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Fri, 22 Jun 2007 14:31:13 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog macros/kde.m4 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 14:31:15 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/22 14:31:13 Modified files: . : ChangeLog macros : kde.m4 Log message: look for libkdeui, not kdeui. Also first check in the QTDIR/bin directory for moc, in case the first moc in PATH is not the qt3 one. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3599&r2=1.3600 http://cvs.savannah.gnu.org/viewcvs/gnash/macros/kde.m4?cvsroot=gnash&r1=1.32&r2=1.33 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3599 retrieving revision 1.3600 diff -u -b -r1.3599 -r1.3600 --- ChangeLog 22 Jun 2007 08:25:17 -0000 1.3599 +++ ChangeLog 22 Jun 2007 14:31:12 -0000 1.3600 @@ -1,3 +1,9 @@ +2007-06-22 Bastiaan Jacques + + * macros/kde.m4: look for libkdeui, not kdeui. Also first check + in the QTDIR/bin directory for moc, in case the first moc in PATH + is not the qt3 one. + 2007-06-22 Zou Lunkai * testsuite/actionscript.all/enumerate.as: more tests. Index: macros/kde.m4 =================================================================== RCS file: /sources/gnash/gnash/macros/kde.m4,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- macros/kde.m4 4 Jun 2007 18:00:09 -0000 1.32 +++ macros/kde.m4 22 Jun 2007 14:31:13 -0000 1.33 @@ -14,7 +14,7 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -dnl $Id: kde.m4,v 1.32 2007/06/04 18:00:09 rsavoye Exp $ +dnl $Id: kde.m4,v 1.33 2007/06/22 14:31:13 bjacques Exp $ AC_DEFUN([GNASH_PATH_KDE], [ @@ -84,7 +84,7 @@ AC_ARG_WITH(kde_lib, AC_HELP_STRING([--with-kde-lib], [directory where kde libraries are]), with_kde_lib=${withval}) AC_CACHE_VAL(ac_cv_path_kde_lib, [ if test x"${with_kde_lib}" != x ; then - if test -f ${with_kde_lib}/libkdeui.a -o -f ${with_kde_lib}/kdeui.${shlibext}; then + if test -f ${with_kde_lib}/libkdeui.a -o -f ${with_kde_lib}/libkdeui.${shlibext}; then ac_cv_path_kde_lib="-L`(cd ${with_kde_lib}; pwd)`" else AC_MSG_ERROR([${with_kde_lib} directory doesn't contain kde libraries.]) @@ -145,12 +145,10 @@ has_kde=no fi - AC_PATH_PROG(MOC, moc, ,[${pathlist}]) KLASH_PLUGIN= AC_SUBST(KLASH_PLUGIN) - AC_SUBST(MOC) AC_SUBST(KDE_CFLAGS) AC_SUBST(KDE_LIBS) ]) @@ -256,6 +254,10 @@ has_qt="no" fi + AC_PATH_PROG(MOC, moc, ,[${gnash_qt_topdir}/bin ${pathlist}]) + + AC_SUBST(MOC) + AC_SUBST(QT_CFLAGS) AC_SUBST(QT_LIBS) ]) From MAILER-DAEMON Fri Jun 22 17:50:27 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1r1P-0001sn-N5 for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 17:50:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1r1N-0001si-WA for gnash-commit@gnu.org; Fri, 22 Jun 2007 17:50:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1r1H-0001rw-Ed for gnash-commit@gnu.org; Fri, 22 Jun 2007 17:50:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1r1H-0001rt-8o for gnash-commit@gnu.org; Fri, 22 Jun 2007 17:50:19 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1r1F-0007Cb-2a for gnash-commit@gnu.org; Fri, 22 Jun 2007 17:50:19 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1r1D-0008JP-Nb for gnash-commit@gnu.org; Fri, 22 Jun 2007 21:50:15 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1r1D-0008JL-8W for gnash-commit@gnu.org; Fri, 22 Jun 2007 21:50:15 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Fri, 22 Jun 2007 21:50:15 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog ltmain.sh.darwin X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 21:50:26 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/22 21:50:15 Modified files: . : ChangeLog Added files: . : ltmain.sh.darwin Log message: Added from Darwinports, and it works CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3600&r2=1.3601 http://cvs.savannah.gnu.org/viewcvs/gnash/ltmain.sh.darwin?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3600 retrieving revision 1.3601 diff -u -b -r1.3600 -r1.3601 --- ChangeLog 22 Jun 2007 14:31:12 -0000 1.3600 +++ ChangeLog 22 Jun 2007 21:50:14 -0000 1.3601 @@ -17,6 +17,7 @@ 2007-06-22 Markus Gothe * libgeometry/Makefile.am: Fixed building issue on Darwin. + * ltmain.sh.darwin: We use this one from Darwinports since it works. 2007-06-21 Antti Ajanki Index: ltmain.sh.darwin =================================================================== RCS file: ltmain.sh.darwin diff -N ltmain.sh.darwin --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ltmain.sh.darwin 22 Jun 2007 21:50:14 -0000 1.1 @@ -0,0 +1,6863 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun configure. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +basename="s,^.*/,,g" + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +progname=`echo "$progpath" | $SED $basename` +modename="$progname" + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.5.22 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes. +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <&2 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE +fi + +# Global variables. +mode=$default_mode +nonopt= +prev= +prevopt= +run= +show="$echo" +show_help= +execute_dlfiles= +duplicate_deps=no +preserve_args= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" + +##################################### +# Shell function definitions: +# This seems to be the best place for them + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $mkdir "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || { + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 + exit $EXIT_FAILURE + } + fi + + $echo "X$my_tmpdir" | $Xsed +} + + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | \ + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $echo $win32_libid_type +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case "$@ " in + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + $echo "$modename: unable to infer tagged configuration" + $echo "$modename: specify a tag with \`--tag'" 1>&2 + exit $EXIT_FAILURE +# else +# $echo "$modename: using $tagname tagged configuration" + fi + ;; + esac + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 + exit $EXIT_FAILURE + fi +} + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + my_status="" + + $show "${rm}r $my_gentop" + $run ${rm}r "$my_gentop" + $show "$mkdir $my_gentop" + $run $mkdir "$my_gentop" + my_status=$? + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then + exit $my_status + fi + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` + my_xdir="$my_gentop/$my_xlib" + + $show "${rm}r $my_xdir" + $run ${rm}r "$my_xdir" + $show "$mkdir $my_xdir" + $run $mkdir "$my_xdir" + exit_status=$? + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then + exit $exit_status + fi + case $host in + *-darwin*) + $show "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + if test -z "$run"; then + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` + if test -n "$darwin_arches"; then + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + $show "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we have a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + lipo -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + ${rm}r unfat-$$ + cd "$darwin_orig_dir" + else + cd "$darwin_orig_dir" + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + fi # $run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + func_extract_archives_result="$my_oldobjs" +} +# End of Shell function definitions +##################################### + +# Darwin sucks +eval std_shrext=\"$shrext_cmds\" + +disable_libs=no + +# Parse our command line options once, thoroughly. +while test "$#" -gt 0 +do + arg="$1" + shift + + case $arg in + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + execute_dlfiles) + execute_dlfiles="$execute_dlfiles $arg" + ;; + tag) + tagname="$arg" + preserve_args="${preserve_args}=$arg" + + # Check whether tagname contains only valid characters + case $tagname in + *[!-_A-Za-z0-9,/]*) + $echo "$progname: invalid tag name: $tagname" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $tagname in + CC) + # Don't test for the "default" C tag, as we know, it's there, but + # not specially marked. + ;; + *) + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then + taglist="$taglist $tagname" + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" + else + $echo "$progname: ignoring unknown tag $tagname" 1>&2 + fi + ;; + esac + ;; + *) + eval "$prev=\$arg" + ;; + esac + + prev= + prevopt= + continue + fi + + # Have we seen a non-optional argument yet? + case $arg in + --help) + show_help=yes + ;; + + --version) + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" + $echo + $echo "Copyright (C) 2005 Free Software Foundation, Inc." + $echo "This is free software; see the source for copying conditions. There is NO" + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + exit $? + ;; + + --config) + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath + # Now print the configurations for the tags. + for tagname in $taglist; do + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" + done + exit $? + ;; + + --debug) + $echo "$progname: enabling shell trace mode" + set -x + preserve_args="$preserve_args $arg" + ;; + + --dry-run | -n) + run=: + ;; + + --features) + $echo "host: $host" + if test "$build_libtool_libs" = yes; then + $echo "enable shared libraries" + else + $echo "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + $echo "enable static libraries" + else + $echo "disable static libraries" + fi + exit $? + ;; + + --finish) mode="finish" ;; + + --mode) prevopt="--mode" prev=mode ;; + --mode=*) mode="$optarg" ;; + + --preserve-dup-deps) duplicate_deps="yes" ;; + + --quiet | --silent) + show=: + preserve_args="$preserve_args $arg" + ;; + + --tag) + prevopt="--tag" + prev=tag + preserve_args="$preserve_args --tag" + ;; + --tag=*) + set tag "$optarg" ${1+"$@"} + shift + prev=tag + preserve_args="$preserve_args --tag" + ;; + + -dlopen) + prevopt="-dlopen" + prev=execute_dlfiles + ;; + + -*) + $echo "$modename: unrecognized option \`$arg'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + + *) + nonopt="$arg" + break + ;; + esac +done + +if test -n "$prevopt"; then + $echo "$modename: option \`$prevopt' requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE +fi + +case $disable_libs in +no) + ;; +shared) + build_libtool_libs=no + build_old_libs=yes + ;; +static) + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` + ;; +esac + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + +if test -z "$show_help"; then + + # Infer the operation mode. + if test -z "$mode"; then + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 + case $nonopt in + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) + mode=link + for arg + do + case $arg in + -c) + mode=compile + break + ;; + esac + done + ;; + *db | *dbx | *strace | *truss) + mode=execute + ;; + *install*|cp|mv) + mode=install + ;; + *rm) + mode=uninstall + ;; + *) + # If we have no mode, but dlfiles were specified, then do execute mode. + test -n "$execute_dlfiles" && mode=execute + + # Just use the default operation mode. + if test -z "$mode"; then + if test -n "$nonopt"; then + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 + else + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 + fi + fi + ;; + esac + fi + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + $echo "$modename: unrecognized option \`-dlopen'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$modename --help --mode=$mode' for more information." + + # These modes are in order of execution frequency so that they run quickly. + case $mode in + # libtool compile mode + compile) + modename="$modename: compile" + # Get the compilation command and the source file. + base_compile= + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; + + target ) + libobj="$arg" + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + if test -n "$libobj" ; then + $echo "$modename: you cannot specify \`-o' more than once" 1>&2 + exit $EXIT_FAILURE + fi + arg_mode=target + continue + ;; + + -static | -prefer-pic | -prefer-non-pic) + later="$later $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + lastarg="$lastarg $arg" + done + IFS="$save_ifs" + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` + + # Add the arguments to base_compile. + base_compile="$base_compile $lastarg" + continue + ;; + + * ) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` + + case $lastarg in + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, and some SunOS ksh mistreat backslash-escaping + # in scan sets (worked around with variable expansion), + # and furthermore cannot handle '|' '&' '(' ')' in scan sets + # at all, so we specify them separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + lastarg="\"$lastarg\"" + ;; + esac + + base_compile="$base_compile $lastarg" + done # for arg + + case $arg_mode in + arg) + $echo "$modename: you must specify an argument for -Xcompile" + exit $EXIT_FAILURE + ;; + target) + $echo "$modename: you must specify a target with \`-o'" 1>&2 + exit $EXIT_FAILURE + ;; + *) + # Get the name of the library object. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + xform='[cCFSifmso]' + case $libobj in + *.ada) xform=ada ;; + *.adb) xform=adb ;; + *.ads) xform=ads ;; + *.asm) xform=asm ;; + *.c++) xform=c++ ;; + *.cc) xform=cc ;; + *.ii) xform=ii ;; + *.class) xform=class ;; + *.cpp) xform=cpp ;; + *.cxx) xform=cxx ;; + *.f90) xform=f90 ;; + *.for) xform=for ;; + *.java) xform=java ;; + esac + + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` + + case $libobj in + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; + *) + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -static) + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` + case $qlibobj in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + qlibobj="\"$qlibobj\"" ;; + esac + test "X$libobj" != "X$qlibobj" \ + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$obj"; then + xdir= + else + xdir=$xdir/ + fi + lobj=${xdir}$objdir/$objname + + if test -z "$base_compile"; then + $echo "$modename: you must specify a compilation command" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + $run $rm $removelist + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + removelist="$removelist $output_obj $lockfile" + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $run ln "$progpath" "$lockfile" 2>/dev/null; do + $show "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $echo "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + $echo "$srcfile" > "$lockfile" + fi + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` + case $qsrcfile in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + qsrcfile="\"$qsrcfile\"" ;; + esac + + $run $rm "$libobj" "${libobj}T" + + # Create a libtool object file (analogous to a ".la" file), + # but don't create it if we're doing a dry run. + test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then + $echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + $show "$mv $output_obj $lobj" + if $run $mv $output_obj $lobj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Append the name of the PIC object to the libtool object file. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then + $echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + $show "$mv $output_obj $obj" + if $run $mv $output_obj $obj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Append the name of the non-PIC object the libtool object file. + # Only append if the libtool object file exists. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + else + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + fi + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test + ;; + *) qarg=$arg ;; + esac + libtool_args="$libtool_args $qarg" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + compile_command="$compile_command @OUTPUT@" + finalize_command="$finalize_command @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + compile_command="$compile_command @SYMFILE@" + finalize_command="$finalize_command @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + if test ! -f "$arg"; then + $echo "$modename: symbol file \`$arg' does not exist" + exit $EXIT_FAILURE + fi + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat $save_arg` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. + case $arg in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + fi + done + else + $echo "$modename: link input file \`$save_arg' does not exist" + exit $EXIT_FAILURE + fi + arg=$save_arg + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + $echo "$modename: only absolute run-paths are allowed" 1>&2 + exit $EXIT_FAILURE + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + compile_command="$compile_command $wl$qarg" + finalize_command="$finalize_command $wl$qarg" + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + darwin_framework|darwin_framework_skip) + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + prev= + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + compile_command="$compile_command $link_static_flag" + finalize_command="$finalize_command $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 + continue + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + $echo "$modename: more than one -exported-symbols argument is not allowed" + exit $EXIT_FAILURE + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework|-arch|-isysroot) + case " $CC " in + *" ${arg} ${1} "* | *" ${arg} ${1} "*) + prev=darwin_framework_skip ;; + *) compiler_flags="$compiler_flags $arg" + prev=darwin_framework ;; + esac + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + ;; + esac + continue + ;; + + -L*) + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 + absdir="$dir" + notinst_path="$notinst_path $dir" + fi + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs -framework System" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs="$deplibs $arg" + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + -model) + compile_command="$compile_command $arg" + compiler_flags="$compiler_flags $arg" + finalize_command="$finalize_command $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m* pass through architecture-specific compiler args for GCC + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -pg pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ + -t[45]*|-txscale*|@*) + + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + compiler_flags="$compiler_flags $arg" + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + # The PATH hackery in wrapper scripts is required on Windows + # in order for the loader to find any dlls it needs. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + $echo "$modename: only absolute run-paths are allowed" 1>&2 + exit $EXIT_FAILURE + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; + + -static) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Wl,*) + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + case $flag in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + flag="\"$flag\"" + ;; + esac + arg="$arg $wl$flag" + compiler_flags="$compiler_flags $wl$flag" + linker_flags="$linker_flags $flag" + done + IFS="$save_ifs" + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # Some other compiler flag. + -* | +*) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + ;; + + *.$objext) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. + case $arg in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + done # argument parsing loop + + if test -n "$prev"; then + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` + if test "X$output_objdir" = "X$output"; then + output_objdir="$objdir" + else + output_objdir="$output_objdir/$objdir" + fi + # Create the object directory. + if test ! -d "$output_objdir"; then + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + exit_status=$? + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then + exit $exit_status + fi + fi + + # Determine the type of output + case $output in + "") + $echo "$modename: you must specify an output file" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + case $host in + *cygwin* | *mingw* | *pw32*) + # don't eliminate duplications in $postdeps and $predeps + duplicate_compiler_generated_deps=yes + ;; + *) + duplicate_compiler_generated_deps=$duplicate_deps + ;; + esac + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if test "X$duplicate_deps" = "Xyes" ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + case $linkmode in + lib) + passes="conv link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 + exit $EXIT_FAILURE + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + for pass in $passes; do + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 + continue + fi + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if (${SED} -e '2q' $lib | + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + library_names= + old_library= + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` + ;; + *) + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + if eval $echo \"$deplib\" 2>/dev/null \ + | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $echo + $echo "*** Warning: Trying to link with static lib archive $deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because the file extensions .$libext of this argument makes me believe" + $echo "*** that it is just a static archive that I should not used here." + else + $echo + $echo "*** Warning: Linking the shared library $output against the" + $echo "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + if test "$found" = yes || test -f "$lib"; then : + else + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 + exit $EXIT_FAILURE + fi + + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + elif test "$linkmode" != prog && test "$linkmode" != lib; then + $echo "$modename: \`$lib' is not a convenience library" 1>&2 + exit $EXIT_FAILURE + fi + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 + abs_ladir="$ladir" + fi + ;; + esac + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + $echo "$modename: warning: library \`$lib' was moved." 1>&2 + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir"; then + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 + exit $EXIT_FAILURE + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath " in + *" $dir "*) ;; + *" $absdir "*) ;; + *) temp_rpath="$temp_rpath $absdir" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes ; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + # This is a shared library + + # Warn about portability, can't link against -module's on + # some systems (darwin) + if test "$shouldnotlink" = yes && test "$pass" = link ; then + $echo + if test "$linkmode" = prog; then + $echo "*** Warning: Linking the executable $output against the loadable module" + else + $echo "*** Warning: Linking the shared library $output against the loadable module" + fi + $echo "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + realname="$2" + shift; shift + libname=`eval \\$echo \"$libname_spec\"` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw*) + major=`expr $current - $age` + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + soname=`$echo $soroot | ${SED} -e 's/^.*\///'` + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + $show "extracting exported symbol list from \`$soname'" + save_ifs="$IFS"; IFS='~' + cmds=$extract_expsyms_cmds + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + $show "generating import library for \`$soname'" + save_ifs="$IFS"; IFS='~' + cmds=$old_archive_from_expsyms_cmds + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a module then we can not link against + # it, someone is ignoring the new warnings I added + if /usr/bin/file -L $add 2> /dev/null | + $EGREP ": [^:]* bundle" >/dev/null ; then + $echo "** Warning, lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $echo + $echo "** And there doesn't seem to be a static archive available" + $echo "** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + $echo "$modename: configuration error: unsupported hardcode properties" + exit $EXIT_FAILURE + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && \ + test "$hardcode_minus_L" != yes && \ + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $echo + $echo "*** Warning: This system can not link to static lib archive $lib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $echo "*** But as you try to build a module library, libtool will still create " + $echo "*** a static module, that should work as long as the dlopening application" + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if test "X$duplicate_deps" = "Xyes" ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$deplib" && dir="." + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 + absdir="$dir" + fi + ;; + esac + if grep "^installed=no" $deplib > /dev/null; then + path="$absdir/$objdir" + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + if test "$absdir" != "$libdir"; then + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 + fi + path="$absdir" + fi + depdepl= + case $host in + *-*-darwin*) + # we do not want to link against static libs, + # but need to link against shared + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$path/$depdepl" ; then + depdepl="$path/$depdepl" + fi + # do not add paths which are already there + case " $newlib_search_path " in + *" $path "*) ;; + *) newlib_search_path="$newlib_search_path $path";; + esac + fi + path="" + ;; + *) + path="-L$path" + ;; + esac + ;; + -l*) + case $host in + *-*-darwin*) + # Again, we only want to link against shared libraries + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` + for tmp in $newlib_search_path ; do + if test -f "$tmp/lib$tmp_libs.dylib" ; then + eval depdepl="$tmp/lib$tmp_libs.dylib" + break + fi + done + path="" + ;; + *) continue ;; + esac + ;; + *) continue ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + case " $deplibs " in + *" $depdepl "*) ;; + *) deplibs="$depdepl $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 + fi + + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 + fi + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + if test "$module" = no; then + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 + exit $EXIT_FAILURE + else + $echo + $echo "*** Warning: Linking the shared library $output against the non-libtool" + $echo "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + if test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 + fi + + set dummy $rpath + if test "$#" -gt 2; then + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 + fi + install_libdir="$2" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 + fi + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + IFS="$save_ifs" + + if test -n "$8"; then + $echo "$modename: too many parameters to \`-version-info'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$2" + number_minor="$3" + number_revision="$4" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows) + current=`expr $number_major + $number_minor` + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + current=`expr $number_major + $number_minor - 1` + age="$number_minor" + revision="$number_minor" + ;; + esac + ;; + no) + current="$2" + revision="$3" + age="$4" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + if test "$age" -gt "$current"; then + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit $EXIT_FAILURE + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + minor_current=`expr $current + 1` + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current"; + ;; + + irix | nonstopux) + major=`expr $current - $age + 1` + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + iface=`expr $revision - $loop` + loop=`expr $loop - 1` + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + ;; + + osf) + major=.`expr $current - $age` + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + iface=`expr $current - $loop` + loop=`expr $loop - 1` + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + major=`expr $current - $age` + versuffix="-$major" + ;; + + *) + $echo "$modename: unknown library version type \`$version_type'" 1>&2 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + fi + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$echo "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + if test -n "$removelist"; then + $show "${rm}r $removelist" + $run ${rm}r $removelist + fi + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + for path in $notinst_path; do + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` + done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs -framework System" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $rm conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null \ + | grep " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ + | ${SED} 10q \ + | $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $echo "*** with $libname but no candidates were found. (...for file magic test)" + else + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a file magic. Last file checked: $potlib" + fi + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + for a_deplib in $deplibs; do + name=`expr $a_deplib : '-l\(.*\)'` + # If $name is empty we are operating on a -L argument. + if test -n "$name" && test "$name" != "0"; then + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval $echo \"$potent_lib\" 2>/dev/null \ + | ${SED} 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $echo "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a regex pattern. Last file checked: $potlib" + fi + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ + -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` + done + fi + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ + | grep . >/dev/null; then + $echo + if test "X$deplibs_check_method" = "Xnone"; then + $echo "*** Warning: inter-library dependencies are not supported in this platform." + else + $echo "*** Warning: inter-library dependencies are not known to be supported." + fi + $echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $echo + $echo "*** Warning: libtool could not satisfy all declared inter-library" + $echo "*** dependencies of module $libname. Therefore, libtool will create" + $echo "*** a static module, that should work as long as the dlopening" + $echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $echo "*** The inter-library dependencies that have been dropped here will be" + $echo "*** automatically added whenever a program is linked with this library" + $echo "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $echo + $echo "*** Since this library must not contain undefined symbols," + $echo "*** because either the platform does not support them or" + $echo "*** it was explicitly requested with -no-undefined," + $echo "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + realname="$2" + shift; shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + linknames="$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + $show "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $run $rm $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + if len=`expr "X$cmd" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + $show "$cmd" + $run eval "$cmd" || exit $? + skipped_export=false + else + # The command line is too long to execute in one step. + $show "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex"; then + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + $show "$mv \"${export_symbols}T\" \"$export_symbols\"" + $run eval '$mv "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + len=`expr "X$test_cmds" : ".*" 2>/dev/null` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise. + $echo "creating reloadable object files..." + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$echo "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + delfiles= + last_robj= + k=1 + output=$output_objdir/$output_la-${k}.$objext + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + eval test_cmds=\"$reload_cmds $objlist $last_robj\" + if test "X$objlist" = X || + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && + test "$len" -le "$max_cmd_len"; }; then + objlist="$objlist $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + k=`expr $k + 1` + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + len=1 + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + + if ${skipped_export-false}; then + $show "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $run $rm $export_symbols + libobjs=$output + # Append the command to create the export file. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" + fi + + # Set up a command to remove the reloadable object files + # after they are used. + i=0 + while test "$i" -lt "$k" + do + i=`expr $i + 1` + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" + done + + $echo "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + + # Append the command to remove the reloadable object files + # to the just-reset $cmds. + eval cmds=\"\$cmds~\$rm $delfiles\" + fi + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + $show "${rm}r $gentop" + $run ${rm}r "$gentop" + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 + fi + + case $output in + *.lo) + if test -n "$objs$old_deplibs"; then + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 + exit $EXIT_FAILURE + fi + libobj="$output" + obj=`$echo "X$output" | $Xsed -e "$lo2o"` + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $run $rm $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + cmds=$reload_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $run eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + cmds=$reload_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + if test -n "$gentop"; then + $show "${rm}r $gentop" + $run ${rm}r $gentop + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; + esac + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 + fi + + if test "$preload" = yes; then + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && + test "$dlopen_self_static" = unknown; then + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." + fi + fi + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` + ;; + esac + + case $host in + *darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + if test "$tagname" = CXX ; then + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + fi + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + dlsyms= + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + dlsyms="${outputname}S.c" + else + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 + fi + fi + + if test -n "$dlsyms"; then + case $dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${outputname}.nm" + + $show "$rm $nlist ${nlist}S ${nlist}T" + $run $rm "$nlist" "${nlist}S" "${nlist}T" + + # Parse the name list into a source file. + $show "creating $output_objdir/$dlsyms" + + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* Prevent the only kind of declaration conflicts we can make. */ +#define lt_preloaded_symbols some_other_symbol + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + $show "generating symbol list for \`$output'" + + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for arg in $progfiles; do + $show "extracting global C symbols from \`$arg'" + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + $run eval '$mv "$nlist"T "$nlist"' + fi + + if test -n "$export_symbols_regex"; then + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + $run eval '$mv "$nlist"T "$nlist"' + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $run $rm $export_symbols + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* ) + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + else + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + $run eval 'mv "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* ) + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + fi + fi + + for arg in $dlprefiles; do + $show "extracting global C symbols from \`$arg'" + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` + $run eval '$echo ": $name " >> "$nlist"' + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + done + + if test -z "$run"; then + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $mv "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if grep -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + grep -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' + else + $echo '/* NONE */' >> "$output_objdir/$dlsyms" + fi + + $echo >> "$output_objdir/$dlsyms" "\ + +#undef lt_preloaded_symbols + +#if defined (__STDC__) && __STDC__ +# define lt_ptr void * +#else +# define lt_ptr char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +" + + case $host in + *cygwin* | *mingw* ) + $echo >> "$output_objdir/$dlsyms" "\ +/* DATA imports from DLLs on WIN32 can't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs */ +struct { +" + ;; + * ) + $echo >> "$output_objdir/$dlsyms" "\ +const struct { +" + ;; + esac + + + $echo >> "$output_objdir/$dlsyms" "\ + const char *name; + lt_ptr address; +} +lt_preloaded_symbols[] = +{\ +" + + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" + + $echo >> "$output_objdir/$dlsyms" "\ + {0, (lt_ptr) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + fi + + pic_flag_for_symtable= + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + case "$compile_command " in + *" -static "*) ;; + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; + esac;; + *-*-hpux*) + case "$compile_command " in + *" -static "*) ;; + *) pic_flag_for_symtable=" $pic_flag";; + esac + esac + + # Now compile the dynamic symbol file. + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? + + # Clean up the generated files. + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" + + # Transform the symbol file into the correct name. + case $host in + *cygwin* | *mingw* ) + if test -f "$output_objdir/${outputname}.def" ; then + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` + else + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + fi + ;; + * ) + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + ;; + esac + ;; + *) + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 + exit $EXIT_FAILURE + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi + + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + # Replace the output file specification. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + $show "$link_command" + $run eval "$link_command" + exit_status=$? + + # Delete the generated files. + if test -n "$dlsyms"; then + $show "$rm $output_objdir/${outputname}S.${objext}" + $run $rm "$output_objdir/${outputname}S.${objext}" + fi + + exit $exit_status + fi + + if test -n "$shlibpath_var"; then + # We should set the shlibpath_var + rpath= + for dir in $temp_rpath; do + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) + # Absolute path. + rpath="$rpath$dir:" + ;; + *) + # Relative path: add a thisdir entry. + rpath="$rpath\$thisdir/$dir:" + ;; + esac + done + temp_rpath="$rpath" + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $run $rm $output + # Link the executable and exit + $show "$link_command" + $run eval "$link_command" || exit $? + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 + $echo "$modename: \`$output' will be relinked during installation" 1>&2 + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname + + $show "$link_command" + $run eval "$link_command" || exit $? + + # Now create the wrapper script. + $show "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + + # Quote $echo for shipping. + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if our run command is non-null. + if test -z "$run"; then + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + output_name=`basename $output` + output_path=`dirname $output` + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $rm $cwrappersource $cwrapper + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + cat > $cwrappersource <> $cwrappersource<<"EOF" +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +/* -DDEBUG is fairly common in CFLAGS. */ +#undef DEBUG +#if defined DEBUGWRAPPER +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) +#else +# define DEBUG(format, ...) +#endif + +const char *program_name = NULL; + +void * xmalloc (size_t num); +char * xstrdup (const char *string); +const char * base_name (const char *name); +char * find_executable(const char *wrapper); +int check_executable(const char *path); +char * strendzap(char *str, const char *pat); +void lt_fatal (const char *message, ...); + +int +main (int argc, char *argv[]) +{ + char **newargz; + int i; + + program_name = (char *) xstrdup (base_name (argv[0])); + DEBUG("(main) argv[0] : %s\n",argv[0]); + DEBUG("(main) program_name : %s\n",program_name); + newargz = XMALLOC(char *, argc+2); +EOF + + cat >> $cwrappersource <> $cwrappersource <<"EOF" + newargz[1] = find_executable(argv[0]); + if (newargz[1] == NULL) + lt_fatal("Couldn't find %s", argv[0]); + DEBUG("(main) found exe at : %s\n",newargz[1]); + /* we know the script has the same name, without the .exe */ + /* so make sure newargz[1] doesn't end in .exe */ + strendzap(newargz[1],".exe"); + for (i = 1; i < argc; i++) + newargz[i+1] = xstrdup(argv[i]); + newargz[argc+1] = NULL; + + for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" + return 127; +} + +void * +xmalloc (size_t num) +{ + void * p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL +; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char)name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} + +int +check_executable(const char * path) +{ + struct stat st; + + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >= 0) && + ( + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ +#if defined (S_IXOTH) + ((st.st_mode & S_IXOTH) == S_IXOTH) || +#endif +#if defined (S_IXGRP) + ((st.st_mode & S_IXGRP) == S_IXGRP) || +#endif + ((st.st_mode & S_IXUSR) == S_IXUSR)) + ) + return 1; + else + return 0; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise */ +char * +find_executable (const char* wrapper) +{ + int has_slash = 0; + const char* p; + const char* p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char* concat_name; + + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable(concat_name)) + return concat_name; + XFREE(concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable(concat_name)) + return concat_name; + XFREE(concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char* path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char* q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR(*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen(tmp); + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable(concat_name)) + return concat_name; + XFREE(concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen(tmp); + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable(concat_name)) + return concat_name; + XFREE(concat_name); + return NULL; +} + +char * +strendzap(char *str, const char *pat) +{ + size_t len, patlen; + + assert(str != NULL); + assert(pat != NULL); + + len = strlen(str); + patlen = strlen(pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp(str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char * mode, + const char * message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} +EOF + # we should really use a build-platform specific compiler + # here, but OTOH, the wrappers (shell script and this C one) + # are only useful if you want to execute the "real" binary. + # Since the "real" binary is built for $host, then this + # wrapper might as well be built for $host, too. + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource + ;; + esac + $rm $output + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 + + $echo > $output "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variable: + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$echo are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + echo=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$echo works! + : + else + # Restart under the correct shell, and then maybe \$echo will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $echo >> $output "\ + + # Find the directory that this script lives in. + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $echo >> $output "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || \\ + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $mkdir \"\$progdir\" + else + $rm \"\$progdir/\$file\" + fi" + + $echo >> $output "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $echo \"\$relink_command_output\" >&2 + $rm \"\$progdir/\$file\" + exit $EXIT_FAILURE + fi + fi + + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $rm \"\$progdir/\$program\"; + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $rm \"\$progdir/\$file\" + fi" + else + $echo >> $output "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $echo >> $output "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $echo >> $output "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $echo >> $output "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $echo >> $output "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2*) + $echo >> $output "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $echo >> $output "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $echo >> $output "\ + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" + exit $EXIT_FAILURE + fi + else + # The program doesn't exist. + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$echo \"This script is just a wrapper for \$program.\" 1>&2 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2 + exit $EXIT_FAILURE + fi +fi\ +" + chmod +x $output + fi + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + $echo "X$obj" | $Xsed -e 's%^.*/%%' + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "copying selected object files to avoid basename conflicts..." + + if test -z "$gentop"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + $show "${rm}r $gentop" + $run ${rm}r "$gentop" + $show "$mkdir $gentop" + $run $mkdir "$gentop" + exit_status=$? + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then + exit $exit_status + fi + fi + + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + counter=`expr $counter + 1` + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + $run ln "$obj" "$gentop/$newobj" || + $run cp "$obj" "$gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi + + eval cmds=\"$old_archive_cmds\" + + if len=`expr "X$cmds" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + $echo "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + for obj in $save_oldobjs + do + oldobjs="$objlist $obj" + objlist="$objlist $obj" + eval test_cmds=\"$old_archive_cmds\" + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && + test "$len" -le "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + eval cmd=\"$cmd\" + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$generated"; then + $show "${rm}r$generated" + $run ${rm}r$generated + fi + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + $show "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` + relink_command="$var=\"$var_value\"; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + + # Only create the output if not a dry run. + if test -z "$run"; then + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + if test -z "$libdir"; then + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + for lib in $dlfiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdlfiles="$newdlfiles $libdir/$name" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + if test -z "$libdir"; then + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + exit $EXIT_FAILURE + fi + newdlprefiles="$newdlprefiles $libdir/$name" + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $rm $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $echo > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $echo >> $output "\ +relink_command=\"$relink_command\"" + fi + done + fi + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? + ;; + esac + exit $EXIT_SUCCESS + ;; + + # libtool install mode + install) + modename="$modename: install" + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $echo "X$nonopt" | grep shtool > /dev/null; then + # Aesthetically quote it. + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + install_prog="$arg " + arg="$1" + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog$arg" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=$arg ;; + esac + ;; + -g | -m | -o) prev=$arg ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog $arg" + done + + if test -z "$install_prog"; then + $echo "$modename: you must specify an install program" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test -n "$prev"; then + $echo "$modename: the \`$prev' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + if test -z "$files"; then + if test -z "$dest"; then + $echo "$modename: no file or destination specified" 1>&2 + else + $echo "$modename: you must specify a destination" 1>&2 + fi + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Strip any trailing slash from the destination. + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` + test "X$destdir" = "X$dest" && destdir=. + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` + + # Not a directory, so check to see that there is only one file specified. + set dummy $files + if test "$#" -gt 2; then + $echo "$modename: \`$dest' is not a directory" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + library_names= + old_library= + relink_command= + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ + test "X$dir" = "X$file/" && dir= + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + if test "$inst_prefix_dir" = "$destdir"; then + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 + exit $EXIT_FAILURE + fi + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + $echo "$modename: warning: relinking \`$file'" 1>&2 + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + exit $EXIT_FAILURE + fi + fi + + # See the names of the shared library. + set dummy $library_names + if test -n "$2"; then + realname="$2" + shift + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + $show "$install_prog $dir/$srcname $destdir/$realname" + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? + if test -n "$stripme" && test -n "$striplib"; then + $show "$striplib $destdir/$realname" + $run eval "$striplib $destdir/$realname" || exit $? + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + if test "$linkname" != "$realname"; then + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" + fi + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + cmds=$postinstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + fi + + # Install the pseudo-library for information purposes. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + # Install the libtool object if requested. + if test -n "$destfile"; then + $show "$install_prog $file $destfile" + $run eval "$install_prog $file $destfile" || exit $? + fi + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` + + $show "$install_prog $staticobj $staticdest" + $run eval "$install_prog \$staticobj \$staticdest" || exit $? + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + file=`$echo $file|${SED} 's,.exe$,,'` + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin*|*mingw*) + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` + ;; + *) + wrapper=$file + ;; + esac + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then + notinst_deplibs= + relink_command= + + # Note that it is not necessary on cygwin/mingw to append a dot to + # foo even if both foo and FILE.exe exist: automatic-append-.exe + # behavior happens only for exec(3), not for open(2)! Also, sourcing + # `FILE.' does not work on cygwin managed mounts. + # + # If there is no directory component, then add one. + case $wrapper in + */* | *\\*) . ${wrapper} ;; + *) . ./${wrapper} ;; + esac + + # Check the variables that should have been set. + if test -z "$notinst_deplibs"; then + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 + exit $EXIT_FAILURE + fi + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + # If there is no directory component, then add one. + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + fi + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 + finalize=no + fi + done + + relink_command= + # Note that it is not necessary on cygwin/mingw to append a dot to + # foo even if both foo and FILE.exe exist: automatic-append-.exe + # behavior happens only for exec(3), not for open(2)! Also, sourcing + # `FILE.' does not work on cygwin managed mounts. + # + # If there is no directory component, then add one. + case $wrapper in + */* | *\\*) . ${wrapper} ;; + *) . ./${wrapper} ;; + esac + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + if test "$finalize" = yes && test -z "$run"; then + tmpdir=`func_mktempdir` + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $show "$relink_command" + if $run eval "$relink_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + ${rm}r "$tmpdir" + continue + fi + file="$outputname" + else + $echo "$modename: warning: cannot relink \`$file'" 1>&2 + fi + else + # Install the binary that we compiled earlier. + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` + ;; + esac + ;; + esac + $show "$install_prog$stripme $file $destfile" + $run eval "$install_prog\$stripme \$file \$destfile" || exit $? + test -n "$outputname" && ${rm}r "$tmpdir" + ;; + esac + done + + for file in $staticlibs; do + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + $show "$install_prog $file $oldlib" + $run eval "$install_prog \$file \$oldlib" || exit $? + + if test -n "$stripme" && test -n "$old_striplib"; then + $show "$old_striplib $oldlib" + $run eval "$old_striplib $oldlib" || exit $? + fi + + # Do each command in the postinstall commands. + cmds=$old_postinstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$future_libdirs"; then + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 + fi + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + test -n "$run" && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi + ;; + + # libtool finish mode + finish) + modename="$modename: finish" + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + cmds=$finish_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" || admincmds="$admincmds + $cmd" + done + IFS="$save_ifs" + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $run eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + test "$show" = : && exit $EXIT_SUCCESS + + $echo "X----------------------------------------------------------------------" | $Xsed + $echo "Libraries have been installed in:" + for libdir in $libdirs; do + $echo " $libdir" + done + $echo + $echo "If you ever happen to want to link against installed libraries" + $echo "in a given directory, LIBDIR, you must either use libtool, and" + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + $echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + $echo " during execution" + fi + if test -n "$runpath_var"; then + $echo " - add LIBDIR to the \`$runpath_var' environment variable" + $echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $echo " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $echo " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $echo + $echo "See any operating system documentation about shared libraries for" + $echo "more information, such as the ld(1) and ld.so(8) manual pages." + $echo "X----------------------------------------------------------------------" | $Xsed + exit $EXIT_SUCCESS + ;; + + # libtool execute mode + execute) + modename="$modename: execute" + + # The first argument is the command name. + cmd="$nonopt" + if test -z "$cmd"; then + $echo "$modename: you must specify a COMMAND" 1>&2 + $echo "$help" + exit $EXIT_FAILURE + fi + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + if test ! -f "$file"; then + $echo "$modename: \`$file' is not a file" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Read the libtool library. + dlname= + library_names= + + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" + continue + fi + + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 + exit $EXIT_FAILURE + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + ;; + + *) + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + # If there is no directory component, then add one. + case $file in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` + args="$args \"$file\"" + done + + if test -z "$run"; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + if test "${save_LC_ALL+set}" = set; then + LC_ALL="$save_LC_ALL"; export LC_ALL + fi + if test "${save_LANG+set}" = set; then + LANG="$save_LANG"; export LANG + fi + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" + $echo "export $shlibpath_var" + fi + $echo "$cmd$args" + exit $EXIT_SUCCESS + fi + ;; + + # libtool clean and uninstall mode + clean | uninstall) + modename="$modename: $mode" + rm="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) rm="$rm $arg"; rmforce=yes ;; + -*) rm="$rm $arg" ;; + *) files="$files $arg" ;; + esac + done + + if test -z "$rm"; then + $echo "$modename: you must specify an RM program" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + fi + + rmdirs= + + origobjdir="$objdir" + for file in $files; do + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + if test "X$dir" = "X$file"; then + dir=. + objdir="$origobjdir" + else + objdir="$dir/$origobjdir" + fi + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if (test -L "$file") >/dev/null 2>&1 \ + || (test -h "$file") >/dev/null 2>&1 \ + || test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + . $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles="$rmfiles $objdir/$dlname" ;; + esac + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + cmds=$postuninstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" + if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done + IFS="$save_ifs" + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + cmds=$old_postuninstall_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $show "$cmd" + $run eval "$cmd" + if test "$?" -ne 0 && test "$rmforce" != yes; then + exit_status=1 + fi + done + IFS="$save_ifs" + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + + # Read the .lo file + . $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" \ + && test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" \ + && test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + file=`$echo $file|${SED} 's,.exe$,,'` + noexename=`$echo $name|${SED} 's,.exe$,,'` + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + relink_command= + . $dir/$noexename + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + $show "$rm $rmfiles" + $run $rm $rmfiles || exit_status=1 + done + objdir="$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + $show "rmdir $dir" + $run rmdir $dir >/dev/null 2>&1 + fi + done + + exit $exit_status + ;; + + "") + $echo "$modename: you must specify a MODE" 1>&2 + $echo "$generic_help" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + if test -z "$exec_cmd"; then + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$generic_help" 1>&2 + exit $EXIT_FAILURE + fi +fi # test -z "$show_help" + +if test -n "$exec_cmd"; then + eval exec $exec_cmd + exit $EXIT_FAILURE +fi + +# We need to display help for each of the modes. +case $mode in +"") $echo \ +"Usage: $modename [OPTION]... [MODE-ARG]... + +Provide generalized library-building support services. + + --config show all configuration variables + --debug enable verbose shell tracing +-n, --dry-run display commands without modifying any files + --features display basic configuration information and exit + --finish same as \`--mode=finish' + --help display this help message and exit + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] + --quiet same as \`--silent' + --silent don't print informational messages + --tag=TAG use configuration variables from tag TAG + --version print version information + +MODE must be one of the following: + + clean remove files from the build directory + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for +a more detailed description of MODE. + +Report bugs to ." + exit $EXIT_SUCCESS + ;; + +clean) + $echo \ +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + +compile) + $echo \ +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -static always build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + +execute) + $echo \ +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + +finish) + $echo \ +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + +install) + $echo \ +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + +link) + $echo \ +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -static do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + +uninstall) + $echo \ +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + +*) + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$help" 1>&2 + exit $EXIT_FAILURE + ;; +esac + +$echo +$echo "Try \`$modename --help' for more information about other modes." + +exit $? + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +disable_libs=shared +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +disable_libs=static +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: From MAILER-DAEMON Fri Jun 22 18:07:12 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I1rHc-00018k-6W for mharc-gnash-commit@gnu.org; Fri, 22 Jun 2007 18:07:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1rHa-00018b-Ne for gnash-commit@gnu.org; Fri, 22 Jun 2007 18:07:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1rHa-00018P-54 for gnash-commit@gnu.org; Fri, 22 Jun 2007 18:07:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1rHa-00018M-2X for gnash-commit@gnu.org; Fri, 22 Jun 2007 18:07:10 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1rHZ-0001m5-MG for gnash-commit@gnu.org; Fri, 22 Jun 2007 18:07:09 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I1rHY-0000xf-Kg for gnash-commit@gnu.org; Fri, 22 Jun 2007 22:07:08 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I1rHY-0000xb-F1 for gnash-commit@gnu.org; Fri, 22 Jun 2007 22:07:08 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Fri, 22 Jun 2007 22:07:08 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog utilities/parser.cpp utilities/... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 22:07:10 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/22 22:07:08 Modified files: . : ChangeLog utilities : parser.cpp processor.cpp Log message: Use libbase/gettext.h for conditinal use of libintl. If I'm wrong John might slap my hands. ;) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3601&r2=1.3602 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/parser.cpp?cvsroot=gnash&r1=1.39&r2=1.40 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/processor.cpp?cvsroot=gnash&r1=1.59&r2=1.60 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3601 retrieving revision 1.3602 diff -u -b -r1.3601 -r1.3602 --- ChangeLog 22 Jun 2007 21:50:14 -0000 1.3601 +++ ChangeLog 22 Jun 2007 22:07:07 -0000 1.3602 @@ -18,6 +18,8 @@ * libgeometry/Makefile.am: Fixed building issue on Darwin. * ltmain.sh.darwin: We use this one from Darwinports since it works. + * utilities/{parser,processor}.cpp: use 'libbase/gettext.h' for conditianal + use of libintl. 2007-06-21 Antti Ajanki Index: utilities/parser.cpp =================================================================== RCS file: /sources/gnash/gnash/utilities/parser.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -u -b -r1.39 -r1.40 --- utilities/parser.cpp 18 May 2007 04:00:33 -0000 1.39 +++ utilities/parser.cpp 22 Jun 2007 22:07:07 -0000 1.40 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: parser.cpp,v 1.39 2007/05/18 04:00:33 martinwguy Exp $ */ +/* $Id: parser.cpp,v 1.40 2007/06/22 22:07:07 nihilus Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -36,9 +36,7 @@ #endif } -#include -#include - +#include "gettext.h" #include "tu_file.h" #include "zlib_adapter.h" #include "image.h" Index: utilities/processor.cpp =================================================================== RCS file: /sources/gnash/gnash/utilities/processor.cpp,v retrieving revision 1.59 retrieving revision 1.60 diff -u -b -r1.59 -r1.60 --- utilities/processor.cpp 15 Jun 2007 15:00:31 -0000 1.59 +++ utilities/processor.cpp 22 Jun 2007 22:07:08 -0000 1.60 @@ -20,13 +20,12 @@ #include "config.h" #endif -#include -#include #include #include #include #include +#include "gettext.h" #include "tu_file.h" #include "container.h" #include "gnash.h" From MAILER-DAEMON Sat Jun 23 08:34:44 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I24p9-0002Y1-Tl for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 08:34:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I24p7-0002Vw-LQ for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:34:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I24p5-0002Uc-Po for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:34:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I24p5-0002UI-Hk for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:34:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I24p5-0004vy-1A for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:34:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I24oy-0007XV-W1 for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:34:33 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I24oy-0007XS-RT for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:34:32 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Sat, 23 Jun 2007 12:34:32 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/Makefile.am libbase/con... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 12:34:42 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/23 12:34:32 Modified files: . : ChangeLog libbase : Makefile.am container.cpp container.h server : fontlib.cpp impl.cpp Log message: * libbase/container.h: Remove home-made container classes in favour of standard containers. * server/{fontlib, impl}.cpp: Switch hash to std::map. * libbase/container.cpp: Remove unused container tests. * libbase/Makefile.am: Disable building of unused container.cpp. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3602&r2=1.3603 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Makefile.am?cvsroot=gnash&r1=1.74&r2=1.75 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.cpp?cvsroot=gnash&r1=1.14&r2=1.15 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.h?cvsroot=gnash&r1=1.57&r2=1.58 http://cvs.savannah.gnu.org/viewcvs/gnash/server/fontlib.cpp?cvsroot=gnash&r1=1.29&r2=1.30 http://cvs.savannah.gnu.org/viewcvs/gnash/server/impl.cpp?cvsroot=gnash&r1=1.109&r2=1.110 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3602 retrieving revision 1.3603 diff -u -b -r1.3602 -r1.3603 --- ChangeLog 22 Jun 2007 22:07:07 -0000 1.3602 +++ ChangeLog 23 Jun 2007 12:34:31 -0000 1.3603 @@ -1,3 +1,11 @@ +2007-06-23 Bastiaan Jacques + + * libbase/container.h: Remove home-made container classes in + favour of standard containers. + * server/{fontlib, impl}.cpp: Switch hash to std::map. + * libbase/container.cpp: Remove unused container tests. + * libbase/Makefile.am: Disable building of unused container.cpp. + 2007-06-22 Bastiaan Jacques * macros/kde.m4: look for libkdeui, not kdeui. Also first check Index: libbase/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/libbase/Makefile.am,v retrieving revision 1.74 retrieving revision 1.75 diff -u -b -r1.74 -r1.75 --- libbase/Makefile.am 15 Jun 2007 15:00:26 -0000 1.74 +++ libbase/Makefile.am 23 Jun 2007 12:34:32 -0000 1.75 @@ -79,7 +79,6 @@ libgnashbase_la_SOURCES = \ config.cpp \ - container.cpp \ $(DMALLOC_FILE) \ extension.cpp \ image.cpp \ Index: libbase/container.cpp =================================================================== RCS file: /sources/gnash/gnash/libbase/container.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- libbase/container.cpp 15 Apr 2007 10:52:09 -0000 1.14 +++ libbase/container.cpp 23 Jun 2007 12:34:32 -0000 1.15 @@ -9,161 +9,3 @@ #include "config.h" #endif -#include -#include -#include - -#include "container.h" -#include "utf8.h" -#include "tu_random.h" - - -#ifdef CONTAINER_UNIT_TEST - - -// Compile this test case with something like: -// -// gcc container.cpp utf8.cpp tu_random.cpp -g -I.. -DCONTAINER_UNIT_TEST -lstdc++ -o container_test -// -// or -// -// cl container.cpp utf8.cpp tu_random.cpp -Zi -Od -DCONTAINER_UNIT_TEST -I.. - - -void test_hash() -{ - // Collect a bunch of random key/value pairs. - std::vector data; - for (int i = 0; i < 1000; i++) - { - data.push_back(tu_random::next_random()); - } - - // Push into hash. - hash h; - {for (int i = 0; i < data.size() / 2; i++) - { - h.add(data[i*2], data[i*2 + 1]); - - // Verify the contents of the hash so far. - for (int j = 0; j < i; j++) - { - uint32_t key = data[j*2]; - uint32_t val; - bool got = h.get(key, &val); - assert(got); - assert(val == data[j*2 + 1]); - } - }} - - // Manually copy stuff over to h2, using iterator interface. - hash h2; - {for (hash::iterator it = h.begin(); it != h.end(); ++it) - { - //printf("first = 0x%X, second = 0x%X\n", it->first, it->second);//xxxxx - assert(h.get(it->first, NULL) == true); - - h2.add(it->first, it->second); - - uint32_t val; - bool got = h2.get(it->first, &val); - assert(got); - assert(val == it->second); - }} - - // Verify the contents of h2. - {for (int i = 0; i < data.size() / 2; i++) - { - uint32_t key = data[i*2]; - uint32_t val; - bool got = h.get(key, &val); - assert(got); - assert(val == data[i*2 + 1]); - }} - - h.clear(); - assert(h.size() == 0); - - // Verify that h really is missing the stuff it had before, and h2 really has it. - {for (hash::iterator it = h2.begin(); it != h2.end(); ++it) - { - assert(h.get(it->first, NULL) == false); - assert(h2.get(it->first, NULL) == true); - assert(h.find(it->first) == h.end()); - assert(h2.find(it->first) != h2.end()); - }} -} - - -//#include -//#include -//#include - -void test_hash_speed() -// Test function for hash performance of adding keys and doing lookup. -{ - -// Hash type, for doing comparative tests. -// -// tu_hash tests faster than the map and hash_map included with GCC -// 3.3 as well as map and hash_map from MSVC7. In some cases, several -// times faster. GCC's hash_map is the closest to tu_hash, but is -// still 33% slower in my tests. - -// // tu's hash -#define HASH hash -#define HASH_ADD(h, k, v) h.add(k, v) - -// STL's hash -//#define HASH __gnu_cxx::hash_map -//#define HASH std::hash_map -//#define HASH_ADD(h, k, v) h[k] = v - -// STL's map -//#define HASH std::map -//#define HASH_ADD(h, k, v) h[k] = v - -// const int SIZE = 10000000; - const int SIZE = 1000000; - - // Make an array of random numbers. - std::vector numbers; - numbers.resize(SIZE); - - for (int i = 0, n = numbers.size(); i < n; i++) - { - numbers[i] = tu_random::next_random(); - } - - // Uniquify the array. - HASH new_index; - int next_new_index = 0; - {for (int i = 0, n = numbers.size(); i < n; i++) - { - HASH::iterator it = new_index.find(numbers[i]); - if (it == new_index.end()) - { - // First time this number has been seen. - HASH_ADD(new_index, numbers[i], next_new_index); - next_new_index++; - } - else - { - // This number already appears in the list. -// printf("duplicate entry %x, prev new index %d, current array index %d\n", -// numbers[i], -// it->second, -// i); - } - }} - - printf("next_new_index = %d\n", next_new_index); -} - -#endif // CONTAINER_UNIT_TEST - - -// Local Variables: -// mode: C++ -// indent-tabs-mode: t -// End: Index: libbase/container.h =================================================================== RCS file: /sources/gnash/gnash/libbase/container.h,v retrieving revision 1.57 retrieving revision 1.58 diff -u -b -r1.57 -r1.58 --- libbase/container.h 28 May 2007 15:41:01 -0000 1.57 +++ libbase/container.h 23 Jun 2007 12:34:32 -0000 1.58 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: container.h,v 1.57 2007/05/28 15:41:01 ann Exp $ */ +/* $Id: container.h,v 1.58 2007/06/23 12:34:32 bjacques Exp $ */ #ifndef __CONTAINER_H__ #define __CONTAINER_H__ @@ -26,14 +26,6 @@ #include "tu_config.h" -#ifdef WIN32_HASH_MAP -# include -#else -# ifdef GNU_HASH_MAP -# include -# endif -#endif - #ifdef HAVE_STRINGCASECMP # define STRCASECMP strcasecmp #else @@ -73,646 +65,12 @@ //#include // for placement new #include - -template -class fixed_size_hash -// Computes a hash of an object's representation. -{ -public: - size_t operator()(const T& data) const - { - const unsigned char* p = (const unsigned char*) &data; - int size = sizeof(T); - - return sdbm_hash(p, size); - } -}; - - -template -class identity_hash -// Hash is just the input value; can use this for integer-indexed hash tables. -{ -public: - size_t operator()(const T& data) const - { - return (size_t) data; - } -}; - - -// -// Thin wrappers around STL -// - - -//// @@@ crap compatibility crap -//#define StlAlloc(size) malloc(size) -//#define StlFree(ptr, size) free(ptr) - -// hash from gameSWF. There are compiler problems with stdext:hash in Visual C -// Markus: As well as with other compilers... -namespace gnash{ - -#ifdef WIN32_HASH_MAP - -template > -class DSOEXPORT hash { -// Hash table, linear probing, internal chaining. One -// interesting/nice thing about this implementation is that the table -// itself is a flat chunk of memory containing no pointers, only -// relative indices. If the key and value types of the hash contain -// no pointers, then the hash can be serialized using raw IO. Could -// come in handy. -// -// Never shrinks, unless you explicitly clear() it. Expands on -// demand, though. For best results, if you know roughly how big your -// table will be, default it to that size when you create it. -public: - hash() : m_table(NULL) { } - hash(int size_hint) : m_table(NULL) { set_capacity(size_hint); } - ~hash() { clear(); } - - // @@ need a "remove()" -// char& operator[](int index) -// { -// } - - U& operator[](const T& key) - { - int index = find_index(key); - if (index >= 0) - { - return E(index).second; - } - add(key, (U) 0); - index = find_index(key); - if (index >= 0) - { - return E(index).second; - } - assert(0); - return E(index).second; /* Doesn't look nice but removes - warning on non-void function not - returning. */ - } - - void set(const T& key, const U& value) - // Set a new or existing value under the key, to the value. - { - int index = find_index(key); - if (index >= 0) - { - E(index).second = value; - return; - } - - // Entry under key doesn't exist. - add(key, value); - } - - int erase(const T& key) - { - int i = find_index(key); - if (i >= 0) - { - entry* e = &E(i); - if (e->is_empty() == false) - { - e->clear(); - } - return 1; - } - return 0; - } - - void add(const T& key, const U& value) - // Add a new value to the hash table, under the specified key. - { - assert(find_index(key) == -1); -// if (find_index(key) != -1) -// { -// return; -// } - - check_expand(); - assert(m_table); - m_table->m_entry_count++; - - unsigned int hash_value = hash_functor()(key); - int index = hash_value & m_table->m_size_mask; - - entry* natural_entry = &(E(index)); - - if (natural_entry->is_empty()) - { - // Put the new entry in. - new (natural_entry) entry(key, value, -1, hash_value); - } - else - { - // Find a blank spot. - int blank_index = index; - for (;;) - { - blank_index = (blank_index + 1) & m_table->m_size_mask; - if (E(blank_index).is_empty()) break; // found it - } - entry* blank_entry = &E(blank_index); - - if (int(natural_entry->m_hash_value & m_table->m_size_mask) == index) - { - // Collision. Link into this chain. - - // Move existing list head. - new (blank_entry) entry(*natural_entry); // placement new, copy ctor - - // Put the new info in the natural entry. - natural_entry->first = key; - natural_entry->second = value; - natural_entry->m_next_in_chain = blank_index; - natural_entry->m_hash_value = hash_value; - } - else - { - // Existing entry does not naturally - // belong in this slot. Existing - // entry must be moved. - - // Find natural location of collided element (i.e. root of chain) - int collided_index = natural_entry->m_hash_value & m_table->m_size_mask; - for (;;) - { - entry* e = &E(collided_index); - if (e->m_next_in_chain == index) - { - // Here's where we need to splice. - new (blank_entry) entry(*natural_entry); - e->m_next_in_chain = blank_index; - break; - } - collided_index = e->m_next_in_chain; - assert(collided_index >= 0 && collided_index <= m_table->m_size_mask); - } - - // Put the new data in the natural entry. - natural_entry->first = key; - natural_entry->second = value; - natural_entry->m_hash_value = hash_value; - natural_entry->m_next_in_chain = -1; - } - } - } - - void resize(int n) - { - clear(); - } - - void clear() - // Remove all entries from the hash table. - { - if (m_table) - { - // Delete the entries. - for (int i = 0, n = m_table->m_size_mask; i <= n; i++) - { - entry* e = &E(i); - if (e->is_empty() == false) - { - e->clear(); - } - } - tu_free(m_table, sizeof(table) + sizeof(entry) * (m_table->m_size_mask + 1)); - m_table = NULL; - } - } - - bool empty() const - { - return is_empty(); - } - - bool is_empty() const - // Returns true if the hash is empty. - { - return m_table == NULL || m_table->m_entry_count == 0; - } - - - bool get(const T& key, U* value) const - // Retrieve the value under the given key. - // - // If there's no value under the key, then return false and leave - // *value alone. - // - // If there is a value, return true, and set *value to the entry's - // value. - // - // If value == NULL, return true or false according to the - // presence of the key, but don't touch *value. - { - int index = find_index(key); - if (index >= 0) - { - if (value) { - *value = E(index).second; - } - return true; - } - return false; - } - - int size() const - { - return m_table == NULL ? 0 : m_table->m_entry_count; - } - - void check_expand() - // Resize the hash table to fit one more entry. Often this - // doesn't involve any action. - { - if (m_table == NULL) { - // Initial creation of table. Make a minimum-sized table. - set_raw_capacity(16); - } else if (m_table->m_entry_count * 3 > (m_table->m_size_mask + 1) * 2) { - // Table is more than 2/3rds full. Expand. - set_raw_capacity(m_table->m_entry_count * 2); - } - } - - - void resize(size_t n) - // Hint the bucket count to >= n. - { - // Not really sure what this means in relation to - // STLport's hash_map... they say they "increase the - // bucket count to at least n" -- but does that mean - // their real capacity after resize(n) is more like - // n*2 (since they do linked-list chaining within - // buckets?). - set_capacity(n); - } - - void set_capacity(int new_size) - // Size the hash so that it can comfortably contain the given - // number of elements. If the hash already contains more - // elements than new_size, then this may be a no-op. - { - int new_raw_size = (new_size * 3) / 2; - if (new_raw_size < size()) { return; } - - set_raw_capacity(new_raw_size); - } - - // Behaves much like std::pair - class entry - { - public: - int m_next_in_chain; // internal chaining for collisions - size_t m_hash_value; // avoids recomputing. Worthwhile? - T first; - U second; - - entry() : m_next_in_chain(-2) {} - entry(const entry& e) - : m_next_in_chain(e.m_next_in_chain), m_hash_value(e.m_hash_value), first(e.first), second(e.second) - { - } - entry(const T& key, const U& value, int next_in_chain, int hash_value) - : m_next_in_chain(next_in_chain), m_hash_value(hash_value), first(key), second(value) - { - } - bool is_empty() const { return m_next_in_chain == -2; } - bool is_end_of_chain() const { return m_next_in_chain == -1; } - - void clear() - { - first.~T(); // placement delete - second.~U(); // placement delete - m_next_in_chain = -2; - } - }; - - // Iterator API, like STL. - - class const_iterator - { - public: - T get_key() const { return m_hash->E(m_index).first; } - U get_value() const { return m_hash->E(m_index).second; } - - const entry& operator*() const - { - assert(is_end() == false && (m_hash->E(m_index).is_empty() == false)); - return m_hash->E(m_index); - } - const entry* operator->() const { return &(operator*()); } - - void operator++() - { - assert(m_hash); - - // Find next non-empty entry. - if (m_index <= m_hash->m_table->m_size_mask) - { - m_index++; - while (m_index <= m_hash->m_table->m_size_mask - && m_hash->E(m_index).is_empty()) - { - m_index++; - } - } - } - - bool operator==(const const_iterator& it) const - { - if (is_end() && it.is_end()) - { - return true; - } - else - { - return - m_hash == it.m_hash - && m_index == it.m_index; - } - } - - bool operator!=(const const_iterator& it) const { return ! (*this == it); } - - - bool is_end() const - { - return - m_hash == NULL - || m_hash->m_table == NULL - || m_index > m_hash->m_table->m_size_mask; - } - - protected: - friend class hash; - - const_iterator(const hash* h, int index) - : - m_hash(h), - m_index(index) - { - } - - const hash* m_hash; - int m_index; - }; - friend class const_iterator; - - // non-const iterator; get most of it from const_iterator. - class iterator : public const_iterator - { - public: - // Allow non-const access to entries. - entry& operator*() const - { - assert(is_end() == false); - return const_cast(m_hash)->E(m_index); - } - entry* operator->() const { return &(operator*()); } - - private: - friend class hash; - - iterator(hash* h, int i0) - : - const_iterator(h, i0) - { - } - }; - friend class iterator; - - - iterator begin() - { - if (m_table == 0) return iterator(NULL, 0); - - // Scan til we hit the first valid entry. - int i0 = 0; - while (i0 <= m_table->m_size_mask - && E(i0).is_empty()) - { - i0++; - } - return iterator(this, i0); - } - iterator end() { return iterator(NULL, 0); } - - const_iterator begin() const { return const_cast(this)->begin(); } - const_iterator end() const { return const_cast(this)->end(); } - - iterator find(const T& key) - { - int index = find_index(key); - if (index >= 0) - { - return iterator(this, index); - } - return iterator(NULL, 0); - } - - const_iterator find(const T& key) const { return const_cast(this)->find(key); } - -private: - void operator=(const hash& h) { assert(0); } // @@ TODO - - int find_index(const T& key) const - // Find the index of the matching entry. If no match, then return -1. - { - if (m_table == NULL) return -1; - - size_t hash_value = hash_functor()(key); - int index = hash_value & m_table->m_size_mask; - - const entry* e = &E(index); - if (e->is_empty()) return -1; - if (int(e->m_hash_value & m_table->m_size_mask) != index) return -1; // occupied by a collider - - for (;;) - { - assert((e->m_hash_value & m_table->m_size_mask) == (hash_value & m_table->m_size_mask)); - - if (e->m_hash_value == hash_value && e->first == key) - { - // Found it. - return index; - } - assert(! (e->first == key)); // keys are equal, but hash differs! - - // Keep looking through the chain. - index = e->m_next_in_chain; - if (index == -1) break; // end of chain - - assert(index >= 0 && index <= m_table->m_size_mask); - e = &E(index); - - assert(e->is_empty() == false); - } - return -1; - } - - // Helpers. - entry& E(int index) - { - assert(m_table); - assert(index >= 0 && index <= m_table->m_size_mask); - return *(((entry*) (m_table + 1)) + index); - } - const entry& E(int index) const - { - assert(m_table); - assert(index >= 0 && index <= m_table->m_size_mask); - return *(((entry*) (m_table + 1)) + index); - } - - - void set_raw_capacity(int new_size) - // Resize the hash table to the given size (Rehash the - // contents of the current table). The arg is the number of - // hash table entries, not the number of elements we should - // actually contain (which will be less than this). - { - if (new_size <= 0) { - // Special case. - clear(); - return; - } - - // Force new_size to be a power of two. - int bits = fchop(log2((float)(new_size-1)) + 1); - assert((1 << bits) >= new_size); - - new_size = 1 << bits; - - hash new_hash; - new_hash.m_table = (table*) tu_malloc(sizeof(table) + sizeof(entry) * new_size); - assert(new_hash.m_table); // @@ need to throw (or something) on malloc failure! - - new_hash.m_table->m_entry_count = 0; - new_hash.m_table->m_size_mask = new_size - 1; - {for (int i = 0; i < new_size; i++) - { - new_hash.E(i).m_next_in_chain = -2; // mark empty - }} - - // Copy stuff to new_hash - if (m_table) - { - for (int i = 0, n = m_table->m_size_mask; i <= n; i++) - { - entry* e = &E(i); - if (e->is_empty() == false) - { - // Insert old entry into new hash. - new_hash.add(e->first, e->second); - e->clear(); // placement delete of old element - } - } - - // Delete our old data buffer. - tu_free(m_table, sizeof(table) + sizeof(entry) * (m_table->m_size_mask + 1)); - } - - // Steal new_hash's data. - m_table = new_hash.m_table; - new_hash.m_table = NULL; - } - - struct table - { - int m_entry_count; - int m_size_mask; - // entry array goes here! - }; - table* m_table; -}; // WIN32 hash end -#else - -template > -class DSOEXPORT hash : public __gnu_cxx::hash_map -{ -public: - typedef typename __gnu_cxx::hash_map::const_iterator const_iterator; - typedef typename __gnu_cxx::hash_map::iterator iterator; - - // extra convenience interfaces - void add(const T& key, const U& value) - { - assert(find(key) == this->end()); - (*this)[key] = value; - } - - bool get(const T& key, U* value) const - // Retrieve the value under the given key. - // - // If there's no value under the key, then return false and leave - // *value alone. - // - // If there is a value, return true, and set *value to the entry's - // value. - // - // If value == NULL, return true or false according to the - // presence of the key, but don't touch *value. - { - const_iterator it = find(key); - if (it != this->end()) - { - if (value) *value = it->second; - return true; - } - else - { - return false; - } - } -}; -#endif //GNUC - -} // namespace gnash - - -// -// Homemade containers; almost strict subsets of STL. -// - +namespace gnash {} #if defined(_WIN32) || defined(WIN32) #pragma warning(disable : 4345) // in MSVC 7.1, warning about placement new POD default initializer #endif // _WIN32 -template -class string_hash_functor -// Computes a hash of a string-like object (something that has -// ::length() and ::[int]). -{ -public: - size_t operator()(const T& data) const - { - int size = data.length(); - - return bernstein_hash((const char*) data, size); - } -}; - -template -class stringi_hash_functor -// Computes a case-insensitive hash of a string-like object (something that has -// ::length() and ::[int] and tolower(::[])). -{ -public: - size_t operator()(const T& data) const - { - int size = data.length(); - - return bernstein_hash_case_insensitive((const char*) data, size); - } -}; #endif // __CONTAINER_H__ Index: server/fontlib.cpp =================================================================== RCS file: /sources/gnash/gnash/server/fontlib.cpp,v retrieving revision 1.29 retrieving revision 1.30 diff -u -b -r1.29 -r1.30 --- server/fontlib.cpp 15 Jun 2007 15:00:29 -0000 1.29 +++ server/fontlib.cpp 23 Jun 2007 12:34:32 -0000 1.30 @@ -5,7 +5,7 @@ // A module to take care of all of gnash's loaded fonts. -/* $Id: fontlib.cpp,v 1.29 2007/06/15 15:00:29 strk Exp $ */ +/* $Id: fontlib.cpp,v 1.30 2007/06/23 12:34:32 bjacques Exp $ */ #include "container.h" #include "tu_file.h" @@ -643,7 +643,7 @@ bool try_to_reuse_previous_image( const rendered_glyph_info& rgi, - const hash& image_hash) + const map& image_hash) // See if we've already packed an identical glyph image for // another glyph. If so, then reuse it, and return true. // If no reusable image, return false. @@ -652,8 +652,16 @@ // fonts that use the same dummy glyph for many undefined // characters. { + const map::const_iterator image = + image_hash.find(rgi.m_image_hash); + + const rendered_glyph_info* identical_image = NULL; - if (image_hash.get(rgi.m_image_hash, &identical_image)) + if (image != image_hash.end()) { + identical_image = (*image).second; + } + + if (identical_image) { // Found a match. But is it *really* a match? Do a // bitwise compare. @@ -783,7 +791,7 @@ // Share identical texture data where possible, by // doing glyph image comparisons. - hash image_hash; + map image_hash; // Pack the glyphs. {for (int i = 0, n = glyph_info.size(); i < n; ) @@ -850,9 +858,11 @@ tg)); // Add this into the hash so it can possibly be reused. - if (image_hash.get(rgi.m_image_hash, NULL) == false) + map::const_iterator image = + image_hash.find(rgi.m_image_hash); + if (image == image_hash.end()) { - image_hash.add(rgi.m_image_hash, &rgi); + image_hash[rgi.m_image_hash] = &rgi; } packed[index] = true; Index: server/impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/impl.cpp,v retrieving revision 1.109 retrieving revision 1.110 diff -u -b -r1.109 -r1.110 --- server/impl.cpp 15 Jun 2007 15:00:29 -0000 1.109 +++ server/impl.cpp 23 Jun 2007 12:34:32 -0000 1.110 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: impl.cpp,v 1.109 2007/06/15 15:00:29 strk Exp $ */ +/* $Id: impl.cpp,v 1.110 2007/06/23 12:34:32 bjacques Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -646,7 +646,8 @@ static MovieLibrary s_movie_library; -static hash< movie_definition*, boost::intrusive_ptr > s_movie_library_inst; +typedef std::map< movie_definition*, boost::intrusive_ptr > library_container_t; +static library_container_t s_movie_library_inst; static std::vector s_extern_sprites; static std::string s_workdir; @@ -742,11 +743,11 @@ { // Is the movie instance already in the library? { - boost::intrusive_ptr m; - s_movie_library_inst.get(md, &m); - if (m != NULL) + library_container_t::const_iterator i = s_movie_library_inst.find(md); + if (i != s_movie_library_inst.end()) { // Return cached movie instance. + boost::intrusive_ptr m((*i).second); return m.get(); } } @@ -762,7 +763,7 @@ } else { - s_movie_library_inst.add(md, mov); + s_movie_library_inst[md] = mov; } return mov; From MAILER-DAEMON Sat Jun 23 08:42:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I24wK-0008MF-2B for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 08:42:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I24wI-0008M7-9e for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:42:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I24wG-0008Lt-9d for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:42:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I24wG-0008Lq-4z for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:42:04 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I24wF-0005wO-Hd for gnash-commit@gnu.org; Sat, 23 Jun 2007 08:42:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I24wF-0008Tm-7J for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:42:03 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I24wF-0008Th-3X for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:42:03 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Sat, 23 Jun 2007 12:42:03 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash plugin/klash/klash.cpp libbase/Thread.cpp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 12:42:06 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/23 12:42:03 Removed files: plugin/klash : klash.cpp libbase : Thread.cpp Thread.h container.cpp Log message: Remove unused files containing deprecated code from the repository. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/klash.cpp?cvsroot=gnash&r1=1.28&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Thread.cpp?cvsroot=gnash&r1=1.12&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Thread.h?cvsroot=gnash&r1=1.6&r2=0 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.cpp?cvsroot=gnash&r1=1.15&r2=0 Patches: Index: plugin/klash/klash.cpp =================================================================== RCS file: plugin/klash/klash.cpp diff -N plugin/klash/klash.cpp --- plugin/klash/klash.cpp 15 Jun 2007 15:00:26 -0000 1.28 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,707 +0,0 @@ -// klash.cpp: KDE flash player plugin, for Gnash. -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -// - -/* $Id: klash.cpp,v 1.28 2007/06/15 15:00:26 strk Exp $ */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include //For exit() -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "gnash.h" -#include "log.h" -#include "utility.h" -#include "container.h" -#include "tu_file.h" -#include "tu_types.h" -#include "xmlsocket.h" -#include "movie_definition.h" -#include "sprite_instance.h" -#include "movie_root.h" -#include "URL.h" -#include "rc.h" - -using namespace std; -using namespace gnash; - -static void usage (); -static void version_and_copyright(); - -int xml_fd; // FIXME: this is the file descriptor - // from XMLSocket::connect(). This - // needs to be propogated up through - // the layers properly, but first I - // want to make sure it all works. - -#define OVERSIZE 1.0f - -static int doneYet = 0; - -static float s_scale = 1.0f; -//static bool s_antialiased = false; -//static bool s_start_waiting = false; -static int s_bit_depth = 16; -static bool s_background = true; - -//static QGLContext *qglcontext; -typedef enum {IDLE_MOVIE, PLAY_MOVIE, RESTART_MOVIE, PAUSE_MOVIE, STOP_MOVIE, STEP_FORWARD, STEP_BACKWARD, JUMP_FORWARD, JUMP_BACKWARD, QUIT_MOVIE} movie_state_e; - -movie_state_e movie_menu_state; - -int mouse_x; -int mouse_y; -int mouse_buttons; - -int width; -int height; - -unsigned long windowid = 0; - -class EmbedWidget : public QGLWidget -{ - Q_OBJECT -public: - EmbedWidget (WId embed) { - create (embed); - qwidget = this; - qmenu = new QPopupMenu(this); - qmenu->insertItem(_("Play Movie"), this, SLOT(menuitem_play_callback())); - qmenu->insertItem(_("Pause Movie"), this, SLOT(menuitem_pause_callback())); - qmenu->insertItem(_("Stop Movie"), this, SLOT(menuitem_stop_callback())); - qmenu->insertItem(_("Restart Movie"), this, SLOT(menuitem_restart_callback())); - qmenu->insertItem(_("Step Forward"), this, SLOT(menuitem_step_forward_callback())); - qmenu->insertItem(_("Step Backward"), this, SLOT( menuitem_step_backward_callback())); - qmenu->insertItem(_("Jump Forward"), this, SLOT(menuitem_jump_forward_callback())); - qmenu->insertItem(_("Jump Backward"), this, SLOT(menuitem_jump_backward_callback())); - qmenu->insertItem(_("Quit Gnash"), this, SLOT(menuitem_quit_callback())); - -// qmenu->insertItem("&About", this, SLOT(about()), CTRL+Key_H); - } - -public slots: - void menuitem_restart_callback(); - void menuitem_quit_callback(); - void menuitem_play_callback(); - void menuitem_pause_callback(); - void menuitem_stop_callback(); - void menuitem_step_forward_callback(); - void menuitem_step_backward_callback(); - void menuitem_jump_forward_callback(); - void menuitem_jump_backward_callback(); - void about(); - -protected: - void resizeEvent( QResizeEvent * ); - void contextMenuEvent(QContextMenuEvent *event); -signals: - void explain( const QString& ); -private: - QPopupMenu *qmenu; - QGLWidget *qwidget; -}; - -#include "klash.moc" - -void -EmbedWidget::contextMenuEvent(QContextMenuEvent*) -{ -// printf("Got Right Click!\n"); - qmenu->exec(); -} - -void EmbedWidget::about() -{ - QMessageBox::about( this, _("Klash"), - _("The Gnash Flash player for KDE.\n")); -} - -void -EmbedWidget::menuitem_restart_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = RESTART_MOVIE; -} -void -EmbedWidget::menuitem_quit_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = QUIT_MOVIE; -} -void -EmbedWidget::menuitem_play_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = PLAY_MOVIE; -} -void -EmbedWidget::menuitem_pause_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = PAUSE_MOVIE; -} -void -EmbedWidget::menuitem_stop_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = STOP_MOVIE; -} -void -EmbedWidget::menuitem_step_forward_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = STEP_FORWARD; -} -void -EmbedWidget::menuitem_step_backward_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = STEP_BACKWARD; -} -void -EmbedWidget::menuitem_jump_forward_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = JUMP_FORWARD; -} -void -EmbedWidget::menuitem_jump_backward_callback() -{ -// GNASH_REPORT_FUNCTION; - movie_menu_state = JUMP_BACKWARD; -} - -void EmbedWidget::resizeEvent(QResizeEvent *event) -{ -// GNASH_REPORT_FUNCTION; -// qwidget->resize(width, height); -// this->resize(width, height); -} - -// Registering a file opener has been obsoleted -#if 0 -static tu_file* -file_opener(const char* url) -// Callback function. This opens files for the library. -{ -// GNASH_REPORT_FUNCTION; - - if (strcmp(url, "-") == 0) { - FILE *newin = fdopen(dup(0),"rb"); - return new tu_file(newin, false); - } else { - return new tu_file(url, "rb"); - } -} -#endif -// 0 - -static void -fs_callback(gnash::sprite_instance* movie, const char* command, const char* args) -// For handling notification callbacks from ActionScript. -{ - log_msg("fs_callback: '"); - log_msg(command); - log_msg("' '"); - log_msg(args); - log_msg("'\n"); -} - -int -main(int argc, char *argv[]) -{ - int c; - int render_arg; - std::vector infiles; - string url; - QApplication *app = new QApplication (argc, argv); - QGLWidget *qwidget; - assert(tu_types_validate()); - - float exit_timeout = 0; - bool do_render = true; - bool do_sound = true; - bool do_loop = true; - bool sdl_abort = true; - int delay = 31; - float tex_lod_bias; - struct timeval now; - static struct timeval start; - - unsigned int ticks; - - // -1.0 tends to look good. - tex_lod_bias = -1.2f; - - // scan for the two main long GNU options - for (c=0; c 0) { - dbglogfile.setVerbosity(rcfile.verbosityLevel()); - } - - if (rcfile.useActionDump()) { - dbglogfile.setActionDump(true); - dbglogfile.setVerbosity(); - } - - if (rcfile.useParserDump()) { - dbglogfile.setParserDump(true); - dbglogfile.setVerbosity(); - } - - if (rcfile.getTimerDelay() > 0) { - delay = rcfile.getTimerDelay(); - log_msg (_("Timer delay set to %d milliseconds"), delay); - } - - while ((c = getopt (argc, argv, "hvaps:cd:m:x:r:t:b:1wj:k:u:")) != -1) { - switch (c) { - case 'h': - usage (); - break; - case 'v': - dbglogfile.setVerbosity(); - log_msg (_("Verbose output turned on")); - break; - case 'w': - dbglogfile.setWriteDisk(true); - log_msg (_("Logging to disk enabled.")); - break; - case 'a': - dbglogfile.setActionDump(true); - break; - case 'p': - dbglogfile.setParserDump(true); - break; - case 's': - s_scale = fclamp((float) atof(optarg), 0.01f, 100.f); - break; - case 'c': - sdl_abort = false; - break; - case 'd': - delay = strtol(optarg, NULL, 0); - break; - case 'u': - url = optarg; - log_msg(_("Setting root URL to: %s"), url); - break; - case 'j': - width = strtol(optarg, NULL, 0); - log_msg (_("Setting width to: %d", width); - break; - case 'k': - height = strtol(optarg, NULL, 0); - log_msg (_("Setting height to: %d", height); - break; - case 'x': - windowid = strtol(optarg, NULL, 0); - break; - case 'm': - tex_lod_bias = (float) atof(optarg); - break; - case '1': - do_loop = false; - break; - case 'r': - render_arg = strtol(optarg, NULL, 0); - switch (render_arg) { - case 0: - // Disable both - do_render = false; - do_sound = false; - break; - case 1: - // Enable both - do_render = true; - do_sound = true; - break; - case 2: - // Disable just sound - do_render = true; - do_sound = false; - break; - default: - log_error ( - _("-r must be followed by 0, 1 or 2 (%d is invalid)"), - render_arg); - break; - }; - break; - case 't': - exit_timeout = (float) atof(optarg); - break; - case 'b': - s_bit_depth = atoi(optarg); - break; - } - } - - // get the file name from the command line - while (optind < argc) { - // Some options set variables, like ip=127.0.0.1 - if (strchr(argv[optind], '=')) { - log_error (_("Got variable option on command line!"); - } else { - infiles.push_back(argv[optind]); - } - optind++; - } - - // Remove the logfile that's created by default, since leaving a short - // file is confusing. - if (dbglogfile.getWriteDisk() == false) { - dbglogfile.removeLog(); - } - - // No file names were supplied - if (infiles.size() == 0) { - printf(_("No input files")); - usage(); - exit(1); - } - - // registering a file_opener has been obsoleted - //gnash::register_file_opener_callback(file_opener); - gnash::register_fscommand_callback(fs_callback); - - gnash::sound_handler *sound = NULL; - gnash::render_handler *render = NULL; - if (do_render) { - if (do_sound) { -#ifdef SOUND_SDL - sound = gnash::create_sound_handler_sdl(); - gnash::set_sound_handler(sound); -#endif -#ifdef SOUND_GST - sound = gnash::create_sound_handler_gst(); - gnash::set_sound_handler(sound); -#endif - } - render = gnash::create_render_handler_ogl(); - gnash::set_render_handler(render); - } - - // Get info about the width & height of the movie. - int movie_version = 0; - int movie_width = 0; - int movie_height = 0; - float movie_fps = 30.0f; - gnash::get_movie_info(URL(infiles[0]), &movie_version, &movie_width, - &movie_height, &movie_fps, NULL, NULL); - if (movie_version == 0) { - fprintf(stderr, _("error: can't get info about %s\n"), infiles[0]); - exit(1); - } - - if (!width) { - width = int(movie_width * s_scale); - } - if (!height) { - height = int(movie_height * s_scale); - } - - if (do_render) { - qwidget = new EmbedWidget (windowid); - qwidget->makeCurrent(); - qwidget->resize(width, height); - qwidget->show(); - - // Change the LOD BIAS values to tweak blurriness. - if (tex_lod_bias != 0.0f) { -#ifdef FIX_I810_LOD_BIAS - // If 2D textures weren't previously enabled, enable - // them now and force the driver to notice the update, - // then disable them again. - if (!glIsEnabled(GL_TEXTURE_2D)) { - // Clearing a mask of zero *should* have no - // side effects, but coupled with enbling - // GL_TEXTURE_2D it works around a segmentation - // fault in the driver for the Intel 810 chip. - glEnable(GL_TEXTURE_2D); - glClear(0); - glDisable(GL_TEXTURE_2D); - } -#endif // FIX_I810_LOD_BIAS - glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, tex_lod_bias); - } - - // Turn on alpha blending. - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - - // Turn on line smoothing. Antialiased lines can be used to - // smooth the outsides of shapes. - glEnable(GL_LINE_SMOOTH); - glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); // GL_NICEST, GL_FASTEST, GL_DONT_CARE - - glMatrixMode(GL_PROJECTION); - glOrtho(-OVERSIZE, OVERSIZE, OVERSIZE, -OVERSIZE, -1, 1); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - // We don't need lighting effects - glDisable(GL_LIGHTING); - // glColorPointer(4, GL_UNSIGNED_BYTE, 0, *); - // glInterleavedArrays(GL_T2F_N3F_V3F, 0, *) - glPushAttrib (GL_ALL_ATTRIB_BITS); - } - - // Load the actual movie. - gnash::movie_definition* md = gnash::create_library_movie(URL(infiles[0])); - if (md == NULL) { - fprintf(stderr, _("error: can't create a movie from '%s'\n"), infiles[0]); - exit(1); - } - gnash::sprite_instance* m = create_library_movie_inst(md); - if (m == NULL) { - fprintf(stderr, _("error: can't create movie instance\n")); - exit(1); - } - gnash::set_current_root(m); - - // Mouse state. - float speed_scale = 1.0f; - unsigned int start_ticks = 0; - gettimeofday(&start, NULL); - if (do_render) { - gettimeofday(&now, NULL); - start_ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; - } - unsigned int last_ticks = start_ticks; - int frame_counter = 0; - int last_logged_fps = last_ticks; - - for (;;) { - uint32_t ticks; - if (do_render) { - gettimeofday(&now, NULL); - ticks=(now.tv_sec-start.tv_sec)*1000+(now.tv_usec-start.tv_usec)/1000; - } else { - // Simulate time. - ticks = last_ticks + (uint32_t) (1000.0f / movie_fps); - } - int delta_ticks = ticks - last_ticks; - float delta_t = delta_ticks / 1000.f; - last_ticks = ticks; - - // Check auto timeout counter. - if (exit_timeout > 0 - && ticks - start_ticks > (uint32_t) (exit_timeout * 1000)) { - // Auto exit now. - break; - } - - if (do_render) { - } - -// printf("%s(%d): Frame count is %d\n", __PRETTY_FUNCTION__, __LINE__, -// md->get_frame_count()); -// movie_menu_state = IDLE_MOVIE; - QApplication::eventLoop()->processEvents(QEventLoop::AllEvents, 3); - switch (movie_menu_state) { - case PLAY_MOVIE: - m->set_play_state(gnash::sprite_instance::PLAY); - break; - // Control-R restarts the movie - case RESTART_MOVIE: - m->restart(); - break; - case STOP_MOVIE: - m->set_play_state(gnash::sprite_instance::STOP); - break; - case PAUSE_MOVIE: - if (m->get_play_state() == gnash::sprite_instance::STOP) { - m->set_play_state(gnash::sprite_instance::PLAY); - } else { - m->set_play_state(gnash::sprite_instance::STOP); - } - break; - // go backward one frame - case STEP_BACKWARD: - m->goto_frame(m->get_current_frame()-1); - break; - // go forward one frame - case STEP_FORWARD: - m->goto_frame(m->get_current_frame()+1); - break; - // jump goes backward 10 frames - case JUMP_BACKWARD: - m->goto_frame(m->get_current_frame()-10); - break; - // jump goes forward 10 frames - case JUMP_FORWARD: - if ((m->get_current_frame()+10) < md->get_frame_count()) { - m->goto_frame(m->get_current_frame()+10); - } - break; - case QUIT_MOVIE: - goto done; - break; - default: - break; - }; - m = gnash::get_current_root(); - - movie_root* root = dynamic_cast(m); - assert(root); - root->set_display_viewport(0, 0, width, height); - root->set_background_alpha(s_background ? 1.0f : 0.05f); - - root->notify_mouse_state(mouse_x, mouse_y, mouse_buttons); - - m->advance(delta_t *speed_scale); - - if (do_render) { - glDisable(GL_DEPTH_TEST); // Disable depth testing. - glDrawBuffer(GL_BACK); - } - m->display(); - frame_counter++; - - qwidget->swapBuffers(); - - // See if we should exit. - if (do_loop == false - && m->get_current_frame() + 1 == md->get_frame_count()) { - // We're reached the end of the movie; exit. - break; - } - } - - done: - - doneYet = 1; - - if (md) { - md->drop_ref(); - } - - if (m) { - m->drop_ref(); - } - delete sound; - delete render; - - // For testing purposes, throw some keypresses - // to make sure the key handler is properly using weak - // references to listeners. - gnash::notify_key_event(gnash::key::A, true); - gnash::notify_key_event(gnash::key::B, true); - gnash::notify_key_event(gnash::key::C, true); - - // Clean up as much as possible, so valgrind will help find actual leaks. - gnash::clear(); - - return 0; -} - - -void -version_and_copyright() -{ - printf (_( -"Gnash " VERSION "\n" -"Copyright (C) 2006, 2007 Free Software Foundation, Inc.\n" -"Gnash comes with NO WARRANTY, to the extent permitted by law.\n" -"You may redistribute copies of Gnash under the terms of the GNU General\n" -"Public License. For more information, see the file named COPYING.\n" - )); -} - - -void -usage() -{ - printf("%s%s%s", _( - "usage: gnash [options] movie_file.swf\n" - "\n" - "Plays a SWF (Shockwave Flash) movie\n" - "options:\n" - "\n" - " -h, --help Print this info.\n" - " -s Scale the movie up/down by the specified factor\n" - " -c Produce a core file instead of letting SDL trap it\n" - " -d num Number of milliseconds to delay in main loop\n" - " -v Be verbose; i.e. print log messages to stdout\n" - " -va Be verbose about movie Actions\n" - " -vp Be verbose about parsing the movie\n"), _( - " -m Specify the texture LOD bias (float, default is -1)\n" - " -x X11 Window ID for display\n" - " -w Produce the disk based debug log\n" - " -1 Play once; exit when/if movie reaches the last frame\n" - " -r <0|1|2> 0 disables rendering & sound (good for batch tests)\n" - " 1 enables rendering & sound (default setting)\n" - " 2 enables rendering & disables sound\n" - " -t Timeout and exit after the specified number of seconds\n" - " -b Bit depth of output window (16 or 32, default is 16)\n" - " --version Print gnash's version number and exit\n" - "\n"), _( - "keys:\n" - " CTRL-Q, CTRL-W, ESC Quit/Exit\n" - " CTRL-P Toggle Pause\n" - " CTRL-R Restart the movie\n" - " CTRL-[ or kp- Step back one frame\n" - " CTRL-] or kp+ Step forward one frame\n" -// " CTRL-A Toggle antialiasing (doesn't work)\n" -// " CTRL-T Debug. Test the set_variable() function\n" -// " CTRL-G Debug. Test the get_variable() function\n" -// " CTRL-M Debug. Test the call_method() function\n" - " CTRL-B Toggle background color\n" - )); -} Index: libbase/Thread.cpp =================================================================== RCS file: libbase/Thread.cpp diff -N libbase/Thread.cpp --- libbase/Thread.cpp 28 May 2007 15:41:01 -0000 1.12 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,201 +0,0 @@ -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -// - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#include "log.h" -#include "tu_types.h" -#include "Thread.h" - -using namespace std; - -namespace gnash { - -Thread::Thread(void) - -{ - _debug = false; - printf("%s: Entered\n", __PRETTY_FUNCTION__); -} - -Thread::~Thread(void) -{ - printf("%s: Entered\n", __PRETTY_FUNCTION__); - _debug = false; -// destroyThread((void *)this); -} - -/// \brief Create a POSIX thread -/// -/// The new thread is created in a detached state -pthread_t * -Thread::createThread(void *arg, ThreadPtr_t funcptr) -{ - pthread_attr_init(&_tattr); - -#ifndef __riscos__ - if (pthread_attr_setscope(&_tattr, PTHREAD_SCOPE_SYSTEM)) { - log_msg("Couldn't set thread scope, %s\n", strerror(errno)); - } -#endif - -#if 0 - // on non-Solaris OS, default stack may be too small. This seems - // to only effect HPUX versions before 11.i (11.11) on the PARISC. - if (pthread_attr_setstacksize(&_type, 1048576)) { - log_msg("Couldn't set thread stacksize, %s\n", strerror(errno)); - } -#endif -#if 0 - if (pthread_attr_setschedparam(&_tattr, SCHED_FIFO)) -// if (pthread_attr_setdetachstate(&_tattr, PTHREAD_CREATE_JOINABLE)) - { - DBG_MSG(DBG_EROR, "Couldn't set thread scheduler state, %s", - strerror(errno)); - } -#endif - -// if (pthread_attr_setdetachstate(&_tattr, PTHREAD_CREATE_JOINABLE)) { - if (pthread_attr_setdetachstate(&_tattr, PTHREAD_CREATE_DETACHED)) { - log_msg("Couldn't set thread detach state, %s\n", strerror(errno)); - } - - if (pthread_create(&_thread, &_tattr, funcptr, arg)) { - log_msg("Couldn't create the thread, %s\n", strerror(errno)); - } - -// // guarantee thread is independent and parallel -// if (pthread_detach(_thread)) { -// log_msg("Couldn't detach the thread, %s\n", strerror(errno)); -// } - - // free attribute object - pthread_attr_destroy(&_tattr); - - return &_thread; -} - -/// \brief Destroy a POSIX thread -void -Thread::destroyThread(void *retval) -{ - log_msg("%s: Entered\n", __PRETTY_FUNCTION__); - pthread_exit(retval); -} - -void -Thread::dump(void) -{ - int val; - struct sched_param param; - - log_msg("Debugging flag is "); - if (_debug) { - log_msg("\t\tON\n"); - } else { - log_msg("\t\tOFF\n"); - } - -// _tattr - - log_msg("The detached thread state is \t"); - pthread_attr_getdetachstate(&_tattr, &val); - switch (val) { - case PTHREAD_CREATE_JOINABLE: - log_msg("PTHREAD_CREATE_JOINABLE\n"); - break; - case PTHREAD_CREATE_DETACHED: - log_msg("PTHREAD_CREATE_DETACHED\n"); - break; - default: - log_msg("NONE SPECIFIED\n"); - break; - } -#ifndef __riscos__ - log_msg("The thread schedule policy is \t"); - pthread_attr_getschedpolicy(&_tattr, &val); - switch (val) { - case SCHED_OTHER: - log_msg("SCHED_OTHER\n"); - break; - case SCHED_RR: - log_msg("SCHED_RR\n"); - break; - case SCHED_FIFO: - log_msg("SCHED_FIFO\n"); - break; - default: - log_msg("NONE SPECIFIED\n"); - break; - } - - pthread_attr_getschedparam(&_tattr, ¶m); -// log_msg("The schedule parameter is " << param); - - log_msg("The inherit scheduler is \t"); - pthread_attr_getinheritsched(&_tattr, &val); - switch (val) { - case PTHREAD_EXPLICIT_SCHED: - log_msg("PTHREAD_EXPLICIT_SCHED\n"); - break; - case PTHREAD_INHERIT_SCHED: - log_msg("PTHREAD_INHERIT_SCHED\n"); - break; - default: - log_msg("NONE SPECIFIED\n"); - break; - } - - log_msg("The scope is \t\t\t"); - pthread_attr_getscope(&_tattr, &val); - switch (val) { - case PTHREAD_SCOPE_SYSTEM: - log_msg("PTHREAD_SCOPE_SYSTEM\n"); - break; - case PTHREAD_SCOPE_PROCESS: - log_msg("PTHREAD_SCOPE_PROCESS\n"); - break; - default: - log_msg("NONE SPECIFIE\n"); - break; - } -#endif -} - -/// \brief Setup callback for thread exit - -/// This installs a function pointer that gets called when -/// this thread exists. -void -Thread::cleanupThread(ThreadCleanupPtr_t funcptr, void* /*arg*/) -{ - // Install the handler into the list - pthread_cleanup_push(funcptr, NULL); - - // Execute the handler, which waits till the thread exits - pthread_cleanup_pop(1); -} - -// EOF namespace gnash -} Index: libbase/Thread.h =================================================================== RCS file: libbase/Thread.h diff -N libbase/Thread.h --- libbase/Thread.h 28 May 2007 15:41:01 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,74 +0,0 @@ -// -// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -// - -#ifndef __THREAD_H__ -#define __THREAD_H__ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -// FIXME: HAVE_PTHREAD_H is defined in config.h, but for some reason -// refuses to be defined for this file. -//#ifdef HAVE_PTHREAD_H -#include -// #else -// #error "You must have POSIX threads installed to compile this file!" -// #endif -// #include - -namespace gnash -{ - -typedef void *(*ThreadPtr_t)(void *); -typedef void (*ThreadCleanupPtr_t)(void *); - -class Thread { -public: - Thread(void); - ~Thread(void); - - void debugOn() { _debug = true; }; - void debugOff() { _debug = false; }; - - // Create a new thread - pthread_t *createThread(void *arg, ThreadPtr_t funcptr); - - // Destroy the thread - void destroyThread(void *retval); - void destroyThread(); - - // Setup a cleanup function - void cleanupThread(ThreadCleanupPtr_t funcptr, void *arg); - - // Dump private data - void dump(); - -private: - bool _debug; // print debug or not - pthread_attr_t _tattr; // holds thread's attributes -protected: - pthread_t _thread; // pointer to the thread info -}; - -// EOF namespace gnash -} -// EOF __THREAD_H__ -#endif - Index: libbase/container.cpp =================================================================== RCS file: libbase/container.cpp diff -N libbase/container.cpp --- libbase/container.cpp 23 Jun 2007 12:34:32 -0000 1.15 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ -// container.cpp -- Thatcher Ulrich 2003 - -// This source code has been donated to the Public Domain. Do -// whatever you want with it. - -// Some non-inline implementation help for generic containers. - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - From MAILER-DAEMON Sat Jun 23 12:32:15 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I28X1-0001LH-BM for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 12:32:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I28X0-0001L3-ML for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:32:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I28Wy-0001Kr-V2 for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:32:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I28Wy-0001Ko-PB for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:32:12 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I28Wy-0008RV-Fr for gnash-commit@gnu.org; Sat, 23 Jun 2007 12:32:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I28Wo-0004IF-HD for gnash-commit@gnu.org; Sat, 23 Jun 2007 16:32:02 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I28Wo-0004IA-B1 for gnash-commit@gnu.org; Sat, 23 Jun 2007 16:32:02 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 23 Jun 2007 16:32:02 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/as_object.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 16:32:14 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/23 16:32:02 Modified files: . : ChangeLog server : as_object.cpp Log message: * server/as_object.cpp (get_prototype): don't return the Object interface when prototype is NULL with SWF version < 5. Fixes the empty swf3 case with GC. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3603&r2=1.3604 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.cpp?cvsroot=gnash&r1=1.53&r2=1.54 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3603 retrieving revision 1.3604 diff -u -b -r1.3603 -r1.3604 --- ChangeLog 23 Jun 2007 12:34:31 -0000 1.3603 +++ ChangeLog 23 Jun 2007 16:32:01 -0000 1.3604 @@ -1,3 +1,9 @@ +2007-06-23 Sandro Santilli + + * server/as_object.cpp (get_prototype): don't return the Object + interface when prototype is NULL with SWF version < 5. + Fixes the empty swf3 case with GC. + 2007-06-23 Bastiaan Jacques * libbase/container.h: Remove home-made container classes in Index: server/as_object.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_object.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -u -b -r1.53 -r1.54 --- server/as_object.cpp 15 Jun 2007 15:00:28 -0000 1.53 +++ server/as_object.cpp 23 Jun 2007 16:32:01 -0000 1.54 @@ -619,7 +619,10 @@ { if ( m_prototype ) return m_prototype.get(); //log_msg(_("as_object::get_prototype(): Hit top of inheritance chain")); - return getObjectInterface(); + + // if SWF version < 5 the Object interface won't keep alive ! + if ( _vm.getSWFVersion() > 4 ) return getObjectInterface(); + return NULL; } #ifdef NEW_KEY_LISTENER_LIST_DESIGN From MAILER-DAEMON Sat Jun 23 14:19:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2ADF-0002fX-Fh for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 14:19:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2ADE-0002eu-0t for gnash-commit@gnu.org; Sat, 23 Jun 2007 14:19:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2ADD-0002eh-AZ for gnash-commit@gnu.org; Sat, 23 Jun 2007 14:19:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2ADD-0002ee-39 for gnash-commit@gnu.org; Sat, 23 Jun 2007 14:19:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2ADC-0006f5-QK for gnash-commit@gnu.org; Sat, 23 Jun 2007 14:19:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2ADC-0003F3-B5 for gnash-commit@gnu.org; Sat, 23 Jun 2007 18:19:54 +0000 Received: from bjacques by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2ADC-0003F0-7K for gnash-commit@gnu.org; Sat, 23 Jun 2007 18:19:54 +0000 To: gnash-commit@gnu.org Message-Id: From: Bastiaan Jacques Date: Sat, 23 Jun 2007 18:19:54 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash gui/gtk.cpp ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 18:19:56 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Bastiaan Jacques 07/06/23 18:19:54 Modified files: gui : gtk.cpp . : ChangeLog Log message: Use stock icons for some more menu options. Also, limit several lines to 80 characters. Patch by Benjamin Wolsey. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.94&r2=1.95 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3604&r2=1.3605 Patches: Index: gui/gtk.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -u -b -r1.94 -r1.95 --- gui/gtk.cpp 13 Jun 2007 17:56:18 -0000 1.94 +++ gui/gtk.cpp 23 Jun 2007 18:19:53 -0000 1.95 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.94 2007/06/13 17:56:18 strk Exp $ */ +/* $Id: gtk.cpp,v 1.95 2007/06/23 18:19:53 bjacques Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1271,25 +1271,42 @@ GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu); - GtkWidget *obre1 = gtk_image_menu_item_new_from_stock ("gtk-open", NULL); + GtkWidget *obre1 = + gtk_image_menu_item_new_from_stock ("gtk-open", NULL); gtk_widget_show (obre1); gtk_container_add (GTK_CONTAINER (menu), obre1); - GtkWidget *desa1 = gtk_image_menu_item_new_from_stock ("gtk-save", NULL); + GtkWidget *desa1 = + gtk_image_menu_item_new_from_stock ("gtk-save", NULL); gtk_widget_show (desa1); gtk_container_add (GTK_CONTAINER (menu), desa1); - gtk_widget_set_sensitive(desa1,FALSE); // Disabled untill save functionality is implemented. + // Disabled until save functionality is implemented: + gtk_widget_set_sensitive(desa1,FALSE); - GtkWidget *anomena_i_desa1 = gtk_image_menu_item_new_from_stock ("gtk-save-as", NULL); + GtkWidget *anomena_i_desa1 = + gtk_image_menu_item_new_from_stock ("gtk-save-as", NULL); gtk_widget_show (anomena_i_desa1); gtk_container_add (GTK_CONTAINER (menu), anomena_i_desa1); - gtk_widget_set_sensitive(anomena_i_desa1,FALSE); // Disabled untill save-as functionality is implemented. + // Disabled until save-as functionality is implemented: + gtk_widget_set_sensitive(anomena_i_desa1,FALSE); GtkWidget *separatormenuitem1 = gtk_separator_menu_item_new (); gtk_widget_show (separatormenuitem1); gtk_container_add (GTK_CONTAINER (menu), separatormenuitem1); gtk_widget_set_sensitive (separatormenuitem1, FALSE); + GtkWidget *properties1 = + gtk_image_menu_item_new_from_stock ("gtk-properties", NULL); + gtk_widget_show (properties1); + gtk_container_add (GTK_CONTAINER (menu), properties1); + // Disabled until properties functionality is implemented: + gtk_widget_set_sensitive(properties1,FALSE); + + GtkWidget *separatormenuitem2 = gtk_separator_menu_item_new (); + gtk_widget_show (separatormenuitem2); + gtk_container_add (GTK_CONTAINER (menu), separatormenuitem2); + gtk_widget_set_sensitive (separatormenuitem2, FALSE); + GtkWidget *surt1 = gtk_image_menu_item_new_from_stock ("gtk-quit", NULL); gtk_widget_show (surt1); gtk_container_add (GTK_CONTAINER (menu), surt1); @@ -1315,7 +1332,8 @@ GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu); - GtkWidget *preferences1 = gtk_menu_item_new_with_label (_("Preferences")); + GtkWidget *preferences1 = + gtk_image_menu_item_new_from_stock ("gtk-preferences", NULL); gtk_widget_show (preferences1); gtk_container_add (GTK_CONTAINER (menu), preferences1); @@ -1336,7 +1354,7 @@ GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu); - GtkWidget *about = gtk_menu_item_new_with_label (_("About")); + GtkWidget *about = gtk_image_menu_item_new_from_stock ("gtk-about", NULL); gtk_widget_show (about); gtk_container_add (GTK_CONTAINER (menu), about); @@ -1350,29 +1368,30 @@ GtkGui::createControlMenu(GtkWidget *obj) { // GNASH_REPORT_FUNCTION; - GtkWidget *menuitem_control = gtk_menu_item_new_with_label (_("Movie Control")); + GtkWidget *menuitem_control = + gtk_menu_item_new_with_label (_("Movie Control")); gtk_widget_show (menuitem_control); gtk_container_add (GTK_CONTAINER (obj), menuitem_control); GtkWidget *menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem_control), menu); - GtkMenuItem *menuitem_play = - GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Play Movie"))); + GtkMenuItem *menuitem_play = GTK_MENU_ITEM( + gtk_image_menu_item_new_from_stock ("gtk-media-play", NULL)); gtk_menu_append(menu, GTK_WIDGET(menuitem_play)); gtk_widget_show(GTK_WIDGET(menuitem_play)); g_signal_connect ((gpointer) menuitem_play, "activate", G_CALLBACK (&menuitem_play_callback), this); - GtkMenuItem *menuitem_pause = - GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Pause Movie"))); + GtkMenuItem *menuitem_pause = GTK_MENU_ITEM( + gtk_image_menu_item_new_from_stock ("gtk-media-pause", NULL)); gtk_menu_append(menu, GTK_WIDGET(menuitem_pause)); gtk_widget_show(GTK_WIDGET(menuitem_pause)); g_signal_connect ((gpointer) menuitem_pause, "activate", G_CALLBACK (&menuitem_pause_callback), this); - GtkMenuItem *menuitem_stop = - GTK_MENU_ITEM(gtk_menu_item_new_with_label(_("Stop Movie"))); + GtkMenuItem *menuitem_stop = GTK_MENU_ITEM( + gtk_image_menu_item_new_from_stock ("gtk-media-stop", NULL)); gtk_menu_append(menu, GTK_WIDGET(menuitem_stop)); gtk_widget_show(GTK_WIDGET(menuitem_stop)); g_signal_connect ((gpointer) menuitem_stop, "activate", Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3604 retrieving revision 1.3605 diff -u -b -r1.3604 -r1.3605 --- ChangeLog 23 Jun 2007 16:32:01 -0000 1.3604 +++ ChangeLog 23 Jun 2007 18:19:53 -0000 1.3605 @@ -1,3 +1,8 @@ +2007-06-23 Benjamin Wolsey + + * gui/gtk.cpp: Use stock icons for some more menu options. Also, + limit several lines to 80 characters. + 2007-06-23 Sandro Santilli * server/as_object.cpp (get_prototype): don't return the Object From MAILER-DAEMON Sat Jun 23 17:26:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2D7x-0003Gk-UU for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 17:26:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2D7u-0003GJ-L7 for gnash-commit@gnu.org; Sat, 23 Jun 2007 17:26:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2D7r-0003Fi-2h for gnash-commit@gnu.org; Sat, 23 Jun 2007 17:26:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2D7q-0003Fd-SE for gnash-commit@gnu.org; Sat, 23 Jun 2007 17:26:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2D7q-0004uL-Jw for gnash-commit@gnu.org; Sat, 23 Jun 2007 17:26:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2D7o-0004ag-S6 for gnash-commit@gnu.org; Sat, 23 Jun 2007 21:26:32 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2D7o-0004ad-Kd for gnash-commit@gnu.org; Sat, 23 Jun 2007 21:26:32 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Sat, 23 Jun 2007 21:26:32 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash gui/kde.cpp ChangeLog X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 21:26:41 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/23 21:26:32 Modified files: gui : kde.cpp . : ChangeLog Log message: Reverted Antti's patch since it broken OGL. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde.cpp?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3605&r2=1.3606 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3605 retrieving revision 1.3606 diff -u -b -r1.3605 -r1.3606 --- ChangeLog 23 Jun 2007 18:19:53 -0000 1.3605 +++ ChangeLog 23 Jun 2007 21:26:32 -0000 1.3606 @@ -40,10 +40,6 @@ * utilities/{parser,processor}.cpp: use 'libbase/gettext.h' for conditianal use of libintl. -2007-06-21 Antti Ajanki - - * gui/kde.cpp: Fix for agg-render premature initialization. - 2007-06-21 Tomas Groth Christensen * backend/sound_handler_gst.{cpp,h}: Made it threadsafe, fixes From MAILER-DAEMON Sat Jun 23 20:45:01 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2GDs-0000nS-TX for mharc-gnash-commit@gnu.org; Sat, 23 Jun 2007 20:45:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2GDr-0000lm-9I for gnash-commit@gnu.org; Sat, 23 Jun 2007 20:44:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2GDq-0000la-IW for gnash-commit@gnu.org; Sat, 23 Jun 2007 20:44:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2GDq-0000lX-Dz for gnash-commit@gnu.org; Sat, 23 Jun 2007 20:44:58 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2GDq-0003je-4D for gnash-commit@gnu.org; Sat, 23 Jun 2007 20:44:58 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2GDo-000244-Nv for gnash-commit@gnu.org; Sun, 24 Jun 2007 00:44:56 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2GDo-00023y-Hf for gnash-commit@gnu.org; Sun, 24 Jun 2007 00:44:56 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 24 Jun 2007 00:44:56 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/as_value.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 00:44:59 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/24 00:44:56 Modified files: . : ChangeLog server : as_value.h Log message: * server/as_value.h: include for proper definition of output operator. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3606&r2=1.3607 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.h?cvsroot=gnash&r1=1.54&r2=1.55 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3606 retrieving revision 1.3607 diff -u -b -r1.3606 -r1.3607 --- ChangeLog 23 Jun 2007 21:26:32 -0000 1.3606 +++ ChangeLog 24 Jun 2007 00:44:55 -0000 1.3607 @@ -1,3 +1,8 @@ +2007-06-23 Sandro Santilli + + * server/as_value.h: include for proper definition + of output operator. + 2007-06-23 Benjamin Wolsey * gui/gtk.cpp: Use stock icons for some more menu options. Also, Index: server/as_value.h =================================================================== RCS file: /sources/gnash/gnash/server/as_value.h,v retrieving revision 1.54 retrieving revision 1.55 diff -u -b -r1.54 -r1.55 --- server/as_value.h 15 Jun 2007 15:00:28 -0000 1.54 +++ server/as_value.h 24 Jun 2007 00:44:56 -0000 1.55 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: as_value.h,v 1.54 2007/06/15 15:00:28 strk Exp $ */ +/* $Id: as_value.h,v 1.55 2007/06/24 00:44:56 strk Exp $ */ #ifndef GNASH_AS_VALUE_H #define GNASH_AS_VALUE_H @@ -31,6 +31,7 @@ #include #include #include +#include // for inlined output operator namespace gnash { From MAILER-DAEMON Sun Jun 24 01:44:19 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2KtX-0002o2-NH for mharc-gnash-commit@gnu.org; Sun, 24 Jun 2007 01:44:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2KtW-0002nm-2V for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:44:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2KtU-0002na-G8 for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:44:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2KtU-0002nX-Ae for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:44:16 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2KtT-0006dW-VY for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:44:16 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2KtS-0002pN-RP for gnash-commit@gnu.org; Sun, 24 Jun 2007 05:44:14 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2KtS-0002pE-Hw for gnash-commit@gnu.org; Sun, 24 Jun 2007 05:44:14 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Sun, 24 Jun 2007 05:44:14 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/morph_t... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 05:44:18 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/24 05:44:14 Modified files: . : ChangeLog Added files: testsuite/misc-ming.all: morph_test1.c Log message: 1st testcase for morphs CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3607&r2=1.3608 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/morph_test1.c?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3607 retrieving revision 1.3608 diff -u -b -r1.3607 -r1.3608 --- ChangeLog 24 Jun 2007 00:44:55 -0000 1.3607 +++ ChangeLog 24 Jun 2007 05:44:13 -0000 1.3608 @@ -1,3 +1,9 @@ +2007-06-24 Zou Lunkai + + * testsuite/misc-ming.all/morph_test1.c: first testcase for morphs, + need a testrunner for checking the renderer, but might be enough for + testing GC at the moment. + 2007-06-23 Sandro Santilli * server/as_value.h: include for proper definition Index: testsuite/misc-ming.all/morph_test1.c =================================================================== RCS file: testsuite/misc-ming.all/morph_test1.c diff -N testsuite/misc-ming.all/morph_test1.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/morph_test1.c 24 Jun 2007 05:44:14 -0000 1.1 @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/* + * zou lunkai zoulunkai@gmail.com + * + * test morphs +*/ + +#include +#include +#include + +#include "ming_utils.h" + +#define OUTPUT_VERSION 6 +#define OUTPUT_FILENAME "morph_test1.swf" + +void make_shape(SWFShape sh, int x, int y, int width, int height, byte r, byte g, byte b); + +void +make_shape(SWFShape sh, int x, int y, int width, int height, byte r, byte g, byte b) +{ + SWFFillStyle fs = SWFShape_addSolidFillStyle(sh, r, g, b, 255); + SWFShape_setLineStyle(sh, 1, r, g, b, 255); + SWFShape_setLeftFillStyle(sh, fs); + SWFShape_movePenTo(sh, x, y); + SWFShape_drawLineTo(sh, x, y+height); + SWFShape_drawLineTo(sh, x+width, y+height); + SWFShape_drawLineTo(sh, x+width, y); + SWFShape_drawLineTo(sh, x, y); +} + +int +main(int argc, char** argv) +{ + + SWFMovie mo; + SWFMovieClip dejagnuclip; + SWFMorph morph; + SWFShape startShape, endShape; + SWFDisplayItem it; + float ratio; + + + const char *srcdir="."; + if ( argc>1 ) + srcdir=argv[1]; + else + { + fprintf(stderr, "Usage: %s \n", argv[0]); + return 1; + } + + Ming_init(); + mo = newSWFMovieWithVersion(OUTPUT_VERSION); + SWFMovie_setDimension(mo, 800, 600); + SWFMovie_setRate (mo, 12.0); + + // _root.frame1 + dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); + SWFMovie_add(mo, (SWFBlock)dejagnuclip); + add_actions(mo, " x1=0; x2=0; x3=0; x4=0; x5=0; x6=0; x7=0; x8=0; x9=0; x10=0; "); + SWFMovie_nextFrame(mo); + + // _root.frame2, define and place a morph + morph = newSWFMorphShape(); + startShape = SWFMorph_getShape1(morph); + make_shape(startShape, 0, 0, 100, 100, 255, 0 ,0); + endShape = SWFMorph_getShape2(morph); + make_shape(endShape, 700, 500, 100, 100, 0, 255 ,0); + + it = SWFMovie_add(mo, (SWFBlock)morph); + SWFMovie_nextFrame(mo); + + // update the morph with different ratios + for(ratio=0; ratio<1.01; ratio+=0.2) + { + SWFDisplayItem_remove(it); + it = SWFMovie_add(mo, (SWFBlock)morph); + SWFDisplayItem_setRatio(it, ratio); + SWFMovie_nextFrame(mo); + } + + //Output movie + puts("Saving " OUTPUT_FILENAME ); + SWFMovie_save(mo, OUTPUT_FILENAME); + + return 0; +} + From MAILER-DAEMON Sun Jun 24 01:49:46 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2Kyo-0004ma-1n for mharc-gnash-commit@gnu.org; Sun, 24 Jun 2007 01:49:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2Kym-0004iG-2J for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:49:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2Kyk-0004gS-Bc for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:49:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2Kyk-0004gI-7C for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:49:42 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2Kyj-00078P-Sr for gnash-commit@gnu.org; Sun, 24 Jun 2007 01:49:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2Kyj-0003SQ-9h for gnash-commit@gnu.org; Sun, 24 Jun 2007 05:49:41 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2Kyj-0003SN-5c for gnash-commit@gnu.org; Sun, 24 Jun 2007 05:49:41 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Sun, 24 Jun 2007 05:49:41 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all morph_test1.c X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 05:49:44 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/24 05:49:41 Modified files: testsuite/misc-ming.all: morph_test1.c Log message: remove unused stuff CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/morph_test1.c?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: morph_test1.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/morph_test1.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- morph_test1.c 24 Jun 2007 05:44:14 -0000 1.1 +++ morph_test1.c 24 Jun 2007 05:49:40 -0000 1.2 @@ -75,7 +75,6 @@ // _root.frame1 dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); SWFMovie_add(mo, (SWFBlock)dejagnuclip); - add_actions(mo, " x1=0; x2=0; x3=0; x4=0; x5=0; x6=0; x7=0; x8=0; x9=0; x10=0; "); SWFMovie_nextFrame(mo); // _root.frame2, define and place a morph From MAILER-DAEMON Sun Jun 24 08:58:34 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2Rfm-0007av-Cx for mharc-gnash-commit@gnu.org; Sun, 24 Jun 2007 08:58:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2Rfk-0007ao-Qf for gnash-commit@gnu.org; Sun, 24 Jun 2007 08:58:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2Rfi-0007ac-PL for gnash-commit@gnu.org; Sun, 24 Jun 2007 08:58:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2Rfi-0007aZ-Lt for gnash-commit@gnu.org; Sun, 24 Jun 2007 08:58:30 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2Rfi-0003oQ-97 for gnash-commit@gnu.org; Sun, 24 Jun 2007 08:58:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2Rfg-0000pF-RX for gnash-commit@gnu.org; Sun, 24 Jun 2007 12:58:28 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2Rfg-0000pC-OM for gnash-commit@gnu.org; Sun, 24 Jun 2007 12:58:28 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sun, 24 Jun 2007 12:58:28 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 12:58:33 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/24 12:58:28 Modified files: . : ChangeLog server : edit_text_character.cpp sprite_instance.cpp video_stream_instance.cpp server/asobj : System.cpp Log message: * server/: edit_text_character.cpp, sprite_instance.cpp, video_stream_instance.cpp, asobj/System.cpp: Don't initialize the "constructor" member explicitly as that's done by the builtin_function class instead. This patch fixes the useless construction of 7 to 11 objects (otherwise deleted by first GC run). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3608&r2=1.3609 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.68&r2=1.69 http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.291&r2=1.292 http://cvs.savannah.gnu.org/viewcvs/gnash/server/video_stream_instance.cpp?cvsroot=gnash&r1=1.29&r2=1.30 http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/System.cpp?cvsroot=gnash&r1=1.12&r2=1.13 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3608 retrieving revision 1.3609 diff -u -b -r1.3608 -r1.3609 --- ChangeLog 24 Jun 2007 05:44:13 -0000 1.3608 +++ ChangeLog 24 Jun 2007 12:58:27 -0000 1.3609 @@ -1,3 +1,12 @@ +2007-06-24 Sandro Santilli + + * server/: edit_text_character.cpp, sprite_instance.cpp, + video_stream_instance.cpp, asobj/System.cpp: + Don't initialize the "constructor" member explicitly as that's + done by the builtin_function class instead. This patch fixes + the useless construction of 7 to 11 objects (otherwise + deleted by first GC run). + 2007-06-24 Zou Lunkai * testsuite/misc-ming.all/morph_test1.c: first testcase for morphs, Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -u -b -r1.68 -r1.69 --- server/edit_text_character.cpp 15 Jun 2007 15:00:29 -0000 1.68 +++ server/edit_text_character.cpp 24 Jun 2007 12:58:28 -0000 1.69 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.68 2007/06/15 15:00:29 strk Exp $ */ +/* $Id: edit_text_character.cpp,v 1.69 2007/06/24 12:58:28 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -324,7 +324,7 @@ { proto = new as_object(); attachTextFieldInterface(*proto); - proto->init_member("constructor", new builtin_function(textfield_ctor)); + //proto->init_member("constructor", new builtin_function(textfield_ctor)); } return proto.get(); } Index: server/sprite_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v retrieving revision 1.291 retrieving revision 1.292 diff -u -b -r1.291 -r1.292 --- server/sprite_instance.cpp 19 Jun 2007 22:25:55 -0000 1.291 +++ server/sprite_instance.cpp 24 Jun 2007 12:58:28 -0000 1.292 @@ -1628,7 +1628,7 @@ { proto = new as_object(); attachMovieClipInterface(*proto); - proto->init_member("constructor", new builtin_function(movieclip_ctor)); + //proto->init_member("constructor", new builtin_function(movieclip_ctor)); } return proto.get(); } Index: server/video_stream_instance.cpp =================================================================== RCS file: /sources/gnash/gnash/server/video_stream_instance.cpp,v retrieving revision 1.29 retrieving revision 1.30 diff -u -b -r1.29 -r1.30 --- server/video_stream_instance.cpp 19 Jun 2007 09:26:54 -0000 1.29 +++ server/video_stream_instance.cpp 24 Jun 2007 12:58:28 -0000 1.30 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -// $Id: video_stream_instance.cpp,v 1.29 2007/06/19 09:26:54 strk Exp $ +// $Id: video_stream_instance.cpp,v 1.30 2007/06/24 12:58:28 strk Exp $ #include "sprite_instance.h" #include "video_stream_instance.h" @@ -46,7 +46,7 @@ { proto = new as_object(); attachVideoInterface(*proto); - proto->init_member("constructor", new builtin_function(video_ctor)); + //proto->init_member("constructor", new builtin_function(video_ctor)); } return proto.get(); } Index: server/asobj/System.cpp =================================================================== RCS file: /sources/gnash/gnash/server/asobj/System.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -b -r1.12 -r1.13 --- server/asobj/System.cpp 18 Apr 2007 14:07:32 -0000 1.12 +++ server/asobj/System.cpp 24 Jun 2007 12:58:28 -0000 1.13 @@ -116,7 +116,7 @@ { proto = new as_object(); attachSystemInterface(*proto); - proto->init_member("constructor", new builtin_function(system_new)); + //proto->init_member("constructor", new builtin_function(system_new)); } return proto.get(); } From MAILER-DAEMON Mon Jun 25 04:00:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2jUT-0003ln-4V for mharc-gnash-commit@gnu.org; Mon, 25 Jun 2007 04:00:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2jUR-0003lh-Pa for gnash-commit@gnu.org; Mon, 25 Jun 2007 04:00:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2jUP-0003lS-Pu for gnash-commit@gnu.org; Mon, 25 Jun 2007 04:00:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2jUP-0003lP-KR for gnash-commit@gnu.org; Mon, 25 Jun 2007 04:00:01 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2jUP-0002Yq-89 for gnash-commit@gnu.org; Mon, 25 Jun 2007 04:00:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2jUN-0002w0-PO for gnash-commit@gnu.org; Mon, 25 Jun 2007 07:59:59 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2jUN-0002vw-Ih for gnash-commit@gnu.org; Mon, 25 Jun 2007 07:59:59 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Mon, 25 Jun 2007 07:59:59 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/morph_t... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 08:00:03 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/25 07:59:59 Modified files: . : ChangeLog testsuite/misc-ming.all: morph_test1.c Makefile.am Added files: testsuite/misc-ming.all: morph_test1runner.cpp Log message: add a testrunner for morph_test1 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3609&r2=1.3610 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/morph_test1.c?cvsroot=gnash&r1=1.2&r2=1.3 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.136&r2=1.137 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/morph_test1runner.cpp?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3609 retrieving revision 1.3610 diff -u -b -r1.3609 -r1.3610 --- ChangeLog 24 Jun 2007 12:58:27 -0000 1.3609 +++ ChangeLog 25 Jun 2007 07:59:58 -0000 1.3610 @@ -1,3 +1,9 @@ +2007-06-25 Zou Lunkai + + * testsuite/misc-ming.all/morph_test1.c: minor update, reduce a frame for testing. + * testsuite/misc-ming.all/morph_test1runner.cpp, Makefile.am: add a testrunner for + morph_test1.swf. + 2007-06-24 Sandro Santilli * server/: edit_text_character.cpp, sprite_instance.cpp, Index: testsuite/misc-ming.all/morph_test1.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/morph_test1.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- testsuite/misc-ming.all/morph_test1.c 24 Jun 2007 05:49:40 -0000 1.2 +++ testsuite/misc-ming.all/morph_test1.c 25 Jun 2007 07:59:59 -0000 1.3 @@ -70,7 +70,7 @@ Ming_init(); mo = newSWFMovieWithVersion(OUTPUT_VERSION); SWFMovie_setDimension(mo, 800, 600); - SWFMovie_setRate (mo, 12.0); + SWFMovie_setRate (mo, 1.0); // _root.frame1 dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); @@ -88,7 +88,7 @@ SWFMovie_nextFrame(mo); // update the morph with different ratios - for(ratio=0; ratio<1.01; ratio+=0.2) + for(ratio=0.2; ratio<1.01; ratio+=0.2) { SWFDisplayItem_remove(it); it = SWFMovie_add(mo, (SWFBlock)morph); Index: testsuite/misc-ming.all/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v retrieving revision 1.136 retrieving revision 1.137 diff -u -b -r1.136 -r1.137 --- testsuite/misc-ming.all/Makefile.am 13 Jun 2007 09:54:10 -0000 1.136 +++ testsuite/misc-ming.all/Makefile.am 25 Jun 2007 07:59:59 -0000 1.137 @@ -152,6 +152,8 @@ NetStream-SquareTest \ NetStream-SquareTestRunner \ shape_test \ + morph_test1 \ + morph_test1runner \ $(NULL) if MAKESWF_SUPPORTS_PREBUILT_CLIPS @@ -475,6 +477,27 @@ sh $< -f20 $(top_builddir) shape_test.swf > $@ chmod 755 $@ +morph_test1_SOURCES = morph_test1.c +morph_test1_LDADD = libgnashmingutils.la + +morph_test1.swf: morph_test1 + ./morph_test1 $(top_srcdir)/testsuite/media + +morph_test1runner_SOURCES = \ + morph_test1runner.cpp \ + $(NULL) +morph_test1runner_LDADD = \ + $(top_builddir)/testsuite/libtestsuite.la \ + $(NULL) +morph_test1runner_CXXFLAGS = \ + -DSRCDIR='"$(srcdir)"' \ + -DTGTDIR='"$(abs_builddir)"' \ + $(NULL) +morph_test1runner_DEPENDENCIES = \ + morph_test1.swf \ + $(top_builddir)/testsuite/libtestsuite.la \ + $(NULL) + key_event_test_SOURCES = key_event_test.c key_event_test_LDADD = libgnashmingutils.la @@ -1538,6 +1561,7 @@ loop_test7runner \ loop_test8runner \ shape_testrunner \ + morph_test1runner \ $(NULL) if MAKESWF_SUPPORTS_PREBUILT_CLIPS Index: testsuite/misc-ming.all/morph_test1runner.cpp =================================================================== RCS file: testsuite/misc-ming.all/morph_test1runner.cpp diff -N testsuite/misc-ming.all/morph_test1runner.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/morph_test1runner.cpp 25 Jun 2007 07:59:59 -0000 1.1 @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * + */ + +#define INPUT_FILENAME "morph_test1.swf" + +#include "MovieTester.h" +#include "sprite_instance.h" +#include "character.h" +#include "dlist.h" +#include "container.h" +#include "log.h" + +#include "check.h" +#include +#include + +using namespace gnash; +using namespace std; + +int +main(int /*argc*/, char** /*argv*/) +{ + //string filename = string(TGTDIR) + string("/") + string(INPUT_FILENAME); + string filename = string(INPUT_FILENAME); + MovieTester tester(filename); + + gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance(); + dbglogfile.setVerbosity(1); + + + rgba red(255,0,0,255); //start color + rgba green(0,255,0,255); //end color + + int start_x = 0; //start coordinates of LU point + int start_y = 0; + int end_x = 700; //end coordinates of LU point + int end_y = 500; + + sprite_instance* root = tester.getRootMovie(); + assert(root); + check_equals(root->get_frame_count(), 7); + + // FRAME 2 + tester.advance(); + // fill color: 1.0*red + 0.0*green + // center coordinates: + check_pixel(50, 50, 50, red, 2); // morph ratio = 0 + + // FRAME 3 + tester.advance(); + // 0.8*red + 0.2*green + // center coordinates: <0.8*start_x+0.2*end_x+50, 0.8*start_y+0.2*end_y+50> + check_pixel(190, 150, 50, rgba(204,51,0,255), 2); // morph ratio = 0.2 + + // FRAME 4 + tester.advance(); + // fill color: 0.6*red + 0.4*green + check_pixel(330, 250, 50, rgba(153,102,0,255), 2); // morph ratio = 0.4 + + // FRAME 5 + tester.advance(); + // fill color: 0.4*red + 0.6*green + check_pixel(470, 350, 50, rgba(102,153,0,255), 2); // morph ratio = 0.6 + + // FRAME 6 + tester.advance(); + // fill color: 0.2*red + 0.8*green + check_pixel(610, 450, 50, rgba(51,204,0,255), 2); // morph ratio = 0.8 + + // FRAME 7 + tester.advance(); + // fill color: 0.0*red + 1.0*green + check_pixel(750, 550, 50, rgba(0,255,0,255), 2); // morph ratio = 1.0 +} + From MAILER-DAEMON Mon Jun 25 05:55:48 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2lIS-0005vj-On for mharc-gnash-commit@gnu.org; Mon, 25 Jun 2007 05:55:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2lIQ-0005uF-DI for gnash-commit@gnu.org; Mon, 25 Jun 2007 05:55:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2lIO-0005sV-46 for gnash-commit@gnu.org; Mon, 25 Jun 2007 05:55:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2lIN-0005s1-Uh for gnash-commit@gnu.org; Mon, 25 Jun 2007 05:55:43 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I2lIN-0001LS-Fe for gnash-commit@gnu.org; Mon, 25 Jun 2007 05:55:43 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I2lIL-0005zT-E8 for gnash-commit@gnu.org; Mon, 25 Jun 2007 09:55:41 +0000 Received: from nihilus by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I2lIL-0005zQ-9X for gnash-commit@gnu.org; Mon, 25 Jun 2007 09:55:41 +0000 To: gnash-commit@gnu.org Message-Id: From: Markus Gothe Date: Mon, 25 Jun 2007 09:55:41 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/kde_glue_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 09:55:47 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe 07/06/25 09:55:41 Modified files: . : ChangeLog gui : kde_glue_agg.cpp Log message: See http://savannah.gnu.org/patch/?6022 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3610&r2=1.3611 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/kde_glue_agg.cpp?cvsroot=gnash&r1=1.2&r2=1.3 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3610 retrieving revision 1.3611 diff -u -b -r1.3610 -r1.3611 --- ChangeLog 25 Jun 2007 07:59:58 -0000 1.3610 +++ ChangeLog 25 Jun 2007 09:55:40 -0000 1.3611 @@ -1,3 +1,7 @@ +2007-06-25 Antti Ajaki + + * gui/kde_glue_agg.cpp: See http://savannah.gnu.org/patch/?6022 + 2007-06-25 Zou Lunkai * testsuite/misc-ming.all/morph_test1.c: minor update, reduce a frame for testing. Index: gui/kde_glue_agg.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/kde_glue_agg.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- gui/kde_glue_agg.cpp 10 Jun 2007 14:46:44 -0000 1.2 +++ gui/kde_glue_agg.cpp 25 Jun 2007 09:55:41 -0000 1.3 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: kde_glue_agg.cpp,v 1.2 2007/06/10 14:46:44 bjacques Exp $ */ +/* $Id: kde_glue_agg.cpp,v 1.3 2007/06/25 09:55:41 nihilus Exp $ */ #include "kde_glue_agg.h" #include "render_handler.h" @@ -57,7 +57,7 @@ void KdeAggGlue::initBuffer(int width, int height) { - assert(_renderer); + if (!_renderer) return; int _bpp = 32; int depth_bytes = _bpp / 8; From MAILER-DAEMON Mon Jun 25 21:16:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I2zfB-0006wc-0j for mharc-gnash-commit@gnu.org; Mon, 25 Jun 2007 21:16:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2zf8-0006w0-FJ for gnash-commit@gnu.org; Mon, 25 Jun 2007 21:16:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2zf7-0006vo-4e for gnash-commit@gnu.org; Mon, 25 Jun 2007 21:16:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2zf7-0006vl-1g for gnash-commit@gnu.org; Mon, 25 Jun 2007 21:16:09 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I2zf6-0000tU-Dy for gnash-commit@gnu.org; Mon, 25 Jun 2007 21:16:08 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5Q1G4V19337; Tue, 26 Jun 2007 03:16:04 +0200 (CEST) (envelope-from strk@keybit.net) From: strk Date: Tue, 26 Jun 2007 03:16:04 +0200 To: Markus Gothe Subject: Re: [Gnash-commit] gnash ChangeLog gui/kde_glue_agg.cpp Message-ID: <20070626011604.GA18088@keybit.net> Mail-Followup-To: Markus Gothe , gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 01:16:10 -0000 On Mon, Jun 25, 2007 at 09:55:41AM +0000, Markus Gothe wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Markus Gothe 07/06/25 09:55:41 > > Modified files: > . : ChangeLog > gui : kde_glue_agg.cpp > > Log message: > See http://savannah.gnu.org/patch/?6022 Could you please use a more descriptive log ? It's fine to include a reference to the original patch, but it's also worth having an offline description for it. --strk; From MAILER-DAEMON Tue Jun 26 04:01:03 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I35yx-00068F-87 for mharc-gnash-commit@gnu.org; Tue, 26 Jun 2007 04:01:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I35yu-00066w-Rd for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:01:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I35yt-00066B-MV for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:01:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I35yt-000668-Ig for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:00:59 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I35yt-0004c6-15 for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:00:59 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I35yr-0001qZ-OT for gnash-commit@gnu.org; Tue, 26 Jun 2007 08:00:57 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I35yr-0001qE-0L for gnash-commit@gnu.org; Tue, 26 Jun 2007 08:00:57 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Tue, 26 Jun 2007 08:00:57 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/callFun... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 08:01:01 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/26 08:00:56 Modified files: . : ChangeLog Added files: testsuite/misc-ming.all: callFunction_test.c Log message: testcase for ActionCallFunction, Gnash fails CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3611&r2=1.3612 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/callFunction_test.c?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3611 retrieving revision 1.3612 diff -u -b -r1.3611 -r1.3612 --- ChangeLog 25 Jun 2007 09:55:40 -0000 1.3611 +++ ChangeLog 26 Jun 2007 08:00:53 -0000 1.3612 @@ -1,3 +1,8 @@ +2007-06-26 Zou Lunkai + + * testsuite/misc-ming.all/callFunction_test.c: testcase for ActionCallFunction, + Gnash fails. + 2007-06-25 Antti Ajaki * gui/kde_glue_agg.cpp: See http://savannah.gnu.org/patch/?6022 Index: testsuite/misc-ming.all/callFunction_test.c =================================================================== RCS file: testsuite/misc-ming.all/callFunction_test.c diff -N testsuite/misc-ming.all/callFunction_test.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testsuite/misc-ming.all/callFunction_test.c 26 Jun 2007 08:00:55 -0000 1.1 @@ -0,0 +1,166 @@ +/* + * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/* + * movieclips hierarchy: + * _root + * |---mc1 + * |---mc11 + * + * file description: + * Testing variables are initialized to zero, and get set to 1 when related function + * call succeeds. + * + * Obeserved behaviour: + * ActionCallFunction supports path prefix before a function name. + */ + +#include +#include +#include + +#include "ming_utils.h" + +#define OUTPUT_VERSION 6 +#define OUTPUT_FILENAME "callFunction_test.swf" + + +int +main(int argc, char** argv) +{ + + SWFMovie mo; + SWFMovieClip dejagnuclip; + SWFMovieClip mc1, mc11; + SWFDisplayItem it1, it11; + + + const char *srcdir="."; + if ( argc>1 ) + srcdir=argv[1]; + else + { + fprintf(stderr, "Usage: %s \n", argv[0]); + return 1; + } + + Ming_init(); + mo = newSWFMovieWithVersion(OUTPUT_VERSION); + SWFMovie_setDimension(mo, 800, 600); + SWFMovie_setRate (mo, 12.0); + + // _root.frame1 + dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 800, 600); + SWFMovie_add(mo, (SWFBlock)dejagnuclip); + add_actions(mo, " x1=0; x2=0; x3=0; x4=0; x5=0; x6=0; x7=0; x8=0; x9=0; x10=0; "); + SWFMovie_nextFrame(mo); + + // + // _root.frame2: define movieclips and some functions. + // + // Define mc11 + mc11 = newSWFMovieClip(); + add_clip_actions(mc11, " func1 = function () { _root.x1=1; _root.x2=this; }; " + "stop();"); + SWFMovieClip_nextFrame(mc11); + add_clip_actions(mc11, "_root.x3 = 1; stop();"); + SWFMovieClip_nextFrame(mc11); + add_clip_actions(mc11, "_root.x4 = 1; stop();"); + SWFMovieClip_nextFrame(mc11); + + // Define mc1, add mc11 to mc1 + mc1 = newSWFMovieClip(); + it11 = SWFMovieClip_add(mc1, (SWFBlock)mc11); + SWFDisplayItem_setDepth(it11, 3); + SWFDisplayItem_setName(it11, "mc11"); + add_clip_actions(mc1, " func2 = function () { _root.x5=1; _root.x6=this; }; " + "stop();"); + SWFMovieClip_nextFrame(mc1); + add_clip_actions(mc1, "_root.x7 = 1; stop();"); + SWFMovieClip_nextFrame(mc1); + add_clip_actions(mc1, "_root.x8 = 1; stop();"); + SWFMovieClip_nextFrame(mc1); + + // place mc1 + it1 = SWFMovie_add(mo, (SWFBlock)mc1); + SWFDisplayItem_setDepth(it1, 4); + SWFDisplayItem_setName(it1, "mc1"); + SWFMovie_nextFrame(mo); + + // + // _root.frame3: invoke function calls + // + add_actions(mo, "asm{" + "push 0 " + "push '_root.mc1.mc11.func1' " // valid format + "callfunction " + "};"); + add_actions(mo, "asm{" + "push 2 " + "push 1 " + "push '_root.mc1.mc11.gotoAndStop' " // valid format + "callfunction " + "};"); + add_actions(mo, "asm{" + "push 0 " + "push '_root.mc1:func2' " // valid format + "callfunction " + "};"); + add_actions(mo, "asm{" + "push 2 " + "push 1 " + "push '/mc1/:gotoAndStop' " // valid format + "callfunction " + "};"); + add_actions(mo, "asm{" + "push 3 " + "push 1 " + "push '/_root/mc1/mc11/gotoAndStop' " // *invalid* format + "callfunction " + "};"); + add_actions(mo, "asm{" + "push 3 " + "push 1 " + "push '_root:mc1:gotoAndStop' " // valid format + "callfunction " + "};"); + SWFMovie_nextFrame(mo); + + // + // _root.frame4: check if the function call succeeded + // + check_equals(mo, "_root.x1", "1"); + check_equals(mo, "_root.x2", "_root.mc1.mc11"); + xcheck_equals(mo, "_root.x3", "1"); + check_equals(mo, "_root.x4", "0"); + xcheck_equals(mo, "_root.x5", "1"); + xcheck_equals(mo, "_root.x6", "_root.mc1"); + xcheck_equals(mo, "_root.x7", "1"); + xcheck_equals(mo, "_root.x8", "1"); + + add_actions(mo, " _root.totals(); stop(); "); + SWFMovie_nextFrame(mo); + + + //Output movie + puts("Saving " OUTPUT_FILENAME ); + SWFMovie_save(mo, OUTPUT_FILENAME); + + return 0; +} + From MAILER-DAEMON Tue Jun 26 04:36:36 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I36XM-0000Yy-I1 for mharc-gnash-commit@gnu.org; Tue, 26 Jun 2007 04:36:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I36XL-0000YT-6u for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:36:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I36XK-0000Y3-EI for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:36:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I36XK-0000Xx-2t for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:36:34 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I36XJ-0006TK-O8 for gnash-commit@gnu.org; Tue, 26 Jun 2007 04:36:33 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I36XJ-0005Ql-8R for gnash-commit@gnu.org; Tue, 26 Jun 2007 08:36:33 +0000 Received: from zoulunkai by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I36XJ-0005Qi-2H for gnash-commit@gnu.org; Tue, 26 Jun 2007 08:36:33 +0000 To: gnash-commit@gnu.org Message-Id: From: Zou Lunkai Date: Tue, 26 Jun 2007 08:36:33 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/testsuite/misc-ming.all callFunction_test.c X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 08:36:35 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Zou Lunkai 07/06/26 08:36:33 Modified files: testsuite/misc-ming.all: callFunction_test.c Log message: indent CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/callFunction_test.c?cvsroot=gnash&r1=1.1&r2=1.2 Patches: Index: callFunction_test.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/callFunction_test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 From MAILER-DAEMON Tue Jun 26 11:33:49 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3D36-0004fM-Tj for mharc-gnash-commit@gnu.org; Tue, 26 Jun 2007 11:33:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3D34-0004d5-VG for gnash-commit@gnu.org; Tue, 26 Jun 2007 11:33:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3D34-0004cO-BT for gnash-commit@gnu.org; Tue, 26 Jun 2007 11:33:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3D34-0004cL-55 for gnash-commit@gnu.org; Tue, 26 Jun 2007 11:33:46 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3D33-0005mw-Nm for gnash-commit@gnu.org; Tue, 26 Jun 2007 11:33:45 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3D32-0002kc-BT for gnash-commit@gnu.org; Tue, 26 Jun 2007 15:33:44 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3D32-0002kZ-7k for gnash-commit@gnu.org; Tue, 26 Jun 2007 15:33:44 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 26 Jun 2007 15:33:44 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/backend render_handler_agg_style.h X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 15:33:47 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/26 15:33:44 Modified files: backend : render_handler_agg_style.h Log message: backend/render_handler_agg_style.h: always premultiply image accessors with alpha channel (partial fix for bug #20257) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg_style.h?cvsroot=gnash&r1=1.18&r2=1.19 Patches: Index: render_handler_agg_style.h =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg_style.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- render_handler_agg_style.h 14 Jun 2007 15:55:19 -0000 1.18 +++ render_handler_agg_style.h 26 Jun 2007 15:33:43 -0000 1.19 @@ -114,6 +114,8 @@ { public: + bool m_force_premultiply; + agg_style_bitmap(int width, int height, int rowlen, uint8_t* data, gnash::matrix mat, gnash::cxform cx) : @@ -122,7 +124,8 @@ m_img_src(m_pixf), m_tr(), // initialize later m_interpolator(m_tr), - m_sg(m_img_src, m_interpolator) + m_sg(m_img_src, m_interpolator), + m_force_premultiply(false) { m_is_solid = false; @@ -146,15 +149,21 @@ void generate_span(agg::rgba8* span, int x, int y, unsigned len) { m_sg.generate(span, x, y, len); - // Apply color transform // TODO: Check if this can be optimized - if (!m_cx.is_identity()) + if (!m_cx.is_identity()) { for (unsigned int i=0; ir, span->g, span->b, span->a); span->premultiply(); ++span; } + } else + if (m_force_premultiply) { + for (unsigned int i=0; ipremultiply(); + span++; + } + } } @@ -484,6 +493,8 @@ st_type* st = new st_type(bi->get_width(), bi->get_height(), bi->get_rowlen(), bi->get_data(), mat, cx); + st->m_force_premultiply = true; // important for alpha channel + m_styles.push_back(st); } @@ -506,6 +517,8 @@ st_type* st = new st_type(bi->get_width(), bi->get_height(), bi->get_rowlen(), bi->get_data(), mat, cx); + st->m_force_premultiply = true; // important for alpha channel + m_styles.push_back(st); } @@ -528,6 +541,8 @@ st_type* st = new st_type(bi->get_width(), bi->get_height(), bi->get_rowlen(), bi->get_data(), mat, cx); + st->m_force_premultiply = true; // important for alpha channel + m_styles.push_back(st); } @@ -548,6 +563,8 @@ st_type* st = new st_type(bi->get_width(), bi->get_height(), bi->get_rowlen(), bi->get_data(), mat, cx); + st->m_force_premultiply = true; // important for alpha channel + m_styles.push_back(st); } From MAILER-DAEMON Tue Jun 26 13:40:13 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3F1R-0004T4-N6 for mharc-gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3F1Q-0004Qr-Ei for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3F1P-0004P2-B4 for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3F1P-0004Nv-28 for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:11 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3F1O-0006uI-97 for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:10 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3F1N-0005jP-Ke for gnash-commit@gnu.org; Tue, 26 Jun 2007 17:40:09 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3F1N-0005jM-H0 for gnash-commit@gnu.org; Tue, 26 Jun 2007 17:40:09 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 26 Jun 2007 17:40:09 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/fb.cpp gui/gtk_glue_agg.cpp... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 17:40:12 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/26 17:40:09 Modified files: . : ChangeLog gui : fb.cpp gtk_glue_agg.cpp gtk_glue_agg.h Log message: * backend/render_handler_agg.{cpp,h}, gui/fb.cpp: moved pixel format detection code to AGG backend files (so it can be used by any GUI) * gui/gtk_glue_agg.{cpp,h}: initial work for MIT-SHM support (not compiled in by default because there is much left to do) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3612&r2=1.3613 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fb.cpp?cvsroot=gnash&r1=1.32&r2=1.33 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.cpp?cvsroot=gnash&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.h?cvsroot=gnash&r1=1.7&r2=1.8 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3612 retrieving revision 1.3613 diff -u -b -r1.3612 -r1.3613 --- ChangeLog 26 Jun 2007 08:00:53 -0000 1.3612 +++ ChangeLog 26 Jun 2007 17:40:08 -0000 1.3613 @@ -1,3 +1,12 @@ +2007-06-26 Udo Giacomozzi + + * backend/render_handler_agg_style.h: always premultiply image accessors + with alpha channel (partial fix for bug #20257) + * backend/render_handler_agg.{cpp,h}, gui/fb.cpp: moved pixel format + detection code to AGG backend files (so it can be used by any GUI) + * gui/gtk_glue_agg.{cpp,h}: initial work for MIT-SHM support (not + compiled in by default because there is much left to do) + 2007-06-26 Zou Lunkai * testsuite/misc-ming.all/callFunction_test.c: testcase for ActionCallFunction, Index: gui/fb.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/fb.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- gui/fb.cpp 28 May 2007 15:40:59 -0000 1.32 +++ gui/fb.cpp 26 Jun 2007 17:40:09 -0000 1.33 @@ -255,57 +255,15 @@ var_screeninfo.blue.length); log_msg("Total bits per pixel: %d", var_screeninfo.bits_per_pixel); + char* pixelformat = agg_detect_pixel_format( + var_screeninfo.red.offset, var_screeninfo.red.length, + var_screeninfo.green.offset, var_screeninfo.green.length, + var_screeninfo.blue.offset, var_screeninfo.blue.length, + _bpp + ); - // 15 bits RGB (hicolor) - if ((var_screeninfo.red.offset==10) - && (var_screeninfo.red.length==5) - && (var_screeninfo.green.offset==5) - && (var_screeninfo.green.length==5) - && (var_screeninfo.blue.offset==0) - && (var_screeninfo.blue.length==5) ) { - - agg_handler = create_render_handler_agg("RGB555"); - - } else - // 16 bits RGB (hicolor) - if ((var_screeninfo.red.offset==11) - && (var_screeninfo.red.length==5) - && (var_screeninfo.green.offset==5) - && (var_screeninfo.green.length==6) - && (var_screeninfo.blue.offset==0) - && (var_screeninfo.blue.length==5) ) { - - agg_handler = create_render_handler_agg("RGB565"); - - } else - - // 24 bits RGB (truecolor) - if ((var_screeninfo.red.offset==16) - && (var_screeninfo.red.length==8) - && (var_screeninfo.green.offset==8) - && (var_screeninfo.green.length==8) - && (var_screeninfo.blue.offset==0) - && (var_screeninfo.blue.length==8) ) { - - if (_bpp==24) - agg_handler = create_render_handler_agg("BGR24"); - else - agg_handler = create_render_handler_agg("BGRA32"); - - } else - // 24 bits BGR (truecolor) - if ((var_screeninfo.red.offset==0) - && (var_screeninfo.red.length==8) - && (var_screeninfo.green.offset==8) - && (var_screeninfo.green.length==8) - && (var_screeninfo.blue.offset==16) - && (var_screeninfo.blue.length==8)) { - - if (_bpp==24) - agg_handler = create_render_handler_agg("RGB24"); - else - agg_handler = create_render_handler_agg("RGBA32"); - + if (pixelformat) { + agg_handler = create_render_handler_agg(pixelformat); } else { log_error("The pixel format of your framebuffer is not supported."); return false; Index: gui/gtk_glue_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- gui/gtk_glue_agg.cpp 28 May 2007 15:41:00 -0000 1.17 +++ gui/gtk_glue_agg.cpp 26 Jun 2007 17:40:09 -0000 1.18 @@ -18,7 +18,7 @@ // // -/* $Id: gtk_glue_agg.cpp,v 1.17 2007/05/28 15:41:00 ann Exp $ */ +/* $Id: gtk_glue_agg.cpp,v 1.18 2007/06/26 17:40:09 udog Exp $ */ /* @@ -47,6 +47,15 @@ #include "render_handler_agg.h" #include "gtk_glue_agg.h" +#ifdef ENABLE_MIT_SHM +#include +#include +#include +#include +#include +#endif + + namespace gnash { @@ -63,12 +72,16 @@ GtkAggGlue::~GtkAggGlue() { free(_offscreenbuf); + destroy_shm_image(); } bool GtkAggGlue::init(int /*argc*/, char **/*argv*/[]) { gdk_rgb_init(); + + _have_shm = check_mit_shm(gdk_display); + #ifdef PIXELFORMAT_RGB565 _bpp = 16; #else @@ -79,6 +92,65 @@ return true; } +bool +GtkAggGlue::check_mit_shm(Display *display) +{ +#ifdef ENABLE_MIT_SHM + int major, minor, dummy; + Bool pixmaps; + + log_msg("Checking support for MIT-SHM..."); + + if (!XQueryExtension(display, "MIT-SHM", &dummy, &dummy, &dummy)) + { + log_msg("WARNING: No MIT-SHM extension available, using standard XLib " + "calls (slower)"); + return false; + } + + if (XShmQueryVersion(display, &major, &minor, &pixmaps )!=True) + { + log_msg("WARNING: MIT-SHM not ready (network link?), using standard XLib " + "calls (slower)"); + return false; + } + + log_msg("NOTICE: MIT-SHM available (version %d.%d)!", major, minor); + + +#else + return false; // !ifdef ENABLE_MIT_SHM +#endif + +} + +void +GtkAggGlue::create_shm_image(unsigned int width, unsigned int height) +{ + + //Visual xvisual = ((GdkVisualPrivate*) visual)->xvisual; + + destroy_shm_image(); + + /*if (!_shm_info) { + _shm_info = malloc(sizeof XShmSegmentInfo); + }*/ + + //_shm_image = XShmCreateImage(); +} + +void +GtkAggGlue::destroy_shm_image() +{ +#ifdef ENABLE_MIT_SHM + if (!_shm_image) return; // not allocated + + XDestroyImage(_shm_image); + _shm_image=NULL; + +#endif +} + void GtkAggGlue::prepDrawingArea(GtkWidget *drawing_area) { @@ -86,8 +158,51 @@ } render_handler* +GtkAggGlue::create_shm_handler() +{ +#ifdef ENABLE_MIT_SHM + GdkVisual *visual = gdk_drawable_get_visual(_drawing_area->window); + + char *pixelformat = agg_detect_pixel_format( + visual->red_shift, visual->red_prec, + visual->green_shift, visual->green_prec, + visual->blue_shift, visual->blue_prec, + visual->depth); + + if (!pixelformat) { + log_msg("Pixel format of X server not recognized (%d:%d, %d:%d, %d:%d, %d bpp)", + visual->red_shift, visual->red_prec, + visual->green_shift, visual->green_prec, + visual->blue_shift, visual->blue_prec, + visual->depth); + return NULL; + } + + log_msg("X server is using %s pixel format", pixelformat); + + render_handler* res = create_render_handler_agg(pixelformat); + + if (!res) + log_msg("Failed creating a renderer instance for this pixel format. " + "Most probably Gnash has not compiled in (configured) support " + "for this pixel format - using standard pixmaps instead"); + + + return res; + +#else + return NULL; +#endif +} + +render_handler* GtkAggGlue::createRenderHandler() { + + // try with MIT-SHM + _agg_renderer = create_shm_handler(); + if (_agg_renderer) return _agg_renderer; + #ifdef PIXELFORMAT_RGB565 #warning A pixel format of RGB565; you must have a (hacked) GTK which supports \ this format (e.g., GTK on the OLPC). @@ -107,6 +222,8 @@ #define CHUNK_SIZE (100*100*(_bpp/8)) + create_shm_image(width, height); + if (width == _width && height == _height) return; Index: gui/gtk_glue_agg.h =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- gui/gtk_glue_agg.h 28 May 2007 15:41:00 -0000 1.7 +++ gui/gtk_glue_agg.h 26 Jun 2007 17:40:09 -0000 1.8 @@ -18,11 +18,20 @@ // // +// Define this macro to enable experimental support for MIT-SHM +// see http://www.xfree86.org/current/mit-shm.html +//#define ENABLE_MIT_SHM 1 + #include "gtk_glue.h" #include #include +#ifdef ENABLE_MIT_SHM +#include +#endif + + namespace gnash { @@ -45,6 +54,29 @@ int _offscreenbuf_size; render_handler *_agg_renderer; int _width, _height, _bpp; + bool _have_shm; +#ifdef ENABLE_MIT_SHM + XImage *_shm_image; + XShmSegmentInfo *_shm_info; +#endif + + /// Checks if the MIT-SHM extension is available (supported by the server) + bool check_mit_shm(Display *display); + + /// Tries to create a SHM image. + /// + /// This can still fail even if check_mit_shm() returned true in case + /// we have not the appropriate pixel format compiled in or any other + /// error happened. + void create_shm_image(unsigned int width, unsigned int height); + + /// Destroys a previously created SHM image (deals with NULL pointer) + void destroy_shm_image(); + + /// Tries to create a AGG render handler based on the X server pixel + /// format. Returns NULL on failure. + render_handler *create_shm_handler(); + }; } // namespace gnash From MAILER-DAEMON Tue Jun 26 13:40:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3F1t-0005ii-UX for mharc-gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3F1s-0005fM-RM for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3F1s-0005dJ-2i for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3F1r-0005d3-VT for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:39 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3F1r-0006yg-C1 for gnash-commit@gnu.org; Tue, 26 Jun 2007 13:40:39 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3F1r-0005ot-1v for gnash-commit@gnu.org; Tue, 26 Jun 2007 17:40:39 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3F1q-0005oq-Uv for gnash-commit@gnu.org; Tue, 26 Jun 2007 17:40:38 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Tue, 26 Jun 2007 17:40:38 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/backend render_handler_agg.cpp render_han... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 17:40:41 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/26 17:40:38 Modified files: backend : render_handler_agg.cpp render_handler_agg.h Log message: * backend/render_handler_agg.{cpp,h}, gui/fb.cpp: moved pixel format detection code to AGG backend files (so it can be used by any GUI) * gui/gtk_glue_agg.{cpp,h}: initial work for MIT-SHM support (not compiled in by default because there is much left to do) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.88&r2=1.89 http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.h?cvsroot=gnash&r1=1.17&r2=1.18 Patches: Index: render_handler_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v retrieving revision 1.88 retrieving revision 1.89 diff -u -b -r1.88 -r1.89 --- render_handler_agg.cpp 6 Jun 2007 16:15:00 -0000 1.88 +++ render_handler_agg.cpp 26 Jun 2007 17:40:38 -0000 1.89 @@ -17,7 +17,7 @@ -/* $Id: render_handler_agg.cpp,v 1.88 2007/06/06 16:15:00 udog Exp $ */ +/* $Id: render_handler_agg.cpp,v 1.89 2007/06/26 17:40:38 udog Exp $ */ // Original version by Udo Giacomozzi and Hannes Mayr, // INDUNET GmbH (www.indunet.it) @@ -2078,6 +2078,8 @@ DSOEXPORT render_handler_agg_base* create_render_handler_agg(const char *pixelformat) { + if (!pixelformat) return NULL; + log_msg("framebuffer pixel format is %s", pixelformat); #ifdef PIXELFORMAT_RGB555 @@ -2121,6 +2123,55 @@ return NULL; // avoid compiler warning } +DSOEXPORT char *agg_detect_pixel_format(unsigned int rofs, unsigned int rsize, + unsigned int gofs, unsigned int gsize, + unsigned int bofs, unsigned int bsize, + unsigned int bpp) { + + // 15 bits RGB (hicolor) + if ((rofs==10) && (rsize==5) + && (gofs==5) && (gsize==5) + && (bofs==0) && (bsize==5) ) { + + return "RGB555"; + + } else + // 16 bits RGB (hicolor) + if ((rofs==11) && (rsize==5) + && (gofs==5) && (gsize==6) + && (bofs==0) && (bsize==5) ) { + + return "RGB565"; + + } else + + // 24 bits RGB (truecolor) + if ((rofs==16) && (rsize==8) + && (gofs==8) && (gsize==8) + && (bofs==0) && (bsize==8) ) { + + if (bpp==24) + return "BGR24"; + else + return "BGRA32"; + + } else + // 24 bits BGR (truecolor) + if ((rofs==0) && (rsize==8) + && (gofs==8) && (gsize==8) + && (bofs==16) && (bsize==8)) { + + if (bpp==24) + return "RGB24"; + else + return "RGBA32"; + + } + + return NULL; // unknown format + +} + } // end of namespace gnash Index: render_handler_agg.h =================================================================== RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -b -r1.17 -r1.18 --- render_handler_agg.h 4 Jun 2007 16:59:03 -0000 1.17 +++ render_handler_agg.h 26 Jun 2007 17:40:38 -0000 1.18 @@ -68,6 +68,16 @@ DSOEXPORT render_handler_agg_base* create_render_handler_agg(const char *pixelformat); +/// Detect pixel format based on bit mask. If the pixel format is unknown, +/// NULL is returned. Note that a successfully detected pixel format does +/// not necessarily mean that the pixel format is available (compiled in). +DSOEXPORT char* agg_detect_pixel_format(unsigned int rofs, unsigned int rsize, + unsigned int gofs, unsigned int gsize, + unsigned int bofs, unsigned int bsize, + unsigned int bpp); + + } // namespace gnash + #endif // BACKEND_RENDER_HANDLER_CAIRO_H From MAILER-DAEMON Wed Jun 27 05:55:26 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3UFB-0003IH-Uw for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 05:55:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3UFA-0003Hy-Es for gnash-commit@gnu.org; Wed, 27 Jun 2007 05:55:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3UF8-0003Hc-RV for gnash-commit@gnu.org; Wed, 27 Jun 2007 05:55:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3UF8-0003HS-NT for gnash-commit@gnu.org; Wed, 27 Jun 2007 05:55:22 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3UF8-0007Jw-B5 for gnash-commit@gnu.org; Wed, 27 Jun 2007 05:55:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3UF7-0007KQ-G9 for gnash-commit@gnu.org; Wed, 27 Jun 2007 09:55:21 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3UF7-0007KN-AX for gnash-commit@gnu.org; Wed, 27 Jun 2007 09:55:21 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 27 Jun 2007 09:55:21 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash gui/fb.cpp gui/fltk_glue_agg.cpp gui/gtk.... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 09:55:24 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/27 09:55:21 Modified files: gui : fb.cpp fltk_glue_agg.cpp gtk.cpp gui.cpp . : ChangeLog Log message: gui/fb.cpp, gui/fltk_glue_agg.cpp, gui/gtk.cpp, gui/gui.cpp: set correct _validbounds CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fb.cpp?cvsroot=gnash&r1=1.33&r2=1.34 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fltk_glue_agg.cpp?cvsroot=gnash&r1=1.6&r2=1.7 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.95&r2=1.96 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.79&r2=1.80 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3613&r2=1.3614 Patches: Index: gui/fb.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/fb.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -b -r1.33 -r1.34 --- gui/fb.cpp 26 Jun 2007 17:40:09 -0000 1.33 +++ gui/fb.cpp 27 Jun 2007 09:55:20 -0000 1.34 @@ -231,7 +231,7 @@ m_stage_width = _width; m_stage_height = _height; - _validbounds.setTo(0, 0, _width, _height); + _validbounds.setTo(0, 0, _width-1, _height-1); #ifdef DOUBLE_BUFFER Index: gui/fltk_glue_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/fltk_glue_agg.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- gui/fltk_glue_agg.cpp 28 May 2007 15:40:59 -0000 1.6 +++ gui/fltk_glue_agg.cpp 27 Jun 2007 09:55:20 -0000 1.7 @@ -78,7 +78,7 @@ _width = width; _height = height; - _validbounds.setTo(0, 0, _width, _height); + _validbounds.setTo(0, 0, _width-1, _height-1); _drawbounds = _validbounds; } Index: gui/gtk.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.95 retrieving revision 1.96 diff -u -b -r1.95 -r1.96 --- gui/gtk.cpp 23 Jun 2007 18:19:53 -0000 1.95 +++ gui/gtk.cpp 27 Jun 2007 09:55:20 -0000 1.96 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.95 2007/06/23 18:19:53 bjacques Exp $ */ +/* $Id: gtk.cpp,v 1.96 2007/06/27 09:55:20 udog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -231,7 +231,7 @@ _width = width; _height = height; - _validbounds.setTo(0, 0, _width, _height); + _validbounds.setTo(0, 0, _width-1, _height-1); glue.setRenderHandlerSize(_width, _height); Index: gui/gui.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gui.cpp,v retrieving revision 1.79 retrieving revision 1.80 diff -u -b -r1.79 -r1.80 --- gui/gui.cpp 1 Jun 2007 09:13:37 -0000 1.79 +++ gui/gui.cpp 27 Jun 2007 09:55:20 -0000 1.80 @@ -154,7 +154,7 @@ // set new size ? _width = width; _height = height; - _validbounds.setTo(0, 0, _width, _height); + _validbounds.setTo(0, 0, _width-1, _height-1); //log_msg(_("new size (in twips) is: %dx%d"), _width*20, _height*20); } Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3613 retrieving revision 1.3614 diff -u -b -r1.3613 -r1.3614 --- ChangeLog 26 Jun 2007 17:40:08 -0000 1.3613 +++ ChangeLog 27 Jun 2007 09:55:20 -0000 1.3614 @@ -1,3 +1,8 @@ +2007-06-27 Udo Giacomozzi + + * gui/fb.cpp, gui/fltk_glue_agg.cpp, gui/gtk.cpp, gui/gui.cpp: set + correct _validbounds + 2007-06-26 Udo Giacomozzi * backend/render_handler_agg_style.h: always premultiply image accessors From MAILER-DAEMON Wed Jun 27 10:22:42 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3YPp-00073J-RP for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 10:22:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3YPm-00072F-SW for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:22:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3YPl-00071f-9v for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:22:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3YPl-00071a-2L for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:22:37 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3YPk-0003zz-Mn for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:22:36 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3YPj-0005iT-V0 for gnash-commit@gnu.org; Wed, 27 Jun 2007 14:22:36 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3YPj-0005iQ-RF for gnash-commit@gnu.org; Wed, 27 Jun 2007 14:22:35 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 27 Jun 2007 14:22:35 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk_gl... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 14:22:39 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/27 14:22:35 Modified files: . : ChangeLog gui : gtk_glue_agg.cpp gtk_glue_agg.h Log message: implemented shared memory image blitting CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3614&r2=1.3615 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.cpp?cvsroot=gnash&r1=1.18&r2=1.19 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.h?cvsroot=gnash&r1=1.8&r2=1.9 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3614 retrieving revision 1.3615 diff -u -b -r1.3614 -r1.3615 --- ChangeLog 27 Jun 2007 09:55:20 -0000 1.3614 +++ ChangeLog 27 Jun 2007 14:22:35 -0000 1.3615 @@ -2,6 +2,7 @@ * gui/fb.cpp, gui/fltk_glue_agg.cpp, gui/gtk.cpp, gui/gui.cpp: set correct _validbounds + * gui/gtk_glue_agg.{cpp,h}: implemented shared memory image blitting 2007-06-26 Udo Giacomozzi Index: gui/gtk_glue_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -b -r1.18 -r1.19 --- gui/gtk_glue_agg.cpp 26 Jun 2007 17:40:09 -0000 1.18 +++ gui/gtk_glue_agg.cpp 27 Jun 2007 14:22:35 -0000 1.19 @@ -18,21 +18,33 @@ // // -/* $Id: gtk_glue_agg.cpp,v 1.18 2007/06/26 17:40:09 udog Exp $ */ +/* $Id: gtk_glue_agg.cpp,v 1.19 2007/06/27 14:22:35 udog Exp $ */ -/* +/// \page gtk_shm_support GTK shared memory extension support +/// +/// The GTK-AGG combination supports the use of the X11 MIT-SHM extension. +/// This extension allows passing image data to the X server in it's native +/// format (defined by the graphics mode). This prevents CPU intensive pixel +/// format conversions for the X server. +/// +/// Not all X servers support this extension and it's available for local +/// (not networked) X connections anyway. So the GTK GUI will first *try* +/// to use the extension and on failure provide automatic fallback to standard +/// pixmaps. +/// +/// You won't notice this fallback unless you check the log messages (aside +/// from potential performance difference.) +/// +/// The macro ENABLE_MIT_SHM must be defined in gtk_glue_agg.h to enable +/// support for the MIT-SHM extension. +/// +/// For more information about the extension, have a look at these URLs: +/// http://en.wikipedia.org/wiki/MIT-SHM +/// http://www.xfree86.org/current/mit-shm.html -TODO: Support MIT-SHM to push image data more quickly on screen, avoiding -overhead by X Server IPC. -References: - http://en.wikipedia.org/wiki/MIT-SHM - http://www.xfree86.org/current/mit-shm.html - -Also worth checking: - http://en.wikipedia.org/wiki/X_video_extension -*/ +// Also worth checking: http://en.wikipedia.org/wiki/X_video_extension #include @@ -71,7 +83,11 @@ GtkAggGlue::~GtkAggGlue() { + if (_offscreenbuf) { free(_offscreenbuf); + _offscreenbuf=NULL; + } + destroy_shm_image(); } @@ -128,25 +144,78 @@ GtkAggGlue::create_shm_image(unsigned int width, unsigned int height) { - //Visual xvisual = ((GdkVisualPrivate*) visual)->xvisual; + // destroy any already existing structures + destroy_shm_image(); + +#ifdef ENABLE_MIT_SHM + GdkVisual* visual = gdk_drawable_get_visual(_drawing_area->window); + Visual* xvisual = GDK_VISUAL_XVISUAL(visual); + + // prepare segment info (populated by XShmCreateImage) + _shm_info = (XShmSegmentInfo*) malloc(sizeof(XShmSegmentInfo)); + assert(_shm_info != NULL); + + // create shared memory XImage + _shm_image = XShmCreateImage(gdk_display, xvisual, visual->depth, + ZPixmap, NULL, _shm_info, width, height); + if (!_shm_image) { + log_msg("Failed creating the shared memory XImage!"); destroy_shm_image(); + return; + } + + // create shared memory segment + _shm_info->shmid = shmget(IPC_PRIVATE, + _shm_image->bytes_per_line * _shm_image->height, IPC_CREAT|0777); + + if (_shm_info->shmid == -1) { + log_msg("Failed requesting shared memory segment (%s). Perhaps the " + "required memory size is bigger than the limit set by the kernel.", + strerror(errno)); + destroy_shm_image(); + return; + } - /*if (!_shm_info) { - _shm_info = malloc(sizeof XShmSegmentInfo); - }*/ + // attach the shared memory segment to our process + _shm_info->shmaddr = _shm_image->data = (char*) shmat(_shm_info->shmid, 0, 0); + + if (_shm_info->shmaddr == (char*) -1) { + log_msg("Failed attaching to shared memory segment: %s", strerror(errno)); + destroy_shm_image(); + return; + } + + // Give the server full access to our memory segment. We just follow + // the documentation which recommends this, but we could also give him + // just read-only access since we don't need XShmGetImage... + _shm_info->readOnly = False; + + // Finally, tell the server to attach to our shared memory segment + if (!XShmAttach(gdk_display, _shm_info)) { + log_msg("Server failed attaching to the shared memory segment"); + destroy_shm_image(); + return; + } + + //log_msg("create_shm_image() OK"); // <-- remove this +#endif - //_shm_image = XShmCreateImage(); } void GtkAggGlue::destroy_shm_image() { #ifdef ENABLE_MIT_SHM - if (!_shm_image) return; // not allocated - + if (_shm_image) { XDestroyImage(_shm_image); _shm_image=NULL; + } + + if (_shm_info) { + free(_shm_info); + _shm_info=NULL; + } #endif } @@ -163,18 +232,40 @@ #ifdef ENABLE_MIT_SHM GdkVisual *visual = gdk_drawable_get_visual(_drawing_area->window); + // Create a dummy SHM image to detect it's pixel format (we can't use the + // info from "visual"). + // Is there a better way?? + + create_shm_image(256,256); + + if (!_shm_image) return NULL; + + unsigned int red_shift, red_prec; + unsigned int green_shift, green_prec; + unsigned int blue_shift, blue_prec; + + decode_mask(_shm_image->red_mask, &red_shift, &red_prec); + decode_mask(_shm_image->green_mask, &green_shift, &green_prec); + decode_mask(_shm_image->blue_mask, &blue_shift, &blue_prec); + + + log_msg("X server pixel format is (R%d:%d, G%d:%d, B%d:%d, %d bpp)", + red_shift, red_prec, + green_shift, green_prec, + blue_shift, blue_prec, + _shm_image->bits_per_pixel); + + char *pixelformat = agg_detect_pixel_format( - visual->red_shift, visual->red_prec, - visual->green_shift, visual->green_prec, - visual->blue_shift, visual->blue_prec, - visual->depth); + red_shift, red_prec, + green_shift, green_prec, + blue_shift, blue_prec, + _shm_image->bits_per_pixel); + + destroy_shm_image(); if (!pixelformat) { - log_msg("Pixel format of X server not recognized (%d:%d, %d:%d, %d:%d, %d bpp)", - visual->red_shift, visual->red_prec, - visual->green_shift, visual->green_prec, - visual->blue_shift, visual->blue_prec, - visual->depth); + log_msg("Pixel format of X server not recognized!"); return NULL; } @@ -182,11 +273,15 @@ render_handler* res = create_render_handler_agg(pixelformat); - if (!res) + if (!res) { log_msg("Failed creating a renderer instance for this pixel format. " "Most probably Gnash has not compiled in (configured) support " "for this pixel format - using standard pixmaps instead"); + // disable use of shared memory pixmaps + _have_shm = false; + } + return res; @@ -200,8 +295,10 @@ { // try with MIT-SHM + if (_have_shm) { _agg_renderer = create_shm_handler(); if (_agg_renderer) return _agg_renderer; + } #ifdef PIXELFORMAT_RGB565 #warning A pixel format of RGB565; you must have a (hacked) GTK which supports \ @@ -222,11 +319,41 @@ #define CHUNK_SIZE (100*100*(_bpp/8)) - create_shm_image(width, height); - if (width == _width && height == _height) return; + _width = width; + _height = height; + + + // try shared image first + if (_have_shm) + create_shm_image(width, height); + +#ifdef ENABLE_MIT_SHM + if (_shm_image) { + + // ==> use shared memory image (faster) + + log_msg("GTK-AGG: Using shared memory image"); + + if (_offscreenbuf) { + free(_offscreenbuf); + _offscreenbuf = NULL; + } + + static_cast(_agg_renderer)->init_buffer( + (unsigned char*) _shm_info->shmaddr, + _shm_image->bytes_per_line * _shm_image->height, + _width, + _height + ); + + } else { +#endif + + // ==> use standard pixmaps (slower, but should work in any case) + int new_bufsize = width*height*(_bpp/8); // TODO: At the moment we only increase the buffer and never decrease it. Should be @@ -249,9 +376,6 @@ memset(_offscreenbuf, 0, new_bufsize); } - _width = width; - _height = height; - // Only the AGG renderer has the function init_buffer, which is *not* part of // the renderer api. It allows us to change the renderers movie size (and buffer // address) during run-time. @@ -262,11 +386,50 @@ _height ); + +#ifdef ENABLE_MIT_SHM + } +#endif + } void GtkAggGlue::render() { + +#ifdef ENABLE_MIT_SHM + if (_shm_image) { + + XShmPutImage( + gdk_display, + GDK_WINDOW_XWINDOW(_drawing_area->window), + GDK_GC_XGC(_drawing_area->style->fg_gc[GTK_STATE_NORMAL]), // ??? + _shm_image, + 0, 0, + 0, 0, + _width, _height, + False); + + // : + // The shared memory buffer is copied in background(!) since the X + // calls are executed asynchroneously. This is dangerous because it + // may happen that the renderer updates the buffer while the X server + // still copies the data to the VRAM (flicker can occurr). + // Normally this is avoided using the XShmCompletionEvent which is sent + // to the client once the buffer has been copied. The last argument to + // XShmPutImage must be set to True for this. + // We'd need to wait for this event before calling the renderer again. + // I know nothing about X event handling and so I just call XSync here + // to wait until all commands have been executed. This has the + // disadvantage that we can't leave the X server some time till the core + // is ready to *render* the next frame. I don't think it would make a + // significant performance difference unless data to video ram is very + // slow (could be the case for old / embedded computers, though). + XSync(gdk_display, False); + + } else { +#endif + // Update the entire screen gdk_draw_rgb_image ( _drawing_area->window, @@ -280,12 +443,34 @@ (int)(_width*_bpp/8) ); +#ifdef ENABLE_MIT_SHM + } +#endif + } void GtkAggGlue::render(int minx, int miny, int maxx, int maxy) { +#ifdef ENABLE_MIT_SHM + if (_shm_image) { + + XShmPutImage( + gdk_display, + GDK_WINDOW_XWINDOW(_drawing_area->window), + GDK_GC_XGC(_drawing_area->style->fg_gc[GTK_STATE_NORMAL]), // ??? + _shm_image, + minx, miny, + minx, miny, + maxx-minx+1, maxy-miny+1, + False); + + XSync(gdk_display, False); // see GtkAggGlue::render(void) + + } else { +#endif + // Update only the invalidated rectangle gdk_draw_rgb_image ( _drawing_area->window, @@ -298,6 +483,10 @@ _offscreenbuf + miny*(_width*(_bpp/8)) + minx*(_bpp/8), (int)((_width)*_bpp/8) ); + +#ifdef ENABLE_MIT_SHM + } +#endif } void @@ -308,6 +497,24 @@ } +void +GtkAggGlue::decode_mask(unsigned long mask, unsigned int *shift, unsigned int *size) +{ + *shift = 0; + *size = 0; + + if (mask==0) return; // invalid mask + + while (!(mask & 1)) { + (*shift)++; + mask = mask >> 1; + } + + while (mask & 1) { + (*size)++; + mask = mask >> 1; + } +} } // namespace gnash Index: gui/gtk_glue_agg.h =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- gui/gtk_glue_agg.h 26 Jun 2007 17:40:09 -0000 1.8 +++ gui/gtk_glue_agg.h 27 Jun 2007 14:22:35 -0000 1.9 @@ -20,7 +20,7 @@ // Define this macro to enable experimental support for MIT-SHM // see http://www.xfree86.org/current/mit-shm.html -//#define ENABLE_MIT_SHM 1 +#define ENABLE_MIT_SHM 1 #include "gtk_glue.h" @@ -67,7 +67,8 @@ /// /// This can still fail even if check_mit_shm() returned true in case /// we have not the appropriate pixel format compiled in or any other - /// error happened. + /// error happened. create_shm_image() replaces (destroys) an already + /// allocated SHM image. void create_shm_image(unsigned int width, unsigned int height); /// Destroys a previously created SHM image (deals with NULL pointer) @@ -77,6 +78,10 @@ /// format. Returns NULL on failure. render_handler *create_shm_handler(); + // converts a bitmask to a shift/size information (used for pixel format + // detection) + void decode_mask(unsigned long mask, unsigned int *shift, unsigned int *size); + }; } // namespace gnash From MAILER-DAEMON Wed Jun 27 10:31:44 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3YYa-0000kF-Pn for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 10:31:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3YYY-0000je-Ht for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:31:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3YYS-0000ii-B9 for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:31:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3YYS-0000if-4r for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:31:36 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I3YYP-0005fP-Mb for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:31:35 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l5REVBU4022088; Wed, 27 Jun 2007 16:31:14 +0200 Date: Wed, 27 Jun 2007 16:31:07 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <52117537.20070627163107@nova-sys.net> To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk_gl... In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 14:31:42 -0000 Hello Udo, Wednesday, June 27, 2007, 4:22:35 PM, you wrote: UG> implemented shared memory image blitting This commit introduces support for the more efficient shared memory image blitting. I enabled compile time support for this extension, because that extension exists for more than 10 years. Anyway, we'd need a ./configure check for this. There is already a macro, ENABLE_MIT_SHM, which removes any reference to the extension from the GTK-AGG glue. As long as building succeeds there should be no problem as the GUI will fall back to normal pixmaps should the extension not be available by the server (especially when the X server is not on the same computer). Check log messages. Performance improvement is significant, but depends on the movie being played. Large stage updates with simple graphics will improve by up to 50% or more, while complex movies (much rendering overhead) will not play much faster. I expect a slight improvement for video playback, but I can't test since YouTube playback does not work anymore for me... Please test the new GUI... Udo From MAILER-DAEMON Wed Jun 27 10:34:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3Yav-0001LC-2I for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 10:34:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3Yat-0001L7-Jf for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:34:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3Yar-0001Kv-IJ for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:34:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3Yar-0001Ks-Cr for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:34:05 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I3Yaq-0006EP-Ru for gnash-commit@gnu.org; Wed, 27 Jun 2007 10:34:05 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l5REY0U4022324; Wed, 27 Jun 2007 16:34:03 +0200 Date: Wed, 27 Jun 2007 16:33:56 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1852873170.20070627163356@nova-sys.net> To: Udo Giacomozzi Subject: Re[2]: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk_gl... In-Reply-To: <52117537.20070627163107@nova-sys.net> References: <52117537.20070627163107@nova-sys.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------AD1C124B25A968EC" X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 14:34:07 -0000 ------------AD1C124B25A968EC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Attached a simple movie that should show the performance gain. Run with option -d 1 or fps will be limited to 120. ------------AD1C124B25A968EC Content-Type: application/x-shockwave-flash; name="blitting-profiler.swf" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="blitting-profiler.swf" RldTBsoHAAB4AAfQAAAXcAAAeAEAQwL///8/A9sAAACIRgAIAHVwZGF0ZV90aWNrZXIAZnBz X3RpbWVyAHRoaXMAb25FbnRlckZyYW1lAGZwc19sYWJlbABNYXRoAHJvdW5kACBmcHMAlgsA CAAGAAAAAAAAAAAdlgIACAE0HZYCAAgCHJYCAAgDmwUAAAAAZwCWBAAIAAgAHFAdlgIACAAc lgUAB2QAAABJEp0CAEgAlgQACAQIABw0lgIACAEcCw2WBQAH6AMAAAyWBwAHAQAAAAgFHJYC AAgGUpYCAAgHRx2WCwAIAAYAAAAAAAAAAB2WAgAIATQdTwC/ADcAAAABAHzdhkVWj9LhgAAC FAAAAAAUAAAAAAIl83itJN7ZBKWo9sbW0sAmrx9sjVLkAmrx9zndLEAA/wlXAAAAAgABAD8D QQAAAIgVAAMAdGhpcwBvbkVudGVyRnJhbWUAAJYCAAgAHJYCAAgBmwUAAAAAFACWDgAIAgcK AAAACAIHCgAAACJQI08AhgYGAQABAABAAAAAigYGAQACABz6CvCgPwzeBQAAAwCEAQZBcmlh bAAQACIAJABFAFMAvwDhAD8BwwHtAU0C1wIFA6sDPAR2BN0EaQUQABANC2Adma2GfZZpQDnY jl2IqhPXntSO5m0SjtAGlqTQABANC6Adma2GfZZtiZAAEA1BXS+cAX4N7GYasDXVmNdVQAJX YBYYlWmDq2YdLBBBmEUAAbZwAgfKT5uZPyyybLK7AAmlgDDtJ9xpABMsEBUQ9LzgBaCseSqn j4BK+AKok4q4gApk4ApfW4ktaLBASwgFtpP0SGAFrggAEA1L8AHYpuW4ct8/MPyyz9Yfs1My XunObK4nGKGo65VwABANaBPVdlW4Ibl/4BmKUlOU0JinQTcGZ3nirHlVRwE2UBKtXJbVuEAm vwDZJ5tknAEXbR+0wVMn2VMfZLQATNQAencx8dACvKAWblUu5XWXzaxfPqW2YXNdpjwLQAAQ DSK5/2rXpMIJhKRSpUTYBK/ALKkxZqAF/KAhV7EtivBAa4IraFWOdwZXQBdilXYgEKUBOvYJ b9+WAllgLqGbdIfZC203hMI0x1nTHecrgErwAyNSszRtZKaWgGUoBfnTy5k84vMgh5IYTEhe AI8wAwXSHNdIUqATUABgY82Bje9LggAQDUpYAd2o8FhbNbxU+JdhJ4Xb2GPZU9id3VfsUwKl Lv7hrbjjalbjlAAQDSK6B2r3xMFopMRypkbYBMggBbnzFueAV8wBZ6unNq6l0AS1AF0pLdJ7 EG2s9eIj0PwLZsq3Bbm/sMWZC0kkAmYABCQ5kJCAGmYAY8ZJmuVmGAJpwAwcibByPejwQAAQ DWf66/bTA8vSXq0S3LMoBLVAYDEtU/oeTc53/t0qGev0Sr9DMBMtACAhTH6EANMwAi8R5Lid zD82YQXwBNIAFzWz7nWgChTgCWE7PzItY6AEysAHBjMbmAWrYIClHROUAuKK5SipGXlSFk4C VyAU0pinSALGYAtNfUlsVIQCWGArLJtUsAEfBAAQDWDGwfZquB2tlGmukq8fJ92e+0g5uVc+ W3Yo5gKqIIWYhhj2OmPI5FsuCmQAEA1FrOeWRry2pctoBLmALA6ypjnJYACZgADo4mOzgAUJ QDPKmlypZRWZDFiQxmIzEARJgBevUCa+QJMAmlAC9wJr6/AKCYAuSTQmJM9D78EBWKO7UoBo iQyoULYBK0AIcEqG+AoSgJ969LevTQEswBeQy3kIBdggKUNLZQCYmklJJEhSVIUUgJkEAKta Yq1wDAmAL/V1ZtTWvwCWCArKpayoA/wQABANI4q/ar/Eot6fNynzjABKqAH9sp/aUwSlMA6V KNlAJGjdLlV0TctE3KATUoBg302DfAEpMASCFeTIN4xgEyQAHZPMdkw+kTh8jgBDzgBGeEqT cSniFc2GWV4BNVAGVoTZOh61WCAqamE5gCz19KWtTjAJYgCoxm0zEATpgBGKyyVUrfAJXwBT VmKNQAssEAAQDQsgHhjPYsdm62E/VkSgJQrNKNuodcqDU7AbVQJ2+adrl+5a4DeSl3kQDDVY 7DPso2xM8Lm7FMAAEA0kRmeWkOwpbKLKdsJNkqXW0ATIgAaEcxoRjSBMNoAAmTACjxoU3Eg5 JHLIRQgEtMBd2y3NunHwoHsUwKiVvqYAZioxlUsXYCV4AVzpivNAJWYAm9bNlrTowCWOAqNp tM1AGfBAABANIgsXas+UodqjOyojj0BK+AHs8p7OAvSAQzXzdvpb9s07z7XdLZ3bcEuy+Asy gLpDFIhC5ZKV4peu1N9ZX4BeSlXki5+UsfEs9tQGS+q+PTLj0zAEsIBlKyTKAOSAIlnSFnrk 7VAX3oUVSpiBU/KWPgF0oBbmUS5VE8tLOKwgE0wAZWrNlavjWYIAIAAsAC4AMAAxADIAMwA0 ADUANgA3ADgAOQBmAHAAcwCfA9kAeAAdAR0BHQE6AjoCOgI6AjoCOgI6AjoCOgI6Ah0BOgIA AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAAAB/CSsAAAAEAHCQyoF/sA3QjSED AGgBAAAA/wAAAAAAAAAoAGZwc19sYWJlbABmcHMAjgYGAwAEAMmOV2OVzJggiEAAAAA= ------------AD1C124B25A968EC-- From MAILER-DAEMON Wed Jun 27 12:51:07 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3ajT-0005MM-NG for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 12:51:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3ajR-0005M8-Om for gnash-commit@gnu.org; Wed, 27 Jun 2007 12:51:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3ajP-0005Lv-8s for gnash-commit@gnu.org; Wed, 27 Jun 2007 12:51:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3ajP-0005Ls-1a for gnash-commit@gnu.org; Wed, 27 Jun 2007 12:51:03 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I3ajO-00029L-G2 for gnash-commit@gnu.org; Wed, 27 Jun 2007 12:51:02 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l5RGouU4005565; Wed, 27 Jun 2007 18:50:59 +0200 Date: Wed, 27 Jun 2007 18:50:52 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <1608725106.20070627185052@nova-sys.net> To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk_gl... In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 16:51:06 -0000 An additional *important* note: Currently Gnash configures only one pixel format (RGB24) for AGG when using the GTK GUI, which is likely *not* the one your X server is running in. So, use the --with-pixelformat=all switch with ./configure to enable all pixel formats. This will make the binary bigger, but MIT-SHM should work at least. Of course, you can also just take the pixel format the X server runs in (but include RGB24 so that the fallback still works). Rob, we'd need to change this again. Dunno what's the best way (if we want to avoid "problems", all pixel formats should be included). Udo From MAILER-DAEMON Wed Jun 27 13:05:35 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3axT-0004MJ-1O for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 13:05:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3axR-0004Lw-UW for gnash-commit@gnu.org; Wed, 27 Jun 2007 13:05:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3axR-0004Le-Fx for gnash-commit@gnu.org; Wed, 27 Jun 2007 13:05:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3axR-0004LZ-9V for gnash-commit@gnu.org; Wed, 27 Jun 2007 13:05:33 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3axQ-00058K-C7 for gnash-commit@gnu.org; Wed, 27 Jun 2007 13:05:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3axP-0007t5-Cs for gnash-commit@gnu.org; Wed, 27 Jun 2007 17:05:31 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3axP-0007t1-6D for gnash-commit@gnu.org; Wed, 27 Jun 2007 17:05:31 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Wed, 27 Jun 2007 17:05:31 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash/gui gtk_glue_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 17:05:34 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/27 17:05:31 Modified files: gui : gtk_glue_agg.cpp Log message: return value was missing CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.cpp?cvsroot=gnash&r1=1.19&r2=1.20 Patches: Index: gtk_glue_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -u -b -r1.19 -r1.20 --- gtk_glue_agg.cpp 27 Jun 2007 14:22:35 -0000 1.19 +++ gtk_glue_agg.cpp 27 Jun 2007 17:05:31 -0000 1.20 @@ -18,7 +18,7 @@ // // -/* $Id: gtk_glue_agg.cpp,v 1.19 2007/06/27 14:22:35 udog Exp $ */ +/* $Id: gtk_glue_agg.cpp,v 1.20 2007/06/27 17:05:31 udog Exp $ */ /// \page gtk_shm_support GTK shared memory extension support @@ -133,6 +133,8 @@ log_msg("NOTICE: MIT-SHM available (version %d.%d)!", major, minor); + return true; + #else return false; // !ifdef ENABLE_MIT_SHM From MAILER-DAEMON Wed Jun 27 21:31:54 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I3irS-0005Tt-5W for mharc-gnash-commit@gnu.org; Wed, 27 Jun 2007 21:31:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3irP-0005Su-KO for gnash-commit@gnu.org; Wed, 27 Jun 2007 21:31:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3ir9-0005JY-Nf for gnash-commit@gnu.org; Wed, 27 Jun 2007 21:31:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3ir9-0005JV-Gz for gnash-commit@gnu.org; Wed, 27 Jun 2007 21:31:35 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3ir8-00005h-AZ for gnash-commit@gnu.org; Wed, 27 Jun 2007 21:31:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I3ir1-0004Mj-EV for gnash-commit@gnu.org; Thu, 28 Jun 2007 01:31:27 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I3ir1-0004Mg-8a for gnash-commit@gnu.org; Thu, 28 Jun 2007 01:31:27 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Thu, 28 Jun 2007 01:31:27 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog po/Makefile.am po/cs.po X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2007 01:31:52 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/28 01:31:27 Modified files: . : ChangeLog po : Makefile.am Added files: po : cs.po Log message: by Petr Pisar (patch #6045) * po/: Makefile.am, cs.po: Initial Czech translation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3615&r2=1.3616 http://cvs.savannah.gnu.org/viewcvs/gnash/po/Makefile.am?cvsroot=gnash&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/gnash/po/cs.po?cvsroot=gnash&rev=1.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3615 retrieving revision 1.3616 diff -u -b -r1.3615 -r1.3616 --- ChangeLog 27 Jun 2007 14:22:35 -0000 1.3615 +++ ChangeLog 28 Jun 2007 01:31:26 -0000 1.3616 @@ -1,3 +1,7 @@ +2007-06-27 Petr Pisar + + * po/: Makefile.am, cs.po: Initial Czech translation. + 2007-06-27 Udo Giacomozzi * gui/fb.cpp, gui/fltk_glue_agg.cpp, gui/gtk.cpp, gui/gui.cpp: set Index: po/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/po/Makefile.am,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- po/Makefile.am 14 Jun 2007 08:35:42 -0000 1.10 +++ po/Makefile.am 28 Jun 2007 01:31:26 -0000 1.11 @@ -7,7 +7,7 @@ POTFILES \ update-po -translations = es fr de it +translations = es fr de it cs pofiles := $(patsubst %,%.po,$(translations)) gmofiles := $(patsubst %,%.gmo,$(translations)) Index: po/cs.po =================================================================== RCS file: po/cs.po diff -N po/cs.po --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ po/cs.po 28 Jun 2007 01:31:26 -0000 1.1 @@ -0,0 +1,3643 @@ +# Czech translation of gnash. +# Copyright (C) 2007 Free Software Foundation, Inc. +# This file is distributed under the same license as the gnash package. +# Petr Pisar , 2007 +# +msgid "" +msgstr "" +"Project-Id-Version: gnash cvs20070612\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-06-12 13:24+0200\n" +"PO-Revision-Date: 2007-06-25 14:34+0200\n" +"Last-Translator: Petr Pisar \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../libbase/curl_adapter.cpp:333 ../libbase/curl_adapter.cpp:577 +#, c-format +msgid "404 response from url %s" +msgstr "Na URL %s přišla odpověd 404" + +#: ../libbase/extension.cpp:126 +#, c-format +msgid "Loading module: %s" +msgstr "Načítám modul: %s" + +#: ../libbase/extension.cpp:142 +#, c-format +msgid "Initializing module: \"%s\"" +msgstr "Inicializuji modul: „%s“" + +#: ../libbase/extension.cpp:159 +msgid "Couldn't get class_init symbol" +msgstr "Nemohu získat symbol class_init" + +#: ../libbase/extension.cpp:194 +#, c-format +msgid "Scanning directory \"%s\" for plugins" +msgstr "Prohledávám adresář „%s“ na zásuvné moduly" + +#: ../libbase/extension.cpp:198 +#, c-format +msgid "Can't open directory %s" +msgstr "Adresář %s nelze otevřít" + +#: ../libbase/extension.cpp:220 +#, c-format +msgid "Gnash Plugin name: %s" +msgstr "Jméno gnashového zásuvného modulu: %s" + +#: ../libbase/log.cpp:184 +msgid "TRACE" +msgstr "TRASOVÁNÍ" + +#: ../libbase/log.cpp:253 +msgid "ERROR" +msgstr "CHYBA" + +#: ../libbase/log.cpp:268 +msgid "ERROR: Unimplemented" +msgstr "CHYBA: Neimplementováno" + +#: ../libbase/log.cpp:283 +msgid "SECURITY" +msgstr "BEZPEČNOST" + +#: ../libbase/log.cpp:298 +msgid "MALFORMED SWF" +msgstr "CHYBNÝ SWD" + +#: ../libbase/log.cpp:313 +msgid "ACTIONSCRIPT ERROR" +msgstr "CHYBA ACTIONSCRIPTU" + +#: ../libbase/network.cpp:82 +msgid "Could not find a usable WinSock DLL" +msgstr "Nemohu nalézt použitelnou dynamickou knihovnu WinSock" + +#: ../libbase/network.cpp:124 +#, c-format +msgid "Can't connect to privileged port #%d" +msgstr "Nemohu se připojit na privilegovaný port č. %d" + +#: ../libbase/network.cpp:146 +#, c-format +msgid "unable to get protocol entry for %s" +msgstr "nemohu získat položku pro protokol %s" + +#: ../libbase/network.cpp:163 ../libbase/network.cpp:377 +#, c-format +msgid "unable to create socket: %s" +msgstr "nemohu vytvořit socket: %s" + +#: ../libbase/network.cpp:170 +msgid "setsockopt SO_REUSEADDR failed" +msgstr "selhalo setsockopt SO_REUSEADDR" + +#: ../libbase/network.cpp:180 +#, c-format +msgid "unable to bind to port %hd: %s" +msgstr "Nemohu se přichytit na port %hd: %s" + +#: ../libbase/network.cpp:190 +#, c-format +msgid "Server bound to service on %s, port %hd, using fd %d" +msgstr "Server přichycen ke službě na %s, portu %hd, deskriptoru %d" + +#: ../libbase/network.cpp:196 +#, c-format +msgid "unable to listen on port: %hd: %s " +msgstr "na portu %hd nemohu poslouchat: %s" + +#: ../libbase/network.cpp:233 +#, c-format +msgid "Trying to accept net traffic on fd %d" +msgstr "Pojouším se přijmout síťové spojení na deskriptor %d" + +#: ../libbase/network.cpp:262 +msgid "There is data at the console for stdin" +msgstr "Na standardním vtupu konzole jsou data" + +#: ../libbase/network.cpp:268 +#, c-format +msgid "The accept() socket for fd %d was interupted by a system call" +msgstr "Volání accept() na socketu č. %d bylo přerušeno systémovým voláním" + +#: ../libbase/network.cpp:272 +#, c-format +msgid "The accept() socket for fd %d never was available for writing" +msgstr "accept() socket na descriptoru č. %d nikdy nebyl připraven pro zápis" + +#: ../libbase/network.cpp:279 +#, c-format +msgid "The accept() socket for fd %d timed out waiting to write" +msgstr "Limit čekání accept() socketu na descriptoru č. %d na zápis vypršel" + +#: ../libbase/network.cpp:291 +#, c-format +msgid "unable to accept: %s" +msgstr "nemohu přijmout spojení: %s" + +#: ../libbase/network.cpp:296 +#, c-format +msgid "Accepting tcp/ip connection on fd %d" +msgstr "Přijímám TCP/IP spojení na deskriptoru %d" + +#: ../libbase/network.cpp:342 +#, c-format +msgid "Can't connect to privileged port %hd" +msgstr "Na privilegovaný port %hd se nemohu připojit" + +#: ../libbase/network.cpp:347 +#, c-format +msgid "%s: to host %s at port %d" +msgstr "%s: na stroj %s na port %d" + +#: ../libbase/network.cpp:353 +#, c-format +msgid "The hostname for this machine is %s" +msgstr "Jméno tohoto stroje je %s" + +#: ../libbase/network.cpp:355 +msgid "Couldn't get the hostname for this machine" +msgstr "Nemohu zístak jméno tohoto stroje" + +#: ../libbase/network.cpp:369 +#, c-format +msgid "The IP address for this client socket is %s" +msgstr "IP adresa tohoto klientského socketu je %s" + +#: ../libbase/network.cpp:399 +#, c-format +msgid "The connect() socket for fd %d was interupted by a system call" +msgstr "Čekání na connect() na socketu č. %d bylo přerušeno systémovým voláním" + +#: ../libbase/network.cpp:406 ../libbase/network.cpp:435 +#, c-format +msgid "The connect() socket for fd %d never was available for writing" +msgstr "connect() socket na deskriptoru č. %d nikdy nebyl připraven pro zápis" + +#: ../libbase/network.cpp:417 +#, c-format +msgid "The connect() socket for fd %d timed out waiting to write" +msgstr "Limit Čekání connect() socketu č. %d na zápis vypršelo" + +#: ../libbase/network.cpp:428 +#, c-format +msgid "\tport %d at IP %s for fd %d" +msgstr "\tport %d na IP %s pro deskriptor %d" + +#: ../libbase/network.cpp:504 +#, c-format +msgid "Unable to close the socket for fd %d: %s" +msgstr "Nemohu zavřít socket deskriptoru %d: %s" + +#: ../libbase/network.cpp:511 +#, c-format +msgid "Closed the socket on fd %d" +msgstr "Socket na deskriptoru %d uzavřen" + +#: ../libbase/network.cpp:593 ../libbase/network.cpp:683 +#, c-format +msgid "The socket for fd %d was interupted by a system call" +msgstr "Socket na deskriptoru %d byl přerušen systémovým voláním" + +#: ../libbase/network.cpp:597 +#, c-format +msgid "The socket for fd %d was never available for reading" +msgstr "Socket na deskriptoru %d nikdy nebyl schopný čtení" + +#: ../libbase/network.cpp:602 +#, c-format +msgid "The socket for fd %d timed out waiting to read" +msgstr "Limit čekání socketu na deskriptoru %d na čtení vypršel" + +#: ../libbase/network.cpp:608 +#, c-format +msgid "read %d bytes from fd %d" +msgstr "z deskriptoru %2$d přečteno %1$d bajtů" + +#: ../libbase/network.cpp:687 +#, c-format +msgid "The socket for fd %d was never available for writing" +msgstr "Socket na deskriptoru %d nikdy nebyl připraven pro zápis" + +#: ../libbase/network.cpp:691 +#, c-format +msgid "The socket for fd %d timed out waiting to write" +msgstr "Limit čekání socketu na deskriptoru %d na zápis vypršel" + +#: ../libbase/network.cpp:697 +#, c-format +msgid "Wrote zero out of %d bytes to fd %d: %s" +msgstr "Na deskriptor %2$d nebyl zapsán žádný z %1$d bajtů: %3$s" + +#: ../libbase/network.cpp:702 +#, c-format +msgid "Couldn't write %d bytes to fd %d: %s" +msgstr "Nemohu zapsat %d bajtů na deskriptor %d: %s" + +#: ../libbase/network.cpp:710 +#, c-format +msgid "wrote %d bytes to fd %d, expected %d" +msgstr "na deskriptor %2$d zappsáno %1$d bajtů, očekáváno %3$d" + +#: ../libbase/network.cpp:716 +#, c-format +msgid "wrote %d bytes to fd %d" +msgstr "%d bajtů zapsáno na deskriptor %d" + +#: ../libbase/network.cpp:732 +#, c-format +msgid "took %d usec to write (%d bytes)" +msgstr "%d μs trval zápis (%d bajtů)" + +#: ../libbase/rc.cpp:160 +#, c-format +msgid "Couldn't open file: %s" +msgstr "Nelze otevřít soubor: %s" + +#: ../libbase/sharedlib.cpp:107 +#, c-format +msgid "Couldn't initialize ltdl: %s" +msgstr "Nelze inicializovat ltdl: %s" + +#: ../libbase/sharedlib.cpp:180 +#, c-format +msgid "Opened dynamic library \"%s\"" +msgstr "Otevřena dynamická knihovna „%s“" + +#: ../libbase/sharedlib.cpp:214 ../libbase/sharedlib.cpp:239 +#, c-format +msgid "Couldn't find symbol: %s" +msgstr "Nelze nalézt symbol: %s" + +#: ../libbase/sharedlib.cpp:217 ../libbase/sharedlib.cpp:242 +#, c-format +msgid "Found symbol %s @ %p" +msgstr "Symbol %s nalezen na %p" + +#: ../backend/sound_handler_gst.cpp:78 +msgid "Could not allocate memory for sound data" +msgstr "Pro zvuková data nelze vyhradit pamět" + +#: ../backend/sound_handler_gst.cpp:94 ../backend/sound_handler_gst.cpp:104 +msgid "Could not allocate space for data in sound handler" +msgstr "Pro data v obsluze zvuku nelze vyhradit místo" + +#: ../backend/sound_handler_gst.cpp:115 ../backend/sound_handler_sdl.cpp:129 +msgid "Sound data format not properly converted" +msgstr "Formát zvukových dat nebyl správně převeden" + +#: ../backend/sound_handler_gst.cpp:120 +msgid "Nellymoser sound format requested; gnash does not handle it" +msgstr "Požadován zuvkový formát nellymoser; gnash jej neumí zpracovat" + +#: ../backend/sound_handler_gst.cpp:125 +#, c-format +msgid "Unknown sound format %d requested; gnash does not handle it" +msgstr "Požadován neznámý zuvkový formát %d; gnash jej neumí zpracovat" + +#: ../backend/sound_handler_gst.cpp:261 ../backend/sound_handler_sdl.cpp:254 +msgid "Trying to play sound with size 0" +msgstr "Pokouším se přehrát zvuk o velikosti 0" + +#: ../backend/sound_handler_gst.cpp:269 +msgid "Could not allocate memory for gst_element" +msgstr "Pro get_element nelze vyhradit pamět" + +#: ../backend/sound_handler_gst.cpp:294 +msgid "The gstreamer pipeline element could not be created" +msgstr "Nelze vytvořit jednotku pracovní fronty gstreameru" + +#: ../backend/sound_handler_gst.cpp:297 +msgid "The gstreamer audiosink element could not be created" +msgstr "Nelze vytvořit gstreamovou jednotku adiosink" + +#: ../backend/sound_handler_gst.cpp:323 +msgid "Gstreamer element for audio handling could not be created" +msgstr "Nelze vytvořit gstreamovou jednotku pro zpracování zvuku " + +#: ../backend/sound_handler_gst.cpp:340 +msgid "" +"This version of fluendos mp3 plugin does not support flash streaming sounds, " +"please upgrade to version 0.10.4 or higher" +msgstr "" +"Tato verze MP3 zásuvného modulu fluendos nepodporuje flashové zvukové " +"proudy, nainstalujte verzi 0.10.4 nebo vyšší" + +#: ../backend/sound_handler_gst.cpp:347 +msgid "" +"A gstreamer mp3-decoder element could not be created. You probably need to " +"install a mp3-decoder plugin like gstreamer0.10-mad or gstreamer0.10-fluendo-" +"mp3." +msgstr "" +"Nelze vytvořit gstreamovou jednotku pro demompresi MP3. Pravděpodobně " +"potřebujete nainstalovat zásuvný modul pro dekódování MP3, jako je " +"gstreamer0.10-mad nebo gstreamer0.10-fluendo-mp3." + +#: ../backend/sound_handler_sdl.cpp:76 +msgid "could not allocate memory for sound data" +msgstr "pro zvuková data nelze vyhradit pamět" + +#: ../backend/sound_handler_sdl.cpp:100 +msgid "Some kind of error occurred with sound data" +msgstr "Ve zvukových datech se vyskytla chyba" + +#: ../backend/sound_handler_sdl.cpp:111 +msgid "gnash has not been compiled to handle mp3 audio" +msgstr "gnash nebyl přeložen s podporout MP3 zvuku" + +#: ../backend/sound_handler_sdl.cpp:117 +msgid "could not allocate space for data in sound handler" +msgstr "pro data v obsluze zvuku nelze vyhradit místo" + +#: ../backend/sound_handler_sdl.cpp:139 +#, c-format +msgid "unknown sound format %d requested; gnash does not handle it" +msgstr "požadován neznámý zuvkový formát %d; gnash jej neumí zpracovat" + +#: ../backend/sound_handler_sdl.cpp:175 +msgid "Some kind of error with resampling sound data" +msgstr "Při převzorkování zvuku se vyskytla chyba" + +#: ../backend/sound_handler_sdl.cpp:223 +#, c-format +msgid "" +"Behavior for this audio codec %d is unknown. Please send this SWF to the " +"developers" +msgstr "" +"Zacházení s zvukovým kodekem %d není určeno. Prosím, zašlete tento SWF " +"soubor vývojářům." + +#: ../backend/sound_handler_sdl.cpp:292 +msgid "Your FFMPEG can't decode MP3?!" +msgstr "Váš FFMPEG neumí dekódovat MP3?!" + +#: ../backend/sound_handler_sdl.cpp:321 +#, c-format +msgid "Unable to start SDL sound: %s" +msgstr "SDL zvuk nelze nastartovat: %s" + +#: ../backend/sound_handler_sdl.cpp:515 +#, c-format +msgid "Unable to start aux SDL sound: %s" +msgstr "AUX SDL zvuk nezle nastartovat: %s" + +#: ../backend/sound_handler_sdl.cpp:686 +#, c-format +msgid "Negative buffer length in sdl_audio_callback (%d)" +msgstr "Záportná délka vyrovnávací paměti v sdl_audio_callback (%d)" + +#: ../backend/sound_handler_sdl.cpp:692 +msgid "Zero buffer length in sdl_audio_callback" +msgstr "Nulová vyrovnávací paměť v sdl_audio_callback" + +#: ../backend/sound_handler_sdl.cpp:826 +msgid "" +"Error while decoding MP3-stream. Upgrading ffmpeg/libavcodec might fix this " +"issue." +msgstr "" +"Chyba při dekódování MP3 proudu. Povýšení ffmpeg/libavcodec by mohlo pomoci." + +#: ../backend/sound_handler_sdl.cpp:856 +#, c-format +msgid "Recoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Zotavitelná chyba při dekódování MP3 proudu, chyba MAD: %s" + +#: ../backend/sound_handler_sdl.cpp:864 +#, c-format +msgid "Unrecoverable error while decoding MP3-stream, MAD error: %s" +msgstr "Nezotavitelná chyba při dekódování MP3 proudu, chyba MAD: %s" + +#: ../backend/sound_handler_sdl.cpp:922 +msgid "Error in sound sample conversion" +msgstr "Chyba při převodu vzorku zvuku" + +#: ../server/array.cpp:203 +msgid "tried to pop element from back of empty array, returning undef" +msgstr "pokus o vyzvednutí jednotky z konce prázdného pole, vracím nedefinováno" + +#: ../server/array.cpp:219 +msgid "tried to shift element from front of empty array, returning undef" +msgstr "pokus o posun jednotky ze předu prázdného pole, vracím nedefinováno" + +#: ../server/array.cpp:313 +#, c-format +msgid "Array.slice(%u, %u) called" +msgstr "Zavoláno array.slice(%u, %u)" + +#: ../server/array.cpp:343 +#, c-format +msgid "Current array is %s" +msgstr "Současné pole je %s" + +#: ../server/array.cpp:476 +#, c-format +msgid "Unhandled sort flags: %d (0x%X)" +msgstr "Nezpracovatelný druh příznaku: %d (0x%X)" + +#: ../server/array.cpp:486 +msgid "array.sort with unique flag" +msgstr "array.sort s jedinečným příznakem" + +#: ../server/array.cpp:512 +#, c-format +msgid "Array(%s).splice(%s) called" +msgstr "Zavoláno array(%s).splice(%s)" + +#: ../server/array.cpp:518 +msgid "Array.splice() needs at least 1 argument, call ignored" +msgstr "Array.splice() potřebuje alespoň 1 argument, volání ignorováno" + +#: ../server/array.cpp:534 +#, c-format +msgid "Array.splice: start:%d became %u" +msgstr "Array.splice: začátek:%d se stal %u" + +#: ../server/array.cpp:547 +#, c-format +msgid "Array.splice(%d,%d): negative length given, call ignored" +msgstr "Array.splice(%d,%d): zadána záporná délka, volání ignorováno" + +#: ../server/array.cpp:614 +#, c-format +msgid "calling array push, pushing %d values onto back of array" +msgstr "volám array push, na konec pole přidávám %d hodnot " + +#: ../server/array.cpp:630 +#, c-format +msgid "calling array unshift, pushing %d values onto front of array" +msgstr "volám array unshift, na začátek pole přidávám %d hodnot " + +#: ../server/array.cpp:649 +#, c-format +msgid "calling array pop, result:%s, new array size:%d" +msgstr "volám array pop, výsledek: %s, nová velikost pole: %d" + +#: ../server/array.cpp:665 +#, c-format +msgid "calling array shift, result:%s, new array size:%d" +msgstr "volám array shift, výsledek: %s, nová velikost pole: %d" + +#: ../server/array.cpp:682 +#, c-format +msgid "called array reverse, result:%s, new array size:%d" +msgstr "zavoláno array reverse, výsledek: %s, nová velikost pole: %d" + +#: ../server/array.cpp:723 +#, c-format +msgid "array_to_string called, nargs = %d, this_ptr = %p" +msgstr "zavoláno array_to_string, nargs = %d, this_ptr = %p" + +#: ../server/array.cpp:726 +#, c-format +msgid "to_string result is: %s" +msgstr "výsledkem to_string je: %s" + +#: ../server/array.cpp:775 +msgid "" +"More than 2 arguments to Array.slice, and I don't know what to do with " +"them. Ignoring them" +msgstr "" +"Více jak 2 argumenty k Array.slice a já nevím, co s nimi. Ignoruji je." + +#: ../server/array.cpp:845 +#, c-format +msgid "array_new called, nargs = %d" +msgstr "zavoláno array_new, nargs = %d" + +#: ../server/array.cpp:878 +#, c-format +msgid "array_new setting object %p in result" +msgstr "array_new nastaví výsledný objekt %p" + +#: ../server/as_environment.cpp:71 +#, c-format +msgid "find_object%s(\"%s\") [ varname = '%s' - current target = '%s' ] failed" +msgstr "find_object%s(„%s“) [ varname = „%s“ – současný cíl = „%s“ ] selhala" + +#: ../server/as_environment.cpp:83 +#, c-format +msgid "...but get_variable_raw(%s, ) succeeded!" +msgstr "… ale get_variable_raw(%s, ) uspělo!" + +#: ../server/as_environment.cpp:167 +#, c-format +msgid "get_variable_raw(\"%s\") failed, returning UNDEFINED" +msgstr "get_variable_raw(„%s“) selhal, vracím UNDEFINED" + +#: ../server/as_environment.cpp:257 +#, c-format +msgid "Path target '%s' not found while setting %s=%s" +msgstr "Cesta cíle „%s“ nenalezna během nastavování %s=%s" + +#: ../server/as_environment.cpp:462 +#, c-format +msgid "" +"as_environment::find_target: '%s': invalid path; neither string nor object" +msgstr "" +"as_environment::find_target: „%s“: neplatná cesta; ani řetězec ani objekt" + +#: ../server/as_environment.cpp:518 +#, c-format +msgid "find_target(%s) called" +msgstr "zavoláno find_target(%s)" + +#: ../server/as_environment.cpp:523 ../server/as_environment.cpp:603 +#: ../server/as_environment.cpp:713 +msgid "Returning m_target (empty path)" +msgstr "Vracím m_target (empty path)" + +#: ../server/as_environment.cpp:540 ../server/as_environment.cpp:731 +#, c-format +msgid "Absolute path, start at the root (%p)" +msgstr "Absolutní cesta, začínám na kořenu (%p)" + +#: ../server/as_environment.cpp:547 ../server/as_environment.cpp:616 +#: ../server/as_environment.cpp:738 +msgid "Null path, returning m_target" +msgstr "Nulová cesta, vracím m_target" + +#: ../server/as_environment.cpp:558 ../server/as_environment.cpp:629 +#: ../server/as_environment.cpp:750 +#, c-format +msgid "invalid path '%s'" +msgstr "neplatná cesta „%s“" + +#: ../server/as_environment.cpp:574 ../server/as_environment.cpp:646 +#: ../server/as_environment.cpp:767 +#, c-format +msgid "No more subparts, env is %p" +msgstr "Žádné další podčásti, env je %p" + +#: ../server/as_environment.cpp:580 +#, c-format +msgid "Invoking get_relative_target(%s) on object %p (%s)" +msgstr "Vyvolávám get_relative_target(%s) na objektu %p (%s)" + +#: ../server/as_environment.cpp:598 +#, c-format +msgid "find_object_dotsyntax(%s) called" +msgstr "zavoláno find_object_dotsyntax(%s)" + +#: ../server/as_environment.cpp:639 ../server/as_environment.cpp:760 +#, c-format +msgid "Subpart == %s" +msgstr "Podčást == %s " + +#: ../server/as_environment.cpp:652 ../server/as_environment.cpp:797 +#, c-format +msgid "Invoking get_member(%s) on object %p" +msgstr "Vyvolávám get_member(%s) na objektu %p" + +#: ../server/as_environment.cpp:662 +#, c-format +msgid "Member %s for object %p not found (dotsyntax). Path was %s" +msgstr "Člen %s objektu %p nebyl nalezen (tečková syntaxe). Cesta byla %s" + +#: ../server/as_environment.cpp:671 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(dotsyntax)" +msgstr +"Prvek „%s“ proměnné „%s“ nenalezen v objektu %p ani v _global (tečková syntace)" + +#: ../server/as_environment.cpp:681 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (dotsyntax)" +msgstr +"Při vyhodnocování cílové cesty %4$s nelze přetypovat Člen %1$s objektu %2$p " +"na Object (%3$s) (tečková syntace)" + +#: ../server/as_environment.cpp:708 +#, c-format +msgid "find_object_slashsyntax(%s) called" +msgstr "zavoláno find_object_slashsyntax(%s)" + +#: ../server/as_environment.cpp:777 +#, c-format +msgid "'..' element in path '%s' follows a non-character object %p" +msgstr "člen „..“ cesty „%s“ následuje po neznakovém objektu %p" + +#: ../server/as_environment.cpp:786 +#, c-format +msgid "" +"'..' in path '%s' follows a character with no parent (%s : %p) (root is %p)" +msgstr "" +"„..“ v cestě „%s“ následuje znak bez rodiče (%s : %p) (kořen je %p)" + +#: ../server/as_environment.cpp:807 +#, c-format +msgid "Member %s for object %p not found (slashsyntax). Path was %s" +msgstr "Člen %s objektu %p nenalezen (lomítková syntaxe). Cesta byla %s" + +#: ../server/as_environment.cpp:816 +#, c-format +msgid "" +"Element '%s' of variable '%s' not found in object %p nor in _global " +"(slashsyntax)" +msgstr "" +"Prvek „%s“ proměnné „%s“ nenalezen v objektu %p ani v _global (lomítková syntace)" + +#: ../server/as_environment.cpp:826 +#, c-format +msgid "" +"Member %s of object %p doesn't cast to an Object (%s) evaluating target path " +"%s (slashsyntax)" +msgstr "" +"Při vyhodnocování cílové cesty %4$s nelze přetypovat Člen %1$s objektu %2$p " +"na Object (%3$s) (lomítková syntace)" + +#: ../server/as_environment.cpp:997 +#, c-format +msgid "Max stack count reached (%u)" +msgstr "Velikost zásobníku dosažena (%u)" + +#: ../server/as_function.cpp:144 +#, c-format +msgid "Exported interface of function %p has been overwritten (from %p to %p)" +msgstr "Exportované rozhraní funkce %p bylo přepsáno (z %p na %p)" + +#: ../server/as_function.cpp:193 +msgid "Function.apply() called with no args" +msgstr "Function.apply() zavoláno bez argumentů" + +#: ../server/as_function.cpp:213 +#, c-format +msgid "" +"Function.apply() got %d args, expected at most 2 -- discarding the ones in " +"excess" +msgstr "" +"Function.apply() dostala %d argumentů, očekávány nejvýše 2 – zahazuji " +"přebytečné" + +#: ../server/as_function.cpp:225 +#, c-format +msgid "" +"Second arg of Function.apply is %s (expected array) - considering as call " +"with no args" +msgstr "" +"Druhý argument Funvtion.apply je %s (očekávano pole) – považuji za volání " +"bez argumentů" + +#: ../server/as_function.cpp:239 +#, c-format +msgid "" +"Second arg of Function.apply is of type %s, with value %s (expected array) - " +"considering as call with no args" +msgstr "" +"Druhý argument Funvtion.apply je typu %s, s hodnotou %s (očekánáno pole) – " +"považuji za volání bez argumentů" + +#: ../server/as_function.cpp:289 +msgid "Function.call() with no args" +msgstr "Function.call() bez argumentů" + +#: ../server/as_function.cpp:327 +msgid "it's a built-in class" +msgstr "jedná se o vestavěnou třídu" + +#: ../server/as_function.cpp:360 +#, c-format +msgid "constructor prototype is %s" +msgstr "protoyp konstruktoru je %s" + +#: ../server/as_object.cpp:123 +#, c-format +msgid "Caught exception: %s" +msgstr "Zachycena výjimka: %s" + +#: ../server/as_object.cpp:207 +#, c-format +msgid "Attempt to set read-only property '%s'" +msgstr "Pokus o nastavení vlastnosti „%s“, která je jen pro čtení" + +#: ../server/as_object.cpp:218 +#, c-format +msgid "%s: Exception %s. Will create a new member" +msgstr "%s: Výjimka %s. Vytvořím nového člena" + +#: ../server/as_object.cpp:229 +#, c-format +msgid "Attempt to set read-only property ``%s'' on object ``%p''" +msgstr "Pokus o nastavení vlastnosti „%s“ na objektu „%p“, která je jen pro " +"čtení" + +#: ../server/as_object.cpp:253 +#, c-format +msgid "" +"Attempt to initialize read-only property ``%s'' (%s) on object ``%p'' twice" +msgstr +"Pokus o dvojnásobnou inicializaci vlastnosti „%s“ (%s) na objektu „%p“" + +#: ../server/as_object.cpp:267 +#, c-format +msgid "Attempt to initialize read-only property ``%s'' on object ``%p'' twice" +msgstr "Pokus o dvojnásobnou inicializaci vlastnosti „%s“ na objektu „%p“, " +"která je jen pro čtení" + +#: ../server/as_object.cpp:366 +msgid "Circular inheritance chain detected during instanceOf call" +msgstr "Při volání instanceOf zjištěna kruhová závislost" + +#: ../server/as_object.cpp:387 +msgid "Circular inheritance chain detected during isPrototypeOf call" +msgstr "Při volání isPrototypeOf zjištěna kruhová závislost" + +#: ../server/as_object.cpp:396 +#, c-format +msgid " members of object %p follow" +msgstr " následuje člen objektu %p" + +#: ../server/as_object.cpp:425 +#, c-format +msgid "" +"Can't set propflags on object property %s (either not found or protected)" +msgstr "" +"Nelze nastavit propflags na objektové vlastnosti %s (nenalezena nebo " +"chráněna)" + +#: ../server/as_value.cpp:148 +#, c-format +msgid "[object %p].%s() did not return a string: %s" +msgstr "[object %p].%s() nevrátil řetězec: %s" + +#: ../server/as_value.cpp:155 ../server/as_value.cpp:221 +#: ../server/as_value.cpp:319 +#, c-format +msgid "get_member(%s) returned false" +msgstr "get_member(%s) vrátil false" + +#: ../server/as_value.cpp:304 +#, c-format +msgid "[object %p].%s() did not return a number: %s" +msgstr "[object %p].%s() nevrátil číslo: %s" + +#: ../server/as_value.cpp:494 +#, c-format +msgid "" +"MovieClip value is a dangling reference: target %s was unloaded (should set " +"to NULL?)" +msgstr "" +"Hodnota MovieClip je nestabilní odkaz: cíl %s byl zrušen (nastavit na NULL?)" + +#: ../server/as_value.cpp:506 +#, c-format +msgid "" +"MovieClip value is a dangling reference: target '%s' not found (should set " +"to NULL?)" +msgstr "" +"Hodnota MovieClip je nestabilní odkaz: cíl „%s“ nenalezen (nastavit na NULL?)" + +#: ../server/as_value.cpp:982 +#, c-format +msgid "Internal error: Cannot find \".0\" in %s for %.15g" +msgstr "Vnitřní chyba: Nelze nalézt „.0“ v %s pro %.15g" + +#: ../server/button_character_instance.cpp:528 +#, c-format +msgid "Unhandled button event %s" +msgstr "Neobsloužená událost tlačítka %s" + +#: ../server/button_character_instance.cpp:618 +#, c-format +msgid "Executing actions for button condition %d" +msgstr "Provádám akci pro tlačítkovou podmínkku %d" + +#: ../server/debugger.cpp:142 +msgid "Debugger enabled >> " +msgstr "Debugger zapnut >> " + +#: ../server/debugger.cpp:357 ../server/debugger.cpp:403 +msgid "No format flag" +msgstr "Žádný formátovací příznak" + +#: ../server/debugger.cpp:472 +#, c-format +msgid "Setting watchpoint for variable: \"%s\"" +msgstr "Nastavuji sledování proměnné: „%s“" + +#: ../server/debugger.cpp:519 +#, c-format +msgid "Matched for variable \"%s\": \"%s\"" +msgstr "Souhlasí s proměnnou „%s“: „%s“" + +#: ../server/debugger.cpp:534 ../server/debugger.cpp:553 +#: ../server/debugger.cpp:566 ../server/debugger.cpp:626 +#, c-format +msgid "WARNING: environment not set in %s" +msgstr "VAROVÁNÍ: prostředí nestastaveno v %s" + +#: ../server/debugger.cpp:570 +#, c-format +msgid "Stack Dump of: %p" +msgstr "Výpis zásobníku pro: %p" + +#: ../server/debugger.cpp:596 +#, c-format +msgid "Stack Dump of 0x%p: empty" +msgstr "Výpis zásobníku 0x%p: prázdný" + +#: ../server/debugger.cpp:631 +msgid "Global Registers Dump:" +msgstr "Výpis globálník registrů:" + +#: ../server/dlist.cpp:347 +#, c-format +msgid "move_display_object() -- can't find object at depth %d" +msgstr "move_display_object() – nelze nalézt objekt v hloubce %d" + +#: ../server/dlist.cpp:843 +#, c-format +msgid "Item %d at depth %d (char id %d, name %s, type %s" +msgstr "Položka %d v hloubce %d (id znaku %d, název %s, typ %s" + +#: ../server/edit_text_character.cpp:853 +#, c-format +msgid "TextField text doesn't fit in its boundaries: width %g, margin %d" +msgstr "Text TextField se nevejde do svých hranic: šířka %g, okraje %d" + +#: ../server/edit_text_character.cpp:912 +#, c-format +msgid "No font for edit_text_character! [%s:%d]" +msgstr "Žádný font pro edit_text_character! [%s:%d]" + +#: ../server/edit_text_character.cpp:940 +#, c-format +msgid "substituting font! font '%s' has no glyphs, using font '%s'" +msgstr "nahrazuji font! font „%s“ nemá žádné kresby znaků, použiji font „%s“" + +#: ../server/edit_text_character.cpp:950 +msgid "" +"Current font has no glyphs and I couldn't find another font with glyphs... :(" +msgstr "" +"Současný font nemá žádné kresby znaků a nemohu nalézt jiný font s kresbami… " +":(" + +#: ../server/edit_text_character.cpp:1076 +#, c-format +msgid "" +"%s -- missing glyph for space char (needed for TAB). Make sure character " +"shapes for font %s are being exported into your SWF file." +msgstr "" +"%s – postrádám kresbu pro znak mezery (potřeba pro TAB). Ujistěte se, že " +"tvary pro font %s budou exportovány do vašeho SWF souboru." + +#: ../server/edit_text_character.cpp:1115 +#, c-format +msgid "" +"%s -- missing glyph for char %d. Make sure character shapes for font %s are " +"being exported into your SWF file" +msgstr "" +"%s – postrádám kresbu pro znak %d. Ujistěte se, že tvary pro font %s budou " +"exportovány do vašeho SWF souboru." + +#: ../server/edit_text_character.cpp:1233 +msgid "registerTextVariable() no-op call (already registered)" +msgstr "volání registerTextVariable() no-op (již zaregistrováno)" + +#: ../server/edit_text_character.cpp:1241 +msgid "string is empty, consider as registered" +msgstr "řetězec je prázdný, považuji za registrovaný" + +#: ../server/edit_text_character.cpp:1257 +#, c-format +msgid "VariableName: %s" +msgstr "VariableName: %s" + +#: ../server/edit_text_character.cpp:1272 +#, c-format +msgid "Variable text Path: %s, Var: %s" +msgstr "Cesta s proměnným textem: %s, Proměnná: %s" + +#: ../server/edit_text_character.cpp:1285 +#, c-format +msgid "" +"VariableName associated to text field refer to an unknown target (%s). It is " +"possible that the character will be instantiated later in the SWF stream. " +"Gnash will try to register again on next access." +msgstr "" +"VariableName spojená s texteovým polem ukazuje na neznámý cíl (%s). Je " +"možné, že znak bude instanciován později v proudu SWF. Gnash se pokusí " +"o registraci při příštím přístupu." + +#: ../server/edit_text_character.cpp:1300 +#, c-format +msgid "target sprite (%p) does have a member named %s" +msgstr "cílový sprit (%p) nemá člena pojmenenového %s" + +#: ../server/edit_text_character.cpp:1307 +#, c-format +msgid "" +"target sprite (%p) does NOT have a member named %s (no problem, we'll add it)" +msgstr "" +"cílový sprit (%p) NEMÁ člena pojmenenového %s (žádný problém, přidáme ho)" + + +#: ../server/fill_style.cpp:133 +msgid "num gradients 0" +msgstr "počet přechodů 0" + +#: ../server/fill_style.cpp:142 +#, c-format +msgid "Unexpected num gradients (%d), expected 1 to 8" +msgstr "Neočekávaný počet přechodů (%d), očekáván 1 až 8" + +#: ../server/fill_style.cpp:191 +#, c-format +msgid "" +"Bitmap fill specifies '%d' as associated bitmap character id, but that " +"character is not found in the Characters Dictionary. It seems common to find " +"such malformed SWF, so we'll only warn once about this." +msgstr "" +"Bitmapová výplň udává „%d“ jako příslučný identifikátor bitmapového znaku, " +"jenže takový znak se v Slovníku znaků nenachází. U chybných SWF je toto " +";časté, takže budeme o tomto varovat jen jednou" + +#: ../server/fill_style.cpp:247 +#, c-format +msgid "Unknown fill style %d" +msgstr "Neznámý styl výplně %d" + +#: ../server/fill_style.cpp:283 +#, c-format +msgid "" +"First gradient in a fill_style have position==%d (expected 0). This seems to " +"be common, so will warn only once." +msgstr "" +"První přechod ve fill_style má pozici==%d (očákávana 0). Toto je běžné, " +"takže hlásíme jen poprvé." + +#: ../server/fill_style.cpp:319 +#, c-format +msgid "two gradients in a fill_style have the same position/ratio: %d" +msgstr "dva přechody ve fill_style mají stejnou pozici/poměr: %d" + +#: ../server/font.cpp:140 +msgid "reading DefineFont" +msgstr "vykresluji DefineFont" + +#: ../server/font.cpp:178 +msgid "Glyphs offset table corrupted in DefineFont tag" +msgstr "Ve značce DefineFont je poškozena tabulka umístění kreseb znaků" + +#: ../server/font.cpp:194 +msgid "reading DefineFont2 or DefineFont3" +msgstr "čtu DefineFont2 nebo DefineFont3" + +#: ../server/font.cpp:229 ../server/font.cpp:244 +#, c-format +msgid "Glyph %d at offset %u" +msgstr "Kresba %d na pozici %u" + +#: ../server/font.cpp:269 +msgid "Glyphs offset table corrupted in DefineFont2/3 tag" +msgstr "Tabulka umístění kreseb je ve značce DefineFont2/3 poškozena" + +#: ../server/font.cpp:284 +msgid "Bad offset in DefineFont2" +msgstr "Chybé umístění v DefineFont2" + +#: ../server/font.cpp:353 +msgid "Repeated kerning pair found - ignoring" +msgstr "Nalezen opakující se kerningový pár – ignoruji" + +#: ../server/font.cpp:376 +msgid "DefineFontInfo2 partially implemented" +msgstr "DefineFontInfo2 implemetnován částečně" + +#: ../server/font.cpp:407 +#, c-format +msgid "reading code table at offset %lu" +msgstr "čtu tabulků kódů na pozici %lu" + +#: ../server/font.cpp:441 +#, c-format +msgid "get_glyph_index(%u) returning %d" +msgstr "get_glyph_index(%u) vrací %d" + +#: ../server/font.cpp:448 +#, c-format +msgid "get_glyph_index(%u) returning -1" +msgstr "get_glyph_index(%u) vrací -1" + +#: ../server/font.cpp:469 +#, c-format +msgid "empty advance table in font %s" +msgstr "ve fontu %s je prázdná pokročilá tabulka" + +#: ../server/font.cpp:537 +msgid "" +"error reading cache file in font::input_cached_data(): glyph count mismatch" +msgstr "" +"chyba při čtení kešového souboru ve font::input_cached_data(): počet kreseb " +"nesouhlasí" + +#: ../server/character.cpp:101 +msgid "Relative drag" +msgstr "Relativní uchopení" + +#: ../server/character.cpp:165 +msgid "" +"ActionScript code trying to reference a nonexistent parent with '..' (a " +"nonexistent parent probably only occurs in the root MovieClip). Returning a " +"reference to top parent (probably the root clip)." +msgstr "" +"Kód ActionScriptu se pokouší odkázat na neexistujícího rodiče pomocí „..“ " +"(neexistující rodič se pravděpodobně vyskytuje jen u kořenového " +"MovieClipu). Vracím odkaz na vrholového rodiče (nejspíše kořenový klip)." + +#: ../server/character.cpp:325 +#, c-format +msgid "Attempt to set _xscale to %g, refused" +msgstr "Pokus o nastavení _xscale na %g, odmítnoto" + +#: ../server/character.cpp:361 +#, c-format +msgid "Attempt to set _yscale to %g, refused" +msgstr "Pokus o nastavení _yscale na %g, odmítnoto" + +#: ../server/character.cpp:479 +msgid "FIXME: can't set _width on character with null or world bounds" +msgstr "OPRAVMĚ: _width nelze nestavit u znaku s nullovým nebo slovními " +"ohraničením" + +#: ../server/character.cpp:490 +#, c-format +msgid "Setting _width=%g" +msgstr "Nastavuji _width=%g" + +#: ../server/character.cpp:524 +msgid "FIXME: can't set _height on character with null or world bounds" +msgstr "OPRAVMĚ: _height nelze nestavit u znaku s nullovým nebo slovními " +"ohraničením" + +#: ../server/character.cpp:535 +#, c-format +msgid "Setting _height=%g" +msgstr "Nastavuji _height=%g" + +#: ../server/impl.cpp:92 +#, c-format +msgid "Base url set to: %s" +msgstr "Základní URL nastaveno na: %s" + +#: ../server/impl.cpp:258 +#, c-format +msgid "get_movie_info(): can't open '%s'" +msgstr "get_movie_info(): nelze otevřít „%s“" + +#: ../server/impl.cpp:273 +#, c-format +msgid "get_movie_info(): file '%s' does not start with a SWF header" +msgstr "get_movie_info(): soubor „%s“ nezáčíná SWF hlavičkou" + +#: ../server/impl.cpp:283 +msgid "" +"get_movie_info(): can't read zipped SWF data; gnash was compiled without " +"zlib support" +msgstr "" +"get_movie_info(): nelze přečíst zazipovaná SWF data; gnash byl přeložen bez " +"podpory zlib" + +#: ../server/impl.cpp:344 +msgid "Can't read jpeg" +msgstr "Nelze přečíst JPEG" + +#: ../server/impl.cpp:369 +msgid "Can't read file header" +msgstr "Nelze přečíst hlavičku souboru" + +#: ../server/impl.cpp:446 +msgid "" +"Requested to keep from completely loading a movie, but the movie in question " +"is a jpeg, for which we don't yet have the concept of a 'loading thread'" +msgstr "" +"Požadováno nestahovat celý film, ale daný film je JPEG, pro který není " +"částečné stahování („loading thread“) ještě implementováno" + +#: ../server/impl.cpp:455 +#, c-format +msgid "unknown file type (%s)" +msgstr "neznámý druh souboru (%s)" + +#: ../server/impl.cpp:471 +#, c-format +msgid "failed to open '%s'; can't create movie" +msgstr "otevření „%s“ selhalo; nemohu vytvořit film" + +#: ../server/impl.cpp:476 +#, c-format +msgid "streamProvider opener can't open '%s'" +msgstr "otvírák streamProvider nemůže otevřít „%s“" + +#: ../server/impl.cpp:495 +#, c-format +msgid "note: couldn't open cache file '%s'" +msgstr "poznámka: nemohu otevřít kešový souborý „%s“" + +#: ../server/impl.cpp:504 +#, c-format +msgid "Loading cache file %s" +msgstr "Z keše načítám soubor %s" + +#: ../server/impl.cpp:654 +msgid "extern movie deleted" +msgstr "vnější film smazán" + +#: ../server/impl.cpp:704 +#, c-format +msgid "Movie %s already in library" +msgstr "Film %s je již v knihovně" + +#: ../server/impl.cpp:720 +#, c-format +msgid "Couldn't load library movie '%s'" +msgstr "Film %s nemohu nahrát z knihovny" + +#: ../server/impl.cpp:727 +#, c-format +msgid "Movie %s (SWF%d) added to library" +msgstr "Film %s (SWF%d) přidán do knihovny" + +#: ../server/impl.cpp:766 +#, c-format +msgid "%s: couldn't create instance" +msgstr "" + +#: ../server/impl.cpp:818 +msgid "precompute_cached_data can't create instance of movie" +msgstr "" + +#: ../server/impl.cpp:867 +msgid "loop back; jumping to frame " +msgstr "" + +#: ../server/movie_root.cpp:517 ../server/vm/ASHandlers.cpp:1900 +#, c-format +msgid "Launching URL... %s" +msgstr "Spouštím URL… %s" + +#: ../server/PropertyList.cpp:93 +#, c-format +msgid "Property %s is read-only, not setting it to %s" +msgstr "" + +#: ../server/sprite_instance.cpp:154 +#, c-format +msgid "" +"attachMovie called with wrong number of arguments expected 3 to 4, got (%d) " +"- returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:168 +#, c-format +msgid "attachMovie: '%s': no such exported resource - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:178 +#, c-format +msgid "" +"attachMovie: exported resource '%s' is not a movie definition (%s) -- " +"returning undefined" +msgstr "" +"attachMovie: expotovaný zdroj „%s“ není deinificí filmu (%s) – vracím " +"nedefinováno" + +#: ../server/sprite_instance.cpp:202 +#, c-format +msgid "Could not attach character at depth %d" +msgstr "" + +#: ../server/sprite_instance.cpp:221 +#, c-format +msgid "Fourth argument of attachMovie doesn't cast to an object (%s)" +msgstr "" + +#: ../server/sprite_instance.cpp:256 +#, c-format +msgid "createEmptyMovieClip needs 2 args, but %d given, returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:266 +#, c-format +msgid "createEmptyMovieClip takes 2 args, but %d given, discarding the excess" +msgstr "" + +#: ../server/sprite_instance.cpp:301 +#, c-format +msgid "%s.swapDepths() needs one arg" +msgstr "" + +#: ../server/sprite_instance.cpp:311 +#, c-format +msgid "%s.swapDepths(%s): won't swap a clip below depth %d (%d)" +msgstr "" + +#: ../server/sprite_instance.cpp:323 +#, c-format +msgid "%s.swapDepths(%s): this sprite has no parent, swapping depth of root?" +msgstr "" + +#: ../server/sprite_instance.cpp:341 +#, c-format +msgid "%s.swapDepths(%s): invalid call, swapping to self?" +msgstr "" + +#: ../server/sprite_instance.cpp:351 +#, c-format +msgid "" +"%s.swapDepths(%s): invalid call, the two characters don't have the same " +"parent" +msgstr "" + +#: ../server/sprite_instance.cpp:369 +#, c-format +msgid "" +"%s.swapDepths(%s): first argument invalid (neither a sprite nor a number)" +msgstr "" + +#: ../server/sprite_instance.cpp:387 +#, c-format +msgid "%s.swapDepths(%s): ignored, character already at depth %d" +msgstr "" + +#: ../server/sprite_instance.cpp:417 +msgid "MovieClip.duplicateMovieClip() needs 2 or 3 args" +msgstr "" + +#: ../server/sprite_instance.cpp:448 +msgid "sprite_goto_and_play needs one arg" +msgstr "" + +#: ../server/sprite_instance.cpp:467 +msgid "sprite_goto_and_stop needs one arg" +msgstr "" + +#: ../server/sprite_instance.cpp:531 +#, c-format +msgid "" +"MovieClip.loadMovie() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:543 +#, c-format +msgid "" +"First argument of MovieClip.loadMovie(%s) evaluates to an empty string - " +"returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:556 +#, c-format +msgid "" +"second argument of MovieClip.loadMovie(%s, ) will be discarded" +msgstr "" + +#: ../server/sprite_instance.cpp:579 +#, c-format +msgid "" +"MovieClip.loadVariables() expected 1 or 2 args, got %d - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:591 +#, c-format +msgid "" +"First argument passed to MovieClip.loadVariables(%s) evaluates to an empty " +"string - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:657 +#, c-format +msgid "Can't find hitTest target %s" +msgstr "" + +#: ../server/sprite_instance.cpp:712 +#, c-format +msgid "hitTest() called with %u args" +msgstr "" + +#: ../server/sprite_instance.cpp:731 +#, c-format +msgid "createTextField called with %d args, expected 6 - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:740 +msgid "First argument of createTextField is not a string - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:750 +msgid "" +"Second argument of createTextField is not a number - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:760 +msgid "Third argument of createTextField is not a number - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:770 +msgid "" +"Fourth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:780 ../server/sprite_instance.cpp:790 +msgid "Fifth argument of createTextField is not a number - returning undefined" +msgstr "" + +#: ../server/sprite_instance.cpp:889 +#, c-format +msgid "MovieClip.getBounds(%s): invalid call, first arg must be a sprite" +msgstr "" + +#: ../server/sprite_instance.cpp:940 +msgid "MovieClip.globalToLocal() takes one arg" +msgstr "" + +#: ../server/sprite_instance.cpp:949 +#, c-format +msgid "MovieClip.globalToLocal(%s): first argument doesn't cast to an object" +msgstr "" + +#: ../server/sprite_instance.cpp:963 +#, c-format +msgid "" +"MovieClip.globalToLocal(%s): object parameter doesn't have an 'x' member" +msgstr "" + +#: ../server/sprite_instance.cpp:974 +#, c-format +msgid "" +"MovieClip.globalToLocal(%s): object parameter doesn't have an 'y' member" +msgstr "" + +#: ../server/sprite_instance.cpp:1009 +msgid "MovieClip.localToGlobal() takes one arg" +msgstr "" + +#: ../server/sprite_instance.cpp:1018 +#, c-format +msgid "MovieClip.localToGlobal(%s): first argument doesn't cast to an object" +msgstr "" + +#: ../server/sprite_instance.cpp:1032 +#, c-format +msgid "" +"MovieClip.localToGlobal(%s): object parameter doesn't have an 'x' member" +msgstr "" + +#: ../server/sprite_instance.cpp:1043 +#, c-format +msgid "" +"MovieClip.localToGlobal(%s): object parameter doesn't have an 'y' member" +msgstr "" + +#: ../server/sprite_instance.cpp:1100 +msgid "MovieClip.lineTo() takes two args" +msgstr "" + +#: ../server/sprite_instance.cpp:1121 +msgid "MovieClip.moveTo() takes two args" +msgstr "" + +#: ../server/sprite_instance.cpp:1186 +msgid "MovieClip.curveTo() takes four args" +msgstr "" + +#: ../server/sprite_instance.cpp:1858 +#, c-format +msgid "" +"A sprite member (%s) clashes with the name of an existing character in its " +"display list. The member will hide the character" +msgstr "" + +#: ../server/sprite_instance.cpp:1909 ../server/sprite_instance.cpp:2726 +#: ../server/sprite_instance.cpp:2751 +msgid "Executing " +msgstr "" + +#: ../server/sprite_instance.cpp:1959 +#, c-format +msgid "call_frame('%s') -- invalid frame" +msgstr "" + +#: ../server/sprite_instance.cpp:2077 +msgid "Can't clone root of the movie" +msgstr "" + +#: ../server/sprite_instance.cpp:2083 +#, c-format +msgid "%s parent is not a sprite, can't clone" +msgstr "" + +#: ../server/sprite_instance.cpp:2140 +#, c-format +msgid "" +"clone_display_object(%s, %s, %d): could not find a character named %s to " +"clone" +msgstr "" + +#: ../server/sprite_instance.cpp:2228 +#, c-format +msgid "sprite[%p]::set_member(%s, %s)" +msgstr "" + +#: ../server/sprite_instance.cpp:2249 +msgid "it's a Text Variable" +msgstr "" + +#: ../server/sprite_instance.cpp:2257 +msgid "it's NOT a Text Variable" +msgstr "" + +#: ../server/sprite_instance.cpp:2271 ../server/sprite_instance.cpp:2297 +msgid "NULL path_to_var passed to set_variable()" +msgstr "" + +#: ../server/sprite_instance.cpp:2276 ../server/sprite_instance.cpp:2302 +#, c-format +msgid "NULL passed to set_variable('%s', NULL)" +msgstr "" + +#: ../server/sprite_instance.cpp:2330 +#, c-format +msgid "" +"sprite '%s' ::advance_sprite is at frame %u/%u - onload called: %d - " +"oldDIsplayList has %d elements" +msgstr "" + +#: ../server/sprite_instance.cpp:2340 +msgid "sprite_instance::advance_sprite we're in PLAY mode" +msgstr "" + +#: ../server/sprite_instance.cpp:2348 +msgid "on_event_load called, incrementing" +msgstr "" + +#: ../server/sprite_instance.cpp:2352 +#, c-format +msgid "after increment we are at frame %u/%u" +msgstr "" + +#: ../server/sprite_instance.cpp:2375 +msgid "sprite_instance::advance_sprite we're in STOP mode" +msgstr "" + +#: ../server/sprite_instance.cpp:2442 +msgid "Calling ONLOAD event" +msgstr "" + +#: ../server/sprite_instance.cpp:2780 +#, c-format +msgid "sprite %s ::goto_frame(" +msgstr "" + +#: ../server/sprite_instance.cpp:2826 +msgid "GotoFrame(" +msgstr "GotoFrame(" + +#: ../server/sprite_instance.cpp:2965 +#, c-format +msgid "sprite_instance::goto_labeled_frame('%s') unknown label" +msgstr "" + +#: ../server/sprite_instance.cpp:3046 +#, c-format +msgid "sprite_instance::add_display_object(): unknown cid = %d" +msgstr "" + +#: ../server/sprite_instance.cpp:3195 +#, c-format +msgid "sprite::replace_display_object(): unknown cid = %d" +msgstr "" + +#: ../server/sprite_instance.cpp:3306 +#, c-format +msgid "Frame %u/%u, bytes %u/%u" +msgstr "Snímek %u/%u, bajtů %u/%u" + +#: ../server/sprite_instance.cpp:3544 +#, c-format +msgid "%s doesn't even check for a char" +msgstr "" + +#: ../server/sprite_instance.cpp:3685 +#, c-format +msgid "Constructing sprite '%s'" +msgstr "" + +#: ../server/sprite_instance.cpp:3736 +#, c-format +msgid "Unloading sprite '%s'" +msgstr "" + +#: ../server/sprite_instance.cpp:3758 ../server/vm/action.cpp:140 +#, c-format +msgid "can't create movie_definition for %s" +msgstr "" + +#: ../server/sprite_instance.cpp:3767 +#, c-format +msgid "can't create extern movie_instance for %s" +msgstr "" + +#: ../server/sprite_instance.cpp:3835 +msgid "MovieClip.loadVariables() with GET/POST won't append vars for now" +msgstr "" + +#: ../server/sprite_instance.cpp:3860 +#, c-format +msgid "Setting variable '%s' to value '%s'" +msgstr "" + +#: ../server/sprite_instance.cpp:3903 +#, c-format +msgid "" +"removeMovieClip(%s): sprite depth (%d) out of the 'dynamic' zone " +"[0..1048575], won't remove" +msgstr "" + +#: ../server/sprite_instance.cpp:3920 +#, c-format +msgid "Can't remove sprite %s as it has no parent" +msgstr "" + +#: ../server/stream.cpp:260 +msgid "Unexpected end of stream" +msgstr "" + +#: ../server/StreamProvider.cpp:91 ../server/StreamProvider.cpp:132 +#, c-format +msgid "Unsupported network connection %s" +msgstr "" + +#: ../server/StreamProvider.cpp:105 +msgid "POST data discarded while getting a stream from file: uri" +msgstr "" + +#: ../server/text.cpp:50 +#, c-format +msgid "text style references unknown font (id = %d)" +msgstr "styl textu odkazuje na neznámý font (id = %d)" + +#: ../server/text.cpp:154 +msgid "invalid glyph, render as an empty box" +msgstr "neplatná kresba znaku, vykreslit jako prázdný obdélník" + +#: ../server/text.cpp:181 +msgid "render glyph using draw_glyph" +msgstr "vykreslit znak pomocí draw_glyph" + +#: ../server/text.cpp:192 +msgid "render glyph using filled outline (?) actually draw_glyph()" +msgstr "vykreslit znak pomocí obrysu (?) vlastně draw_glyph()" + +#: ../server/textformat.cpp:124 +#, c-format +msgid "Created New TextFormat object at %p. Not fully implemented yet" +msgstr "" + +#: ../server/textformat.cpp:150 +msgid "TextFormat.setFormat() needs at least 3 arguments - ...me thinks" +msgstr "" + +#: ../server/textformat.cpp:159 +msgid "" +"Argument 3 given to TextFormat.setFormat() is not a TextFormat object - ... " +"should it be?" +msgstr "" + +#: ../server/textformat.cpp:237 +#, c-format +msgid "%s: args=%d unfinished implementation" +msgstr "" + +#: ../server/video_stream_instance.cpp:43 +msgid "attachVideo needs 1 arg" +msgstr "" + +#: ../server/video_stream_instance.cpp:56 +#, c-format +msgid "attachVideo(%s) first arg is not a NetStream instance" +msgstr "" + +#: ../server/video_stream_instance.cpp:109 +msgid "An error occured while decoding video frame" +msgstr "" + +#: ../server/vm/action.cpp:152 +#, c-format +msgid "can't create extern root sprite for %s" +msgstr "" + +#: ../server/vm/action.cpp:169 +#, c-format +msgid "can't create extern sprite for %s" +msgstr "" + +#: ../server/vm/action.cpp:232 +msgid "" +"Attempt to call a value which is neither a C nor an ActionScript function" +msgstr "" + +#: ../server/vm/action.cpp:264 +#, c-format +msgid "FIXME(%d): %s" +msgstr "" + +#: ../server/vm/action.cpp:308 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%l%c'" +msgstr "" + +#: ../server/vm/action.cpp:317 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid fmt '%%%c'" +msgstr "" + +#: ../server/vm/action.cpp:333 +#, c-format +msgid "call_method_parsed('%s','%s') -- invalid char '%c'" +msgstr "" + +#: ../server/vm/action.cpp:369 +msgid "-- start movie" +msgstr "" + +#: ../server/vm/action.cpp:380 +#, c-format +msgid "FIXME: %s" +msgstr "" + +#: ../server/vm/ActionExec.cpp:150 +msgid "at ActionExec operator() start, pc=" +msgstr "" + +#: ../server/vm/ActionExec.cpp:197 +#, c-format +msgid "Length %u (%d) of action tag id %u at pc " +msgstr "" + +#: ../server/vm/ActionExec.cpp:230 +msgid " After execution, PC is " +msgstr "" + +#: ../server/vm/ActionExec.cpp:254 +#, c-format +msgid "Loop iterations count exceeded limit of %u" +msgstr "" + +#: ../server/vm/ActionExec.cpp:290 +msgid "Call stack non-empty at end of ExecutableCode run (limits hit?)" +msgstr "" + +#: ../server/vm/ActionExec.cpp:296 +msgid "" +"Stack smashed (ActionScript compiler bug?).Fixing by pushing undefined " +"values to the missing slots, but don't expect things to work afterwards" +msgstr "" + +#: ../server/vm/ActionExec.cpp:306 +msgid " elements left on the stack after block execution. Cleaning up" +msgstr " po vykonání bloku zůstal na zásobnkíku prvek. Uklízím" + +#: ../server/vm/ActionExec.cpp:324 +msgid "End of DoAction block hit while skipping " +msgstr "" + +#: ../server/vm/ActionExec.cpp:361 +msgid "'With' stack depth (" +msgstr "Hloubka „With“ zásobníku (" + +#: ../server/vm/ActionExec.cpp:500 +msgid "Stack underrun: " +msgstr "Zásobnkík podtekl: " + +#: ../server/vm/ASHandlers.cpp:101 +#, c-format +msgid "Unsupported action handler invoked, code at pc is %d" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:182 +msgid "" +"FIXME: VM not initialized at SWFHandlers construction time, can't set action " +"handlers based on SWF version" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:466 +#, c-format +msgid "%s: CHECKME: was broken" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:609 +#, c-format +msgid "GetUrl: target=%s url=%s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:630 +#, c-format +msgid "ActionWaitForFrame (0x%X) tag length == " +msgstr "Délka značky ActionWaitForFrame (0x%X) == " + +#: ../server/vm/ASHandlers.cpp:645 ../server/vm/ASHandlers.cpp:696 +#: ../server/vm/ASHandlers.cpp:1478 +#, c-format +msgid "%s: environment target is not a sprite_instance" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:861 +msgid "Undefined or null string passed to ActionSubString, returning undefined" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:876 +msgid "Negative size passed to ActionSubString, taking as whole length" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:887 +msgid "Base is less then 1 in ActionSubString, setting to 1." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:896 +msgid "" +"base goes beyond input string in ActionSubString, returning the empty string." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:910 +msgid "base+size goes beyond input string in ActionSubString, adjusting size" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:978 +#, c-format +msgid "-- get var: %s=%s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:982 +#, c-format +msgid "-- get var: %s=%s at %p" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1007 +#, c-format +msgid "-- set var: %s = %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1069 +msgid "" +"ActionGetProperty() called, but current target is not a character" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1092 +#, c-format +msgid "invalid property query, property number %d" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1101 +#, c-format +msgid "Could not find GetProperty target (%s)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1133 +#, c-format +msgid "invalid set_property, property number %d" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1157 +#, c-format +msgid "Path given to duplicateMovieClip(%s) doesn't point to a character" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1168 +#, c-format +msgid "Path given to duplicateMovieClip(%s) is not a sprite" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1193 +#, c-format +msgid "Path given to removeMovieClip(%s) doesn't point to a character" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1203 +#, c-format +msgid "Path given to removeMovieClip(%s) is not a sprite" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1242 +#, c-format +msgid "start_drag of invalid target '%s'" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1266 +msgid "Y values in ActionStartDrag swapped, fixing" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1274 +msgid "X values in ActionStartDrag swapped, fixing" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1340 +#, c-format +msgid "-- %s cast_to %s (invalid args?)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1360 +msgid "ActionCastOp TESTING" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1487 +#, c-format +msgid "" +"Frame spec found on stack at ActionWaitForFrame doesn't evaluate to a valid " +"frame: %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1552 +#, c-format +msgid "[push length=%d]" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1571 +#, c-format +msgid "" +"Unknown push type %d. Execution will continue but it is likely to fail due " +"to lost sync." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1621 +#, c-format +msgid "register %d out of bounds" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1667 ../server/vm/ASHandlers.cpp:1686 +#, c-format +msgid "dict_lookup %d is out of bounds" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1698 ../server/vm/ASHandlers.cpp:1702 +msgid "\t" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1753 +msgid "Bogus empty GetUrl url in SWF file, skipping" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1768 +msgid "" +"Bogus GetUrl2 send vars method in SWF file (both GET and POST requested), " +"set to 0" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1781 +#, c-format +msgid "GetUrl with target %s unsupported" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1827 +#, c-format +msgid "get url: target=%s, url=%s (%s), method=%x" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1835 +#, c-format +msgid "get url: target %s not found" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1843 +#, c-format +msgid "get url: target %s is not a sprite" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1850 +msgid "getURL2 loadVariable" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1857 +msgid "getURL2 target load" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1868 +#, c-format +msgid "" +"Unhandled GetUrl2 sendVariableMethod (%d) with loadTargetFlag and ! " +"loadVariablesFlag" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1886 +#, c-format +msgid "Unhandled GetUrl2 sendVariableMethod (%d) with no loadTargetFlag" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1925 +#, c-format +msgid "" +"Couldn't find movie \"%s\" to set target to! Not setting target at all..." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:1953 +msgid "Undefined GetUrl2 url on stack, skipping" +msgstr "Na zásobníku nedefinované URL pro getUrl2, přeskakuji" + +#: ../server/vm/ASHandlers.cpp:1990 +msgid "branch to offset " +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2030 +#, c-format +msgid "" +"Couldn't find target_sprite \"%s\" in ActionCallFrame! target frame actions " +"will not be called..." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2092 +#, c-format +msgid "" +"Frame spec found on stack at ActionGotoExpression doesn't evaluate to a " +"valid frame: %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2106 +#, c-format +msgid "" +"Couldn't find target sprite \"%s\" in ActionGotoExpression. Will not go to " +"target frame..." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2173 +#, c-format +msgid "-- set local var: %s = %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2206 +#, c-format +msgid "ActionCallFunction: %s is not an object" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2217 +msgid "Object doensn't have a constructor" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2228 +#, c-format +msgid "" +"Attempt to call a function with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2319 +#, c-format +msgid "---new object: %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2332 +#, c-format +msgid "ActionNew: '%s' is not a constructor" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2372 +msgid "The 'var whatever' syntax in timeline context is a no-op." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2488 +#, c-format +msgid "Argument to TargetPath(%s) doesn't cast to a MovieClip" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2526 +#, c-format +msgid "Top of stack not an object (%s) at ActionEnumerate execution" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2684 +#, c-format +msgid " ActionGetMember: target: %s (object %p)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2700 +#, c-format +msgid "-- get_member %s.%s=%s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2726 +#, c-format +msgid "-- set_member %s.%s=%s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2738 +#, c-format +msgid "-- set_member %s.%s=%s on invalid object!" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2793 +#, c-format +msgid "" +"Attempt to call a method with %u arguments while only %u are available on " +"the stack." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2802 +#, c-format +msgid " method name: %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2803 +#, c-format +msgid " method object/func: %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2804 +#, c-format +msgid " method nargs: %d" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2819 +msgid "" +"ActionCallMethod invoked with undefined method_name and non-object object/" +"func" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2828 +msgid "" +"Function object given to ActionCallMethod is not a function, will try to use " +"its 'constructor' member" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2838 +msgid "ActionCallMethod: object has no constructor" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2847 +msgid "ActionCallMethod: object constructor is not a function" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2863 +#, c-format +msgid "ActionCallMethod: Tried to invoke method '%s' on non-object value %s." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2876 +#, c-format +msgid "ActionCallMethod: Can't find method %s of object %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2899 +msgid "FIXME: debugger doesn't deal with anonymous function calls" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2936 +#, c-format +msgid "" +"Attempt to call a constructor with %u arguments while only %u are available " +"on the stack." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2948 +msgid "On ActionNewMethod: no object found on stack on ActionMethod" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2966 +#, c-format +msgid "ActionNewMethod: can't find method %s of object %s" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:2980 +msgid "ActionNewMethod: method name is undefined, and object is not a function" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3019 +#, c-format +msgid "-- %s instanceof %s (invalid args?)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3053 +#, c-format +msgid "Top of stack not an object %s at ActionEnum2 execution" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3230 +#, c-format +msgid "ActionExtends: Super is not an as_function (%s)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3235 +#, c-format +msgid "ActionExtends: Sub is not an as_function (%s)" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3324 +#, c-format +msgid "" +"function2 code len (%u) overflows DOACTION tag boundaries (DOACTION tag len=" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3396 +msgid "ActionWith tag length != 2; skipping" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3406 +msgid "Empty with() block..." +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3418 +#, c-format +msgid "with(%s) : first argument doesn't cast to an object!" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3546 +#, c-format +msgid "-------------- local register[%d] = '%s'" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3555 +#, c-format +msgid "-------------- global register[%d] = '%s'" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3563 +#, c-format +msgid "store_register[%d] -- register out of bounds!" +msgstr "" + +#: ../server/vm/ASHandlers.cpp:3574 +#, c-format +msgid "at SWFHandlers::action_name(%d) call time, _handlers size is " +msgstr "" + +#: ../server/swf/DefineFontAlignZonesTag.cpp:52 +#, c-format +msgid "DefineFontAlignZones tag references an undefined font %d" +msgstr "" + +#: ../server/swf/DefineFontAlignZonesTag.cpp:66 +#, c-format +msgid " DefinFontAlignZones: font=%d, flags=%d" +msgstr "" + +#: ../server/swf/DefineFontAlignZonesTag.cpp:70 +msgid "FIXME: DefineFontAlignZoneTag unfinished" +msgstr "OPRAVMĚ: DefineFontAlignZoneTag neskončil" + +#: ../server/swf/PlaceObject2Tag.cpp:46 +#, c-format +msgid " char_id = %d" +msgstr " char_id = %d" + +#: ../server/swf/PlaceObject2Tag.cpp:47 +#, c-format +msgid " depth = %d (%d)" +msgstr " hloubka = %d (%d)" + +#: ../server/swf/PlaceObject2Tag.cpp:57 ../server/swf/PlaceObject2Tag.cpp:283 +msgid " cxform:" +msgstr " cxform:" + +#: ../server/swf/PlaceObject2Tag.cpp:73 +#, c-format +msgid "Reserved field in PlaceObject actions == %u (expected 0)" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:81 +#, c-format +msgid " actions: flags = 0x%X" +msgstr " akce: příznakt = 0x%X" + +#: ../server/swf/PlaceObject2Tag.cpp:101 +#, c-format +msgid "" +"swf_event::read(), even_length = %u, but only %lu bytes left to the end of " +"current tag. Breaking for safety." +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:126 ../server/swf/PlaceObject2Tag.cpp:138 +#, c-format +msgid "swf_event::read(), event_length = %d, but read " +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:150 +msgid "Bytes skipping failed." +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:189 +#, c-format +msgid "" +"swf_event::read() -- unknown / unhandled event type received, flags = 0x%x" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:274 +#, c-format +msgid " PLACEOBJECT2: depth = %d (%d)" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:275 +#, c-format +msgid " char id = %d" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:278 +msgid " mat:" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:286 +#, c-format +msgid " ratio: %f" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:287 +#, c-format +msgid " name = %s" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:288 +#, c-format +msgid " clip_depth = %d (%d)" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:289 +#, c-format +msgid " m_place_type: %d" +msgstr "" + +#: ../server/swf/PlaceObject2Tag.cpp:370 +msgid " place_object_2" +msgstr "" + +#: ../server/swf/RemoveObjectTag.cpp:68 +#, c-format +msgid " remove_object_2(%d)" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:129 +msgid "anchor-labeled frame not supported" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:134 +msgid "frame_label_loader end position " +msgstr "" + +#: ../server/swf/tag_loaders.cpp:173 +#, c-format +msgid " set_background_color: (%d %d %d)" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:202 +msgid " jpeg_tables_loader" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:244 +#, c-format +msgid "DEFINEBITS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:264 +#, c-format +msgid " define_bits_jpeg2_loader: charid = %d pos = %lx" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:284 +#, c-format +msgid "DEFINEBITSJPEG2: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:321 +#, c-format +msgid "inflate_wrapper() inflateInit() returned %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:339 +#, c-format +msgid "inflate_wrapper() inflate() returned %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:348 +#, c-format +msgid "inflate_wrapper() inflateEnd() return %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:365 +#, c-format +msgid " define_bits_jpeg3_loader: charid = %d pos = %lx" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:376 +msgid "gnash is not linked to zlib -- can't load jpeg3 image data" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:423 +#, c-format +msgid " defbitslossless2: tag = %d, id = %d, fmt = %d, w = %d, h = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:432 +msgid "gnash is not linked to zlib -- can't load zipped image data" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:538 +#, c-format +msgid "" +"DEFINEBITSLOSSLESS: Duplicate id (%d) for bitmap character - discarding it" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:668 +#, c-format +msgid " FIXME: tagtype = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:680 +#, c-format +msgid " shape_loader: id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:696 +#, c-format +msgid " shape_morph_loader: id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:745 +#, c-format +msgid "define_font_info_loader: can't find font w/ id %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:761 +#, c-format +msgid " sprite: char id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:769 +msgid "nested DEFINESPRITE tags" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:818 +#, c-format +msgid " button character loader: char_id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:842 +#, c-format +msgid " export: count = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:852 +#, c-format +msgid " export: id = %d, name = %s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:871 +#, c-format +msgid "don't know how to export resource '%s' with id %d (can't find that id)" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:908 +#, c-format +msgid " import: version = %u, source_url = %s (%s), count = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:920 +#, c-format +msgid "Exception: %s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:926 +#, c-format +msgid "can't import movie from url %s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:935 +msgid "Movie attempts to import symbols from itself." +msgstr "" + +#: ../server/swf/tag_loaders.cpp:948 +#, c-format +msgid " import: id = %d, name = %s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:964 +#, c-format +msgid "import error: could not find resource '%s' in movie '%s'" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:979 ../server/parser/movie_def_impl.cpp:297 +#, c-format +msgid "import error: resource '%s' from movie '%s' has unknown type" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1000 +#, c-format +msgid "edit_text_char, id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1018 +#, c-format +msgid "text_character, id = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1060 +#, c-format +msgid "define sound: ch=%d, format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1073 ../server/swf/tag_loaders.cpp:1206 +#, c-format +msgid "Bad sound sample rate %d read from SWF header" +msgstr "Z hlavičky SWF přečtena chybá vzorkovací frekvence %d" + +#: ../server/swf/tag_loaders.cpp:1107 +#, c-format +msgid "" +"There is no sound handler currently active, so character with id %d will NOT " +"be added to the dictionary" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1133 +#, c-format +msgid "start_sound tag: id=%d, stop = %d, loop ct = %d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1142 +#, c-format +msgid "start_sound_loader: sound_id %d is not defined" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1194 +#, c-format +msgid "sound stream head: format=%d, rate=%d, 16=%d, stereo=%d, ct=%d" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1374 +msgid "Host endianness not detected in define_sound_loader" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1451 +#, c-format +msgid " file attributes: has_metadata=%s use_network=%s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1452 ../server/swf/tag_loaders.cpp:1453 +msgid "true" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1452 ../server/swf/tag_loaders.cpp:1453 +msgid "false" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1458 +msgid "" +"FileAttributes tag in the SWF requests that network access is not granted to " +"this movie (or application?). Anyway Gnash won't care; use white/black " +"listing in your .gnashrc instead" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1476 +#, c-format +msgid "" +" metadata = [[\n" +"%s\n" +"]]" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1479 +#, c-format +msgid "METADATA tag unused: %s" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1497 +#, c-format +msgid "" +" serialnumber = [[\n" +"%s\n" +"]]" +msgstr "" + +#: ../server/swf/tag_loaders.cpp:1500 +#, c-format +msgid "SERIALNUMBER: %s" +msgstr "" + +#: ../server/parser/action_buffer.cpp:108 +msgid "process_decl_dict(" +msgstr "" + +#: ../server/parser/action_buffer.cpp:136 +msgid "action buffer dict length exceeded" +msgstr "" + +#: ../server/parser/action_buffer.cpp:451 +msgid "Native floating point format not recognised" +msgstr "" + +#: ../server/parser/action_buffer.cpp:527 +msgid "Native double floating point format not recognised" +msgstr "" + +#: ../server/parser/BitmapMovieDefinition.cpp:64 +#, c-format +msgid "Creating a shape_definition wrapping a %g x %g bitmap" +msgstr "" + +#: ../server/parser/button_character_def.cpp:58 +msgid "-- actions in button\n" +msgstr "" + +#: ../server/parser/button_character_def.cpp:100 +#, c-format +msgid "" +"button record refer to character with id %d, which is not found in the chars " +"dictionary" +msgstr "" + +#: ../server/parser/button_character_def.cpp:227 +msgid "button sound options: " +msgstr "" + +#: ../server/parser/button_character_def.cpp:277 +#, c-format +msgid "Next Button2 actionOffset (%u) points past the end of tag" +msgstr "" + +#: ../server/parser/button_character_def.cpp:303 +#, c-format +msgid "" +"Next action offset (%u) in Button2ActionConditions points past the end of tag" +msgstr "" + +#: ../server/parser/edit_text_character_def.cpp:120 +#, c-format +msgid "error: text style with undefined font; font_id = %d" +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:243 +#, c-format +msgid "morph fill style type = 0x%X" +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:253 +msgid "morph fill style begin color: " +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:255 +msgid "morph fill style end color: " +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:303 +#, c-format +msgid "morph fsr: num_gradients = %d" +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:319 +#, c-format +msgid "morph fsr bitmap_char = %d" +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:386 +msgid "Different number of paths in start (" +msgstr "" + +#: ../server/parser/morph2_character_def.cpp:394 +#, c-format +msgid "Different number of edges in start (%u) and end (%u) shapes of a morph" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:280 +#, c-format +msgid "import error: resource '%s' is not exported from movie '%s'" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:326 +#, c-format +msgid "get_character_def(): character_id %d is still waiting to be imported" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:348 +#, c-format +msgid "get_font(): font_id %d is still waiting to be imported" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:395 +#, c-format +msgid "Add sound sample %d" +msgstr "Přidej vzorek zvuku %d" + +#: ../server/parser/movie_def_impl.cpp:423 +msgid "gnash::movie_def_impl::read() -- file does not start with a SWF header" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:430 +#, c-format +msgid "version = %d, file_length = %d" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:436 +#, c-format +msgid "SWF%d is not fully supported, trying anyway but don't expect it to work" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:443 +msgid "" +"movie_def_impl::read(): unable to read zipped SWF data; gnash was compiled " +"without zlib support" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:448 +msgid "file is compressed" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:485 +#, c-format +msgid "frame rate = %f, frames = " +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:513 +msgid "Could not start loading thread" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:665 +msgid "cache file does not have the correct format; skipping" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:671 +#, c-format +msgid "cached data is version %d, but we require version %d; skipping" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:686 +msgid "error reading cache file (characters); skipping" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:691 +msgid "unexpected eof reading cache file (characters); skipping" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:706 +msgid "" +"sync error in cache file (reading characters). Skipping rest of cache data." +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:740 +#, c-format +msgid "Character %d @ %p" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:752 +#, c-format +msgid "Could not find char %d, dump is:" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:790 +#, c-format +msgid "Ensure load of frame %u/%u (last loaded is: %u)" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:795 +msgid "Could not advance to frame " +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:804 +#, c-format +msgid "" +"No more frames to load. Framecount: %u, Lastloaded: %u, next to load: %u" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:849 +msgid "" +"Hit stream-end tag, but not at the advertised SWF end; stopping for safety." +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:875 +#, c-format +msgid "" +"last expected SHOWFRAME in SWF stream '%s' isn't followed by an END (%d)." +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:894 +#, c-format +msgid "*** no tag loader for type %d (movie)" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:913 +#, c-format +msgid "Parsing exception: %s" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:919 +msgid " action blocks and " +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:929 +msgid " frames advertised in header, but only " +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:959 +#, c-format +msgid "number of SHOWFRAME tags in SWF stream '%s' (" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:972 +#, c-format +msgid "Loaded frame %u/%u" +msgstr "Nahrán snímek %u/%u" + +#: ../server/parser/movie_def_impl.cpp:1002 +#, c-format +msgid "get_exported_resource called, frame count=%u" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:1038 +msgid "frame load advancement (from " +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:1048 +#, c-format +msgid "" +"No frame progress in movie %s after %lu milliseconds (%lu microseconds = %lu " +"iterations), giving up on get_exported_resource(%s): circular IMPORTS?" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:1062 +#, c-format +msgid "no frame progress at iteration %lu" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:1069 +#, c-format +msgid "At end of stream, still no '%s' symbol found in m_exports (" +msgstr "" + +#: ../server/parser/movie_def_impl.cpp:1076 +#, c-format +msgid "" +"We haven't finished loading (loading frame %u), and m_exports.get returned " +"no entries, sleeping a bit and trying again" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:85 +#, c-format +msgid " read_fill_styles: count = %u" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:122 +#, c-format +msgid " read_line_styles: count = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:132 +#, c-format +msgid " read_line_styles: count2 = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:183 +#, c-format +msgid " bound rect: %s" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:209 +#, c-format +msgid " shape_character_def read: nfillbits = %d, nlinebits = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:267 +#, c-format +msgid " shape_character read: moveto %4g %4g" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:289 +#, c-format +msgid "" +"Invalid fill style %d in fillStyle0Change record for font tag (0 or 1 " +"valid). Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:299 +#, c-format +msgid "" +"Invalid fill style %d in fillStyle0Change record - %u defined. Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:308 +#, c-format +msgid " shape_character read: fill0 (left) = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:332 +#, c-format +msgid "" +"Invalid fill style %d in fillStyle1Change record for font tag (0 or 1 " +"valid). Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:342 +#, c-format +msgid "" +"Invalid fill style %d in fillStyle1Change record - %u defined. Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:350 +#, c-format +msgid " shape_character read: fill1 (right) = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:372 +#, c-format +msgid "" +"Invalid line style %d in lineStyleChange record for font tag (0 or 1 valid). " +"Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:382 +#, c-format +msgid "Invalid fill style %d in lineStyleChange record - %u defined. Set to 0." +msgstr "" + +#: ../server/parser/shape_character_def.cpp:391 +#, c-format +msgid " shape_character_read: line = %d" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:408 +msgid " shape_character read: more fill styles" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:444 +#, c-format +msgid " shape_character read: curved edge = %4g %4g - %4g %4g - %4g %4g" +msgstr "" + +#: ../server/parser/shape_character_def.cpp:475 +#, c-format +msgid " shape_character_read: straight edge = %4g %4g - %4g %4g" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:41 +#, c-format +msgid "Instantiating sprite_def %p" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:80 +msgid " frames = " +msgstr "" + +#: ../server/parser/sprite_definition.cpp:94 +msgid "DefineSprite tag inside sprite definition" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:109 +msgid " show_frame " +msgstr "" + +#: ../server/parser/sprite_definition.cpp:124 +msgid "" +"last SHOWFRAME of a DEFINESPRITE tag isn't followed by an END. Seeking to " +"next END tag." +msgstr "" + +#: ../server/parser/sprite_definition.cpp:145 +#, c-format +msgid "*** no tag loader for type %d (sprite)" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:153 +msgid " -- sprite END --" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:211 +#, c-format +msgid "Registered class %p for sprite_def %p" +msgstr "" + +#: ../server/parser/sprite_definition.cpp:213 +msgid " Exported interface: " +msgstr "" + +#: ../server/parser/text_character_def.cpp:29 +msgid "begin text records" +msgstr "" + +#: ../server/parser/text_character_def.cpp:43 +msgid "end text records" +msgstr "" + +#: ../server/parser/text_character_def.cpp:62 +msgid " text style change" +msgstr "" + +#: ../server/parser/text_character_def.cpp:71 +#, c-format +msgid " has_font: font id = %d" +msgstr "" + +#: ../server/parser/text_character_def.cpp:86 +msgid " has_color" +msgstr "" + +#: ../server/parser/text_character_def.cpp:94 +#, c-format +msgid " has_x_offset = %g" +msgstr "" + +#: ../server/parser/text_character_def.cpp:107 +#, c-format +msgid " has_y_offset = %g" +msgstr "" + +#: ../server/parser/text_character_def.cpp:119 +#, c-format +msgid " text_height = %g" +msgstr "" + +#: ../server/parser/text_character_def.cpp:142 +#, c-format +msgid " glyph_records: count = %d" +msgstr " glyph_records: počet = %d" + +#: ../utilities/dumpshm.cpp:207 +msgid "" +"Sorry, we can only list the files on systems with disk based shared memory" +msgstr "" + +#: ../utilities/dumpshm.cpp:216 +msgid "No name specified, nuking everything..." +msgstr "" + +#: ../utilities/dumpshm.cpp:223 +msgid "Removing segment: " +msgstr "" + +#: ../utilities/dumpshm.cpp:231 +msgid "Nuking the shared memory segment " +msgstr "" + +#: ../utilities/dumpshm.cpp:257 +msgid "ERROR: couldn't read!" +msgstr "" + +#: ../utilities/dumpshm.cpp:288 +msgid "This program dumps the internal data of a shared memory segment" +msgstr "" + +#: ../utilities/dumpshm.cpp:290 +msgid "Usage: dumpmem [hdsanlif] filename" +msgstr "" + +#: ../utilities/dumpshm.cpp:291 +msgid "-h\tHelp" +msgstr "" + +#: ../utilities/dumpshm.cpp:292 +msgid "-d\tDump data" +msgstr "" + +#: ../utilities/dumpshm.cpp:293 +msgid "-n [optional name]\tNuke everything" +msgstr "" + +#: ../utilities/dumpshm.cpp:294 +msgid "-l\tLength of segment" +msgstr "" + +#: ../utilities/dumpshm.cpp:295 +msgid "-i\tList segments" +msgstr "" + +#: ../utilities/dumpshm.cpp:296 +msgid "-f\tForce to use builtin names for nuke" +msgstr "" + +#: ../utilities/dumpshm.cpp:308 +msgid "\tBase address of this segment: " +msgstr "" + +#: ../utilities/dumpshm.cpp:310 +msgid "\tFilespec: " +msgstr "" + +#: ../utilities/dumpshm.cpp:311 +msgid "\t# Bytes allocated: " +msgstr "" + +#: ../utilities/dumpshm.cpp:312 +msgid "\tTotal # of bytes: " +msgstr "" + +#: ../utilities/parser.cpp:143 +#, c-format +msgid "has_scale = %d, has_rotate = %d\n" +msgstr "" + +#: ../utilities/parser.cpp:168 +#, c-format +msgid "x_min: %i, x_max: %i,\twidth: %i twips, %4.0f pixels\n" +msgstr "" + +#: ../utilities/parser.cpp:169 +#, c-format +msgid "y_min: %i, y_max: %i, height: %i twips, %4.0f pixels\n" +msgstr "" + +#: ../utilities/parser.cpp:190 +#, c-format +msgid "rgb: %d %d %d \n" +msgstr "" + +#: ../utilities/parser.cpp:211 +#, c-format +msgid "rgba: %d %d %d %d\n" +msgstr "" + +#: ../utilities/parser.cpp:284 +msgid "cxform:\n" +msgstr "" + +#: ../utilities/parser.cpp:285 +#, c-format +msgid "has_add = %d, has_mult = %d\n" +msgstr "" + +#: ../utilities/parser.cpp:303 +msgid "" +"Movie ended\n" +"\n" +msgstr "" + +#: ../utilities/parser.cpp:627 +#, c-format +msgid "Gnash gparser version: %s, Gnash version: %s" +msgstr "" + +#: ../utilities/parser.cpp:662 ../utilities/processor.cpp:196 +#: ../gui/gnash.cpp:235 +msgid "Setting debugger ON" +msgstr "" + +#: ../utilities/parser.cpp:664 ../utilities/processor.cpp:198 +msgid "The debugger has been disabled at configuration time" +msgstr "" + +#: ../utilities/parser.cpp:679 +msgid "No input files" +msgstr "" + +#: ../utilities/parser.cpp:691 +#, c-format +msgid "Processing file: %s" +msgstr "" + +#: ../utilities/parser.cpp:693 +#, c-format +msgid "Can't open file '%s' for input" +msgstr "" + +#: ../utilities/parser.cpp:708 +#, c-format +msgid "" +"gparser -- an SWF parser for Gnash.\n" +"\n" +"usage: gparser [swf files to process...]\n" +" --help(-h) Print this info.\n" +" --version Print the version numbers.\n" +" -g Start the Flash debugger.\n" +msgstr "" + +#: ../utilities/processor.cpp:153 +#, c-format +msgid "Gnash gprocessor version: %s, Gnash version: %s" +msgstr "" + +#: ../utilities/processor.cpp:190 ../gui/gnash.cpp:191 +msgid "Verbose output turned on" +msgstr "" + +#: ../utilities/processor.cpp:204 +msgid "Verbose actions disabled at compile time" +msgstr "" + +#: ../utilities/processor.cpp:211 +msgid "Verbose parsing disabled at compile time" +msgstr "" + +#: ../utilities/processor.cpp:460 +#, c-format +msgid "" +"gprocessor -- an SWF preprocessor for Gnash.\n" +"\n" +"usage: %s [options] \n" +"\n" +"Preprocesses the given SWF movie files. Optionally write preprocessed " +"shape\n" +"and font data to cache files, so the associated SWF files can be loaded\n" +"faster.\n" +"\n" +"%s%s%s%s" +msgstr "" + +#: ../utilities/processor.cpp:469 +msgid "" +"options:\n" +"\n" +" --help(-h) Print this info.\n" +" --version Print the version numbers.\n" +" -w Write a .gsc file with preprocessed info, for each input " +"file.\n" +" -v Be verbose; i.e. print log messages to stdout\n" +msgstr "" + +#: ../utilities/processor.cpp:477 +msgid " -vp Be verbose about movie parsing\n" +msgstr "" + +#: ../utilities/processor.cpp:482 +msgid " -va Be verbose about ActionScript\n" +msgstr "" + +#: ../utilities/processor.cpp:487 +msgid "" +" -r Allow the given number of complete runs.\n" +" Keep looping undefinitely if set to 0.\n" +" Default is 1 (end as soon as the last frame is reached).\n" +" -f \n" +" Allow the given number of frame advancements.\n" +" Keep advancing untill any other stop condition\n" +" is encountered if set to 0 (default).\n" +msgstr "" + +#: ../gui/gnash.cpp:73 +msgid "" +"usage: gnash [options] movie_file.swf\n" +"\n" +"Plays a SWF (Shockwave Flash) movie\n" +"options:\n" +"\n" +msgstr "" +"Použití: gnash [PŘEPÍNAČE] SOUBOR_S_FILMEM.SWF\n" +"\n" +"Přehraje SWF (Shockwave Flash) film\n" +"Přepínače:\n" +"\n" + +#: ../gui/gnash.cpp:78 +msgid "" +" -h, --help Print this info.\n" +" -s Scale the movie up/down by the specified factor\n" +" -c Produce a core file instead of letting SDL trap it\n" +" -d num Number of milliseconds to delay in main loop\n" +" -v Be verbose; i.e. print log messages to stdout\n" +msgstr "" +" -h, --help Vypíše tento text.\n" +" -s Zvětší/zmenší film podel zadaného faktoru\n" +" -c Vyrobí core soubor namísto toho, aby nechal SDL jej zachytit\n" +" -d <číslo> Počet milisekund, kterých se čeká v hlavní smyčce\n" +" -v Být upovídaný; tj. vypisuje protokl na standardní výstup\n" + +#: ../gui/gnash.cpp:85 +msgid " -va Be verbose about movie Actions\n" +msgstr " -va Být upovídaný ohledně filmových Akcí\n" + +#: ../gui/gnash.cpp:90 +msgid " -vp Be verbose about parsing the movie\n" +msgstr " -vp Být upovídaný ihledně rozebírání filmu\n" + +#: ../gui/gnash.cpp:95 +msgid "" +" -m Specify the texture LOD bias (float, default is -1.0)\n" +" -x X11 Window ID for display\n" +" -w Produce the disk based debug log\n" +" -j Set window width\n" +" -k Set window height\n" +" -1 Play once; exit when/if movie reaches the last frame\n" +msgstr "" +" -m Určuje LOD posun textur (reálné číslo, implictní je -1,0)\n" +" -x ID X11 okna, do kterého se bude kreslit\n" +" -w Uloží ladící protokol na disk\n" +" -j Nastaví šírku okna\n" +" -k Nastaví výšku okna\n" +" -1 Přehraje jednou a ukončí se, když film dosáhne posledního " +"okna\n" + +#: ../gui/gnash.cpp:102 +msgid "" +" -g Turn on the Flash debugger\n" +" -r <0|1|2|3>\n" +" 0 disables both rendering & sound (good for batch tests)\n" +" 1 enables rendering & disables sound\n" +" 2 enables sound & disables rendering\n" +" 3 enables both rendering & sound (default)\n" +msgstr "" +" -g Zapne debugger flashe\n" +" -r <0|1|2|3>\n" +" 0 zakáže vykreslování i zvuk (dobré pro dávkové testování)\n" +" 1 povolí vykreslování a zakáže zvuk\n" +" 2 povolí zvuk a zakáže vykreslování\n" +" 3 povolí jak vykreslování tak i zvuk (implictní)\n" + +#: ../gui/gnash.cpp:109 +msgid "" +" -t Timeout and exit after the specified number of seconds\n" +" -b Bit depth of output window (16 or 32, default is 16)\n" +" -u Set \"real\" url of the movie\n" +" (useful for downloaded movies)\n" +" -U Set \"base\" url for this run\n" +" (used to resolve relative urls, defaults to movie url)\n" +" -P Set parameter (ie. \"FlashVars=A=1&b=2\")\n" +" --version Print gnash's version number and exit\n" +msgstr "" +" -t Ukončí se po zadaném počtu sekund\n" +" -b Bitová hloubka výstupního okna (16 nebo 32, implicitní je 16)\n" +" -u Nastaví „skutečné“ (real) URL filmu\n" +" (užitečné pro stažené filmy)\n" +" -U Nastaví „základní“ (base) URL pro tento běh (použije se při\n" +" vyhodnocování relativních URL, implicitní je URL filmu)\n" +" -P Nastaví parametr (tj. „FlashVars=A=1&b=2“)\n" +" --version Vypíše číslo verze gnashe a skončí\n" + +#: ../gui/gnash.cpp:118 +msgid "" +"\n" +"keys:\n" +" CTRL-Q, CTRL-W, ESC Quit/Exit\n" +" CTRL-P Toggle Pause\n" +" CTRL-R Restart the movie\n" +" CTRL-[ or kp- Step back one frame\n" +" CTRL-] or kp+ Step forward one frame\n" +" CTRL-B Toggle background color\n" +" CTRL-A Toggle antialiasing (doesn't work)\n" +" CTRL-T Debug. Test the set_variable() function\n" +" CTRL-G Debug. Test the get_variable() function\n" +" CTRL-M Debug. Test the call_method() function\n" +msgstr "" +"\n" +"klávesy:\n" +" CTRL-Q, CTRL-W, ESC Konec\n" +" CTRL-P Pauza/odpauzování\n" +" CTRL-R Přehraje film od začítku\n" +" CTRL-[ nebo kp- Vrátí se o 1 snímek zpět\n" +" CTRL-] nebo kp+ Posune se o 1 snímek dopředu\n" +" CTRL-B Přepne barvu pozadí\n" +" CTRL-A Přepsne vyhlazování [antialiasing] (nefunguje)\n" +" CTRL-T Ladění. Vyzkouší funkci set_variable()\n" +" CTRL-G Ladění. Vyzkouší funkci get_variable()\n" +" CTRL-M Ladění. Vyzkouší funkci call_method()\n" + +#: ../gui/gnash.cpp:138 +#, c-format +msgid "Gnash " +msgstr "Gnash " + +#: ../gui/gnash.cpp:149 +#, c-format +msgid "" +"Build options %s\n" +" Target: %s\n" +" Renderer: %s GUI: %s Media handler: %s\n" +msgstr "" +"Parametry překladu %s\n" +" Cíl: %s\n" +" Vykreslování: %s GUI: %s Obsluha médií: %s\n" + +#: ../gui/gnash.cpp:195 +msgid "Logging to disk enabled" +msgstr "Protokolování na disk zapnuto" + +#: ../gui/gnash.cpp:201 +msgid "No verbose actions; disabled at compile time" +msgstr "Žádné upovídané akce; zakázáno při překladu" + +#: ../gui/gnash.cpp:208 +msgid "No verbose parsing; disabled at compile time" +msgstr "Žádné upovídáné rozebírání; zakázáno při překladu" + +#: ../gui/gnash.cpp:219 +#, c-format +msgid "Setting root URL to %s" +msgstr "Nastavuji kořenové URL na %s" + +#: ../gui/gnash.cpp:225 +#, c-format +msgid "Setting base URL to %s" +msgstr "Nastavuji základní (base) URL na %s" + +#: ../gui/gnash.cpp:231 +msgid "Setting width to " +msgstr "Nastavuji šířku na " + +#: ../gui/gnash.cpp:240 +msgid "No debugger; disabled at compile time" +msgstr "Žádný debugeer; zakázáno při překladu" + +#: ../gui/gnash.cpp:246 +msgid "Setting height to " +msgstr "Nastavuji výšku na " + +#: ../gui/gnash.cpp:282 +#, c-format +msgid "-r must be followed by 0, 1, 2 or 3 (%ld is invalid)" +msgstr "-r musí být následováno 0, 1, 2, nebo 3 (%ld je neplatný)" + +#: ../gui/gnash.cpp:317 +msgid "No rendering flags specified, using rcfile" +msgstr "Nezadán žádný příznak vykreslování, použiji rcfile" + +#: ../gui/gnash.cpp:338 +#, c-format +msgid "Got variable option (%s) on command line" +msgstr "Z příkazové řádky obdržen přepínač s parametrem (%s) " + +#: ../gui/gtk.cpp:79 +msgid "Created XEmbedded window" +msgstr "Vytvořeno XEmbedded okno" + +#: ../gui/gtk.cpp:82 +msgid "Created top level window" +msgstr "Vytvořeno vrcholové okno" + +#: ../gui/gtk.cpp:208 ../gui/gtk.cpp:209 +#, c-format +msgid "Couldn't find pixmap file: %s" +msgstr "Nemohu najít soubor s pixmapu: %s" + +#: ../gui/gtk.cpp:215 +#, c-format +msgid "Failed to load pixbuf file: %s: %s" +msgstr "Selhalo načtení pixbuf souboru: %s: %s" + +#: ../gui/gtk.cpp:351 +msgid "Toggle Sound" +msgstr "Přepnout zvuk" + +#: ../gui/gtk.cpp:361 ../gui/kde.cpp:349 +msgid "Quit Gnash" +msgstr "Ukončit Gnash" + +#: ../gui/gtk.cpp:396 +#, c-format +msgid "" +"Attempting to open file %s.\n" +"NOTE: the file open functionality is not yet implemented!" +msgstr "" +"Pokouším se otevřít soubor %s.\n" +"POZNÁMKA: Schopnost otevírání souboru ještě nebyla implementována!" + +#: ../gui/gtk.cpp:490 +msgid "Gnash preferences" +msgstr "Nastavení Gnashe" + +#: ../gui/gtk.cpp:510 +msgid "Verbosity" +msgstr "Upovídanost" + +#: ../gui/gtk.cpp:525 +msgid "Log to file" +msgstr "Protokolovat do souboru" + +#: ../gui/gtk.cpp:543 +msgid "Log File name" +msgstr "Jméno protokolovacího souboru" + +#: ../gui/gtk.cpp:557 +#, c-format +msgid "Debug log filename: %s" +msgstr "Jméno souboru s ladícímí informacemi: %s" + +#: ../gui/gtk.cpp:564 +msgid "Parser output" +msgstr "Výstup parseru" + +#: ../gui/gtk.cpp:582 +msgid "Debug ActionScript" +msgstr "Ladit ActionScript" + +#: ../gui/gtk.cpp:601 +msgid "Debugger" +msgstr "Debugger" + +#: ../gui/gtk.cpp:620 +msgid "Logging preferences" +msgstr "Nastavení protokolování" + +#: ../gui/gtk.cpp:625 +msgid "Logging" +msgstr "Protokolování" + +#: ../gui/gtk.cpp:643 +msgid "Allow remote access from: " +msgstr "Povolit vzdálený přístup z: " + +#: ../gui/gtk.cpp:650 +msgid "Whitelist" +msgstr "Seznam povolených" + +#: ../gui/gtk.cpp:657 +msgid "Blacklist" +msgstr "Seznam zakázaných" + +#: ../gui/gtk.cpp:676 +msgid "local host only" +msgstr "pouze tento stroj" + +#: ../gui/gtk.cpp:688 +msgid "local domain only" +msgstr "pouze místní doména" + +#: ../gui/gtk.cpp:700 +msgid "Security preferences" +msgstr "Nastavení zabezpečení" + +#: ../gui/gtk.cpp:705 +msgid "Security" +msgstr "Bezpečnost" + +#: ../gui/gtk.cpp:723 +msgid "Enable sound" +msgstr "Povolit zvuk" + +#: ../gui/gtk.cpp:741 +msgid "Sound preferences" +msgstr "Nastavení zvuku" + +#: ../gui/gtk.cpp:746 +msgid "Sound" +msgstr "Zvuk" + +#: ../gui/gtk.cpp:873 +msgid "GNASH flash movie player" +msgstr "Přehrávač flasheových filmů GNASH" + +#: ../gui/gtk.cpp:875 +msgid "Copyright (C) 2005, 2006, 2007 The Free Software Foundation" +msgstr "Copyright © 2005, 2006, 2007 The Free Software Foundation" + +#: ../gui/gtk.cpp:883 +msgid "" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2 of the License, or\n" +"(at your option) any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program; if not, write to the Free Software\n" +"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA" +msgstr "" +"Tento program je svobodný software; můžete jej šířit a/nebo měnit\n" +"pokud dodržíte podmínky GNU General Public License (GPL) vydané\n" +"Free Software Foundation a to buď ve verzi 2 nebo (dle vaší volby)\n" +"libovolné novější.\n" +"\n" +"Program je šířen v naději, že bude užitečný, ale BEZ JAKÉKOLIV\n" +"ZÁRUKY a to ani záruky obchodovatelnosti nebo vhodnosti pro\n" +"JAKÝKOLIV účel. Více informací najdete v GNU GPL.\n" +"S tímto programem byste měli obdržet kopii GNU GPL. Pokud se\n" +"tak nestalo, obraťte se na Free Software Foundation,\n" +"Inc., 51 Fanklin St, Fifth Floor, Boston, MA 02110-1301,\n" +"USA. Český překlad naleznete na webové adrese\n" +"http://www.gnu.cz/licence.html." + +#: ../gui/gtk.cpp:1267 +msgid "File" +msgstr "Soubor" + +#: ../gui/gtk.cpp:1311 +msgid "Edit" +msgstr "Upravit" + +#: ../gui/gtk.cpp:1318 +msgid "Preferences" +msgstr "Nastavení" + +#: ../gui/gtk.cpp:1332 +msgid "Help" +msgstr "Nápověda" + +#: ../gui/gtk.cpp:1339 +msgid "About" +msgstr "O programu" + +#: ../gui/gtk.cpp:1353 +msgid "Movie Control" +msgstr "Ovládání filmu" + +#: ../gui/gtk.cpp:1361 ../gui/kde.cpp:341 +msgid "Play Movie" +msgstr "Přehrát film" + +#: ../gui/gtk.cpp:1368 ../gui/kde.cpp:342 +msgid "Pause Movie" +msgstr "Pozastavit film" + +#: ../gui/gtk.cpp:1375 ../gui/kde.cpp:343 +msgid "Stop Movie" +msgstr "Ukončit film" + +#: ../gui/gtk.cpp:1382 ../gui/kde.cpp:344 +msgid "Restart Movie" +msgstr "Přehrát od začátku" + +#: ../gui/gtk.cpp:1389 +msgid "Step Forward Frame" +msgstr "O snímek vpřed" + +#: ../gui/gtk.cpp:1395 +msgid "Step Backward Frame" +msgstr "O snímek zpět" + +#: ../gui/gtk.cpp:1401 +msgid "Jump Forward 10 Frames" +msgstr "O 10 snímků vpřed" + +#: ../gui/gtk.cpp:1405 +msgid "Jump Backward 10 Frames" +msgstr "O 10 snímků zpět" + +#: ../gui/gtk_glue_gtkglext.cpp:68 +#, c-format +msgid "OpenGL extension version - %d.%d" +msgstr "Verze rozšíření OpenGL – %d.%d" + +#: ../gui/gtk_glue_gtkglext.cpp:77 +msgid "" +"Cannot find the double-buffered visual.\n" +"Trying single-buffered visual." +msgstr "" +"Nemohu nalézt visual s dvojitou pamětí.\n" +"Zkouším visual s jednou pamětí." + +#: ../gui/gtk_glue_gtkglext.cpp:83 +msgid "No appropriate OpenGL-capable visual found." +msgstr "Žádný vhodný viual podporující OpenGL nebyl nalezen." + +#: ../gui/gtk_glue_gtkglext.cpp:86 +msgid "Got single-buffered visual." +msgstr "Získán visual s jednou pamětí." + +#: ../gui/gtk_glue_gtkglext.cpp:89 +msgid "Got double-buffered visual." +msgstr "Získán visual se dvěma pamětmi." + +#: ../gui/gui.cpp:257 +#, c-format +msgid "mouse @ %d,%d" +msgstr "myš na %d,%d" + +#: ../gui/gui.cpp:470 +#, c-format +msgid "Frame %d" +msgstr "Snímek %d" + +#: ../gui/kde.cpp:345 +msgid "Step Forward" +msgstr "Krok vpřed" + +#: ../gui/kde.cpp:346 +msgid "Step Backward" +msgstr "Krok zpět" + +#: ../gui/kde.cpp:347 +msgid "Jump Forward" +msgstr "Skok vpřed" + +#: ../gui/kde.cpp:348 +msgid "Jump Backward" +msgstr "Skok zpět" + +#: ../gui/Player.cpp:176 +#, c-format +msgid "Timer delay set to %d milliseconds" +msgstr "Spořdění časovače nastaveno na %d milisekund(u/y)" + +#: ../gui/Player.cpp:196 +msgid "Sound requested but no sound support compiled in" +msgstr "Požadován zvuk, ale podpora zvuku nebyla zakompilována" + +#: ../gui/Player.cpp:325 +#, c-format +msgid "Input movie has collapsed dimensions %d/%d. Giving up." +msgstr "Vsupní film se zhroutil na rozměrech %d/%d. Vzdám to." + +#: ../gui/Player.cpp:384 +#, c-format +msgid "fs_callback(%p): %s %s" +msgstr "fs_callback(%p): %s %s" + +#: ../gui/sdl_agg_glue.cpp:72 +#, c-format +msgid "AGG's bit depth must be 16, 24 or 32 bits, not %d." +msgstr "Bitová hloubka AGG musí být 16, 24, nebo 32 bitů. Ne %d." + +#: ../gui/sdl_agg_glue.cpp:89 +msgid "SDL_SetVideoMode() failed for SdlAggGlue." +msgstr "SDL_SetVideoMode() selhal při SdlAggGlue." + +#: ../gui/sdl_agg_glue.cpp:126 +#, c-format +msgid "SDL-AGG: %i byte offscreen buffer allocated" +msgstr "SDL-AGG: pamět přesahující obrazovku o %i bajtů byla vyhrazena" + +#~ msgid "Some kind of error occurred with adpcm sound data" +#~ msgstr "V adpcm zvukových datech se vyskytla chyba" + +#~ msgid "Klash" +#~ msgstr "Klash" + +#~ msgid "The Gnash Flash player for KDE.\n" +#~ msgstr "Přehrávač flashe Gnash pro KDE.\n" From MAILER-DAEMON Fri Jun 29 02:06:10 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I49cQ-0007eN-BX for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 02:06:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I49cP-0007eI-Bp for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:06:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I49cO-0007e6-4H for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:06:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I49cO-0007e3-1g for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:06:08 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I49cN-0001Xu-KC for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:06:07 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I49cF-0001RX-K5 for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:05:59 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I49cF-0001RU-E6 for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:05:59 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 29 Jun 2007 06:05:59 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 06:06:09 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/29 06:05:59 Modified files: . : ChangeLog server : edit_text_character.cpp edit_text_character.h Log message: * server/edit_text_character.{cpp,h}: Do not call on_event(KILL_FOCUS) in the destructor, do it on ::unload(). The less things destructors do, the better (think GC..) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3616&r2=1.3617 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.69&r2=1.70 http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.h?cvsroot=gnash&r1=1.32&r2=1.33 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3616 retrieving revision 1.3617 diff -u -b -r1.3616 -r1.3617 --- ChangeLog 28 Jun 2007 01:31:26 -0000 1.3616 +++ ChangeLog 29 Jun 2007 06:05:58 -0000 1.3617 @@ -1,3 +1,10 @@ +2007-06-28 Sandro Santilli + + * server/edit_text_character.{cpp,h}: + Do not call on_event(KILL_FOCUS) in the destructor, do + it on ::unload(). The less things destructors do, the better + (think GC..) + 2007-06-27 Petr Pisar * po/: Makefile.am, cs.po: Initial Czech translation. Index: server/edit_text_character.cpp =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -u -b -r1.69 -r1.70 --- server/edit_text_character.cpp 24 Jun 2007 12:58:28 -0000 1.69 +++ server/edit_text_character.cpp 29 Jun 2007 06:05:59 -0000 1.70 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: edit_text_character.cpp,v 1.69 2007/06/24 12:58:28 strk Exp $ */ +/* $Id: edit_text_character.cpp,v 1.70 2007/06/29 06:05:59 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -368,6 +368,11 @@ edit_text_character::~edit_text_character() { +} + +void +edit_text_character::unload() +{ // TODO: unregisterTextVariable() ? on_event(event_id::KILLFOCUS); } Index: server/edit_text_character.h =================================================================== RCS file: /sources/gnash/gnash/server/edit_text_character.h,v retrieving revision 1.32 retrieving revision 1.33 diff -u -b -r1.32 -r1.33 --- server/edit_text_character.h 15 Jun 2007 15:00:29 -0000 1.32 +++ server/edit_text_character.h 29 Jun 2007 06:05:59 -0000 1.33 @@ -102,6 +102,9 @@ // See dox in character.h bool pointInShape(float x, float y) const; + // See dox in character.h + void unload(); + private: /// The actual text From MAILER-DAEMON Fri Jun 29 02:11:22 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I49hS-0002lC-LW for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 02:11:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I49hR-0002l1-N4 for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:11:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I49hR-0002kp-8D for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:11:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I49hR-0002km-4r for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:11:21 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I49hQ-0002Kz-Q8 for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:11:20 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I49hQ-0001dG-E7 for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:11:20 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I49hQ-0001dC-7z for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:11:20 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 29 Jun 2007 06:11:20 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/FreetypeGlyphsProvider.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 06:11:21 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/29 06:11:20 Modified files: . : ChangeLog server : FreetypeGlyphsProvider.cpp Log message: * server/FreetypeGlyphsProvider.cpp (getFontFilename): don't leak the FcFontSet when finding a match. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3617&r2=1.3618 http://cvs.savannah.gnu.org/viewcvs/gnash/server/FreetypeGlyphsProvider.cpp?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3617 retrieving revision 1.3618 diff -u -b -r1.3617 -r1.3618 --- ChangeLog 29 Jun 2007 06:05:58 -0000 1.3617 +++ ChangeLog 29 Jun 2007 06:11:19 -0000 1.3618 @@ -1,5 +1,7 @@ 2007-06-28 Sandro Santilli + * server/FreetypeGlyphsProvider.cpp (getFontFilename): don't leak + the FcFontSet when finding a match. * server/edit_text_character.{cpp,h}: Do not call on_event(KILL_FOCUS) in the destructor, do it on ::unload(). The less things destructors do, the better Index: server/FreetypeGlyphsProvider.cpp =================================================================== RCS file: /sources/gnash/gnash/server/FreetypeGlyphsProvider.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- server/FreetypeGlyphsProvider.cpp 14 Jun 2007 07:17:11 -0000 1.3 +++ server/FreetypeGlyphsProvider.cpp 29 Jun 2007 06:11:20 -0000 1.4 @@ -278,6 +278,7 @@ } filename = (char *)file; + FcFontSetDestroy(fs); return true; } From MAILER-DAEMON Fri Jun 29 02:31:51 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4A1H-0004KW-9Q for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 02:31:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4A1F-0004JI-Ha for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:31:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4A1E-0004IU-FB for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:31:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4A1E-0004IK-Ao for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:31:48 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4A1E-0005I8-05 for gnash-commit@gnu.org; Fri, 29 Jun 2007 02:31:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4A1D-0003e4-07 for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:31:47 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4A1C-0003e1-Sg for gnash-commit@gnu.org; Fri, 29 Jun 2007 06:31:46 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 29 Jun 2007 06:31:46 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/button_character_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 06:31:50 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/29 06:31:46 Modified files: . : ChangeLog server/parser : button_character_def.cpp button_character_def.h Log message: * server/parser/button_character_def.{cpp,h}: don't let gnash::button_action leak action_buffer objects. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3618&r2=1.3619 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/button_character_def.cpp?cvsroot=gnash&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/button_character_def.h?cvsroot=gnash&r1=1.16&r2=1.17 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3618 retrieving revision 1.3619 diff -u -b -r1.3618 -r1.3619 --- ChangeLog 29 Jun 2007 06:11:19 -0000 1.3618 +++ ChangeLog 29 Jun 2007 06:31:46 -0000 1.3619 @@ -1,5 +1,7 @@ 2007-06-28 Sandro Santilli + * server/parser/button_character_def.{cpp,h}: don't let + gnash::button_action leak action_buffer objects. * server/FreetypeGlyphsProvider.cpp (getFontFilename): don't leak the FcFontSet when finding a match. * server/edit_text_character.{cpp,h}: Index: server/parser/button_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/button_character_def.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- server/parser/button_character_def.cpp 19 Jun 2007 18:42:50 -0000 1.13 +++ server/parser/button_character_def.cpp 29 Jun 2007 06:31:46 -0000 1.14 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: button_character_def.cpp,v 1.13 2007/06/19 18:42:50 strk Exp $ */ +/* $Id: button_character_def.cpp,v 1.14 2007/06/29 06:31:46 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -38,7 +38,12 @@ button_action::~button_action() { - m_actions.clear(); + for (ActionList::iterator i=m_actions.begin(), e=m_actions.end(); + i != e; ++i) + { + delete (*i); + } + m_actions.clear(); // this is useless, will be done automatically } void button_action::read(stream* in, int tag_type) Index: server/parser/button_character_def.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/button_character_def.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -b -r1.16 -r1.17 --- server/parser/button_character_def.h 19 Jun 2007 18:42:50 -0000 1.16 +++ server/parser/button_character_def.h 29 Jun 2007 06:31:46 -0000 1.17 @@ -94,7 +94,9 @@ OVER_DOWN_TO_IDLE = 1 << 8 }; int m_conditions; - std::vector m_actions; + + typedef std::vector ActionList; + ActionList m_actions; ~button_action(); void read(stream* in, int tag_type); From MAILER-DAEMON Fri Jun 29 03:37:00 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4B2J-0007ET-V4 for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 03:37:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4B2H-0007EL-J5 for gnash-commit@gnu.org; Fri, 29 Jun 2007 03:36:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4B2G-0007E9-1I for gnash-commit@gnu.org; Fri, 29 Jun 2007 03:36:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4B2F-0007E6-Sf for gnash-commit@gnu.org; Fri, 29 Jun 2007 03:36:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4B2F-0007jX-Gt for gnash-commit@gnu.org; Fri, 29 Jun 2007 03:36:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4B2D-0008BD-KX for gnash-commit@gnu.org; Fri, 29 Jun 2007 07:36:53 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4B2D-0008BA-Go for gnash-commit@gnu.org; Fri, 29 Jun 2007 07:36:53 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Fri, 29 Jun 2007 07:36:53 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 07:36:58 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/29 07:36:53 Modified files: . : ChangeLog gui : gtk_glue_agg.cpp Log message: properly initialize new SHM variables CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3619&r2=1.3620 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk_glue_agg.cpp?cvsroot=gnash&r1=1.20&r2=1.21 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3619 retrieving revision 1.3620 diff -u -b -r1.3619 -r1.3620 --- ChangeLog 29 Jun 2007 06:31:46 -0000 1.3619 +++ ChangeLog 29 Jun 2007 07:36:52 -0000 1.3620 @@ -1,3 +1,7 @@ +2007-06-29 Udo Giacomozzi + + * gui/gtk_glue_agg.cpp: properly initialize new SHM variables + 2007-06-28 Sandro Santilli * server/parser/button_character_def.{cpp,h}: don't let Index: gui/gtk_glue_agg.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/gui/gtk_glue_agg.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- gui/gtk_glue_agg.cpp 27 Jun 2007 17:05:31 -0000 1.20 +++ gui/gtk_glue_agg.cpp 29 Jun 2007 07:36:53 -0000 1.21 @@ -18,7 +18,7 @@ // // -/* $Id: gtk_glue_agg.cpp,v 1.20 2007/06/27 17:05:31 udog Exp $ */ +/* $Id: gtk_glue_agg.cpp,v 1.21 2007/06/29 07:36:53 udog Exp $ */ /// \page gtk_shm_support GTK shared memory extension support @@ -77,7 +77,12 @@ _agg_renderer(NULL), _width(0), _height(0), - _bpp(0) + _bpp(0), + _have_shm(false) +#ifdef ENABLE_MIT_SHM + ,_shm_image(NULL) + ,_shm_info(NULL) +#endif { } From MAILER-DAEMON Fri Jun 29 05:29:09 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4Cmr-0008Ab-7k for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 05:29:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4Cmo-00087J-B8 for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:29:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4Cmm-00085h-2U for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:29:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4Cml-00085M-Ol for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:29:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4Cml-0000BO-2O for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:29:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4Cmk-0008Mq-3d for gnash-commit@gnu.org; Fri, 29 Jun 2007 09:29:02 +0000 Received: from udog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4Cmj-0008Mn-Tq for gnash-commit@gnu.org; Fri, 29 Jun 2007 09:29:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Udo Giacomozzi Date: Fri, 29 Jun 2007 09:29:01 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/array.h server/array.cpp X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 09:29:06 -0000 CVSROOT: /cvsroot/gnash Module name: gnash Changes by: Udo Giacomozzi 07/06/29 09:29:01 Modified files: . : ChangeLog server : array.h array.cpp Log message: server/array.{h,cpp}: classes with virtual methods need a destructor, don't they? CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3620&r2=1.3621 http://cvs.savannah.gnu.org/viewcvs/gnash/server/array.h?cvsroot=gnash&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/gnash/server/array.cpp?cvsroot=gnash&r1=1.61&r2=1.62 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/gnash/gnash/ChangeLog,v retrieving revision 1.3620 retrieving revision 1.3621 diff -u -b -r1.3620 -r1.3621 --- ChangeLog 29 Jun 2007 07:36:52 -0000 1.3620 +++ ChangeLog 29 Jun 2007 09:29:00 -0000 1.3621 @@ -1,6 +1,8 @@ 2007-06-29 Udo Giacomozzi * gui/gtk_glue_agg.cpp: properly initialize new SHM variables + * server/array.{h,cpp}: classes with virtual methods need a destructor, + don't they? 2007-06-28 Sandro Santilli Index: server/array.h =================================================================== RCS file: /cvsroot/gnash/gnash/server/array.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -b -r1.27 -r1.28 --- server/array.h 19 Jun 2007 07:16:43 -0000 1.27 +++ server/array.h 29 Jun 2007 09:29:01 -0000 1.28 @@ -69,6 +69,8 @@ as_array_object(const as_array_object& other); + ~as_array_object(); + void push(const as_value& val); void unshift(const as_value& val); Index: server/array.cpp =================================================================== RCS file: /cvsroot/gnash/gnash/server/array.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -u -b -r1.61 -r1.62 --- server/array.cpp 19 Jun 2007 07:16:43 -0000 1.61 +++ server/array.cpp 29 Jun 2007 09:29:01 -0000 1.62 @@ -164,6 +164,10 @@ //) } +as_array_object::~as_array_object() +{ +} + int as_array_object::index_requested(const std::string& name) { From MAILER-DAEMON Fri Jun 29 05:52:08 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4D95-0001x2-1w for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 05:52:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4D8z-0001v6-Qg for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:52:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4D8x-0001tR-TT for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:52:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4D8w-0001sw-Hx for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:51:59 -0400 Received: from equi.bjacques.org ([84.244.180.88]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4D8v-0003oK-TJ for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:51:58 -0400 Received: from equi.bjacques.org (bastiaan@localhost [127.0.0.1]) by equi.bjacques.org (8.13.4/8.13.4) with ESMTP id l5T9pmM9018281; Fri, 29 Jun 2007 11:51:48 +0200 (CEST) Received: from localhost (bastiaan@localhost) by equi.bjacques.org (8.13.4/8.13.4/Submit) with ESMTP id l5T9plwO011291; Fri, 29 Jun 2007 11:51:48 +0200 (CEST) X-Authentication-Warning: equi.bjacques.org: bastiaan owned process doing -bs Date: Fri, 29 Jun 2007 11:51:47 +0200 (CEST) From: Bastiaan Jacques To: Udo Giacomozzi Subject: Re: [Gnash-commit] gnash ChangeLog server/array.h server/array.cpp In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-kernel: OpenBSD 3.0-3.9 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 09:52:03 -0000 On Fri, 29 Jun 2007, Udo Giacomozzi wrote: > Log message: > server/array.{h,cpp}: classes with virtual methods need a destructor, don't they? Not in this case, because the base class (ref_counted) has a virtual destructor. All classes deriving from ref_counted therefore automatically have a virtual destructor, defined or not. Bastiaan From MAILER-DAEMON Fri Jun 29 05:55:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4DBw-00036p-0d for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 05:55:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4DBu-00034g-7O for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:55:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4DBs-00033x-KA for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:55:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4DBs-00033k-6m for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:55:00 -0400 Received: from server2.indunet.it ([217.70.144.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I4DBr-00047Q-Jt for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:54:59 -0400 Received: from UDO-LAPTOP (sadsl-246098.rol.raiffeisen.net [195.254.246.98]) (authenticated bits=0) by server2.indunet.it (8.12.8/8.12.5) with ESMTP id l5T9soU4023867; Fri, 29 Jun 2007 11:54:52 +0200 Date: Fri, 29 Jun 2007 11:54:46 +0200 From: Udo Giacomozzi X-Mailer: The Bat! (v3.99.3) Professional Organization: NOVASYS X-Priority: 3 (Normal) Message-ID: <787442811.20070629115446@nova-sys.net> To: Bastiaan Jacques Subject: Re[2]: [Gnash-commit] gnash ChangeLog server/array.h server/array.cpp In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Udo Giacomozzi List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 09:55:02 -0000 Hello Bastiaan, Friday, June 29, 2007, 11:51:47 AM, you wrote: BJ> Not in this case, because the base class (ref_counted) has a virtual BJ> destructor. All classes deriving from ref_counted therefore BJ> automatically have a virtual destructor, defined or not. Ah, ok, thanks. Is it necessary to revert my commit? Udo From MAILER-DAEMON Fri Jun 29 05:59:00 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4DFk-00057s-JZ for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 05:59:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4DFi-000562-4l for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:58:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4DFg-00055I-Ry for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:58:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4DFg-000554-73 for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:58:56 -0400 Received: from equi.bjacques.org ([84.244.180.88]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4DFf-0004dl-LO for gnash-commit@gnu.org; Fri, 29 Jun 2007 05:58:55 -0400 Received: from equi.bjacques.org (bastiaan@localhost [127.0.0.1]) by equi.bjacques.org (8.13.4/8.13.4) with ESMTP id l5T9ws8L010494; Fri, 29 Jun 2007 11:58:54 +0200 (CEST) Received: from localhost (bastiaan@localhost) by equi.bjacques.org (8.13.4/8.13.4/Submit) with ESMTP id l5T9ws7l023649; Fri, 29 Jun 2007 11:58:54 +0200 (CEST) X-Authentication-Warning: equi.bjacques.org: bastiaan owned process doing -bs Date: Fri, 29 Jun 2007 11:58:54 +0200 (CEST) From: Bastiaan Jacques To: Udo Giacomozzi Subject: Re[2]: [Gnash-commit] gnash ChangeLog server/array.h server/array.cpp In-Reply-To: <787442811.20070629115446@nova-sys.net> Message-ID: References: <787442811.20070629115446@nova-sys.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-kernel: OpenBSD 3.0-3.9 Cc: gnash-commit@gnu.org X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 09:58:58 -0000 On Fri, 29 Jun 2007, Udo Giacomozzi wrote: > Ah, ok, thanks. Is it necessary to revert my commit? No. Bastiaan From MAILER-DAEMON Fri Jun 29 16:37:57 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4NE5-0008Mf-5i for mharc-gnash-commit@gnu.org; Fri, 29 Jun 2007 16:37:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4NE2-0008KD-Tx for gnash-commit@gnu.org; Fri, 29 Jun 2007 16:37:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4NE1-0008Iv-NQ for gnash-commit@gnu.org; Fri, 29 Jun 2007 16:37:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4NE1-0008Im-K3 for gnash-commit@gnu.org; Fri, 29 Jun 2007 16:37:53 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4NE1-0008KB-AV for gnash-commit@gnu.org; Fri, 29 Jun 2007 16:37:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4NDz-0005f9-SQ for gnash-commit@gnu.org; Fri, 29 Jun 2007 20:37:51 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4NDz-0005f6-OI for gnash-commit@gnu.org; Fri, 29 Jun 2007 20:37:51 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Fri, 29 Jun 2007 20:37:51 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/parser/button_character_... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 20:37:55 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/29 20:37:51 Modified files: . : ChangeLog server/parser : button_character_def.cpp Log message: * server/parser/button_character_def.cpp: ok, let action_buffer leak, as it seems deleting them in button_action dtor introduces a segfault in our testusuite. Sorry for not running 'make check' before committing. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3621&r2=1.3622 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/button_character_def.cpp?cvsroot=gnash&r1=1.14&r2=1.15 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3621 retrieving revision 1.3622 diff -u -b -r1.3621 -r1.3622 --- ChangeLog 29 Jun 2007 09:29:00 -0000 1.3621 +++ ChangeLog 29 Jun 2007 20:37:51 -0000 1.3622 @@ -1,3 +1,10 @@ +2007-06-29 Sandro Santilli + + * server/parser/button_character_def.cpp: ok, let action_buffer leak, + as it seems deleting them in button_action dtor introduces a + segfault in our testusuite. Sorry for not running 'make check' + before committing. + 2007-06-29 Udo Giacomozzi * gui/gtk_glue_agg.cpp: properly initialize new SHM variables Index: server/parser/button_character_def.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/button_character_def.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- server/parser/button_character_def.cpp 29 Jun 2007 06:31:46 -0000 1.14 +++ server/parser/button_character_def.cpp 29 Jun 2007 20:37:51 -0000 1.15 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: button_character_def.cpp,v 1.14 2007/06/29 06:31:46 strk Exp $ */ +/* $Id: button_character_def.cpp,v 1.15 2007/06/29 20:37:51 strk Exp $ */ // Based on the public domain work of Thatcher Ulrich 2003 @@ -41,7 +41,17 @@ for (ActionList::iterator i=m_actions.begin(), e=m_actions.end(); i != e; ++i) { - delete (*i); + // We can NOT delete action_buffers here becase they + // may contain the action currently being executed and + // triggering the deletion. + // I'm not really sure about whether this is the problem, + // anyway clip_as_button2.swf fails on segfault when clicking + // the upper-right button if we delete here. + // + // TODO: properly implement management of these resources + // which are otherwise just leaking.. + // + //delete (*i); } m_actions.clear(); // this is useless, will be done automatically } From MAILER-DAEMON Sat Jun 30 12:53:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4gC1-0003dX-81 for mharc-gnash-commit@gnu.org; Sat, 30 Jun 2007 12:53:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4gC0-0003dL-2L for gnash-commit@gnu.org; Sat, 30 Jun 2007 12:53:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4gBz-0003d9-3h for gnash-commit@gnu.org; Sat, 30 Jun 2007 12:53:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4gBz-0003d6-0r for gnash-commit@gnu.org; Sat, 30 Jun 2007 12:53:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4gBy-0001xN-Jz for gnash-commit@gnu.org; Sat, 30 Jun 2007 12:53:02 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4gBq-0000x6-3b for gnash-commit@gnu.org; Sat, 30 Jun 2007 16:52:54 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4gBp-0000x3-Va for gnash-commit@gnu.org; Sat, 30 Jun 2007 16:52:54 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 30 Jun 2007 16:52:53 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog libbase/ref_counted.h libbase/s... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2007 16:53:04 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/30 16:52:53 Modified files: . : ChangeLog libbase : ref_counted.h smart_ptr.h Log message: * libbase/ref_counted.h: remove inheritance of ref_counted from GcResource, provide temporary isReachable/setReachable to allow not reverting all GC-related additions to character definitions and other possibly GcResource objects. * libbase/smart_ptr.h: have two versions of the intrusive_ptr free functions: one for GcResource (do nothing) and one for ref_counted (add/drop ref). Enable GC by default, where current version uses both RC and GC (GC only used for as_object) CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3622&r2=1.3623 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/ref_counted.h?cvsroot=gnash&r1=1.8&r2=1.9 http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/smart_ptr.h?cvsroot=gnash&r1=1.20&r2=1.21 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3622 retrieving revision 1.3623 diff -u -b -r1.3622 -r1.3623 --- ChangeLog 29 Jun 2007 20:37:51 -0000 1.3622 +++ ChangeLog 30 Jun 2007 16:52:53 -0000 1.3623 @@ -1,3 +1,14 @@ +2007-06-30 Sandro Santilli + + * libbase/ref_counted.h: remove inheritance of ref_counted + from GcResource, provide temporary isReachable/setReachable + to allow not reverting all GC-related additions to character + definitions and other possibly GcResource objects. + * libbase/smart_ptr.h: have two versions of the intrusive_ptr + free functions: one for GcResource (do nothing) and one + for ref_counted (add/drop ref). Enable GC by default, where + current version uses both RC and GC (GC only used for as_object) + 2007-06-29 Sandro Santilli * server/parser/button_character_def.cpp: ok, let action_buffer leak, Index: libbase/ref_counted.h =================================================================== RCS file: /sources/gnash/gnash/libbase/ref_counted.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- libbase/ref_counted.h 16 Jun 2007 07:59:19 -0000 1.8 +++ libbase/ref_counted.h 30 Jun 2007 16:52:53 -0000 1.9 @@ -15,7 +15,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: ref_counted.h,v 1.8 2007/06/16 07:59:19 strk Exp $ */ +/* $Id: ref_counted.h,v 1.9 2007/06/30 16:52:53 strk Exp $ */ #ifndef GNASH_REF_COUNTED_H #define GNASH_REF_COUNTED_H @@ -25,15 +25,6 @@ #endif #include "container.h" -#include "smart_ptr.h" - -#ifdef GNASH_USE_GC -# include "GC.h" -# ifdef GNASH_GC_DEBUG -# include "log.h" -# include -# endif // GNASH_GC_DEBUG -#endif // GNASH_USE_GC namespace gnash { @@ -42,18 +33,12 @@ /// The only use for this class seems to be for putting derived /// classes in smart_ptr /// -#ifdef GNASH_USE_GC -class DSOEXPORT ref_counted : public GcResource -#else class DSOEXPORT ref_counted -#endif { private: -#ifndef GNASH_USE_GC mutable int m_ref_count; -#endif // ndef GNASH_USE_GC protected: @@ -61,21 +46,16 @@ // must never be explicitly deleted ! virtual ~ref_counted() { -#ifndef GNASH_USE_GC assert(m_ref_count == 0); -#endif // ndef GNASH_USE_GC } public: ref_counted() -#ifndef GNASH_USE_GC : m_ref_count(0) -#endif // ndef GNASH_USE_GC { } -#ifndef GNASH_USE_GC void add_ref() const { assert(m_ref_count >= 0); @@ -94,7 +74,16 @@ } int get_ref_count() const { return m_ref_count; } -#endif // ndef GNASH_USE_GC + + // These two methods are defined as a temporary hack to + // easy transition to the GC model. Was added when introducing + // mixed ref-counted AND gc-collected classes to avoid touching + // all ref-counted classes when GNASH_USE_GC is defined. + // If this design convinces us we'll be removing these two + // methods and all the calls from ref-counted classes. + // + void setReachable() { assert(m_ref_count > 0); } + bool isReachable() const { return true; } }; } // namespace gnash Index: libbase/smart_ptr.h =================================================================== RCS file: /sources/gnash/gnash/libbase/smart_ptr.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -b -r1.20 -r1.21 --- libbase/smart_ptr.h 15 Jun 2007 15:00:26 -0000 1.20 +++ libbase/smart_ptr.h 30 Jun 2007 16:52:53 -0000 1.21 @@ -24,7 +24,7 @@ // although the nice thing about templates is that no particular // ref-counted class is mandated. -/* $Id: smart_ptr.h,v 1.20 2007/06/15 15:00:26 strk Exp $ */ +/* $Id: smart_ptr.h,v 1.21 2007/06/30 16:52:53 strk Exp $ */ #ifndef SMART_PTR_H #define SMART_PTR_H @@ -40,12 +40,16 @@ // Is is a temporary hack to allow quick switch between GC and REFCOUNT // mechanism till the GC is stable // -//#define GNASH_USE_GC 1 +#define GNASH_USE_GC 1 // TODO: if GNASH_USE_GC is defined have smart_ptr map to intrusive_ptr // else have it map to gc_ptr (yet to be defined) +#include "ref_counted.h" +#include "GC.h" + #include +#include #define COMPILER_SUPPORTS_ARGUMENT_DEPENDENT_LOOKUP 1 #ifdef COMPILER_SUPPORTS_ARGUMENT_DEPENDENT_LOOKUP @@ -54,28 +58,27 @@ namespace boost { #endif -template -void -intrusive_ptr_add_ref(T* o) +inline void +intrusive_ptr_add_ref(ref_counted* o) { -#ifndef GNASH_USE_GC o->add_ref(); -#else - UNUSED(o); -#endif // ndef GNASH_USE_GC } -template -void -intrusive_ptr_release(T* o) +inline void +intrusive_ptr_release(ref_counted* o) { -#ifndef GNASH_USE_GC o->drop_ref(); -#else - UNUSED(o); -#endif // ndef GNASH_USE_GC } +// These two should not be needed when we switch all GcResource +// pointers to use the gc_ptr instead of the intrusive_ptr + +inline void intrusive_ptr_add_ref(GcResource* ) { } +inline void intrusive_ptr_release(GcResource* ) { } + +// The below thing won't work. We'll need a real templated class.. +//template typedef C* gc_ptr; + } From MAILER-DAEMON Sat Jun 30 13:02:04 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4gKi-0001PD-Jx for mharc-gnash-commit@gnu.org; Sat, 30 Jun 2007 13:02:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4gKg-0001Mk-T2 for gnash-commit@gnu.org; Sat, 30 Jun 2007 13:02:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4gKf-0001KI-LC for gnash-commit@gnu.org; Sat, 30 Jun 2007 13:02:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4gKf-0001Jr-FV for gnash-commit@gnu.org; Sat, 30 Jun 2007 13:02:01 -0400 Received: from host147-8-static.59-217-b.business.telecomitalia.it ([217.59.8.147] helo=freek.keybit.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1I4gKe-0003DU-GZ for gnash-commit@gnu.org; Sat, 30 Jun 2007 13:02:01 -0400 Received: (from strk@localhost) by freek.keybit.net (8.11.1/8.11.1) id l5UH1vo39268; Sat, 30 Jun 2007 19:01:57 +0200 (CEST) (envelope-from strk@keybit.net) Date: Sat, 30 Jun 2007 19:01:57 +0200 From: Sandro Santilli To: gnash-commit@gnu.org Subject: Re: [Gnash-commit] gnash ChangeLog libbase/ref_counted.h libbase/s... Message-ID: <20070630170157.GA39002@keybit.net> Mail-Followup-To: gnash-commit@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-detected-kernel: FreeBSD 2.0-4.2 X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2007 17:02:03 -0000 On Sat, Jun 30, 2007 at 04:52:53PM +0000, Sandro Santilli wrote: > CVSROOT: /sources/gnash > Module name: gnash > Changes by: Sandro Santilli 07/06/30 16:52:53 > > Modified files: > . : ChangeLog > libbase : ref_counted.h smart_ptr.h > > Log message: > * libbase/ref_counted.h: remove inheritance of ref_counted > from GcResource, provide temporary isReachable/setReachable > to allow not reverting all GC-related additions to character > definitions and other possibly GcResource objects. > * libbase/smart_ptr.h: have two versions of the intrusive_ptr > free functions: one for GcResource (do nothing) and one > for ref_counted (add/drop ref). Enable GC by default, where > current version uses both RC and GC (GC only used for as_object) With this commit I splitted ref_counted and GcResource so that they are not in the same inheritance tree. This allows us to choose which classes will be managed with a reference-counting model and which one with a garbage-collector one. The rationale was to make threading safe, starting with the assumption that the loader/parser thread should never create as_object instances. The previous problem was that the loader thread was creating GcResource instances (character_def in particular) concurrently with a running GC, thus resulting in premature deletion of just-created objects. See http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)#Stop-the-world_vs._incremental_vs._concurrent for a description of the problem. So, with this patch, we keep character_def as a ref-counted class, as well as bitmap_info, which were the ones I didn't really like to have garbage-collected. The implementation is an hack to allow touching the less files possible. We still always use intrusive_ptr for both ref_counted and GcResource classes, but the intrusive_ptr_add_ref and intrusive_ptr_release free functions will act differently based on what type they are working on: they do NOTHIN for GcResource and do the normal add/drop ref calls for ref_counted. The GNASH_USE_GC macro is now defined by default, which means as_object are garbage-collected. Undefining that macro in libbase/smart_ptr.h would bring us back to ref_counted as_objects. All the rest should be the same. Next step would be validating this model and if we like it decide which syntax we want to use for garbage collected pointers. There's technically NO NEED to store garbage-collected pointers into a smart pointer, but might come handy to use a smart pointer for clarity and eventually reducing errors by disallowing explicit deletion, or other similar things. Tests welcome. --strk; From MAILER-DAEMON Sat Jun 30 14:22:05 2007 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4ha9-0001SP-9l for mharc-gnash-commit@gnu.org; Sat, 30 Jun 2007 14:22:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4ha8-0001Re-Ge for gnash-commit@gnu.org; Sat, 30 Jun 2007 14:22:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4ha7-0001Ql-IJ for gnash-commit@gnu.org; Sat, 30 Jun 2007 14:22:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4ha7-0001Qi-Cy for gnash-commit@gnu.org; Sat, 30 Jun 2007 14:22:03 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4ha7-0006dS-15 for gnash-commit@gnu.org; Sat, 30 Jun 2007 14:22:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1I4ha5-0006vH-Nq for gnash-commit@gnu.org; Sat, 30 Jun 2007 18:22:01 +0000 Received: from strk by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1I4ha5-0006v6-Gl for gnash-commit@gnu.org; Sat, 30 Jun 2007 18:22:01 +0000 To: gnash-commit@gnu.org Message-Id: From: Sandro Santilli Date: Sat, 30 Jun 2007 18:22:01 +0000 X-detected-kernel: Linux 2.6 (newer, 3) Subject: [Gnash-commit] gnash ChangeLog server/impl.cpp server/parser/m... X-BeenThere: gnash-commit@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gnash CVS commit messages List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jun 2007 18:22:04 -0000 CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli 07/06/30 18:22:01 Modified files: . : ChangeLog server : impl.cpp server/parser : movie_def_impl.cpp movie_def_impl.h Log message: * server/impl.cpp (clear): don't exit, try the proper cleanup way; movie_def_impl loader should be ready, other threads likely aren't, this patch would expose all places in need for proper implementation of threads termination. * server/parser/movie_def_impl.{cpp,h}: implement loader thread cancelation request, wait for the thread to terminate in MovieLoader destructor. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3623&r2=1.3624 http://cvs.savannah.gnu.org/viewcvs/gnash/server/impl.cpp?cvsroot=gnash&r1=1.110&r2=1.111 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.cpp?cvsroot=gnash&r1=1.73&r2=1.74 http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/movie_def_impl.h?cvsroot=gnash&r1=1.47&r2=1.48 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3623 retrieving revision 1.3624 diff -u -b -r1.3623 -r1.3624 --- ChangeLog 30 Jun 2007 16:52:53 -0000 1.3623 +++ ChangeLog 30 Jun 2007 18:22:00 -0000 1.3624 @@ -1,5 +1,15 @@ 2007-06-30 Sandro Santilli + * server/impl.cpp (clear): don't exit, try the proper cleanup way; + movie_def_impl loader should be ready, other threads likely aren't, + this patch would expose all places in need for proper implementation + of threads termination. + * server/parser/movie_def_impl.{cpp,h}: implement + loader thread cancelation request, wait for the thread + to terminate in MovieLoader destructor. + +2007-06-30 Sandro Santilli + * libbase/ref_counted.h: remove inheritance of ref_counted from GcResource, provide temporary isReachable/setReachable to allow not reverting all GC-related additions to character Index: server/impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/impl.cpp,v retrieving revision 1.110 retrieving revision 1.111 diff -u -b -r1.110 -r1.111 --- server/impl.cpp 23 Jun 2007 12:34:32 -0000 1.110 +++ server/impl.cpp 30 Jun 2007 18:22:01 -0000 1.111 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: impl.cpp,v 1.110 2007/06/23 12:34:32 bjacques Exp $ */ +/* $Id: impl.cpp,v 1.111 2007/06/30 18:22:01 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -571,7 +571,7 @@ // See task task #6959 and depending items // std::cerr << "Any segfault past this message is likely due to improper threads cleanup." << std::endl; - exit(EXIT_SUCCESS); + //exit(EXIT_SUCCESS); clear_library(); fontlib::clear(); Index: server/parser/movie_def_impl.cpp =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.cpp,v retrieving revision 1.73 retrieving revision 1.74 diff -u -b -r1.73 -r1.74 --- server/parser/movie_def_impl.cpp 16 Jun 2007 06:55:56 -0000 1.73 +++ server/parser/movie_def_impl.cpp 30 Jun 2007 18:22:01 -0000 1.74 @@ -81,6 +81,9 @@ MovieLoader::~MovieLoader() { + // we should assert _movie_def._loadingCanceled + // but we're not friend yet (anyone introduce us ?) + if ( _thread ) _thread->join(); } bool @@ -205,12 +208,16 @@ _frame_reached_condition(), _waiting_for_frame(0), m_jpeg_in(0), - _loader(*this) + _loader(*this), + _loadingCanceled(false) { } movie_def_impl::~movie_def_impl() { + // Request cancelation of the loading thread + _loadingCanceled = true; + // Release our playlist data. {for (size_t i = m_playlist.size() - 1; i != static_cast(-1); i--) // Optimized { @@ -832,6 +839,11 @@ //size_t it=0; while ( (uint32_t) str.get_position() < _swf_end_pos ) { + if ( _loadingCanceled ) + { + log_debug("Loading thread cancelation requested, returning from read_all_swf"); + return; + } //log_msg(_("Loading thread iteration %u"), it++); Index: server/parser/movie_def_impl.h =================================================================== RCS file: /sources/gnash/gnash/server/parser/movie_def_impl.h,v retrieving revision 1.47 retrieving revision 1.48 diff -u -b -r1.47 -r1.48 --- server/parser/movie_def_impl.h 18 Jun 2007 09:33:06 -0000 1.47 +++ server/parser/movie_def_impl.h 30 Jun 2007 18:22:01 -0000 1.48 @@ -318,6 +318,9 @@ /// Timeline _timeline; + /// A flag set to true when load cancelation is requested + bool _loadingCanceled; + public: movie_def_impl(create_bitmaps_flag cbf, create_font_shapes_flag cfs);