>I am working on a StreamParser subclass and am wondering how the end- >of-file is supposed to be handled.
This is specified by the parameters "onInputCloseFunc" and "onInputCloseClientData" that are passed to the "StreamParser" constructor (in the code for the subclass's constructor). Usually (as you can see in the provided example subclasses "AC3AudioStreamParser", "H263plusVideoStreamParser", "MPEG1or2AudioStreamParser", and "MPEGVideoStreamParser"), "FramedSource::handleClosure" is passed as "onInputCloseFunc", and the source object that's using the parser is passed as "onInputCloseClientData". This means that end-of-file will be handled exactly the same as if the source object ran out of data, without using a parser. (The exception to this "MPEGProgramStreamParser" which is used by "MPEG1or2Demux". In this case, there is more than one downstream object involved, so end-of-file is handled in a special way.) -- Ross Finlayson Live Networks, Inc. http://www.live555.com/ _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel