summaryrefslogtreecommitdiff
path: root/device.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 /device.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 'device.c')
-rw-r--r--device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/device.c b/device.c
index 6ae9d5ac..174281f4 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 4.1 2015/08/29 12:41:08 kls Exp $
+ * $Id: device.c 4.2 2015/09/05 11:42:17 kls Exp $
*/
#include "device.h"
@@ -24,7 +24,7 @@
class cLiveSubtitle : public cReceiver {
protected:
- virtual void Receive(uchar *Data, int Length);
+ virtual void Receive(const uchar *Data, int Length);
public:
cLiveSubtitle(int SPid);
virtual ~cLiveSubtitle();
@@ -40,7 +40,7 @@ cLiveSubtitle::~cLiveSubtitle()
cReceiver::Detach();
}
-void cLiveSubtitle::Receive(uchar *Data, int Length)
+void cLiveSubtitle::Receive(const uchar *Data, int Length)
{
if (cDevice::PrimaryDevice())
cDevice::PrimaryDevice()->PlayTs(Data, Length);