diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-05-01 15:41:04 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-05-01 15:41:04 +0200 |
commit | 7d1b84a997b29f032132957b5b411c15accb2dcf (patch) | |
tree | c294f3f42429a19711691b009fab36679a51c0c8 /recording.c | |
parent | df12c00ff8699f23cb9176b3261ccf505633c434 (diff) | |
download | vdr-7d1b84a997b29f032132957b5b411c15accb2dcf.tar.gz vdr-7d1b84a997b29f032132957b5b411c15accb2dcf.tar.bz2 |
Implemented handling the standard component descriptor for AC3
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 1535b46b..e0172ed7 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.162 2008/02/24 10:28:53 kls Exp $ + * $Id: recording.c 2.1 2008/05/01 15:33:39 kls Exp $ */ #include "recording.h" @@ -297,7 +297,9 @@ cRecordingInfo::cRecordingInfo(const cChannel *Channel, const cEvent *Event) for (int i = 0; i < MAXDPIDS; i++) { const char *s = Channel->Dlang(i); if (*s) { - tComponent *Component = Components->GetComponent(i, 2, 5); + tComponent *Component = Components->GetComponent(i, 4, 0); // AC3 component according to the DVB standard + if (!Component) + Component = Components->GetComponent(i, 2, 5); // fallback "Dolby" component according to the "Premiere pseudo standard" if (!Component) Components->SetComponent(Components->NumComponents(), 2, 5, s, NULL); else if (strlen(s) > strlen(Component->language)) |