summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2014-12-19 00:50:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-13 17:29:37 +0100
commit40025d495156a9e63a0506b1113b55690f43744a (patch)
tree0565fb2d0a55e31da903b87fca80ad16f9661658
parentAdds a second day of event data (diff)
downloadp2pvr-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.datxzbin417328 -> 1108428 bytes
-rw-r--r--p2pvr/dvb/unittests/createSamples.cpp4
2 files changed, 4 insertions, 0 deletions
diff --git a/p2pvr/devices/sampleSiData/events2.datxz b/p2pvr/devices/sampleSiData/events2.datxz
index 138fc4d..b2fa9c2 100644
--- a/p2pvr/devices/sampleSiData/events2.datxz
+++ b/p2pvr/devices/sampleSiData/events2.datxz
Binary files differ
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>