summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-23 14:02:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-23 14:02:11 +0200
commitf412897373b05ea78df93b56ab9d97c4bb522801 (patch)
treea18122202f89ca354808630a8baca079b4fbad9e /dvbapi.c
parente1f7348922bbca20c29923035cf298bf7f49a392 (diff)
downloadvdr-f412897373b05ea78df93b56ab9d97c4bb522801.tar.gz
vdr-f412897373b05ea78df93b56ab9d97c4bb522801.tar.bz2
Calling the '-r' program after editing, too
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 064bb49c..8a6e6915 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.128 2001/09/22 13:39:56 kls Exp $
+ * $Id: dvbapi.c 1.129 2001/09/23 13:44:27 kls Exp $
*/
//#define DVDDEBUG 1
@@ -2406,16 +2406,18 @@ void cCuttingBuffer::Action(void)
// --- cVideoCutter ----------------------------------------------------------
+char *cVideoCutter::editedVersionName = NULL;
cCuttingBuffer *cVideoCutter::cuttingBuffer = NULL;
bool cVideoCutter::Start(const char *FileName)
{
if (!cuttingBuffer) {
cRecording Recording(FileName);
- const char *EditedVersionName = Recording.PrefixFileName('%');
- if (EditedVersionName && RemoveVideoFile(EditedVersionName) && MakeDirs(EditedVersionName, true)) {
+ const char *evn = Recording.PrefixFileName('%');
+ if (evn && RemoveVideoFile(evn) && MakeDirs(evn, true)) {
+ editedVersionName = strdup(evn);
Recording.WriteSummary();
- cuttingBuffer = new cCuttingBuffer(FileName, EditedVersionName);
+ cuttingBuffer = new cCuttingBuffer(FileName, editedVersionName);
return true;
}
}
@@ -2434,6 +2436,9 @@ bool cVideoCutter::Active(void)
if (cuttingBuffer->Active())
return true;
Stop();
+ cRecordingUserCommand::InvokeCommand(RUC_EDITEDRECORDING, editedVersionName);
+ delete editedVersionName;
+ editedVersionName = NULL;
}
return false;
}