From 06fb2bcb4ddf528cbe65d58be41cf8ecf8697e76 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 15 Nov 2005 05:06:43 +0000 Subject: fix pts relative seeking, make pts_t signed --- lib/service/servicedvb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/service/servicedvb.cpp') diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index d49c5f6d..f805ee70 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -652,8 +652,9 @@ RESULT eDVBServicePlay::seekRelative(int direction, pts_t to) if (m_service_handler.getPVRChannel(pvr_channel)) return -1; - /* this is of couse wrong: PTS values don't match with bytes. */ - return pvr_channel->seekToPosition(SEEK_CUR, direction * to); + to *= direction; + + return pvr_channel->seekTo(1, to); } RESULT eDVBServicePlay::getPlayPosition(pts_t &pos) -- cgit v1.2.3