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:
@@ -37,6 +37,8 @@ status_t
|
|||||||
ProxyVideoSupplier::FillBuffer(int64 startFrame, void* buffer,
|
ProxyVideoSupplier::FillBuffer(int64 startFrame, void* buffer,
|
||||||
const media_raw_video_format& format, bool& wasCached)
|
const media_raw_video_format& format, bool& wasCached)
|
||||||
{
|
{
|
||||||
|
bigtime_t now = system_time();
|
||||||
|
|
||||||
BAutolock _(fSupplierLock);
|
BAutolock _(fSupplierLock);
|
||||||
//printf("ProxyVideoSupplier::FillBuffer(%lld)\n", startFrame);
|
//printf("ProxyVideoSupplier::FillBuffer(%lld)\n", startFrame);
|
||||||
if (fSupplier == NULL)
|
if (fSupplier == NULL)
|
||||||
@@ -100,6 +102,8 @@ ProxyVideoSupplier::FillBuffer(int64 startFrame, void* buffer,
|
|||||||
fCachedFrameValid = true;
|
fCachedFrameValid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fProcessingLatency = system_time() - now;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user