+2004-08-17 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ patch by: Wim Taymans
+
+ * gst/tcp/gstfdset.c:
+ * gst/tcp/gstmultifdsink.c:
+ fix index comparison, should include 0
+
2004-08-16 Wim Taymans <wim@fluendo.com>
* gst/tcp/gstfdset.c: (ensure_size), (gst_fdset_new),
(gst_fdset_fd_has_closed), (gst_fdset_fd_has_error),
(gst_fdset_fd_can_read), (gst_fdset_fd_can_write),
(gst_fdset_wait):
+ copy when reallocing for poll so the select arguments don't get
+ changed during the call
2004-08-16 Wim Taymans <wim@fluendo.com>
{
gint idx = fd->idx;
- if (idx > 0)
+ if (idx >= 0)
res = (set->testpollfds[idx].revents & POLLHUP) != 0;
break;
}
{
gint idx = fd->idx;
- if (idx > 0)
+ if (idx >= 0)
res = (set->testpollfds[idx].revents & (POLLERR | POLLNVAL)) != 0;
break;
}
{
gint idx = fd->idx;
- if (idx > 0)
+ if (idx >= 0)
res = (set->testpollfds[idx].revents & (POLLIN | POLLPRI)) != 0;
break;
}
{
gint idx = fd->idx;
- if (idx > 0)
+ if (idx >= 0)
res = (set->testpollfds[idx].revents & POLLOUT) != 0;
break;
}
}
/* Handle the clients. Basically does a blocking select for one
- * of the client fds to become read or writable. We also have a
+ * of the client fds to become read or writable. We also have a
* filedescriptor to receive commands on that we need to check.
*
* After going out of the select call, we read and write to all