Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76

From: Ben Stanley (bds02@uow.edu.au)
Date: Fri May 25 2001 - 07:10:01 PDT

  • Next message: Karl Heinz Kremer: "Re: EPSON ES-8500 success"

    Oliver Rauch wrote:

    >Ben Stanley wrote:
    >
    >>Looks like your theory is confirmed. Not sure I know what to do about it
    >>yet... I mean, I know the backend has to be fixed, but I'm not in a
    >>position to be able to do it yet :-).
    >>
    >
    >Hi Ben,
    >
    >a close look shows this:
    >
    >lines is defined by remaining,
    >remaining is set to pss->lines*pss->bytes_per_line
    >
    >pss->lines is defined in function inquriy()
    >
    >th function inquiry is called in sane_start, after this
    >pss->lines should be correct.
    >
    >I would test the following:
    >edit snapscan.c, line 2018 (in cvs) (here lines 2013-2019:
    > if (pss->psrc != NULL)
    > {
    > /* use what the source chain says */
    > p->pixels_per_line = pss->psrc->pixelsPerLine(pss->psrc);
    > p->bytes_per_line = pss->psrc->bytesPerLine(pss->psrc);
    > p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
    > }
    >
    >change
    > p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
    >to
    > p->lines = pss->lines;
    >
    >
    >May be this already solves the problem.
    >
    >Bye
    >Oliver
    >
    I am now able to perform a preview without xsane segfaulting.
    Thanks! That was a really simple fix!

    Ben.

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Fri May 25 2001 - 07:07:11 PDT