gst/gstpoll.*: Added Since tags.

Original commit message from CVS:
* gst/gstpoll.c: (gst_poll_fd_init):
* gst/gstpoll.h:
Added Since tags.
* plugins/elements/gstfdsink.c: (gst_fd_sink_update_fd):
Use some more init macros.
This commit is contained in:
Wim Taymans 2008-02-29 11:57:42 +00:00
parent 68a10adb81
commit a7bc443923
4 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/gstpoll.c: (gst_poll_fd_init):
* gst/gstpoll.h:
Added Since tags.
* plugins/elements/gstfdsink.c: (gst_fd_sink_update_fd):
Use some more init macros.
2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
* plugins/elements/gstfdsink.c: (gst_fd_sink_start):

View file

@ -371,6 +371,8 @@ gst_poll_get_mode (const GstPoll * set)
*
* Initializes @fd. Alternatively you can initialize it with
* #GST_POLL_FD_INIT.
*
* Since: 0.10.18
*/
void
gst_poll_fd_init (GstPollFD * fd)

View file

@ -58,8 +58,10 @@ typedef struct {
* used. This macro can used be to initialize a variable, but it cannot
* be assigned to a variable. In that case you have to use
* gst_poll_fd_init().
*
* Since: 0.10.18
*/
#define GST_POLL_FD_INIT { -1, -1 }
#define GST_POLL_FD_INIT { -1, -1 }
/**
* GstPollMode:

View file

@ -424,13 +424,13 @@ gst_fd_sink_update_fd (GstFdSink * fdsink, int new_fd)
/* assign the fd */
GST_OBJECT_LOCK (fdsink);
if (fdsink->fdset) {
GstPollFD fd = { 0 };
GstPollFD fd = GST_POLL_FD_INIT;
fd.fd = fdsink->fd;
gst_poll_remove_fd (fdsink->fdset, &fd);
/* Reset the GstPollFD */
memset (&fd, 0, sizeof (GstPollFD));
gst_poll_fd_init (&fd);
fd.fd = new_fd;
gst_poll_add_fd (fdsink->fdset, &fd);