1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

The script given to VDR with the '-r' option is now also called after the recording process has actually started

This commit is contained in:
Klaus Schmidinger 2014-01-01 12:53:40 +01:00
parent 566c6fa464
commit 4da70bbab1
5 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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).

View File

@ -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"
;;

View File

@ -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

View File

@ -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"