Refer to streams internally mostly by an index, not the stream_id.
[cubemap] / httpinput.h
index 9a27871..fc39b30 100644 (file)
@@ -21,9 +21,9 @@ public:
 
        virtual std::string get_url() const { return url; }
 
-       virtual void add_destination(const std::string &stream_id)
+       virtual void add_destination(int stream_index)
        {
-               stream_ids.push_back(stream_id);
+               stream_indices.push_back(stream_index);
        }
 
 private:
@@ -53,7 +53,7 @@ private:
        };
        State state;
 
-       std::vector<std::string> stream_ids;
+       std::vector<int> stream_indices;
 
        // The URL and its parsed components.
        std::string url;