Added option for streamname to the player.

This commit is contained in:
Erik Zandvliet 2013-12-17 14:52:44 +01:00
parent f98b790986
commit 733868aa70
2 changed files with 4 additions and 4 deletions

View file

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

View file

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