mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark: add cVideo::getPTS for cDemux::getSTC
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user