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:15:25 +0100
commitb64b791cb481944585fceaf5bcac9e2c699dbeb0 (patch)
treedba3f33f2804fabec8f4288eb33c864176031ed6 /lib/dvb/tstools.h
parent5e05afa7dbc5acfc92a158dcc88b0be12c52af62 (diff)
downloadenigma2-b64b791cb481944585fceaf5bcac9e2c699dbeb0.tar.gz
enigma2-b64b791cb481944585fceaf5bcac9e2c699dbeb0.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;