]> git.sesse.net Git - cubemap/blobdiff - httpinput.h
Refer to streams internally mostly by an index, not the stream_id.
[cubemap] / httpinput.h
index 9a2787176c4c2b8eb2ed27e1d2bf19d5b4aa4210..fc39b30f7c14f5ca701fce33d48e89dcd7a7ccc4 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;