generic-pc: implement cDemux::getSTC()

This commit is contained in:
Stefan Seyfried
2013-06-01 17:16:56 +02:00
parent 7e9d0f49a9
commit 618e7723bf
3 changed files with 18 additions and 0 deletions

View File

@@ -650,3 +650,13 @@ bool cVideo::GetScreenImage(unsigned char * &data, int &xres, int &yres, bool ge
return true;
}
int64_t cVideo::GetPTS(void)
{
int64_t pts = 0;
buf_m.lock();
if (buf_num != 0)
pts = buffers[buf_out].pts();
buf_m.unlock();
return pts;
}