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:
parent
566c6fa464
commit
4da70bbab1
@ -3081,6 +3081,8 @@ Christian Richter <cr@crichter.net>
|
|||||||
|
|
||||||
Christian Kaiser <christian.kaiser@teleservice.com>
|
Christian Kaiser <christian.kaiser@teleservice.com>
|
||||||
for adding DeleteEvent() to the EPG handler interface
|
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>
|
Dirk Heiser <dirk-vdr@gmx.de>
|
||||||
for adding SetComponents() to the EPG handler interface
|
for adding SetComponents() to the EPG handler interface
|
||||||
|
2
HISTORY
2
HISTORY
@ -8103,3 +8103,5 @@ Video Disk Recorder Revision History
|
|||||||
- Added a check to avoid a possible NULL pointer dereference in cCiSession::SendData()
|
- Added a check to avoid a possible NULL pointer dereference in cCiSession::SendData()
|
||||||
(reported by Ville Skyttä).
|
(reported by Ville Skyttä).
|
||||||
- Deleted a superfluous assignment in cPipe::Open() (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).
|
||||||
|
4
INSTALL
4
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
|
parameters. The first parameter is one of
|
||||||
|
|
||||||
before if this is *before* a recording starts
|
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
|
after if this is *after* a recording has finished
|
||||||
edited if this is after a recording has been *edited*
|
edited if this is after a recording has been *edited*
|
||||||
deleted if this is after a recording has been *deleted*
|
deleted if this is after a recording has been *deleted*
|
||||||
@ -279,6 +280,9 @@ case "$1" in
|
|||||||
before)
|
before)
|
||||||
echo "Before recording $2"
|
echo "Before recording $2"
|
||||||
;;
|
;;
|
||||||
|
started)
|
||||||
|
echo "Started recording $2"
|
||||||
|
;;
|
||||||
after)
|
after)
|
||||||
echo "After recording $2"
|
echo "After recording $2"
|
||||||
;;
|
;;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "recorder.h"
|
||||||
@ -139,6 +139,7 @@ void cRecorder::Action(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
InfoWritten = true;
|
InfoWritten = true;
|
||||||
|
cRecordingUserCommand::InvokeCommand(RUC_STARTRECORDING, recordingName);
|
||||||
}
|
}
|
||||||
if (FirstIframeSeen || frameDetector->IndependentFrame()) {
|
if (FirstIframeSeen || frameDetector->IndependentFrame()) {
|
||||||
FirstIframeSeen = true; // start recording with the first I-frame
|
FirstIframeSeen = true; // start recording with the first I-frame
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __RECORDING_H
|
||||||
@ -386,6 +386,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define RUC_BEFORERECORDING "before"
|
#define RUC_BEFORERECORDING "before"
|
||||||
|
#define RUC_STARTRECORDING "started"
|
||||||
#define RUC_AFTERRECORDING "after"
|
#define RUC_AFTERRECORDING "after"
|
||||||
#define RUC_EDITEDRECORDING "edited"
|
#define RUC_EDITEDRECORDING "edited"
|
||||||
#define RUC_DELETERECORDING "deleted"
|
#define RUC_DELETERECORDING "deleted"
|
||||||
|
Loading…
Reference in New Issue
Block a user