summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
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/player.cc
parentb62341601bd2c7022ea1c60bf06d3d8d11bf667f (diff)
Fix initial display of a new piece of content.
Diffstat (limited to 'src/lib/player.cc')
-rw-r--r--src/lib/player.cc10
1 files changed, 7 insertions, 3 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;
}