summaryrefslogtreecommitdiff
path: root/src/player.cc
diff options
context:
space:
mode:
authordeva <deva>2005-10-18 12:26:32 +0000
committerdeva <deva>2005-10-18 12:26:32 +0000
commitc7ea90681bf4df1e8ba26e50bc065d26f24ce6b9 (patch)
tree27462f54f8f87f6ef801258313d2b3f4a78c5a51 /src/player.cc
parent4ab476ecf381943d7d1537c1dd82cf5783e00ad2 (diff)
*** empty log message ***
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();
}