Use branch of ffmpeg.
[dcpomatic.git] / src / wx / content_advanced_dialog.cc
index 9f2a45106805a4c3995418347825114a6a5d605e..d170032a4798be99b6bd47da71419dfc29624994 100644 (file)
 #include "lib/image_content.h"
 #include "lib/video_content.h"
 #include <wx/gbsizer.h>
-#include <boost/bind.hpp>
+DCPOMATIC_DISABLE_WARNINGS
+#include <wx/wx.h>
+#include <wx/propgrid/property.h>
+#include <wx/propgrid/props.h>
+DCPOMATIC_ENABLE_WARNINGS
+#include <boost/bind/bind.hpp>
 
 
 using std::string;
@@ -77,7 +82,7 @@ ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte
        } else {
                video_frame_rate_label = add_label_to_sizer (sizer, this, _("Video frame rate that content was prepared for"), true, wxGBPosition(r, 0));
        }
-       _video_frame_rate = new wxTextCtrl (this, wxID_ANY);
+       _video_frame_rate = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float));
        sizer->Add (_video_frame_rate, wxGBPosition(r, 1));
        _set_video_frame_rate = new Button (this, _("Set"));
        _set_video_frame_rate->Enable (false);