[vlmc-devel] commit: win32 build fix (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Sun Mar 14 16:11:24 CET 2010
vlmc | branch: 0.0.1-bugfix | Ludovic Fauvet <etix at l0cal.com> | Sun Mar 14 16:10:11 2010 +0100| [afc288520730935e04594136e3c5806d87f36385] | committer: Ludovic Fauvet
win32 build fix
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=afc288520730935e04594136e3c5806d87f36385
---
src/Renderer/WorkflowFileRenderer.cpp | 2 +-
src/vlmc.h | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/Renderer/WorkflowFileRenderer.cpp b/src/Renderer/WorkflowFileRenderer.cpp
index e78b0f3..f721bb2 100644
--- a/src/Renderer/WorkflowFileRenderer.cpp
+++ b/src/Renderer/WorkflowFileRenderer.cpp
@@ -91,7 +91,7 @@ void WorkflowFileRenderer::run()
m_mainWorkflow->setFullSpeedRender( true );
m_mainWorkflow->startRender( width, height );
//Waiting for renderers to preload some frames:
- sleep( 1 );
+ SleepS( 1 );
m_mediaPlayer->play();
}
diff --git a/src/vlmc.h b/src/vlmc.h
index 823651a..7f6cb4b 100644
--- a/src/vlmc.h
+++ b/src/vlmc.h
@@ -36,6 +36,12 @@
#define SleepMS( x ) Sleep( x )
#endif
+#ifdef Q_WS_WIN
+#define SleepS( x ) Sleep( (x) * 1000 )
+#else
+#define SleepS( x ) sleep( x )
+#endif
+
enum ToolButtons
{
TOOL_DEFAULT,
More information about the Vlmc-devel
mailing list