mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
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:
parent
449c016b46
commit
c3f9ae128a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user