From bb1c9199482a2a134780010909000fe611b5a7ed Mon Sep 17 00:00:00 2001 From: Thulinma <jaron@vietors.com> Date: Thu, 19 May 2016 00:16:52 +0200 Subject: [PATCH] Checksum and sync byte fixes. --- src/output/output.cpp | 3 ++- src/output/output.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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