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)
if (m_decoder->setAudioPID(program.audioStreams[i].pid, program.audioStreams[i].type))
return -4;
+
+ if (m_decoder->start())
+ return -5;
return 0;
}