diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-14 16:24:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-15 22:33:26 +0200 |
| commit | 68a470b836f842af6609ba8c6ea66ffa1435c508 (patch) | |
| tree | 9425aa7aea82f7676f304b5bd5d387f0208a662e | |
| parent | cf2dbc15457cb794d5d1ec16207d98b18f3d0b0f (diff) | |
Move two methods into the .cc
| -rw-r--r-- | src/lib/ffmpeg_stream.cc | 15 | ||||
| -rw-r--r-- | src/lib/ffmpeg_stream.h | 9 |
2 files changed, 17 insertions, 7 deletions
diff --git a/src/lib/ffmpeg_stream.cc b/src/lib/ffmpeg_stream.cc index 5737fcc42..335c3529f 100644 --- a/src/lib/ffmpeg_stream.cc +++ b/src/lib/ffmpeg_stream.cc @@ -83,3 +83,18 @@ FFmpegStream::index(AVFormatContext const * fc) const DCPOMATIC_ASSERT(false); return 0; } + + +string +FFmpegStream::technical_summary() const +{ + return "id " + boost::lexical_cast<std::string>(_id); +} + + +string +FFmpegStream::identifier() const +{ + return boost::lexical_cast<std::string>(_id); +} + diff --git a/src/lib/ffmpeg_stream.h b/src/lib/ffmpeg_stream.h index b797a6d90..0ed0b3be2 100644 --- a/src/lib/ffmpeg_stream.h +++ b/src/lib/ffmpeg_stream.h @@ -46,13 +46,8 @@ public: bool uses_index(AVFormatContext const * c, int index) const; AVStream* stream(AVFormatContext const * c) const; - std::string technical_summary() const { - return "id " + boost::lexical_cast<std::string>(_id); - } - - std::string identifier() const { - return boost::lexical_cast<std::string>(_id); - } + std::string technical_summary() const; + std::string identifier() const; int id() const { return _id; |
