From 87538be426221e687687acd68385ce85be206b53 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Thu, 6 Nov 2008 16:01:17 +0000 Subject: VideoTexture: fix compile error when FFmpeg is disabled. --- source/gameengine/VideoTexture/VideoFFmpeg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') 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 @@ -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(); } -- cgit v1.2.3