summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/player.cc15
-rw-r--r--src/player.h3
2 files changed, 12 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();
}
diff --git a/src/player.h b/src/player.h
index 14d08ac..6d0cb15 100644
--- a/src/player.h
+++ b/src/player.h
@@ -55,6 +55,9 @@
#include "yuv_draw.h"
+#define TEXT_RECORDING "Optager"
+#define TEXT_STOPPED "Stoppet"
+
//#define DISPLAYWIDTH 720 // FIXME: These numbers suck!
//#define DISPLAYHEIGHT 576