diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2014-12-19 00:50:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-06-13 17:29:37 +0100 |
commit | 40025d495156a9e63a0506b1113b55690f43744a (patch) | |
tree | 0565fb2d0a55e31da903b87fca80ad16f9661658 | |
parent | Adds a second day of event data (diff) | |
download | p2pvr-40025d495156a9e63a0506b1113b55690f43744a.tar.bz2 p2pvr-40025d495156a9e63a0506b1113b55690f43744a.tar.xz p2pvr-40025d495156a9e63a0506b1113b55690f43744a.zip |
Don't create comically broken sample data and fix the last sample
-rw-r--r-- | p2pvr/devices/sampleSiData/events2.datxz | bin | 417328 -> 1108428 bytes | |||
-rw-r--r-- | p2pvr/dvb/unittests/createSamples.cpp | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/p2pvr/devices/sampleSiData/events2.datxz b/p2pvr/devices/sampleSiData/events2.datxz Binary files differindex 138fc4d..b2fa9c2 100644 --- a/p2pvr/devices/sampleSiData/events2.datxz +++ b/p2pvr/devices/sampleSiData/events2.datxz diff --git a/p2pvr/dvb/unittests/createSamples.cpp b/p2pvr/dvb/unittests/createSamples.cpp index affa123..d2f7e23 100644 --- a/p2pvr/dvb/unittests/createSamples.cpp +++ b/p2pvr/dvb/unittests/createSamples.cpp @@ -50,11 +50,15 @@ class SiSampleCollector : public Base { bool NewData(const P2PVR::Data & bytes, const Ice::Current & ice) override { + std::lock_guard<std::mutex> g(lock); packets.push_back(bytes); return SiTableParserBase::NewData(bytes, ice); } std::list<P2PVR::Data> packets; + + private: + std::mutex lock; }; template <class Base, class Object> |