encoders/ffmpeg: Add function to get info object

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-08-10 02:37:51 +02:00
parent a39fd89ba7
commit 8306dc5b92
2 changed files with 7 additions and 0 deletions

View file

@ -1098,6 +1098,11 @@ const AVCodec* ffmpeg_factory::get_avcodec()
return _avcodec;
}
obs_encoder_info* streamfx::encoder::ffmpeg::ffmpeg_factory::get_info()
{
return &_info;
}
ffmpeg_manager::ffmpeg_manager() : _factories(), _handlers(), _debug_handler()
{
// Handlers

View file

@ -147,6 +147,8 @@ namespace streamfx::encoder::ffmpeg {
public:
const AVCodec* get_avcodec();
obs_encoder_info* get_info();
};
class ffmpeg_manager {