X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_stream.h;h=84b2a8853317082b676f651bee47f11de3bc940b;hb=ff639b3cf30afcc097bfd21d39c8d15f466cadd6;hp=317ee2e9c7e6fedb596bf7d8c30fb0289000e3a3;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/ffmpeg_stream.h b/src/lib/ffmpeg_stream.h index 317ee2e9c..84b2a8853 100644 --- a/src/lib/ffmpeg_stream.h +++ b/src/lib/ffmpeg_stream.h @@ -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 (_id); } + int id () const { + return _id; + } + + int index (AVFormatContext const * c) const; + std::string name; friend bool operator== (FFmpegStream const & a, FFmpegStream const & b);