[Live-devel] some problems with ByteStreamMultiFileSource

Ross Finlayson finlayson at live555.com
Mon Sep 10 02:34:26 PDT 2007


>but we haven't! in first mail I have explained why.
>
>This is because we check for EOF only before reading!
>
>Then we read next time, we before check for EOF,
>but there's no EOF state and we try to read,
>and of course we read 0 bytes, but now we have EOF state =)

OK, try adding the following, after the call to "fread()" (line 138) 
in "ByteStreamFileSource.cpp":
	if (fFrameSize == 0) {
		handleClosure(this);
		return;
	}

Please let us know if that works for you.  (If so, I'll add it to the 
next source code release.)

-- 

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


More information about the live-devel mailing list