diff --git a/src/apps/mediaplayer/supplier/ProxyVideoSupplier.cpp b/src/apps/mediaplayer/supplier/ProxyVideoSupplier.cpp index c2e834b255..eb2852f11d 100644 --- a/src/apps/mediaplayer/supplier/ProxyVideoSupplier.cpp +++ b/src/apps/mediaplayer/supplier/ProxyVideoSupplier.cpp @@ -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; }