summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-05-01 15:41:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-05-01 15:41:04 +0200
commit7d1b84a997b29f032132957b5b411c15accb2dcf (patch)
treec294f3f42429a19711691b009fab36679a51c0c8 /recording.c
parentdf12c00ff8699f23cb9176b3261ccf505633c434 (diff)
downloadvdr-7d1b84a997b29f032132957b5b411c15accb2dcf.tar.gz
vdr-7d1b84a997b29f032132957b5b411c15accb2dcf.tar.bz2
Implemented handling the standard component descriptor for AC3
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
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))