]> git.sesse.net Git - cubemap/blobdiff - input.cpp
Tweak the MutexLock implementation slightly, so as to confuse Coverity less.
[cubemap] / input.cpp
index d7c2b774d79fd66cbcb8a41d923c12af33c49029..ec1238181d076273c5d6019fce16e768ed1d6689 100644 (file)
--- a/input.cpp
+++ b/input.cpp
@@ -1,5 +1,4 @@
 #include <stddef.h>
-#include <string.h>
 #include <string>
 
 #include "httpinput.h"
@@ -54,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;
 }