VideoTexture: fix compile error when FFmpeg is disabled.
authorBenoit Bolsee <benoit.bolsee@online.be>
Thu, 6 Nov 2008 16:01:17 +0000 (16:01 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Thu, 6 Nov 2008 16:01:17 +0000 (16:01 +0000)
source/gameengine/VideoTexture/VideoFFmpeg.cpp

index dfbd61daee8d03c7284e135315e6da5cb1c4b01c..5657a32aa6c7d85da0974fa8641f7a7793c24283 100644 (file)
@@ -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();
        }