X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input.cpp;h=ec1238181d076273c5d6019fce16e768ed1d6689;hp=3f6a9d73ee42095b7462ba32a93088c5a60aadfb;hb=74cd48ffef90d7d0752e37a4515e4ecfb68f7c9d;hpb=ca9624c43b968a0f29ea44e47851ff686bb64bb6 diff --git a/input.cpp b/input.cpp index 3f6a9d7..ec12381 100644 --- a/input.cpp +++ b/input.cpp @@ -1,10 +1,10 @@ -#include +#include #include #include "httpinput.h" -#include "udpinput.h" #include "input.h" #include "state.pb.h" +#include "udpinput.h" using namespace std; @@ -53,17 +53,17 @@ bool parse_url(const string &url, string *protocol, string *host, string *port, return true; } -Input *create_input(const std::string &stream_id, const std::string &url) +Input *create_input(const std::string &url) { string protocol, host, port, path; if (!parse_url(url, &protocol, &host, &port, &path)) { return NULL; } if (protocol == "http") { - return new HTTPInput(stream_id, url); + return new HTTPInput(url); } if (protocol == "udp") { - return new UDPInput(stream_id, url); + return new UDPInput(url); } return NULL; }