libspark: add cVideo::getPTS for cDemux::getSTC

Origin commit data
------------------
Branch: master
Commit: afc27ebd11
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-11 (Sat, 11 Feb 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-02-11 19:58:43 +01:00
parent cc2720221a
commit 2d15226fc1
2 changed files with 10 additions and 0 deletions

View File

@@ -777,3 +777,11 @@ void cVideo::FastForwardMode(int mode)
fop(ioctl, MPEG_VID_FASTFORWARD, mode);
#endif
}
int64_t cVideo::GetPTS(void)
{
int64_t pts = 0;
if (ioctl(fd, VIDEO_GET_PTS, &pts) < 0)
lt_info("%s: GET_PTS failed (%m)\n", __func__);
return pts;
}