X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=c91f3393116719cbf354139c4841d21d2f68f2f6;hb=2987b656264945a969e41ae56dd78e5b0e575314;hp=f56427a1dd062a76f84fe3a095220ae5c2a97a51;hpb=3f41c996a62423548872c971e6b47ef1454efa72;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index f56427a..c91f339 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -1080,14 +1080,6 @@ void swf_FoldAll(SWF*swf) } } -void swf_FoldAllTags(TAG*tag) -{ - SWF swf; - memset(&swf, 0, sizeof(swf)); - swf.firstTag = tag; - swf_FoldAll(&swf); -} - void swf_UnFoldAll(SWF*swf) { TAG*tag = swf->firstTag; @@ -1223,7 +1215,7 @@ int swf_WriteSWF2(struct writer_t*writer, SWF * swf) // Writes SWF to file, if (swf->firstTag && swf_NextTag(swf->firstTag)) if (swf_GetTagID(swf_NextTag(swf->firstTag))!=ST_REFLEX) - swf_SetBlock(swf_InsertTag(swf->firstTag,ST_REFLEX),"rfx",3); + swf_SetBlock(swf_InsertTagBefore(swf, swf->firstTag,ST_REFLEX),"rfx",3); #endif // INSERT_RFX_TAG @@ -1403,6 +1395,7 @@ void swf_FreeTags(SWF * swf) // Frees all malloc'ed memory for t free(t); t = tnew; } + swf->firstTag = 0; } // include advanced functions