mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
shmsink: ensure gst_poll_wait is called first on descriptors
We need to call gst_poll_wait before calling gst_poll_* status functions on that new descriptor, so restart the loop, so _wait will have been called on all elements of self->poll, whether they have just been added or not. */
This commit is contained in:
parent
6cd9048cf9
commit
a34108899e
1 changed files with 5 additions and 0 deletions
|
@ -516,6 +516,11 @@ pollthread_func (gpointer data)
|
|||
self->clients = g_list_prepend (self->clients, gclient);
|
||||
g_signal_emit (self, signals[SIGNAL_CLIENT_CONNECTED], 0,
|
||||
gclient->pollfd.fd);
|
||||
/* we need to call gst_poll_wait before calling gst_poll_* status
|
||||
functions on that new descriptor, so restart the loop, so _wait
|
||||
will have been called on all elements of self->poll, whether
|
||||
they have just been added or not. */
|
||||
continue;
|
||||
}
|
||||
|
||||
again:
|
||||
|
|
Loading…
Reference in a new issue