mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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>
|
2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* plugins/elements/gstfdsink.c: (gst_fd_sink_start):
|
* 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
|
* Initializes @fd. Alternatively you can initialize it with
|
||||||
* #GST_POLL_FD_INIT.
|
* #GST_POLL_FD_INIT.
|
||||||
|
*
|
||||||
|
* Since: 0.10.18
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_poll_fd_init (GstPollFD * fd)
|
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
|
* 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
|
* be assigned to a variable. In that case you have to use
|
||||||
* gst_poll_fd_init().
|
* gst_poll_fd_init().
|
||||||
|
*
|
||||||
|
* Since: 0.10.18
|
||||||
*/
|
*/
|
||||||
#define GST_POLL_FD_INIT { -1, -1 }
|
#define GST_POLL_FD_INIT { -1, -1 }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstPollMode:
|
* GstPollMode:
|
||||||
|
|
|
@ -424,13 +424,13 @@ gst_fd_sink_update_fd (GstFdSink * fdsink, int new_fd)
|
||||||
/* assign the fd */
|
/* assign the fd */
|
||||||
GST_OBJECT_LOCK (fdsink);
|
GST_OBJECT_LOCK (fdsink);
|
||||||
if (fdsink->fdset) {
|
if (fdsink->fdset) {
|
||||||
GstPollFD fd = { 0 };
|
GstPollFD fd = GST_POLL_FD_INIT;
|
||||||
|
|
||||||
fd.fd = fdsink->fd;
|
fd.fd = fdsink->fd;
|
||||||
gst_poll_remove_fd (fdsink->fdset, &fd);
|
gst_poll_remove_fd (fdsink->fdset, &fd);
|
||||||
|
|
||||||
/* Reset the GstPollFD */
|
/* Reset the GstPollFD */
|
||||||
memset (&fd, 0, sizeof (GstPollFD));
|
gst_poll_fd_init (&fd);
|
||||||
|
|
||||||
fd.fd = new_fd;
|
fd.fd = new_fd;
|
||||||
gst_poll_add_fd (fdsink->fdset, &fd);
|
gst_poll_add_fd (fdsink->fdset, &fd);
|
||||||
|
|
Loading…
Reference in a new issue