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