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.
2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
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:
* docs/gst/gstreamer-sections.txt:
* gst/gstpoll.c: (gst_poll_fd_init):
* gst/gstpoll.h:
gst_fd_sink_start (GstBaseSink * basesink)
{
GstFdSink *fdsink;
gst_fd_sink_start (GstBaseSink * basesink)
{
GstFdSink *fdsink;
+ GstPollFD fd = GST_POLL_FD_INIT;
fdsink = GST_FD_SINK (basesink);
if (!gst_fd_sink_check_fd (fdsink, fdsink->fd))
fdsink = GST_FD_SINK (basesink);
if (!gst_fd_sink_check_fd (fdsink, fdsink->fd))
/* 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) {
/* 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 = GST_POLL_FD_INIT;
if (src->fd >= 0) {
fd.fd = src->fd;
if (src->fd >= 0) {
fd.fd = src->fd;
}
/* Reset the GstPollFD */
}
/* 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);
fd.fd = src->new_fd;
gst_poll_add_fd (src->fdset, &fd);