
>   * ./plugins/lirc/lirc.: various fixes, thanks to Sigmund Augdal.

These fixes beakes more than they fix. p_intf->pf_manage( p_intf ); 
should be called at least once before lirc_nextcode otherwise nothing 
happens before one presses a button. Then, one should check i c != null 
_after_ running lirc_code2char with c as an argument, since 
lirc_char2code changes c. As it is right now the lirc plugin does not 
startplayback, and segfaults on any button pressed.

patch attached


Sigmund Augdal


-- Attached file included as plaintext by Listar --

? patch
Index: lirc.c
===================================================================
RCS file: /var/cvs/videolan/vlc/plugins/lirc/lirc.c,v
retrieving revision 1.4
diff -r1.4 lirc.c
141a142,143
>     /* Manage core vlc functions through the callback */
>     p_intf->pf_manage( p_intf );
150,151c152,153
<         while( !p_intf->b_die && c != NULL
<                 && lirc_code2char( p_intf->p_sys->config, code, &c ) == 0 )
---
>         while( !p_intf->b_die && lirc_code2char( p_intf->p_sys->config, code, &c ) == 0  
> 	       && c != NULL)
266c268
<         p_intf->pf_manage( p_intf );
---
> 	p_intf->pf_manage( p_intf );


-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster@videolan.org>

