Added option for streamname to the player.
This commit is contained in:
parent
f98b790986
commit
733868aa70
2 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,10 @@ class Stats{
|
||||||
|
|
||||||
int main(int argc, char** argv){
|
int main(int argc, char** argv){
|
||||||
Util::Config conf(argv[0], PACKAGE_VERSION);
|
Util::Config conf(argv[0], PACKAGE_VERSION);
|
||||||
conf.addOption("filename", JSON::fromString("{\"arg_num\":1, \"help\":\"Name of the file to write to stdout.\"}"));
|
conf.addOption("filename",
|
||||||
|
JSON::fromString("{\"arg_num\":1, \"help\":\"Name of the file to write to stdout.\"}"));
|
||||||
|
conf.addOption("streamname",
|
||||||
|
JSON::fromString("{\"arg\":\"string\",\"short\":\"s\",\"long\":\"stream\",\"help\":\"The name of the stream that this connector will transmit.\"}"));
|
||||||
conf.parseArgs(argc, argv);
|
conf.parseArgs(argc, argv);
|
||||||
conf.activate();
|
conf.activate();
|
||||||
int playing = 0;
|
int playing = 0;
|
||||||
|
|
|
@ -36,9 +36,6 @@ namespace Converters {
|
||||||
if (it->second.fragments.size()){
|
if (it->second.fragments.size()){
|
||||||
it->second.fragments.rbegin()->setDuration(it->second.fragments.rbegin()->getDuration() - it->second.lastms);
|
it->second.fragments.rbegin()->setDuration(it->second.fragments.rbegin()->getDuration() - it->second.lastms);
|
||||||
}
|
}
|
||||||
if (it->second.lastms / 1000){
|
|
||||||
it->second.bps /= (it->second.lastms / 1000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//append the revised header
|
//append the revised header
|
||||||
|
|
Loading…
Add table
Reference in a new issue