diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2a6da72c..95c362aa 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3081,6 +3081,8 @@ Christian Richter Christian Kaiser for adding DeleteEvent() to the EPG handler interface + for making the script given to VDR with the '-r' option also be called after the + recording process has actually started Dirk Heiser for adding SetComponents() to the EPG handler interface diff --git a/HISTORY b/HISTORY index a5aa6526..668f686a 100644 --- a/HISTORY +++ b/HISTORY @@ -8103,3 +8103,5 @@ Video Disk Recorder Revision History - Added a check to avoid a possible NULL pointer dereference in cCiSession::SendData() (reported by Ville Skyttä). - Deleted a superfluous assignment in cPipe::Open() (reported by Ville Skyttä). +- The script given to VDR with the '-r' option is now also called after the recording + process has actually started (thanks to Christian Kaiser). diff --git a/INSTALL b/INSTALL index 384ba446..2dff5e34 100644 --- a/INSTALL +++ b/INSTALL @@ -254,6 +254,7 @@ The program will be called with two or three (in case of "edited") string parameters. The first parameter is one of before if this is *before* a recording starts + started if this is after a recording has *started* after if this is *after* a recording has finished edited if this is after a recording has been *edited* deleted if this is after a recording has been *deleted* @@ -279,6 +280,9 @@ case "$1" in before) echo "Before recording $2" ;; + started) + echo "Started recording $2" + ;; after) echo "After recording $2" ;; diff --git a/recorder.c b/recorder.c index 7887a88b..38a4ed1e 100644 --- a/recorder.c +++ b/recorder.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 3.1 2013/10/12 11:49:42 kls Exp $ + * $Id: recorder.c 3.2 2014/01/01 12:46:37 kls Exp $ */ #include "recorder.h" @@ -139,6 +139,7 @@ void cRecorder::Action(void) } } InfoWritten = true; + cRecordingUserCommand::InvokeCommand(RUC_STARTRECORDING, recordingName); } if (FirstIframeSeen || frameDetector->IndependentFrame()) { FirstIframeSeen = true; // start recording with the first I-frame diff --git a/recording.h b/recording.h index c7feae03..7d5228eb 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 3.3 2013/12/27 11:05:07 kls Exp $ + * $Id: recording.h 3.4 2014/01/01 12:45:18 kls Exp $ */ #ifndef __RECORDING_H @@ -386,6 +386,7 @@ public: }; #define RUC_BEFORERECORDING "before" +#define RUC_STARTRECORDING "started" #define RUC_AFTERRECORDING "after" #define RUC_EDITEDRECORDING "edited" #define RUC_DELETERECORDING "deleted"