GNOME Bugzilla – Bug 726641
rtspconnection: connection_poll() not working correctly
Last modified: 2014-03-24 11:44:17 UTC
gst_rtsp_connection_poll() is not working correctly. It will never block even if set to do so and also it always checks if socket is both readable and writeable regardless of input argument.
Created attachment 272290 [details] [review] rtspconnection: Fix connection_poll() * Only check for conditions we are interested in. * Makes no sense to specify G_IO_ERR and G_IO_HUP in condition, they will always be reported if they are true. * Do not create timed source if timeout is NULL. * Correctly wait for sources to be dispatched, context_iteration() is not guaranteed to always block even if set to do so.
commit e0af857445bd42205e471907b1c899699c03cc94 Author: Ognyan Tonchev <otonchev@gmail.com> Date: Sun Mar 16 17:06:02 2014 +0100 rtspconnection: Fix connection_poll() * Only check for conditions we are interested in. * Makes no sense to specify G_IO_ERR and G_IO_HUP in condition, they will always be reported if they are true. * Do not create timed source if timeout is NULL. * Correctly wait for sources to be dispatched, context_iteration() is not guaranteed to always block even if set to do so. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726641