[MPlayer-dev-eng] Fwd: Re: [MPlayer-users] [BUG] constant stream of errors with lircd
Alban Bedel
albeu at free.fr
Fri Oct 25 17:07:56 CEST 2002
Hi Arpi, Jindrich
on Fri, 25 Oct 2002 08:27:26 +0200 you wrote:
> Albeu?
>
> --------- Forwarded message ---------
> From: Jindrich Makovicka <makovick at kmlinux.fjfi.cvut.cz>
> To: mplayer-users at mplayerhq.hu
> Subject: Re: [MPlayer-users] [BUG] constant stream of errors with lircd
>
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> There should be some check for MP_INPUT_NOTHING in input.c, like this:
>
> int r =
> ((mp_cmd_func_t)mp_fd->read_func)(mp_fd->fd,mp_fd->buffer+mp_fd->pos
> ,mp_fd->size
> - 1 - mp_fd->pos);
> + if (r == MP_INPUT_NOTHING) return MP_INPUT_NOTHING;
> // Error ?
> if(r < 0) {
I fixed it in a better way as it was more a design problem. Read function had to
emulate a system read wich mean they had to set errno :(( The right fix was to add
a default read func wich return MP_INPUT_* error code and change this code to
use such function instead.
Albeu
More information about the MPlayer-dev-eng
mailing list