gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog gui/gui.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog gui/gui.cpp
Date: Tue, 15 May 2007 09:30:37 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/15 09:30:37

Modified files:
        .              : ChangeLog 
        gui            : gui.cpp 

Log message:
                * gui/gui.cpp (advance_movie): handle no looping when the
                  total frame count is 0 (malformed SWF).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3216&r2=1.3217
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.77&r2=1.78

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3216
retrieving revision 1.3217
diff -u -b -r1.3216 -r1.3217
--- ChangeLog   15 May 2007 07:38:14 -0000      1.3216
+++ ChangeLog   15 May 2007 09:30:35 -0000      1.3217
@@ -1,5 +1,7 @@
 2007-05-15 Sandro Santilli <address@hidden>
 
+       * 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 <address@hidden>

Index: gui/gui.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.cpp,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -b -r1.77 -r1.78
--- gui/gui.cpp 4 May 2007 13:30:21 -0000       1.77
+++ gui/gui.cpp 15 May 2007 09:30:36 -0000      1.78
@@ -484,9 +484,9 @@
        
        if ( ! gui->loops() )
        {
-               size_t curframe = m->get_current_frame();
+               size_t curframe = m->get_current_frame(); // can be 0 on 
malformed SWF
                gnash::sprite_instance* si = m->get_root_movie();
-               if (curframe + 1 == si->get_frame_count())
+               if (curframe + 1 >= si->get_frame_count())
                {
                    exit(0); // TODO: quit in a more gentile fashion.
                }




reply via email to

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