diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-01 12:53:40 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-01 12:53:40 +0100 |
commit | 4da70bbab161dc545566f57d2cb611b10c8f4f8d (patch) | |
tree | 0fc84b176b9d11402ba3f9f957b7cf7c5513e752 | |
parent | 566c6fa4641ea116307cfb5e40d151a104ab1490 (diff) | |
download | vdr-4da70bbab161dc545566f57d2cb611b10c8f4f8d.tar.gz vdr-4da70bbab161dc545566f57d2cb611b10c8f4f8d.tar.bz2 |
The script given to VDR with the '-r' option is now also called after the recording process has actually started
-rw-r--r-- | CONTRIBUTORS | 2 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | INSTALL | 4 | ||||
-rw-r--r-- | recorder.c | 3 | ||||
-rw-r--r-- | recording.h | 3 |
5 files changed, 12 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2a6da72c..95c362aa 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3081,6 +3081,8 @@ Christian Richter <cr@crichter.net> Christian Kaiser <christian.kaiser@teleservice.com> 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 <dirk-vdr@gmx.de> for adding SetComponents() to the EPG handler interface @@ -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). @@ -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" ;; @@ -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" |