我似乎有一个问题,由于 TheoraVideoManager 没有初始化,我一直收到未处理的异常异常,我在 Win32Project1.exe 中的 0x7329E13D (msvcr110.dll) 处收到未处理的异常:0xC0000005:访问冲突读取位置 0x00194000。
这就是我的做法
#include <theoraplayer/TheoraPlayer.h>
#include <theoraplayer/TheoraDataSource.h>
#include "theoraplayer/TheoraVideoManager.h"
TheoraVideoManager *mgr ;
////////////////////////////
void init(void)
{
mgr=new TheoraVideoManager();
char* x="one.ogg";
Texttemp=new THVideo(x);
}
////////////
Video.h
extern TheoraVideoManager *mgr ;
//////////////
THVideo(char* File){
///// crashes here on clip
clip=mgr->createVideoClip(new TheoraMemoryFileDataSource(File));
clip->setAutoRestart(1);
clip->pause();
texture->texID=createTexture(nextPow2(clip->getWidth()),nextPow2(clip->getHeight()), textureFormat);
}
/////////////////////////