diff -Nur vdr-1.4.1.orig/config.c vdr-1.4.1/config.c
--- vdr-1.4.1.orig/config.c 2006-04-17 14:43:57.000000000 +0200
+++ vdr-1.4.1/config.c 2006-06-13 16:06:45.000000000 +0200
@@ -253,6 +253,7 @@
VideoFormat = 0;
UpdateChannels = 5;
UseDolbyDigital = 1;
+ DolbyInRecordings = 1;
ChannelInfoPos = 0;
ChannelInfoTime = 5;
OSDLeft = 54;
@@ -414,6 +415,7 @@
else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
else if (!strcasecmp(Name, "UpdateChannels")) UpdateChannels = atoi(Value);
else if (!strcasecmp(Name, "UseDolbyDigital")) UseDolbyDigital = atoi(Value);
+ else if (!strcasecmp(Name, "DolbyInRecordings")) DolbyInRecordings = atoi(Value);
else if (!strcasecmp(Name, "ChannelInfoPos")) ChannelInfoPos = atoi(Value);
else if (!strcasecmp(Name, "ChannelInfoTime")) ChannelInfoTime = atoi(Value);
else if (!strcasecmp(Name, "OSDLeft")) OSDLeft = atoi(Value);
@@ -482,6 +484,7 @@
Store("VideoFormat", VideoFormat);
Store("UpdateChannels", UpdateChannels);
Store("UseDolbyDigital", UseDolbyDigital);
+ Store("DolbyInRecordings", DolbyInRecordings);
Store("ChannelInfoPos", ChannelInfoPos);
Store("ChannelInfoTime", ChannelInfoTime);
Store("OSDLeft", OSDLeft);
diff -Nur vdr-1.4.1.orig/config.h vdr-1.4.1/config.h
--- vdr-1.4.1.orig/config.h 2006-06-11 10:57:35.000000000 +0200
+++ vdr-1.4.1/config.h 2006-06-13 16:07:23.000000000 +0200
@@ -236,6 +236,7 @@
int VideoFormat;
int UpdateChannels;
int UseDolbyDigital;
+ int DolbyInRecordings;
int ChannelInfoPos;
int ChannelInfoTime;
int OSDLeft, OSDTop, OSDWidth, OSDHeight;
diff -Nur vdr-1.4.1.orig/menu.c vdr-1.4.1/menu.c
--- vdr-1.4.1.orig/menu.c 2006-06-03 15:32:42.000000000 +0200
+++ vdr-1.4.1/menu.c 2006-06-13 16:09:34.000000000 +0200
@@ -2572,6 +2572,7 @@
Add(new cMenuEditIntItem( tr("Setup.Recording$Instant rec. time (min)"), &data.InstantRecordTime, 1, MAXINSTANTRECTIME));
Add(new cMenuEditIntItem( tr("Setup.Recording$Max. video file size (MB)"), &data.MaxVideoFileSize, MINVIDEOFILESIZE, MAXVIDEOFILESIZE));
Add(new cMenuEditBoolItem(tr("Setup.Recording$Split edited files"), &data.SplitEditedFiles));
+ Add(new cMenuEditBoolItem( tr("Setup.Recording$Record Dolby"), &data.DolbyInRecordings));
}
// --- cMenuSetupReplay ------------------------------------------------------
diff -Nur vdr-1.4.1.orig/recorder.c vdr-1.4.1/recorder.c
--- vdr-1.4.1.orig/recorder.c 2006-01-08 12:01:25.000000000 +0100
+++ vdr-1.4.1/recorder.c 2006-06-13 16:11:37.000000000 +0200
@@ -122,7 +122,7 @@
}
cRecorder::cRecorder(const char *FileName, int Ca, int Priority, int VPid, const int *APids, const int *DPids, const int *SPids)
-:cReceiver(Ca, Priority, VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids)
+:cReceiver(Ca, Priority, VPid, APids, Setup.DolbyInRecordings ? DPids : NULL, SPids)
,cThread("recording")
{
// Make sure the disk is up and running:
@@ -131,7 +131,7 @@
ringBuffer = new cRingBufferLinear(RECORDERBUFSIZE, TS_SIZE * 2, true, "Recorder");
ringBuffer->SetTimeouts(0, 100);
- remux = new cRemux(VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids, true);
+ remux = new cRemux(VPid, APids, Setup.DolbyInRecordings ? DPids : NULL, SPids, true);
writer = new cFileWriter(FileName, remux);
}
Alles anzeigen