diff --git a/src/output/output.cpp b/src/output/output.cpp index d24e4eee..dba4bf92 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -226,6 +226,7 @@ namespace Mist { onFail(); return; } + stats(); updateMeta(); if (myMeta.live && !isReadyForPlay()){ unsigned long long waitUntil = Util::epoch() + 15; @@ -1140,7 +1141,7 @@ namespace Mist { if (!isInitialized){ return; } - EXTREME_MSG("Writing stats: %s, %s, %llu", getConnectedHost().c_str(), streamName.c_str(), crc); + EXTREME_MSG("Writing stats: %s, %s, %lu", getConnectedHost().c_str(), streamName.c_str(), crc); if (statsPage.getData()){ unsigned long long int now = Util::epoch(); if (now != lastStats){ diff --git a/src/output/output.h b/src/output/output.h index a1aae08d..52251d7a 100644 --- a/src/output/output.h +++ b/src/output/output.h @@ -112,7 +112,7 @@ namespace Mist { IPC::sharedClient statsPage;///< Shared memory used for statistics reporting. bool isBlocking;///< If true, indicates that myConn is blocking. - unsigned int crc;///< Checksum, if any, for usage in the stats. + uint32_t crc;///< Checksum, if any, for usage in the stats. unsigned int getKeyForTime(long unsigned int trackId, long long timeStamp); //stream delaying variables