Supporters update.
[dcpomatic.git] / src / lib / ffmpeg_stream.h
index 317ee2e9c7e6fedb596bf7d8c30fb0289000e3a3..84b2a8853317082b676f651bee47f11de3bc940b 100644 (file)
@@ -35,7 +35,7 @@ public:
                , _id (i)
        {}
 
-       FFmpegStream (cxml::ConstNodePtr);
+       explicit FFmpegStream (cxml::ConstNodePtr);
 
        void as_xml (xmlpp::Node *) const;
 
@@ -54,6 +54,12 @@ public:
                return boost::lexical_cast<std::string> (_id);
        }
 
+       int id () const {
+               return _id;
+       }
+
+       int index (AVFormatContext const * c) const;
+
        std::string name;
 
        friend bool operator== (FFmpegStream const & a, FFmpegStream const & b);