diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-10-07 13:59:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-10-07 13:59:21 +0200 |
commit | 29c0f9e1e07e0ca00870e7b8e2f2c9457af80ec5 (patch) | |
tree | 9f0b029847796f7a603182226361a4bd234345e8 /epg.c | |
parent | 09c6bced8db2567c60896457e4b7e761f37d87c3 (diff) | |
download | vdr-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]; } |