* Preamble
*****************************************************************************/
+#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_CONFIG_H
set_capability( "interface", 0 )
set_callbacks( Open, Close )
- add_string( "lirc-file", NULL, NULL,
+ add_string( "lirc-file", NULL,
LIRC_TEXT, LIRC_LONGTEXT, true )
vlc_module_end ()
/* Wait for data */
struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 };
if( poll( &ufd, 1, -1 ) == -1 )
- break;
+ {
+ if( errno == EINTR )
+ continue;
+ else
+ break;
+ }
/* Process */
int canc = vlc_savecancel();
{
if( !strncmp( "key-", c, 4 ) )
{
- vlc_key_t i_key = vlc_GetActionId( c );
+ vlc_action_t i_key = vlc_GetActionId( c );
if( i_key )
var_SetInteger( p_intf->p_libvlc, "key-action", i_key );
else