- add seekTo in eDVBChannel (PVR)
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 25 Oct 2005 21:40:02 +0000 (21:40 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 25 Oct 2005 21:40:02 +0000 (21:40 +0000)
lib/dvb/dvb.cpp
lib/dvb/dvb.h

index c8feccf..35e5c99 100644 (file)
@@ -616,3 +616,14 @@ RESULT eDVBChannel::getCurrentPosition(pts_t &pos)
        
        return 0;
 }
+
+RESULT eDVBChannel::seekTo(pts_t &pts)
+{
+       m_pvr_thread->pause();
+       if (m_decoder_demux)
+               m_decoder_demux->get().flush();
+               /* demux will also flush all decoder.. */
+//     m_pvr_thread->seek(pts);
+       m_pvr_thread->resume();
+}
+
index 9a85c22..f858625 100644 (file)
@@ -192,6 +192,7 @@ public:
        RESULT playFile(const char *file);
        RESULT getLength(pts_t &len);
        RESULT getCurrentPosition(pts_t &pos);
+       RESULT seekTo(pts_t &pts);
 
 private:
        ePtr<eDVBAllocatedFrontend> m_frontend;