summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-07 13:59:21 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-07 13:59:21 +0200
commit29c0f9e1e07e0ca00870e7b8e2f2c9457af80ec5 (patch)
tree9f0b029847796f7a603182226361a4bd234345e8 /epg.c
parent09c6bced8db2567c60896457e4b7e761f37d87c3 (diff)
downloadvdr-29c0f9e1e07e0ca00870e7b8e2f2c9457af80ec5.tar.gz
vdr-29c0f9e1e07e0ca00870e7b8e2f2c9457af80ec5.tar.bz2
Fixed handling language codes and descriptions of recorded audio tracks
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epg.c b/epg.c
index b8b6b64d..960934ff 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.79 2006/08/05 10:04:17 kls Exp $
+ * $Id: epg.c 1.80 2006/10/07 13:47:28 kls Exp $
*/
#include "epg.h"
@@ -87,7 +87,8 @@ void cComponents::SetComponent(int Index, uchar Stream, uchar Type, const char *
tComponent *cComponents::GetComponent(int Index, uchar Stream, uchar Type)
{
for (int i = 0; i < numComponents; i++) {
- if (components[i].stream == Stream && components[i].type == Type) {
+ // In case of an audio stream the 'type' check actually just distinguishes between "normal" and "Dolby Digital":
+ if (components[i].stream == Stream && (Stream != 2 || (components[i].type < 5) == (Type < 5))) {
if (!Index--)
return &components[i];
}