summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 13:14:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 13:14:10 +0100
commit26252c37cdff5f0fd5d5659823aaa59f2ab26bd9 (patch)
tree96a3df2f0d01a6d5e9ad57e2fbfca7ac8987598b /recording.c
parentb6080634cc57b02f53d427deb45a2dcc297c94be (diff)
downloadvdr-26252c37cdff5f0fd5d5659823aaa59f2ab26bd9.tar.gz
vdr-26252c37cdff5f0fd5d5659823aaa59f2ab26bd9.tar.bz2
Fixed regenerating the index of audio recordings
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/recording.c b/recording.c
index 9ec3ea9d..5293459e 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 4.5 2016/12/13 13:39:09 kls Exp $
+ * $Id: recording.c 4.6 2016/12/22 12:58:20 kls Exp $
*/
#include "recording.h"
@@ -2329,7 +2329,7 @@ void cIndexFileGenerator::Action(void)
Buffer.Del(Processed);
}
}
- else if (PatPmtParser.Vpid()) {
+ else if (PatPmtParser.Completed()) {
// Step 2 - sync FrameDetector:
int Processed = FrameDetector.Analyze(Data, Length);
if (Processed > 0) {
@@ -2351,9 +2351,9 @@ void cIndexFileGenerator::Action(void)
PatPmtParser.ParsePmt(p, TS_SIZE);
Length -= TS_SIZE;
p += TS_SIZE;
- if (PatPmtParser.Vpid()) {
- // Found Vpid, so rewind to sync FrameDetector:
- FrameDetector.SetPid(PatPmtParser.Vpid(), PatPmtParser.Vtype());
+ if (PatPmtParser.Completed()) {
+ // Found pid, so rewind to sync FrameDetector:
+ FrameDetector.SetPid(PatPmtParser.Vpid() ? PatPmtParser.Vpid() : PatPmtParser.Apid(0), PatPmtParser.Vpid() ? PatPmtParser.Vtype() : PatPmtParser.Atype(0));
BufferChunks = IFG_BUFFER_SIZE;
Rewind = true;
break;