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

When setting the audio track descriptions, the language codes are now also set in case this is a replay session

This commit is contained in:
Klaus Schmidinger 2006-02-19 10:18:28 +01:00
parent b5bbfe0589
commit 0d6ce369c6
3 changed files with 7 additions and 4 deletions

View File

@ -960,6 +960,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
for making cMenuText use the given font
for making the channel number be reset if the number entered through the numeric keys
exceeds the maximum channel number
for suggesting to also set the language codes when setting the audio track descriptions
Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark

View File

@ -4317,7 +4317,7 @@ Video Disk Recorder Revision History
- Added cSkin::GetTextAreaWidth() and cSkin::GetTextAreaFont(), so that a plugin
that wants to do special text formatting can do so (thanks to Alexander Rieger).
2006-02-18: Version 1.3.43
2006-02-19: Version 1.3.43
- Removed an unnecessary toFile->SetReadAhead() from cutter.c (thanks to Artur
Skawina).
@ -4349,3 +4349,5 @@ Video Disk Recorder Revision History
- Externally provided EPG data (with table ID 0x00) now gets its component
descriptors set from the broadcast data, so that language codes and descriptions
are available (suggested by Andreas Brugger).
- When setting the audio track descriptions, the language codes are now also set
in case this is a replay session (based on a patch from Rolf Ahrenberg).

6
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.412 2006/02/18 12:42:24 kls Exp $
* $Id: menu.c 1.413 2006/02/19 10:18:28 kls Exp $
*/
#include "menu.h"
@ -2989,9 +2989,9 @@ static void SetTrackDescriptions(int LiveChannel)
const tComponent *p = Components->Component(i);
if (p->stream == 2) {
if (p->type == 0x05)
cDevice::PrimaryDevice()->SetAvailableTrack(ttDolby, indexDolby++, 0, NULL, p->description);
cDevice::PrimaryDevice()->SetAvailableTrack(ttDolby, indexDolby++, 0, LiveChannel ? NULL : p->language, p->description);
else
cDevice::PrimaryDevice()->SetAvailableTrack(ttAudio, indexAudio++, 0, NULL, p->description);
cDevice::PrimaryDevice()->SetAvailableTrack(ttAudio, indexAudio++, 0, LiveChannel ? NULL : p->language, p->description);
}
}
}