summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-17 15:55:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-17 15:55:31 +0100
commitaedc1d5c8db3a77bd6b2cbba8461ce8df5c9ae39 (patch)
treebb1878744f980be7c3ed2ef0994259018f13bbef /src/lib
parentb62341601bd2c7022ea1c60bf06d3d8d11bf667f (diff)
Fix initial display of a new piece of content.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc10
-rw-r--r--src/lib/player.h2
2 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index a235d1622..f79265558 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -616,12 +616,14 @@ Player::update_subtitle ()
_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 (
@@ -631,4 +633,6 @@ Player::repeat_last_video ()
_last_process_video.same,
_last_process_video.frame
);
+
+ return true;
}
diff --git a/src/lib/player.h b/src/lib/player.h
index 5604d8e03..7cce7e723 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -59,7 +59,7 @@ public:
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.