X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input.h;fp=input.h;h=e0bd54b5bf57c221363b4cbc3ede3a157047a15f;hp=79cfc54183dfb9bdfee82e25a3448ccdc7ae7bd1;hb=340489a8e732519182ecbc92116e7dfa2997143c;hpb=4f4e1384b4299611924a39f59f536b4964806135 diff --git a/input.h b/input.h index 79cfc54..e0bd54b 100644 --- a/input.h +++ b/input.h @@ -13,7 +13,7 @@ bool parse_url(const std::string &url, std::string *protocol, std::string *host, // Figure out the right type of input based on the URL, and create a new Input of the right type. // Will return NULL if unknown. -Input *create_input(const std::string &stream_id, const std::string &url); +Input *create_input(const std::string &url); Input *create_input(const InputProto &serialized); class Input : public Thread { @@ -22,6 +22,7 @@ public: virtual InputProto serialize() const = 0; virtual std::string get_url() const = 0; virtual void close_socket() = 0; + virtual void add_destination(const std::string &stream_id) = 0; }; #endif // !defined(_INPUT_H)