> >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 s
>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,
>\For example I have file with size 6011488 bytes.
>6011488 = 4568*1316=4568*(7*188) <--it's correct transport stream file,
>but then we read last portion of this file:
> fFrameSize = fread(fTo, 1, fMaxSize, fFid);
>we read exactly 1316 bytes, the file is no longer left bytes!!!
>but also we
>1. usually fMaxSize = (7*188)=1316 and then in file remain in exact 1316
>unreaded bytes,
> then EOF don't happens
>2. if in file remain little then 188 bytes (TS packet) EOF dont't
>happens too
The size of all Transport Stream files should be a multiple of 188
bytes. If you have a Transpo