Fixed 32-bit compile issues
This commit is contained in:
parent
9671e385ce
commit
7565704fdc
32 changed files with 87 additions and 103 deletions
|
@ -310,8 +310,8 @@ namespace DTSC {
|
|||
std::string getIdentifier();
|
||||
std::string getWritableIdentifier();
|
||||
unsigned int trackID;
|
||||
unsigned long long firstms;
|
||||
unsigned long long lastms;
|
||||
uint64_t firstms;
|
||||
uint64_t lastms;
|
||||
int bps;
|
||||
int max_bps;
|
||||
int missedFrags;
|
||||
|
@ -366,8 +366,8 @@ namespace DTSC {
|
|||
bool live;
|
||||
bool merged;
|
||||
uint16_t version;
|
||||
long long int moreheader;
|
||||
long long int bufferWindow;
|
||||
int64_t moreheader;
|
||||
int64_t bufferWindow;
|
||||
int64_t bootMsOffset;///< Millis to add to packet timestamps to get millis since system boot.
|
||||
std::string sourceURI;
|
||||
JSON::Value inputLocalVars;
|
||||
|
|
|
@ -502,7 +502,7 @@ namespace DTSC {
|
|||
|
||||
///\brief Returns the size of this packet.
|
||||
///\return The size of this packet.
|
||||
uint64_t Packet::getDataLen() const {
|
||||
size_t Packet::getDataLen() const {
|
||||
return dataLen;
|
||||
}
|
||||
|
||||
|
@ -2032,8 +2032,8 @@ namespace DTSC {
|
|||
result["lang"] = lang;
|
||||
}
|
||||
result["trackid"] = trackID;
|
||||
result["firstms"] = (long long)firstms;
|
||||
result["lastms"] = (long long)lastms;
|
||||
result["firstms"] = firstms;
|
||||
result["lastms"] = lastms;
|
||||
result["bps"] = bps;
|
||||
result["maxbps"] = max_bps;
|
||||
if (missedFrags) {
|
||||
|
@ -2065,22 +2065,22 @@ namespace DTSC {
|
|||
result["tracks"][it->second.getWritableIdentifier()] = it->second.toJSON();
|
||||
}
|
||||
if (vod) {
|
||||
result["vod"] = 1ll;
|
||||
result["vod"] = 1;
|
||||
}
|
||||
if (live) {
|
||||
result["live"] = 1ll;
|
||||
result["live"] = 1;
|
||||
}
|
||||
if (merged) {
|
||||
result["merged"] = 1ll;
|
||||
result["merged"] = 1;
|
||||
}
|
||||
if (bufferWindow) {
|
||||
result["buffer_window"] = bufferWindow;
|
||||
}
|
||||
if (version) {
|
||||
result["version"] = (long long)version;
|
||||
result["version"] = version;
|
||||
}
|
||||
if (bootMsOffset){
|
||||
result["bootoffset"] = (long long)bootMsOffset;
|
||||
result["bootoffset"] = bootMsOffset;
|
||||
}
|
||||
if (sourceURI.size()){
|
||||
result["source"] = sourceURI;
|
||||
|
|
14
lib/json.cpp
14
lib/json.cpp
|
@ -469,12 +469,6 @@ JSON::Value::Value(const char *val){
|
|||
intVal = 0;
|
||||
}
|
||||
|
||||
/// Sets this JSON::Value to the given integer.
|
||||
JSON::Value::Value(long long int val){
|
||||
myType = INTEGER;
|
||||
intVal = val;
|
||||
}
|
||||
|
||||
/// Sets this JSON::Value to the given integer.
|
||||
JSON::Value::Value(uint32_t val){
|
||||
myType = INTEGER;
|
||||
|
@ -654,14 +648,6 @@ JSON::Value &JSON::Value::operator=(const char *rhs){
|
|||
return ((*this) = (std::string)rhs);
|
||||
}
|
||||
|
||||
/// Sets this JSON::Value to the given integer.
|
||||
JSON::Value &JSON::Value::operator=(const long long int &rhs){
|
||||
null();
|
||||
myType = INTEGER;
|
||||
intVal = rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Sets this JSON::Value to the given integer.
|
||||
JSON::Value &JSON::Value::operator=(const int64_t &rhs){
|
||||
null();
|
||||
|
|
|
@ -41,7 +41,6 @@ namespace JSON{
|
|||
Value(std::istream &fromstream);
|
||||
Value(const std::string &val);
|
||||
Value(const char *val);
|
||||
Value(long long int val);
|
||||
Value(int32_t val);
|
||||
Value(int64_t val);
|
||||
Value(uint32_t val);
|
||||
|
@ -58,7 +57,6 @@ namespace JSON{
|
|||
Value &operator=(const Value &rhs);
|
||||
Value &operator=(const std::string &rhs);
|
||||
Value &operator=(const char *rhs);
|
||||
Value &operator=(const long long int &rhs);
|
||||
Value &operator=(const int64_t &rhs);
|
||||
Value &operator=(const int32_t &rhs);
|
||||
Value &operator=(const uint64_t &rhs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue