aboutsummaryrefslogtreecommitdiff
path: root/lib/service
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-15 05:06:43 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-15 05:06:43 +0000
commit06fb2bcb4ddf528cbe65d58be41cf8ecf8697e76 (patch)
treec831c09d0bd44b046e0e819486d509b759109ec3 /lib/service
parent0bb92df139892968d715539387d19de4d175c8b4 (diff)
downloadenigma2-06fb2bcb4ddf528cbe65d58be41cf8ecf8697e76.tar.gz
enigma2-06fb2bcb4ddf528cbe65d58be41cf8ecf8697e76.zip
fix pts relative seeking, make pts_t signed
Diffstat (limited to 'lib/service')
-rw-r--r--lib/service/iservice.h2
-rw-r--r--lib/service/servicedvb.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index 376ed027..98b9ba0b 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -146,7 +146,7 @@ public:
SWIG_ALLOW_OUTPUT_SIMPLE(eServiceReference);
-typedef unsigned long long pts_t;
+typedef long long pts_t;
/* the reason we have the servicereference as additional argument is
that we don't have to create one object for every entry in a possibly
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)