mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a comment to cRecorder::Activate() about the need to call Detach() in the destructor
This commit is contained in:
parent
66c65beea7
commit
3bb447cf8d
@ -3277,6 +3277,8 @@ Eike Sauer <EikeSauer@t-online.de>
|
|||||||
for reporting a problem with channels that need more than 5 TS packets for detecting
|
for reporting a problem with channels that need more than 5 TS packets for detecting
|
||||||
frame borders
|
frame borders
|
||||||
for reporting a problem in handling the frame detection buffer length
|
for reporting a problem in handling the frame detection buffer length
|
||||||
|
for suggesting to add a comment to cRecorder::Activate() about the need to call
|
||||||
|
Detach() in the destructor
|
||||||
|
|
||||||
Christian Paulick <cpaulick@xeatre.tv>
|
Christian Paulick <cpaulick@xeatre.tv>
|
||||||
for reporting a problem with frame detection in MPEG-2 streams that have "bottom fields"
|
for reporting a problem with frame detection in MPEG-2 streams that have "bottom fields"
|
||||||
|
2
HISTORY
2
HISTORY
@ -8379,3 +8379,5 @@ Video Disk Recorder Revision History
|
|||||||
- Added cOsdProvider::OsdSizeChanged(), which plugins that implement an output device
|
- Added cOsdProvider::OsdSizeChanged(), which plugins that implement an output device
|
||||||
can call to signal a change in the OSD that requires a redraw of the currently
|
can call to signal a change in the OSD that requires a redraw of the currently
|
||||||
displayed object (thanks to Thomas Reufer).
|
displayed object (thanks to Thomas Reufer).
|
||||||
|
- Added a comment to cRecorder::Activate() about the need to call Detach() in the
|
||||||
|
destructor (suggested by Eike Sauer).
|
||||||
|
10
recorder.h
10
recorder.h
@ -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.h 2.3 2010/12/27 11:17:04 kls Exp $
|
* $Id: recorder.h 3.1 2015/01/15 14:27:02 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __RECORDER_H
|
#ifndef __RECORDER_H
|
||||||
@ -31,12 +31,16 @@ private:
|
|||||||
bool NextFile(void);
|
bool NextFile(void);
|
||||||
protected:
|
protected:
|
||||||
virtual void Activate(bool On);
|
virtual void Activate(bool On);
|
||||||
|
///< If you override Activate() you need to call Detach() (which is a
|
||||||
|
///< member of the cReceiver class) from your own destructor in order
|
||||||
|
///< to properly get a call to Activate(false) when your object is
|
||||||
|
///< destroyed.
|
||||||
virtual void Receive(uchar *Data, int Length);
|
virtual void Receive(uchar *Data, int Length);
|
||||||
virtual void Action(void);
|
virtual void Action(void);
|
||||||
public:
|
public:
|
||||||
cRecorder(const char *FileName, const cChannel *Channel, int Priority);
|
cRecorder(const char *FileName, const cChannel *Channel, int Priority);
|
||||||
// Creates a new recorder for the given Channel and
|
///< Creates a new recorder for the given Channel and
|
||||||
// the given Priority that will record into the file FileName.
|
///< the given Priority that will record into the file FileName.
|
||||||
virtual ~cRecorder();
|
virtual ~cRecorder();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user