+ bool enable = true;
+ if (_video_frame_rate->GetValue() == wxT("")) {
+ /* No frame rate has been entered; if the user clicks "set" now it would unset the video
+ frame rate in the selected content. This can't be allowed for some content types.
+ */
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected()) {
+ if (
+ dynamic_pointer_cast<DCPContent>(i) ||
+ dynamic_pointer_cast<FFmpegContent>(i)
+ ) {
+ enable = false;
+ }
+ }
+ }
+
+ _set_video_frame_rate->Enable (enable);