mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
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:
@@ -777,3 +777,11 @@ void cVideo::FastForwardMode(int mode)
|
|||||||
fop(ioctl, MPEG_VID_FASTFORWARD, mode);
|
fop(ioctl, MPEG_VID_FASTFORWARD, mode);
|
||||||
#endif
|
#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;
|
||||||
|
}
|
||||||
|
@@ -112,6 +112,7 @@ typedef enum
|
|||||||
|
|
||||||
class cVideo
|
class cVideo
|
||||||
{
|
{
|
||||||
|
friend class cDemux;
|
||||||
private:
|
private:
|
||||||
/* video device */
|
/* video device */
|
||||||
int fd;
|
int fd;
|
||||||
@@ -136,6 +137,7 @@ class cVideo
|
|||||||
VIDEO_FRAME_RATE FrameRate;
|
VIDEO_FRAME_RATE FrameRate;
|
||||||
void routeVideo(int standby);
|
void routeVideo(int standby);
|
||||||
int video_standby;
|
int video_standby;
|
||||||
|
int64_t GetPTS(void);
|
||||||
public:
|
public:
|
||||||
/* constructor & destructor */
|
/* constructor & destructor */
|
||||||
cVideo(int mode, void *, void *);
|
cVideo(int mode, void *, void *);
|
||||||
|
Reference in New Issue
Block a user