summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-29 11:31:12 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-29 11:31:12 +0100
commit573cf3fc8b469dd40698b3518f3200e5c91d878c (patch)
tree1fa195628ccbb147d7ba9664f8005a5a6f084b3b
parent0364b026cf62d105f424ba47f37091b39fd2c96e (diff)
downloadvdr-573cf3fc8b469dd40698b3518f3200e5c91d878c.tar.gz
vdr-573cf3fc8b469dd40698b3518f3200e5c91d878c.tar.bz2
Changed several calls to Skins.Message() in vdr.c to Skins.QueueMessage() in order to avoid a black screen while such a message is displayed in case the channel will be switched
-rw-r--r--HISTORY5
-rw-r--r--vdr.c18
2 files changed, 13 insertions, 10 deletions
diff --git a/HISTORY b/HISTORY
index 00f9d08d..ba6771ae 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7534,7 +7534,7 @@ Video Disk Recorder Revision History
- Reduced the number of retries in cTransfer::Receive() to avoid blocking recordings
in case the primary device can't handle the current live signal.
-2013-01-27: Version 1.7.37
+2013-01-29: Version 1.7.37
- Now also using FindHeader() in cMpeg2Fixer::AdjTref() (pointed out by Sören Moch).
- Added missing template for DVBDIR to Make.config.template (reported by Derek Kelly).
@@ -7553,3 +7553,6 @@ Video Disk Recorder Revision History
- Fixed possible audio chatter when a recording is replayed to its very end.
- Added dependency on 'i18n' to 'install-i18n' in the VDR Makefile (thanks to Tobias
Grimm).
+- Changed several calls to Skins.Message() in vdr.c to Skins.QueueMessage() in order to
+ avoid a black screen while such a message is displayed in case the channel will be
+ switched (reported by Uwe Scheffler).
diff --git a/vdr.c b/vdr.c
index 88b8956f..752575d6 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.45 2012/12/06 10:29:23 kls Exp $
+ * $Id: vdr.c 2.46 2013/01/29 11:17:45 kls Exp $
*/
#include <getopt.h>
@@ -924,7 +924,7 @@ int main(int argc, char *argv[])
Device->SetOccupied(TIMERDEVICETIMEOUT);
}
if (cDevice::PrimaryDevice()->HasDecoder() && HadProgramme && !cDevice::PrimaryDevice()->HasProgramme())
- Skins.Message(mtInfo, tr("Upcoming recording!")); // the previous SwitchChannel() has switched away the current live channel
+ Skins.QueueMessage(mtInfo, tr("Upcoming recording!")); // the previous SwitchChannel() has switched away the current live channel
}
}
}
@@ -1095,7 +1095,7 @@ int main(int argc, char *argv[])
if (Setup.PauseKeyHandling) {
if (Setup.PauseKeyHandling > 1 || Interface->Confirm(tr("Pause live video?"))) {
if (!cRecordControls::PauseLiveVideo())
- Skins.Message(mtError, tr("No free DVB device to record!"));
+ Skins.QueueMessage(mtError, tr("No free DVB device to record!"));
}
}
key = kNone; // nobody else needs to see this key
@@ -1105,7 +1105,7 @@ int main(int argc, char *argv[])
case kRecord:
if (!cControl::Control()) {
if (cRecordControls::Start())
- Skins.Message(mtInfo, tr("Recording started"));
+ Skins.QueueMessage(mtInfo, tr("Recording started"));
key = kNone; // nobody else needs to see this key
}
break;
@@ -1157,11 +1157,11 @@ int main(int argc, char *argv[])
switch (state) {
case osPause: DELETE_MENU;
if (!cRecordControls::PauseLiveVideo())
- Skins.Message(mtError, tr("No free DVB device to record!"));
+ Skins.QueueMessage(mtError, tr("No free DVB device to record!"));
break;
case osRecord: DELETE_MENU;
if (cRecordControls::Start())
- Skins.Message(mtInfo, tr("Recording started"));
+ Skins.QueueMessage(mtInfo, tr("Recording started"));
break;
case osRecordings:
DELETE_MENU;
@@ -1179,7 +1179,7 @@ int main(int argc, char *argv[])
case osSwitchDvb:
DELETE_MENU;
cControl::Shutdown();
- Skins.Message(mtInfo, tr("Switching primary DVB..."));
+ Skins.QueueMessage(mtInfo, tr("Switching primary DVB..."));
cDevice::SetPrimaryDevice(Setup.PrimaryDVB);
break;
case osPlugin: DELETE_MENU;
@@ -1249,9 +1249,9 @@ int main(int argc, char *argv[])
EITScanner.Process();
if (!cCutter::Active() && cCutter::Ended()) {
if (cCutter::Error())
- Skins.Message(mtError, tr("Editing process failed!"));
+ Skins.QueueMessage(mtError, tr("Editing process failed!"));
else
- Skins.Message(mtInfo, tr("Editing process finished"));
+ Skins.QueueMessage(mtInfo, tr("Editing process finished"));
}
}