[Live-devel] Subclassing FramedFilter

Ross Finlayson finlayson at live555.com
Mon Jun 16 05:10:32 PDT 2008


>void ProtectionFilter::afterGettingFrame1(unsigned frameSize, struct 
>timeval presentationTime)
>{
>	afterGetting(this);
>}

All subclasses of "FrameSource" - when implementing the 
"doGetNextFrame()" virtual function - must set "fFrameSize".  You 
should also set "fPresentationTime".

Therefore, change your "afterGettingFrame1()" function to:

void ProtectionFilter::afterGettingFrame1(unsigned frameSize, struct 
timeval presentationTime)
{
	fFrameSize = frameSize;
	fPresentationTime = presentationTime;
	afterGetting(this);
}
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list