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:
Vincent Penquerc'h 2011-04-05 19:26:15 +03:00 committed by Sebastian Dröge
parent 6cd9048cf9
commit a34108899e

View file

@ -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: