summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-04 13:40:38 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-04 13:40:38 +0100
commitda59a45f6177a2c16993a6b19890255e4a6e9219 (patch)
tree1bc8973a9fde729c26ff70789fac0de19cb8ac38
parentb62328b8ae6b40ee499f1b110eb78b7a8458dddc (diff)
downloadvdr-da59a45f6177a2c16993a6b19890255e4a6e9219.tar.gz
vdr-da59a45f6177a2c16993a6b19890255e4a6e9219.tar.bz2
Added special handling if no audio is available
-rw-r--r--i18n.c23
-rw-r--r--menu.c12
2 files changed, 30 insertions, 5 deletions
diff --git a/i18n.c b/i18n.c
index 8c5c0cb4..05d1df57 100644
--- a/i18n.c
+++ b/i18n.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: i18n.c 1.167 2004/12/27 11:10:42 kls Exp $
+ * $Id: i18n.c 1.168 2005/01/04 13:40:38 kls Exp $
*
* Translations provided by:
*
@@ -2294,6 +2294,27 @@ const tI18nPhrase Phrases[] = {
"CAM mooduli taaskäivitus tehtud",
"CAM er blevet nulstillet",
},
+ { "No audio available!",
+ "Kein Audio verfügbar!",
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ "",//TODO
+ },
// Setup pages:
{ "OSD",
"OSD",
diff --git a/menu.c b/menu.c
index 54c45011..8582c47b 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.326 2005/01/04 12:52:17 kls Exp $
+ * $Id: menu.c 1.327 2005/01/04 13:40:38 kls Exp $
*/
#include "menu.h"
@@ -2842,9 +2842,13 @@ void cDisplayTracks::Show(void)
cDisplayTracks *cDisplayTracks::Create(void)
{
- if (!currentDisplayTracks)
- new cDisplayTracks;
- return currentDisplayTracks;
+ if (cDevice::PrimaryDevice()->NumAudioTracks() > 0) {
+ if (!currentDisplayTracks)
+ new cDisplayTracks;
+ return currentDisplayTracks;
+ }
+ Skins.Message(mtWarning, tr("No audio available!"));
+ return NULL;
}
void cDisplayTracks::Process(eKeys Key)