1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added special handling if no audio is available

This commit is contained in:
Klaus Schmidinger 2005-01-04 13:40:38 +01:00
parent b62328b8ae
commit da59a45f61
2 changed files with 30 additions and 5 deletions

23
i18n.c
View File

@ -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",

12
menu.c
View File

@ -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)