Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
ui/prores_aw_handler: Print profile to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Sep 27, 2019
1 parent 0c9764a commit 9efda8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/ui/prores_aw_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,11 @@ void obsffmpeg::ui::prores_aw_handler::update(obs_data_t* settings, const AVCode
{
context->profile = static_cast<int>(obs_data_get_int(settings, P_PRORES_PROFILE));
}

void obsffmpeg::ui::prores_aw_handler::log_options(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context)
{
for (auto ptr = codec->profiles; ptr->profile != FF_PROFILE_UNKNOWN; ptr++) {
if (ptr->profile == static_cast<int>(obs_data_get_int(settings, P_PRORES_PROFILE)))
PLOG_INFO("[%s] Profile: %s", codec->name, ptr->name);
}
}
3 changes: 3 additions & 0 deletions source/ui/prores_aw_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace obsffmpeg {

virtual void update(obs_data_t* settings, const AVCodec* codec,
AVCodecContext* context) override;

virtual void log_options(obs_data_t* settings, const AVCodec* codec,
AVCodecContext* context) override;
};
} // namespace ui
} // namespace obsffmpeg

0 comments on commit 9efda8a

Please sign in to comment.