diff options
| -rw-r--r-- | src/wx/content_advanced_dialog.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/content_advanced_dialog.cc b/src/wx/content_advanced_dialog.cc index cc888aeb1..c16ab637f 100644 --- a/src/wx/content_advanced_dialog.cc +++ b/src/wx/content_advanced_dialog.cc @@ -125,9 +125,8 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte video_frame_rate_label->Enable (!single_frame_image_content); _video_frame_rate->Enable (!single_frame_image_content); - auto vfr = _content->video_frame_rate (); - if (vfr) { - _video_frame_rate->SetValue (std_to_wx(locale_convert<string>(*vfr))); + if (auto const vfr = _content->video_frame_rate()) { + _video_frame_rate->SetValue(std_to_wx(locale_convert<string>(*vfr))); } _burnt_subtitle->SetValue (_content->video && static_cast<bool>(_content->video->burnt_subtitle_language())); |
