From 5aaa020871534459f9f973d85d5c220ea812fe2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 14 Sep 2010 20:16:26 +0000 Subject: [PATCH] The max time to take for rendering is arbitrary, might as well take an even value. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38654 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../mediaplayer/media_node_framework/video/VideoProducer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp b/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp index cc7cbcfd82..4dcd95c26e 100644 --- a/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp +++ b/src/apps/mediaplayer/media_node_framework/video/VideoProducer.cpp @@ -691,7 +691,7 @@ VideoProducer::_FrameGeneratorThread() // get the times for the current and the next frame performanceTime = fManager->TimeForFrame(fFrame); nextPerformanceTime = fManager->TimeForFrame(fFrame + 1); - maxRenderTime = min_c(bigtime_t(33334 * 0.9), + maxRenderTime = min_c(bigtime_t(40000), max_c(fSupplier->ProcessingLatency(), maxRenderTime)); playingMode = fManager->PlayModeAtFrame(fFrame);