summaryrefslogtreecommitdiff
path: root/transfer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-09-05 11:49:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-09-05 11:49:56 +0200
commit50d268538ee714e8e3f88bba0e952c33a75d3777 (patch)
treec6e20605a33ea719c4d491a77bcb67928c785305 /transfer.c
parent3cd5294d8a337ee5cd2ec894c9fbe04ad3a7690d (diff)
downloadvdr-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 'transfer.c')
-rw-r--r--transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transfer.c b/transfer.c
index eb07e829..d0e7ed46 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: transfer.c 3.1 2013/08/22 12:33:02 kls Exp $
+ * $Id: transfer.c 4.1 2015/09/05 11:43:58 kls Exp $
*/
#include "transfer.h"
@@ -38,7 +38,7 @@ void cTransfer::Activate(bool On)
#define MAXRETRIES 20 // max. number of retries for a single TS packet
#define RETRYWAIT 5 // time (in ms) between two retries
-void cTransfer::Receive(uchar *Data, int Length)
+void cTransfer::Receive(const uchar *Data, int Length)
{
if (cPlayer::IsAttached()) {
// Transfer Mode means "live tv", so there's no point in doing any additional