From 443dd9706a33afafae2c61fbadffec3ccafa2c2d Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 16 Nov 2014 21:42:24 +0200 Subject: [PATCH] Get rid of a magic number. --- tuner.c | 2 +- tuner.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tuner.c b/tuner.c index 5014d2a..b484d00 100644 --- a/tuner.c +++ b/tuner.c @@ -18,7 +18,7 @@ cSatipTuner::cSatipTuner(cSatipDeviceIf &deviceP, unsigned int packetLenP) deviceIdM(deviceP.GetId()), rtspM(*this), rtpM(*this, packetLenP), - rtcpM(*this, 1500), + rtcpM(*this, eApplicationMaxSizeB), streamAddrM(""), streamParamM(""), currentServerM(NULL), diff --git a/tuner.h b/tuner.h index f08c7d1..a874b03 100644 --- a/tuner.h +++ b/tuner.h @@ -51,6 +51,7 @@ private: eDummyPid = 100, eDefaultSignalStrength = 15, eDefaultSignalQuality = 224, + eApplicationMaxSizeB = 1500, eStatusUpdateTimeoutMs = 1000, // in milliseconds ePidUpdateIntervalMs = 250, // in milliseconds eConnectTimeoutMs = 5000, // in milliseconds