Set the processing latency using the time it

took to decode the last frame.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38653 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-09-14 20:15:10 +00:00
parent 449c016b46
commit c3f9ae128a

View File

@ -37,6 +37,8 @@ status_t
ProxyVideoSupplier::FillBuffer(int64 startFrame, void* buffer,
const media_raw_video_format& format, bool& wasCached)
{
bigtime_t now = system_time();
BAutolock _(fSupplierLock);
//printf("ProxyVideoSupplier::FillBuffer(%lld)\n", startFrame);
if (fSupplier == NULL)
@ -100,6 +102,8 @@ ProxyVideoSupplier::FillBuffer(int64 startFrame, void* buffer,
fCachedFrameValid = true;
}
fProcessingLatency = system_time() - now;
return ret;
}