summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-15 09:52:43 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-15 09:52:43 +0200
commitadb92a1999eb0dae3136da8d48a4d64df0407a76 (patch)
tree82e3d2a579bc1d9029a0f163a4bda475d7bd7312
parentfc4bed511d1ab6faedffedd34846198b5955c5fd (diff)
downloadvdr-adb92a1999eb0dae3136da8d48a4d64df0407a76.tar.gz
vdr-adb92a1999eb0dae3136da8d48a4d64df0407a76.tar.bz2
The cutter now sets the 'broken link' flag for MPEG2 TS recordings
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--remux.c7
3 files changed, 8 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ce8335e8..1c8ade8b 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -678,6 +678,7 @@ Oliver Endriss <o.endriss@gmx.de>
for fixing the way the OSD size is determined on full featured DVB cards
for his input on calculating the Aspect factor in GetOsdSize()
for suggesting a better way of handling calls to realloc()
+ for making the cutter set the 'broken link' flag for MPEG2 TS recordings
Reinhard Walter Buchner <rw.buchner@freenet.de>
for adding some satellites to 'sources.conf'
diff --git a/HISTORY b/HISTORY
index 545f9086..dcf5a171 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6688,3 +6688,5 @@ Video Disk Recorder Revision History
still available as pic2mpg-sd.
- Added a mutex to protect cOsd::Osds from simultaneous access from different threads
(reported by Rolf Ahrenberg).
+- The cutter now sets the 'broken link' flag for MPEG2 TS recordings (thanks to
+ Oliver Endriss).
diff --git a/remux.c b/remux.c
index c3f07fb7..f174f614 100644
--- a/remux.c
+++ b/remux.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.c 2.57 2011/06/12 14:24:09 kls Exp $
+ * $Id: remux.c 2.58 2011/08/15 09:50:14 kls Exp $
*/
#include "remux.h"
@@ -135,8 +135,11 @@ void TsSetTeiOnBrokenPackets(uchar *p, int l)
if (!Processed[Pid]) {
if (!TsPayloadStart(p))
p[1] |= TS_ERROR;
- else
+ else {
Processed[Pid] = true;
+ int offs = TsPayloadOffset(p);
+ cRemux::SetBrokenLink(p + offs, TS_SIZE - offs);
+ }
}
l -= TS_SIZE;
p += TS_SIZE;