+2008-02-29 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * plugins/elements/gstfdsink.c: (gst_fd_sink_update_fd):
+ * plugins/elements/gstfdsrc.c: (gst_fd_src_update_fd):
+ Don't reset GstPollFDs, this is not necessary at all.
+
+ * tests/check/gst/gstpoll.c: (test_poll_wait), (GST_START_TEST),
+ (delayed_restart), (delayed_control):
+ Use GST_POLL_FD_INIT.
+
2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/gstpoll.c: (gst_poll_fd_init):
fd.fd = fdsink->fd;
gst_poll_remove_fd (fdsink->fdset, &fd);
- /* Reset the GstPollFD */
- gst_poll_fd_init (&fd);
-
fd.fd = new_fd;
gst_poll_add_fd (fdsink->fdset, &fd);
gst_poll_fd_ctl_write (fdsink->fdset, &fd, TRUE);
gst_poll_remove_fd (src->fdset, &fd);
}
- /* Reset the GstPollFD */
- gst_poll_fd_init (&fd);
-
fd.fd = src->new_fd;
gst_poll_add_fd (src->fdset, &fd);
gst_poll_fd_ctl_read (src->fdset, &fd, TRUE);
test_poll_wait (GstPollMode mode)
{
GstPoll *set;
- GstPollFD rfd = { 0, };
- GstPollFD wfd = { 0, };
+ GstPollFD rfd = GST_POLL_FD_INIT;
+ GstPollFD wfd = GST_POLL_FD_INIT;
gint socks[2];
guchar c = 'A';
GST_START_TEST (test_poll_basic)
{
GstPoll *set;
- GstPollFD fd = { 0, };
+ GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = 1;
delayed_restart (gpointer data)
{
GstPoll *set = data;
- GstPollFD fd = { 0, };
+ GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = 1;
GST_START_TEST (test_poll_wait_restart)
{
GstPoll *set;
- GstPollFD fd = { 0, };
+ GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = 1;
delayed_control (gpointer data)
{
GstPoll *set = data;
- GstPollFD fd = { 0, };
+ GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = 1;
GST_START_TEST (test_poll_controllable)
{
GstPoll *set;
- GstPollFD fd = { 0, };
+ GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = 1;