Some fixes for metadata rewriting in DTSC::File, optimized live fragmenter somewhat.

This commit is contained in:
Thulinma 2013-03-21 14:23:49 +01:00
parent bf69dacefd
commit 4a79862111
2 changed files with 11 additions and 20 deletions

View file

@ -69,6 +69,7 @@ namespace DTSC {
File(std::string filename, bool create = false);
~File();
JSON::Value & getMeta();
JSON::Value & getFirstMeta();
long long int getLastReadPos();
bool writeHeader(std::string & header, bool force = false);
long long int addHeader(std::string & header);
@ -82,6 +83,7 @@ namespace DTSC {
std::string strbuffer;
JSON::Value jsonbuffer;
JSON::Value metadata;
JSON::Value firstmetadata;
std::map<int, long> frames;
std::map<int, long> msframes;
long long int currtime;