git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add basic support for repeated timers (doesn't work yet)
[enigma2.git]
/
lib
/
service
/
servicedvb.cpp
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index 39c4407d69be3e4ed6d7e5f57c95d81826849cb6..f805ee70271cdb49408e8f75016c5b9fd3b7daff 100644
(file)
--- 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;
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)
}
RESULT eDVBServicePlay::getPlayPosition(pts_t &pos)
@@
-718,6
+719,9
@@
RESULT eDVBServicePlay::selectTrack(unsigned int i)
if (m_decoder->setAudioPID(program.audioStreams[i].pid, program.audioStreams[i].type))
return -4;
if (m_decoder->setAudioPID(program.audioStreams[i].pid, program.audioStreams[i].type))
return -4;
+
+ if (m_decoder->start())
+ return -5;
return 0;
}
return 0;
}