From a2bd990c3e3fa4ccc311a52dfd3d2aadcf9883db Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 19 Dec 2005 18:05:22 +0000 Subject: [PATCH] servicedvb: implement seekTo --- lib/service/servicedvb.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index b7f7a37f..778892f6 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -721,7 +721,19 @@ RESULT eDVBServicePlay::unpause() RESULT eDVBServicePlay::seekTo(pts_t to) { - return -1; + eDebug("eDVBServicePlay::seekTo: jump %lld", to); + + ePtr pvr_channel; + + if (m_service_handler.getPVRChannel(pvr_channel)) + return -1; + + ePtr 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) -- 2.30.2