Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-11-06 19:01:17 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2008-11-06 19:01:17 +0300
commit87538be426221e687687acd68385ce85be206b53 (patch)
tree36dc06f7f54d74afe6b7d387345853c8943360b2 /source
parentf3d1be5638d48429592fdefc2ebb32d9e1110800 (diff)
VideoTexture: fix compile error when FFmpeg is disabled.
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/VideoTexture/VideoFFmpeg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/VideoFFmpeg.cpp b/source/gameengine/VideoTexture/VideoFFmpeg.cpp
index dfbd61daee8..5657a32aa6c 100644
--- a/source/gameengine/VideoTexture/VideoFFmpeg.cpp
+++ b/source/gameengine/VideoTexture/VideoFFmpeg.cpp
@@ -21,6 +21,8 @@ http://www.gnu.org/copyleft/lesser.txt.
*/
// INT64_C fix for some linux machines (C99ism)
+#ifdef WITH_FFMPEG
+
#define __STDC_CONSTANT_MACROS
#include <stdint.h>
@@ -33,7 +35,6 @@ http://www.gnu.org/copyleft/lesser.txt.
#include "Exception.h"
#include "VideoFFmpeg.h"
-#ifdef WITH_FFMPEG
// default framerate
const double defFrameRate = 25.0;
@@ -274,6 +275,7 @@ void VideoFFmpeg::openFile (char * filename)
if (m_imageName.Ptr() != filename)
m_imageName = filename;
m_preseek = 0;
+ m_avail = false;
play();
}