[MPlayer-cvslog] r31201 - trunk/stream/cache2.c
Ivan Kalvachev
ikalvachev at gmail.com
Mon May 24 16:38:50 CEST 2010
Reimar, while you are working on cache2.c I'd like to make a feature request.
Could you try to find some workaround for the known problem with eof
handling. For networks streams if playback is paused, server may
disconnect the connection and cache would fail to resume, thinking it
have reached the eof. Same thing happens with local files that are
still growing.
The way I see it is by implementing EOF in 3 states.
0 - eof not reached
1 - eof reached, cache full.
2 - eof reached, cache empty, resume failed.
When the reading position reaches near the end of the cache, the code
should try to initiate resume (like in long_seek), if it fails, then
it marks the eof with state 2. If it succeeds then eof=0 until read
fails.
The reading code should accept only state 2 as real EOF.
Do you think it would be easy to implement. Right now you are most
familiar with the code.
Best Regards.
More information about the MPlayer-cvslog
mailing list