diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-05 11:49:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-05 11:49:56 +0200 |
commit | 50d268538ee714e8e3f88bba0e952c33a75d3777 (patch) | |
tree | c6e20605a33ea719c4d491a77bcb67928c785305 /receiver.h | |
parent | 3cd5294d8a337ee5cd2ec894c9fbe04ad3a7690d (diff) | |
download | vdr-50d268538ee714e8e3f88bba0e952c33a75d3777.tar.gz vdr-50d268538ee714e8e3f88bba0e952c33a75d3777.tar.bz2 |
Added a missing 'const' to cReceiver::Receive(), to protect the given Data from being modified
Diffstat (limited to 'receiver.h')
-rw-r--r-- | receiver.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.h 3.3 2015/01/12 14:03:22 kls Exp $ + * $Id: receiver.h 4.1 2015/09/05 11:42:47 kls Exp $ */ #ifndef __RECEIVER_H @@ -31,7 +31,7 @@ protected: ///< (On == true) and right after it gets detached from (On == false) a cDevice. It can be used ///< to do things like starting/stopping a thread. ///< It is guaranteed that Receive() will not be called before Activate(true). - virtual void Receive(uchar *Data, int Length) = 0; + virtual void Receive(const uchar *Data, int Length) = 0; ///< This function is called from the cDevice we are attached to, and ///< delivers one TS packet from the set of PIDs the cReceiver has requested. ///< The data packet must be accepted immediately, and the call must return |