develop.uap-core.de/git
/
uwplayer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f4caf1
)
fix poll return check in player event loop
author
Olaf Wintermann
<olaf.wintermann@gmail.com>
Sun, 20 Feb 2022 09:49:37 +0000
(10:49 +0100)
committer
Olaf Wintermann
<olaf.wintermann@gmail.com>
Sun, 20 Feb 2022 09:49:37 +0000
(10:49 +0100)
application/player.c
patch
|
blob
|
history
diff --git
a/application/player.c
b/application/player.c
index
d9a88ce
..
255f7cb
100644
(file)
--- a/
application/player.c
+++ b/
application/player.c
@@
-288,7
+288,7
@@
static void player_io(Player *p) {
JSONParser *js = json_parser_new();
char buf[PLAYER_IN_BUFSIZE];
- while(p->isactive &&
poll(fds, 2, PLAYER_POLL_TIMEOUT
)) {
+ while(p->isactive &&
(poll(fds, 2, PLAYER_POLL_TIMEOUT) >= 0
)) {
if(fds[0].revents == POLLIN) {
ssize_t r;
if((r = read(fds[0].fd, buf, PLAYER_IN_BUFSIZE)) <= 0) {