From 29c0f9e1e07e0ca00870e7b8e2f2c9457af80ec5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 7 Oct 2006 13:59:21 +0200 Subject: Fixed handling language codes and descriptions of recorded audio tracks --- epg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epg.c') 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 and Rolf Hakenes . * - * $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]; } -- cgit v1.2.3