Fixed 32-bit compile issues
This commit is contained in:
parent
9671e385ce
commit
7565704fdc
32 changed files with 87 additions and 103 deletions
|
@ -26,19 +26,19 @@ namespace Mist {
|
|||
option["long"] = "buffer";
|
||||
option["short"] = "b";
|
||||
option["help"] = "DVR buffer time in ms";
|
||||
option["value"].append(50000LL);
|
||||
option["value"].append(50000);
|
||||
config->addOption("bufferTime", option);
|
||||
capa["optional"]["DVR"]["name"] = "Buffer time (ms)";
|
||||
capa["optional"]["DVR"]["help"] = "The target available buffer time for this live stream, in milliseconds. This is the time available to seek around in, and will automatically be extended to fit whole keyframes as well as the minimum duration needed for stable playback.";
|
||||
capa["optional"]["DVR"]["option"] = "--buffer";
|
||||
capa["optional"]["DVR"]["type"] = "uint";
|
||||
capa["optional"]["DVR"]["default"] = 50000LL;
|
||||
capa["optional"]["DVR"]["default"] = 50000;
|
||||
|
||||
option["arg"] = "integer";
|
||||
option["long"] = "resume";
|
||||
option["short"] = "R";
|
||||
option["help"] = "Enable resuming support (1) or disable resuming support (0, default)";
|
||||
option["value"].append(0LL);
|
||||
option["value"].append(0);
|
||||
config->addOption("resume", option);
|
||||
capa["optional"]["resume"]["name"] = "Resume support";
|
||||
capa["optional"]["resume"]["help"] = "If enabled, the buffer will linger after source disconnect to allow resuming the stream later. If disabled, the buffer will instantly close on source disconnect.";
|
||||
|
@ -48,12 +48,12 @@ namespace Mist {
|
|||
capa["optional"]["resume"]["select"][0u][1u] = "Disabled";
|
||||
capa["optional"]["resume"]["select"][1u][0u] = "1";
|
||||
capa["optional"]["resume"]["select"][1u][1u] = "Enabled";
|
||||
capa["optional"]["resume"]["default"] = 0LL;
|
||||
capa["optional"]["resume"]["default"] = 0;
|
||||
option.null();
|
||||
|
||||
capa["source_match"] = "push://*";
|
||||
capa["non-provider"] = true;//Indicates we don't provide data, only collect it
|
||||
capa["priority"] = 9ll;
|
||||
capa["priority"] = 9;
|
||||
capa["desc"] = "This input type is both used for push- and pull-based streams. It provides a buffer for live media data. The push://[host][@password] style source allows all enabled protocols that support push input to accept a push into MistServer, where you can accept incoming streams from everyone, based on a set password, and/or use hostname/IP whitelisting.";
|
||||
capa["codecs"][0u][0u].append("*");
|
||||
capa["codecs"][0u][1u].append("*");
|
||||
|
@ -206,7 +206,7 @@ namespace Mist {
|
|||
nProxy.metaPages[0].master = false;
|
||||
}
|
||||
myMeta.writeTo(nProxy.metaPages[0].mapped);
|
||||
memset(nProxy.metaPages[0].mapped + myMeta.getSendLen(), 0, (nProxy.metaPages[0].len > myMeta.getSendLen() ? std::min(nProxy.metaPages[0].len - myMeta.getSendLen(), 4ll) : 0));
|
||||
memset(nProxy.metaPages[0].mapped + myMeta.getSendLen(), 0, (nProxy.metaPages[0].len > myMeta.getSendLen() ? std::min((size_t)(nProxy.metaPages[0].len - myMeta.getSendLen()), (size_t)4) : 0));
|
||||
liveMeta->post();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue