eDVBMetaParser::eDVBMetaParser()
{
m_time_create = 0;
+ m_data_ok = 0;
}
int eDVBMetaParser::parseFile(const std::string &basename)
++linecnt;
}
fclose(f);
+ m_data_ok = 1;
return 0;
}
m_name = description;
m_description = "";
m_time_create = 0;
+
+ m_data_ok = 1;
fclose(f);
return 0;
}
int eDVBMetaParser::updateMeta(const std::string &tsname)
{
+ if (!m_data_ok)
+ return -1;
std::string filename = tsname + ".meta";
FILE *f = fopen(filename.c_str(), "w");
int parseRecordings(const std::string &filename);
int updateMeta(const std::string &basename);
+ int m_data_ok;
+
eServiceReferenceDVB m_ref;
std::string m_name, m_description;
int m_time_create;