[MPlayer-dev-eng] [PATCH] Apple Remote support

Alban Bedel albeu at free.fr
Sun Aug 12 21:54:02 CEST 2007


On Sun, 12 Aug 2007 02:29:11 -0400
"? ?" <ulion2002 at msn.com> wrote:

> +#ifdef HAVE_APPLE_REMOTE
> +  if(use_ar) {
> +    if(mp_input_ar_init() < 0)
> +      mp_msg
> (MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrCantInitAppleRemote);
> +    else
> +      mp_input_add_key_fd(MP_MAX_KEY_FD - 1,0,mp_input_ar_read,mp_input_ar_close);
> +  }
> +#endif
> +

You should use an invalid value (-1) for the fd when there is no real
fd. Otherwise the patch look good.

	Albeu




More information about the MPlayer-dev-eng mailing list