[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17349] trunk/blender/source/gameengine/ VideoTexture/VideoFFmpeg.cpp: VideoTexture: fix compile error when FFmpeg is disabled.

Benoit Bolsee benoit.bolsee at online.be
Thu Nov 6 17:01:18 CET 2008


Revision: 17349
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17349
Author:   ben2610
Date:     2008-11-06 17:01:17 +0100 (Thu, 06 Nov 2008)

Log Message:
-----------
VideoTexture: fix compile error when FFmpeg is disabled.

Modified Paths:
--------------
    trunk/blender/source/gameengine/VideoTexture/VideoFFmpeg.cpp

Modified: trunk/blender/source/gameengine/VideoTexture/VideoFFmpeg.cpp
===================================================================
--- trunk/blender/source/gameengine/VideoTexture/VideoFFmpeg.cpp	2008-11-06 11:26:09 UTC (rev 17348)
+++ trunk/blender/source/gameengine/VideoTexture/VideoFFmpeg.cpp	2008-11-06 16:01:17 UTC (rev 17349)
@@ -21,6 +21,8 @@
 */
 
 // INT64_C fix for some linux machines (C99ism)
+#ifdef WITH_FFMPEG
+
 #define __STDC_CONSTANT_MACROS
 #include <stdint.h>
 
@@ -33,7 +35,6 @@
 #include "Exception.h"
 #include "VideoFFmpeg.h"
 
-#ifdef WITH_FFMPEG
 
 // default framerate
 const double defFrameRate = 25.0;
@@ -274,6 +275,7 @@
 		if (m_imageName.Ptr() != filename)
 			m_imageName = filename;
 		m_preseek = 0;
+		m_avail = false;
 		play();
 	}
 





More information about the Bf-blender-cvs mailing list