summaryrefslogtreecommitdiff
path: root/src/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cc')
-rw-r--r--src/player.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/player.cc b/src/player.cc
index 23dbcf3..f6ac686 100644
--- a/src/player.cc
+++ b/src/player.cc
@@ -76,7 +76,7 @@ Player::Player(Info *ginfo,
// Do not show the text
showtext = false;
- recording = true;
+ recording = false;
recording_prev = !recording;
cprchanged = false;
}
@@ -204,16 +204,19 @@ void Player::player()
overlay->pixels,
pitches);
+ // Set status text
+ if(recording != recording_prev) {
+ if(recording) yuv_draw->setTopText(TEXT_RECORDING);
+ else yuv_draw->setTopText(TEXT_STOPPED);
+ recording_prev = recording;
+ }
+
+ // Draw overlaytext (if enabled)
if(showtext) {
if(cprchanged) {
yuv_draw->setBottomText(cpr);
cprchanged = false;
}
- if(recording != recording_prev) {
- if(recording) yuv_draw->setTopText("Recording");
- else yuv_draw->setTopText("Stopped");
- recording_prev = recording;
- }
yuv_draw->draw();
}