summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-06 14:41:11 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-06 14:41:11 +0100
commit7de7ede26fcabc232d5647b728080fe3c5d9fca2 (patch)
tree930f06d43802fefd93c83ac0e78e31aa25d7bf52 /svdrp.c
parent7470253c60f98e654e01de5bd7cc3da893524462 (diff)
downloadvdr-7de7ede26fcabc232d5647b728080fe3c5d9fca2.tar.gz
vdr-7de7ede26fcabc232d5647b728080fe3c5d9fca2.tar.bz2
The recording format is now Transport Stream
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/svdrp.c b/svdrp.c
index a9d09f3c..69b3e21e 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 2.1 2008/05/02 14:15:38 kls Exp $
+ * $Id: svdrp.c 2.2 2009/01/06 14:35:45 kls Exp $
*/
#include "svdrp.h"
@@ -701,7 +701,7 @@ void cSVDRP::CmdEDIT(const char *Option)
cRecording *recording = Recordings.Get(strtol(Option, NULL, 10) - 1);
if (recording) {
cMarks Marks;
- if (Marks.Load(recording->FileName()) && Marks.Count()) {
+ if (Marks.Load(recording->FileName(), recording->FramesPerSecond(), recording->IsPesRecording()) && Marks.Count()) {
if (!cCutter::Active()) {
if (cCutter::Start(recording->FileName()))
Reply(250, "Editing recording \"%s\" [%s]", Option, recording->Title());
@@ -1338,15 +1338,9 @@ void cSVDRP::CmdPLAY(const char *Option)
cControl::Shutdown();
if (*option) {
int pos = 0;
- if (strcasecmp(option, "BEGIN") != 0) {
- int h, m = 0, s = 0, f = 1;
- int x = sscanf(option, "%d:%d:%d.%d", &h, &m, &s, &f);
- if (x == 1)
- pos = h;
- else if (x >= 3)
- pos = (h * 3600 + m * 60 + s) * FRAMESPERSEC + f - 1;
- }
- cResumeFile resume(recording->FileName());
+ if (strcasecmp(option, "BEGIN") != 0)
+ pos = HMSFToIndex(option, recording->FramesPerSecond());
+ cResumeFile resume(recording->FileName(), recording->IsPesRecording());
if (pos <= 0)
resume.Delete();
else