Hi,
i get an error when I want to define the texture of the videocontroller. Here is my code:
videoController_ = static_cast<Ogre::TheoraVideoController*>(Ogre::ExternalTextureSourceManager::getSingleton().getExternalTextureSource("ogg_video"));
videoController_->setInputName( "ingame.ogg" );
videoController_->setPlayMode(Ogre::TextureEffectPlay_ASAP);
videoController_->setTextureTecPassStateLevel(0, 0, 0);
Ogre::MaterialPtr matPtr = Ogre::MaterialManager::getSingleton().getByName("Examples/TheoraVideoPlayer/Play");
if (matPtr.isNull())
{
matPtr = Ogre::MaterialManager::getSingleton().create("Examples/TheoraVideoPlayer/Play", "General");
}
matPtr->getTechnique(0)->getPass(0)->createTextureUnitState();
videoController_->createDefinedTexture("Examples/TheoraVideoPlayer/Play", "General"); // <--- CRASH!!
Ogre::TheoraMovieClip* clip_ = videoController_->getMaterialNameClip("Examples/TheoraVideoPlayer/Play");
The message I get is: "Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with on calling convention with a function pointer declared with a different calling convention."
The programm hold at this line in the TheoraVideoDriver.cpp:
Line 135: mTexture = TextureManager::getSingleton().loadImage( sTextureName, sGroupName, m_Image, TEX_TYPE_2D, 0, 1.0f );
I compiled theora without errors, what do I wrong?