aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/tstools.h
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-17 14:58:54 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-12-17 15:23:07 +0100
commitbce2ef4220fecb2c2e296c85ec2fbef5794f4492 (patch)
treec96dea4b4a9d2e239e0d048fa531cf14cba907b4 /lib/dvb/tstools.h
parent8b4017d003a6d7ed074212a8f335707080eace6a (diff)
downloadenigma2-bce2ef4220fecb2c2e296c85ec2fbef5794f4492.tar.gz
enigma2-bce2ef4220fecb2c2e296c85ec2fbef5794f4492.zip
lib/dvb/tstools.h/cpp: make eDVBTSTool thread safe (i.e. this fixes seeking in timeshift and seeking in files without additional startcode/accespoint file
Diffstat (limited to 'lib/dvb/tstools.h')
-rw-r--r--lib/dvb/tstools.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dvb/tstools.h b/lib/dvb/tstools.h
index c230a341..ed8b9241 100644
--- a/lib/dvb/tstools.h
+++ b/lib/dvb/tstools.h
@@ -4,6 +4,7 @@
#include <sys/types.h>
#include <lib/dvb/pvrparse.h>
#include <lib/base/rawfile.h>
+#include <lib/base/elock.h>
/*
* Note: we're interested in PTS values, not STC values.
@@ -75,9 +76,10 @@ public:
private:
int m_pid;
int m_maxrange;
-
+
+ eSingleLock m_file_lock;
eRawFile m_file;
-
+
int m_begin_valid, m_end_valid;
pts_t m_pts_begin, m_pts_end;
off_t m_offset_begin, m_offset_end;