X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input.h;h=76e1b662bbc643db48ecd094dbc2386934bd82e2;hp=79cfc54183dfb9bdfee82e25a3448ccdc7ae7bd1;hb=9abb89bcf7940e2ada9d708f86a218a56334f68d;hpb=ca9624c43b968a0f29ea44e47851ff686bb64bb6 diff --git a/input.h b/input.h index 79cfc54..76e1b66 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(int stream_index) = 0; }; #endif // !defined(_INPUT_H)