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.
This commit is contained in:
Wim Taymans 2008-02-29 11:20:01 +00:00
parent 3ae60c3b9d
commit 68a10adb81
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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:

View 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))

View 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);