X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Findexstate.C;h=803c4f0ba207aa17833ccb0c150c9f8db7e6a1c0;hp=3204c6841324fe25f6fe403d2f04d946d5bf8fe2;hb=2e48b660e37eb5c661264d601211e16cb6cd6e89;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd diff --git a/cinelerra-5.1/cinelerra/indexstate.C b/cinelerra-5.1/cinelerra/indexstate.C index 3204c684..803c4f0b 100644 --- a/cinelerra-5.1/cinelerra/indexstate.C +++ b/cinelerra-5.1/cinelerra/indexstate.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2009 Adam Williams - * + * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ @@ -158,9 +158,14 @@ void IndexState::write_xml(FileXML *file) file->tag.set_title("OFFSET"); file->tag.set_property("FLOAT", index_entries[i]->offset); file->append_tag(); + file->tag.set_title("/OFFSET"); + file->append_tag(); file->tag.set_title("SIZE"); file->tag.set_property("FLOAT", index_entries[i]->size); file->append_tag(); + file->tag.set_title("/SIZE"); + file->append_tag(); + file->append_newline(); } file->append_newline(); @@ -238,7 +243,6 @@ int IndexState::write_index(const char *index_path, Asset *asset, int64_t zoom, } fclose(fp); - reset_index(); return 0; }