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