plugins/elements/: Don't reset GstPollFDs, this is not necessary at all.
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 29 Feb 2008 12:05:55 +0000 (12:05 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 29 Feb 2008 12:05:55 +0000 (12:05 +0000)
Original commit message from CVS:
* 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.

ChangeLog
plugins/elements/gstfdsink.c
plugins/elements/gstfdsrc.c
tests/check/gst/gstpoll.c

index d22d2e5..35d798d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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):
index 32b7fc7..9545bd9 100644 (file)
@@ -429,9 +429,6 @@ gst_fd_sink_update_fd (GstFdSink * fdsink, int new_fd)
     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);
index 6328375..fed8c63 100644 (file)
@@ -185,9 +185,6 @@ gst_fd_src_update_fd (GstFdSrc * src)
       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);
index 1626b4d..204a21f 100644 (file)
@@ -34,8 +34,8 @@ static void
 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';
 
@@ -100,7 +100,7 @@ test_poll_wait (GstPollMode mode)
 GST_START_TEST (test_poll_basic)
 {
   GstPoll *set;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fd.fd = 1;
 
@@ -180,7 +180,7 @@ static gpointer
 delayed_restart (gpointer data)
 {
   GstPoll *set = data;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fd.fd = 1;
 
@@ -198,7 +198,7 @@ delayed_restart (gpointer data)
 GST_START_TEST (test_poll_wait_restart)
 {
   GstPoll *set;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fd.fd = 1;
 
@@ -268,7 +268,7 @@ static gpointer
 delayed_control (gpointer data)
 {
   GstPoll *set = data;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fd.fd = 1;
 
@@ -294,7 +294,7 @@ delayed_control (gpointer data)
 GST_START_TEST (test_poll_controllable)
 {
   GstPoll *set;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fd.fd = 1;