git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@896
362d55ac-95cf-4e76-9f9a-
cbaa9c17b72d
\r
int index() const {return index_;}\r
\r
- const std::shared_ptr<AVCodecContext>& ctx() { return ctx_; }\r
+ const std::shared_ptr<AVCodecContext>& ctx() const { return ctx_; }\r
\r
operator bool(){return ctx_ != nullptr;}\r
\r
\r
std::wstring print() const\r
{\r
- return L"ffmpeg_input[" + filename_ + L"]";\r
+ const auto video = widen(video_stream_.ctx() ? video_stream_.ctx()->codec->name : "no-video");\r
+ const auto audio = widen(audio_stream_.ctx() ? audio_stream_.ctx()->codec->name : "no-audio");\r
+\r
+ return L"ffmpeg_input[" + filename_ + L" (" + video + L"|" + audio + L")]";\r
}\r
};\r
\r