On Fri, 6 Dec 2002, Mathieu Bouchard wrote:
version 0.6.3 (2002.12.06):
I found a bug in the file reader that causes it to always rewind after the first picture when there are several pictures in the same file. But since the bug is in scriptable code, then you can fix it yourself easily by putting this code in ~/.gridflow_startup :
require "gridflow/format/main"
GridFlow::GF_VERSION=="0.6.3" and
module GridFlow
class Format
def rewind_if_needed
thispos = (@stream.seek 0,IO::SEEK_CUR; @stream.tell)
lastpos = (@stream.seek 0,IO::SEEK_END; @stream.tell)
thispos = 0 if thispos == lastpos
@stream.seek thispos,IO::SEEK_SET
rescue Errno::ESPIPE # just ignore if seek is not possible
end
end
end
Mathieu Bouchard http://artengine.ca/matju