Checksum and sync byte fixes.

This commit is contained in:
Thulinma 2016-05-19 00:16:52 +02:00
parent 5da3c24eae
commit bb1c919948
2 changed files with 3 additions and 2 deletions

View file

@ -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){

View file

@ -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