Moved boolean cast to readOnlyMeta, fix'ed bugs regarding FLV metadata generation.

This commit is contained in:
Erik Zandvliet 2014-01-20 10:33:24 +01:00
parent 9ddc2fc794
commit 6720f7a5ae
2 changed files with 5 additions and 5 deletions

View file

@ -202,6 +202,7 @@ namespace DTSC {
public:
readOnlyMeta();
readOnlyMeta(JSON::Value & meta);
inline operator bool() const {return vod || live;}
std::map<int,readOnlyTrack> tracks;
bool vod;
bool live;
@ -218,7 +219,6 @@ namespace DTSC {
Meta();
Meta(const readOnlyMeta & meta);
Meta(JSON::Value & meta);
inline operator bool() const {return vod || live;}
std::map<int,Track> tracks;
void update(JSON::Value & pack);
void send(Socket::Connection & conn);