Fixed MistPlayer compiling.

This commit is contained in:
Thulinma 2012-09-03 20:10:23 +02:00
parent 3e95027508
commit d0a6778b7a

View file

@ -6,6 +6,7 @@
#endif
#include <stdio.h> //for fileno
#include <stdlib.h> //for atoi
#include <sys/time.h>
#include <mist/dtsc.h>
#include <mist/json.h>
@ -25,7 +26,6 @@ class Stats{
};
/// Reads a stats string and parses it to the internal representation.
Stats(std::string s){
Buffer::Stats::Stats(std::string s){
size_t f = s.find(' ');
if (f != std::string::npos){
host = s.substr(0, f);
@ -116,7 +116,7 @@ int main(int argc, char** argv){
json_sts["vod"]["filename"] = conf.getString("filename");
json_sts["vod"]["now"] = (long long int)time(0);
json_sts["vod"]["meta"] = meta;
StatsSocket.Send(json_sys.toString());
StatsSocket.Send(json_sts.toString().c_str());
StatsSocket.Send("\n\n");
StatsSocket.flush();
}