_set_video_frame_rate->Bind (wxEVT_BUTTON, bind(&ContentAdvancedDialog::set_video_frame_rate, this));
_video_frame_rate->Bind (wxEVT_TEXT, boost::bind(&ContentAdvancedDialog::video_frame_rate_changed, this));
_burnt_subtitle->Bind (wxEVT_CHECKBOX, boost::bind(&ContentAdvancedDialog::burnt_subtitle_changed, this));
- _burnt_subtitle_language->Changed.connect (boost::bind(&ContentAdvancedDialog::burnt_subtitle_language_changed, this));
setup_sensitivity ();
}
}
-void
-ContentAdvancedDialog::burnt_subtitle_language_changed ()
+optional<dcp::LanguageTag>
+ContentAdvancedDialog::burnt_subtitle_language() const
{
- DCPOMATIC_ASSERT (_content->video);
- _content->video->set_burnt_subtitle_language (_burnt_subtitle_language->get());
+ return _burnt_subtitle_language->get();
}
*/
+#include <dcp/language_tag.h>
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
}
boost::optional<double> video_frame_rate() const;
+ boost::optional<dcp::LanguageTag> burnt_subtitle_language() const;
private:
void edit_filters ();
void video_frame_rate_changed ();
void setup_sensitivity ();
void burnt_subtitle_changed ();
- void burnt_subtitle_language_changed ();
std::shared_ptr<Content> _content;
bool _filters_allowed = false;
if (content->video) {
content->video->set_use(!dialog->ignore_video());
+ content->video->set_burnt_subtitle_language(dialog->burnt_subtitle_language());
}
auto ffmpeg = dynamic_pointer_cast<FFmpegContent>(content);