mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
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:
parent
68a10adb81
commit
a7bc443923
4 changed files with 16 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue