gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/stream.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/stream.cpp
Date: Tue, 10 Apr 2007 12:16:50 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/10 12:16:49

Modified files:
        .              : ChangeLog 
        server         : stream.cpp 

Log message:
                * 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.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2822&r2=1.2823
http://cvs.savannah.gnu.org/viewcvs/gnash/server/stream.cpp?cvsroot=gnash&r1=1.16&r2=1.17

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2822
retrieving revision 1.2823
diff -u -b -r1.2822 -r1.2823
--- ChangeLog   10 Apr 2007 10:46:19 -0000      1.2822
+++ ChangeLog   10 Apr 2007 12:16:49 -0000      1.2823
@@ -1,5 +1,8 @@
 2007-04-10 Sandro Santilli <address@hidden>
 
+       * 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

Index: server/stream.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/stream.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- server/stream.cpp   22 Mar 2007 17:14:37 -0000      1.16
+++ server/stream.cpp   10 Apr 2007 12:16:49 -0000      1.17
@@ -259,6 +259,10 @@
        SWF::tag_type stream::open_tag()
        {
                align();
+
+               // for debugging
+               unsigned long offset=get_position();
+
                int     tag_header = read_u16();
                int     tag_type = tag_header >> 6;
                int     tag_length = tag_header & 0x3F;
@@ -270,7 +274,7 @@
 
                IF_VERBOSE_PARSE (
                        log_parse("SWF[%lu]: tag type = %d, tag length = %d",
-                       get_position(), tag_type, tag_length);
+                       offset, tag_type, tag_length);
                );
                        
                // Remember where the end of the tag is, so we can




reply via email to

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