rtspconnection: Fix connection_poll()
authorOgnyan Tonchev <otonchev@gmail.com>
Sun, 16 Mar 2014 16:06:02 +0000 (17:06 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 24 Mar 2014 11:43:38 +0000 (12:43 +0100)
commite0af857445bd42205e471907b1c899699c03cc94
tree287f6f0b469e4f1800e95c0843757ba0e9820b33
parentbf4079277d4467eb12dcf7ff8e9e291e9de931b1
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
gst-libs/gst/rtsp/gstrtspconnection.c