mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Added a missing 'const' to cReceiver::Receive(), to protect the given Data from being modified
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user