网上的live555项目一个父类中的函数,继承到其中自己写的子类调用时报错了,但其他子类调用没有报错
class testclass:public H264or5VideoStreamFramer{
public:
static testclass* createNew(UsageEnvironment& env, FramedSource* inputSource,
Boolean includeStartCodeInOutput = False,
Boolean insertAccessUnitDelimiters = False);
testclass(UsageEnvironment& env, FramedSource* inputSource,
Boolean createParser,
Boolean includeStartCodeInOutput, Boolean insertAccessUnitDelimiters);
typedef void (afterPlayingFunc)(void* clientData);
// void getNextframe();
void afterGettingFrame(void* clientData, unsigned frameSize,
unsigned numTruncatedBytes,
struct timeval presentationTime,
unsigned durationInMicroseconds);
void ourHandleClosure(void* clientData);
void startgetting(H265VideoStreamFramer& source,afterPlayingFunc* afterFunc);
private:
afterPlayingFunc* fAfterFunc;
unsigned char* fOutBuf;
unsigned buffersize;
FramedSource *fSource;
FramedFilter* fOurFragmenter;
};
void testclass::startgetting(H265VideoStreamFramer& source,afterPlayingFunc* afterFunc){
fSource = (FramedSource*)&source;
fAfterFunc = afterFunc;
fOurFragmenter = new H264or5Fragmenter(fHNumber, envir(), fSource, OutPacketBuffer::maxSize,
1024*15);
fSource = fOurFragmenter;
fSource->getNextFrame(fOutBuf,buffersize,afterGettingFrame,
this,ourHandleClosure,this);
}