servicedvb: implement seekTo
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 19 Dec 2005 18:05:22 +0000 (18:05 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 19 Dec 2005 18:05:22 +0000 (18:05 +0000)
lib/service/servicedvb.cpp

index b7f7a37..778892f 100644 (file)
@@ -721,7 +721,19 @@ RESULT eDVBServicePlay::unpause()
 
 RESULT eDVBServicePlay::seekTo(pts_t to)
 {
-       return -1;
+       eDebug("eDVBServicePlay::seekTo: jump %lld", to);
+
+       ePtr<iDVBPVRChannel> pvr_channel;
+       
+       if (m_service_handler.getPVRChannel(pvr_channel))
+               return -1;
+       
+       ePtr<iDVBDemux> demux;
+       m_service_handler.getDemux(demux);
+       if (!demux)
+               return -1;
+       
+       return pvr_channel->seekTo(demux, 0, to);
 }
 
 RESULT eDVBServicePlay::seekRelative(int direction, pts_t to)