From 68a10adb81c526398b6292b37ea3465e56a85130 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 29 Feb 2008 11:20:01 +0000 Subject: [PATCH] plugins/elements/: Use init macros and functions. 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 | 6 ++++++ plugins/elements/gstfdsink.c | 2 +- plugins/elements/gstfdsrc.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79f6dd8..bb59fa5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-02-29 Wim Taymans + * 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 + * docs/gst/gstreamer-sections.txt: * gst/gstpoll.c: (gst_poll_fd_init): * gst/gstpoll.h: diff --git a/plugins/elements/gstfdsink.c b/plugins/elements/gstfdsink.c index 2af4ad9..6d3c93a 100644 --- a/plugins/elements/gstfdsink.c +++ b/plugins/elements/gstfdsink.c @@ -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)) diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index a415414..6328375 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -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); -- 2.7.4