Added a missing 'const' to cReceiver::Receive(), to protect the given Data from being modified

This commit is contained in:
Klaus Schmidinger
2015-09-05 11:49:56 +02:00
parent 3cd5294d8a
commit 50d268538e
8 changed files with 23 additions and 21 deletions

View File

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