_out_subtitle.to = _in_subtitle.to + piece->content->position ();
}
-/** Re-emit the last frame that was emitted, using current settings for crop, ratio, scaler and subtitles */
-void
+/** Re-emit the last frame that was emitted, using current settings for crop, ratio, scaler and subtitles.
+ * @return false if this could not be done.
+ */
+bool
Player::repeat_last_video ()
{
if (!_last_process_video.image) {
- return;
+ return false;
}
process_video (
_last_process_video.same,
_last_process_video.frame
);
+
+ return true;
}
void set_video_container_size (libdcp::Size);
- void repeat_last_video ();
+ bool repeat_last_video ();
/** Emitted when a video frame is ready.
* First parameter is the video image.
++i;
}
bool const dcp_creation = (i != jobs.end ());
- bool const have_dcp = !film->dcps().empty ();
+ bool const have_dcp = film && !film->dcps().empty ();
for (map<wxMenuItem*, int>::iterator j = menu_items.begin(); j != menu_items.end(); ++j) {