plugins/elements/: Use init macros and functions.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 29 Feb 2008 11:20:01 +0000 (11:20 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 29 Feb 2008 11:20:01 +0000 (11:20 +0000)
Original commit message from CVS:
* plugins/elements/gstfdsink.c: (gst_fd_sink_start):
* plugins/elements/gstfdsrc.c: (gst_fd_src_update_fd):
Use init macros and functions.

ChangeLog
plugins/elements/gstfdsink.c
plugins/elements/gstfdsrc.c

index 79f6dd8..bb59fa5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-02-29  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * plugins/elements/gstfdsink.c: (gst_fd_sink_start):
+       * plugins/elements/gstfdsrc.c: (gst_fd_src_update_fd):
+       Use init macros and functions.
+
+2008-02-29  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * docs/gst/gstreamer-sections.txt:
        * gst/gstpoll.c: (gst_poll_fd_init):
        * gst/gstpoll.h:
index 2af4ad9..6d3c93a 100644 (file)
@@ -349,7 +349,7 @@ static gboolean
 gst_fd_sink_start (GstBaseSink * basesink)
 {
   GstFdSink *fdsink;
-  GstPollFD fd = { 0, };
+  GstPollFD fd = GST_POLL_FD_INIT;
 
   fdsink = GST_FD_SINK (basesink);
   if (!gst_fd_sink_check_fd (fdsink, fdsink->fd))
index a415414..6328375 100644 (file)
@@ -178,7 +178,7 @@ gst_fd_src_update_fd (GstFdSrc * src)
   /* we need to always update the fdset since it may not have existed when
    * gst_fd_src_update_fd() was called earlier */
   if (src->fdset != NULL) {
-    GstPollFD fd = { 0, };
+    GstPollFD fd = GST_POLL_FD_INIT;
 
     if (src->fd >= 0) {
       fd.fd = src->fd;
@@ -186,7 +186,7 @@ gst_fd_src_update_fd (GstFdSrc * src)
     }
 
     /* Reset the GstPollFD */
-    memset (&fd, 0, sizeof (GstPollFD));
+    gst_poll_fd_init (&fd);
 
     fd.fd = src->new_fd;
     gst_poll_add_fd (src->fdset, &fd);