Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
dcd19cba
Commit
dcd19cba
authored
Nov 27, 2012
by
Rémi Denis-Courmont
Browse files
LIRC: keep same pollfd
There is no need to reinitialize the structure.
parent
495b0633
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/lirc.c
View file @
dcd19cba
...
...
@@ -159,16 +159,18 @@ static void *Run( void *data )
intf_thread_t
*
p_intf
=
data
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
struct
pollfd
ufd
;
ufd
.
fd
=
p_sys
->
i_fd
;
ufd
.
events
=
POLLIN
;
for
(
;;
)
{
/* Wait for data */
struct
pollfd
ufd
=
{
.
fd
=
p_sys
->
i_fd
,
.
events
=
POLLIN
,
.
revents
=
0
};
if
(
poll
(
&
ufd
,
1
,
-
1
)
==
-
1
)
{
if
(
errno
==
EINTR
)
continue
;
else
break
;
break
;
}
/* Process */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment