add isCurrentlSeekable to iPlayableService
[enigma2.git] / lib / dvb / tstools.h
index 4ec4b66aa9902dfbac9e09d9e759e858f5349e0c..95fbd9e2ef3e38cdb1e6ed0b394f92fa89d4b394 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __lib_dvb_tstools_h
 #define __lib_dvb_tstools_h
 
-#include <config.h>
 #include <sys/types.h>
 
 /*
@@ -9,7 +8,7 @@
  * thus we're not evaluating PES headers, not adaption fields.
  */
 
-typedef unsigned long long pts_t;
+typedef long long pts_t;
 
 class eDVBTSTools
 {
@@ -26,11 +25,15 @@ public:
                /* get first PTS *after* the given offset. */
        int getPTS(off_t &offset, pts_t &pts);
        
+       int getPosition(off_t &offset, pts_t &pts);
+       
        void calcBegin();
        void calcEnd();
        
        int calcLen(pts_t &len);
        
+       int calcBitrate(); /* in bits/sec */
+       
 private:
        int m_fd, m_pid;
        int m_maxrange;