[vlmc-devel] commit: win32 build fix (Ludovic Fauvet )

git at videolan.org git at videolan.org
Sun Mar 14 16:11:02 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sun Mar 14 16:10:11 2010 +0100| [4fd05c246c9f40940283eff3b87b5915a29b30aa] | committer: Ludovic Fauvet 

win32 build fix

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=4fd05c246c9f40940283eff3b87b5915a29b30aa
---

 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 100d230..6908f02 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