diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 14:29:18 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 14:29:18 +0100 |
commit | 3bb447cf8d346f151a56aa7da5360db6da2db570 (patch) | |
tree | cc2573a58f42080ab063396a4a1a252740d91dc1 /recorder.h | |
parent | 66c65beea7ac5c6dbc416b89b3a5800d31a0ecd7 (diff) | |
download | vdr-3bb447cf8d346f151a56aa7da5360db6da2db570.tar.gz vdr-3bb447cf8d346f151a56aa7da5360db6da2db570.tar.bz2 |
Added a comment to cRecorder::Activate() about the need to call Detach() in the destructor
Diffstat (limited to 'recorder.h')
-rw-r--r-- | recorder.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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 @@ -31,12 +31,16 @@ private: bool NextFile(void); protected: 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 Action(void); public: cRecorder(const char *FileName, const cChannel *Channel, int Priority); - // Creates a new recorder for the given Channel and - // the given Priority that will record into the file FileName. + ///< Creates a new recorder for the given Channel and + ///< the given Priority that will record into the file FileName. virtual ~cRecorder(); }; |